:root {
	--ink: #0c1222;
	--ink-soft: #2a3348;
	--muted: #5c6b7a;
	--paper: #eef2ef;
	--paper-2: #e2eae4;
	--accent: #1a9b7a;
	--accent-deep: #0f7a5e;
	--accent-glow: rgba(26, 155, 122, 0.22);
	--line: rgba(12, 18, 34, 0.1);
	--font-display: "Syne", sans-serif;
	--font-body: "Manrope", sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-body);
	color: var(--ink);
	background:
		radial-gradient(ellipse 80% 55% at 15% -10%, rgba(26, 155, 122, 0.18), transparent 55%),
		radial-gradient(ellipse 60% 45% at 95% 5%, rgba(12, 18, 34, 0.08), transparent 50%),
		linear-gradient(165deg, #f7faf8 0%, var(--paper) 45%, #e8efe9 100%);
	min-height: 100vh;
	line-height: 1.55;
	overflow-x: hidden;
}

.grain {
	pointer-events: none;
	position: fixed;
	inset: 0;
	z-index: 50;
	opacity: 0.035;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
}

/* —— Header —— */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1rem clamp(1.25rem, 4vw, 3rem);
	backdrop-filter: blur(12px);
	background: rgba(238, 242, 239, 0.72);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s var(--ease), background 0.3s;
}

.site-header.is-scrolled {
	border-bottom-color: var(--line);
	background: rgba(238, 242, 239, 0.9);
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: -0.02em;
}

.brand img {
	border-radius: 50%;
}

.nav {
	display: flex;
	gap: 1.5rem;
	margin-left: auto;
	font-size: 0.9rem;
	font-weight: 500;
	color: var(--muted);
}

.nav a:hover {
	color: var(--ink);
}

.site-header > .btn-sm {
	margin-left: 0.5rem;
}

@media (max-width: 720px) {
	.nav {
		display: none;
	}
}

/* —— Buttons —— */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.7rem 1.25rem;
	border-radius: 10px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.9rem;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active {
	transform: scale(0.97);
}

.btn-sm {
	padding: 0.5rem 0.95rem;
	font-size: 0.82rem;
	background: var(--ink);
	color: #f4f7f5;
}

.btn-sm:hover {
	background: var(--ink-soft);
}

.btn-primary {
	background: var(--accent);
	color: #fff;
}

.btn-primary:hover {
	background: var(--accent-deep);
}

.btn-ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--ink);
}

.btn-ghost:hover {
	border-color: var(--ink);
	background: rgba(12, 18, 34, 0.04);
}

.btn-lg {
	padding: 1rem 1.6rem;
	font-size: 1rem;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 200px;
}

.btn-lg small {
	font-size: 0.72rem;
	font-weight: 500;
	opacity: 0.75;
}

/* —— Hero —— */
.hero {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
	min-height: calc(100vh - 68px);
	padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vh, 5rem);
	position: relative;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, black 20%, transparent 70%);
	pointer-events: none;
	opacity: 0.55;
}

.hero-copy,
.hero-visual {
	position: relative;
	z-index: 1;
}

.brand-mark {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(1.35rem, 3.2vw, 2rem);
	letter-spacing: -0.03em;
	color: var(--accent);
	margin-bottom: 0.75rem;
	opacity: 0;
	animation: rise 0.8s var(--ease) 0.1s forwards;
}

.hero h1 {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: clamp(2.6rem, 6.5vw, 4.4rem);
	line-height: 1.02;
	letter-spacing: -0.045em;
	color: var(--ink);
	margin-bottom: 1.25rem;
	opacity: 0;
	animation: rise 0.8s var(--ease) 0.22s forwards;
}

.lede {
	font-size: clamp(1rem, 1.6vw, 1.15rem);
	color: var(--muted);
	max-width: 34ch;
	margin-bottom: 2rem;
	opacity: 0;
	animation: rise 0.8s var(--ease) 0.34s forwards;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	opacity: 0;
	animation: rise 0.8s var(--ease) 0.46s forwards;
}

.hero-visual {
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	animation: rise 1s var(--ease) 0.35s forwards;
}

.qr-stage {
	position: relative;
	width: min(100%, 340px);
}

.qr-board {
	background: #f4f7f5;
	padding: 1.5rem;
	border-radius: 4px;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 24px 48px -20px rgba(12, 18, 34, 0.28);
	position: relative;
	overflow: hidden;
}

.qr-art {
	width: 100%;
	height: auto;
	display: block;
}

.scan-line {
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	top: 1.5rem;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent), transparent);
	box-shadow: 0 0 16px var(--accent-glow);
	animation: scan 3.2s var(--ease) infinite;
	pointer-events: none;
	z-index: 2;
}

.pulse-mod {
	animation: pulse-mod 2.4s ease-in-out infinite;
}

.pulse-mod.delay {
	animation-delay: 1.1s;
}

.qr-caption {
	margin-top: 1rem;
	text-align: center;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--muted);
}

@media (max-width: 860px) {
	.hero {
		grid-template-columns: 1fr;
		min-height: auto;
		padding-top: 2.5rem;
		text-align: center;
	}

	.lede {
		margin-inline: auto;
	}

	.cta-row {
		justify-content: center;
	}

	.hero-visual {
		order: -1;
	}

	.qr-stage {
		width: min(100%, 260px);
	}

	.hero::before {
		mask-image: radial-gradient(ellipse 90% 50% at 50% 20%, black 10%, transparent 70%);
	}
}

/* —— Sections —— */
.section {
	padding: clamp(4rem, 10vh, 6.5rem) clamp(1.25rem, 4vw, 3rem);
	max-width: 1100px;
	margin-inline: auto;
}

.section-head {
	max-width: 36rem;
	margin-bottom: 2.75rem;
}

.section-head h2 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	letter-spacing: -0.03em;
	line-height: 1.15;
	margin-bottom: 0.65rem;
}

.section-head p {
	color: var(--muted);
	font-size: 1.05rem;
}

.reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* Features */
.feature-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5rem 3rem;
	border-top: 1px solid var(--line);
	padding-top: 2.5rem;
}

.feature-list li {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 1rem;
	row-gap: 0.35rem;
}

.feat-num {
	grid-row: 1 / 3;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--accent);
	letter-spacing: 0.04em;
	padding-top: 0.2rem;
}

.feature-list h3 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
}

.feature-list p {
	color: var(--muted);
	font-size: 0.95rem;
	max-width: 32ch;
}

@media (max-width: 640px) {
	.feature-list {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
}

/* How */
.how {
	border-top: 1px solid var(--line);
}

.steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	counter-reset: step;
}

.steps li {
	counter-increment: step;
	padding-top: 1.25rem;
	border-top: 2px solid var(--ink);
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.steps li::before {
	content: "0" counter(step);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.8rem;
	color: var(--accent);
	letter-spacing: 0.06em;
}

.steps strong {
	font-family: var(--font-display);
	font-size: 1.2rem;
	letter-spacing: -0.02em;
}

.steps span {
	color: var(--muted);
	font-size: 0.95rem;
}

@media (max-width: 720px) {
	.steps {
		grid-template-columns: 1fr;
	}
}

/* Privacy */
.privacy {
	background: var(--ink);
	color: #e8ede9;
	max-width: none;
	margin: 0;
	padding-inline: clamp(1.25rem, 4vw, 3rem);
	position: relative;
}

.privacy .section-head {
	max-width: 1100px;
	margin-inline: auto;
	margin-bottom: 2rem;
}

.privacy .section-head h2 {
	color: #fff;
}

.privacy .section-head p {
	color: rgba(232, 237, 233, 0.65);
}

.privacy-points {
	list-style: none;
	max-width: 1100px;
	margin-inline: auto;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem 2.5rem;
}

.privacy-points li {
	padding-left: 1.25rem;
	position: relative;
	color: rgba(232, 237, 233, 0.85);
	font-size: 0.98rem;
}

.privacy-points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 7px;
	height: 7px;
	background: var(--accent);
	border-radius: 1px;
}

.privacy-link {
	max-width: 1100px;
	margin: 2rem auto 0;
}

.privacy-link a {
	color: var(--accent);
	font-weight: 600;
	font-size: 0.95rem;
}

.privacy-link a:hover {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.privacy-points {
		grid-template-columns: 1fr;
	}
}

/* Install */
.install-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

/* Footer */
.site-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 2rem clamp(1.25rem, 4vw, 3rem);
	border-top: 1px solid var(--line);
	font-size: 0.88rem;
	color: var(--muted);
}

.footer-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--ink);
	font-size: 0.9rem;
}

.footer-brand img {
	border-radius: 50%;
}

.site-footer a:hover {
	color: var(--ink);
	text-decoration: underline;
}

/* —— Motion —— */
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(22px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes scan {
	0%,
	100% {
		top: 12%;
		opacity: 0;
	}
	8% {
		opacity: 1;
	}
	50% {
		top: 78%;
		opacity: 1;
	}
	58%,
	100% {
		opacity: 0;
	}
}

@keyframes pulse-mod {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
	}

	.brand-mark,
	.hero h1,
	.lede,
	.cta-row,
	.hero-visual,
	.reveal {
		opacity: 1;
		transform: none;
	}
}
