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

/* ===== Font ===== */
@font-face {
	font-family: 'Figtree';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url('fonts/Figtree-Black.woff2') format('woff2');
}

/* ===== Dark-only Tokens ===== */
:root {
	--font-logo: 'Figtree', system-ui, sans-serif;

	/* Brand colors */
	--primary: oklch(0.65 0.1 252);
	--primary-fg: oklch(0.16 0.04 252);
	--accent: oklch(0.8 0.13 74);
	--accent-fg: oklch(0.9 0.03 74);
	--muted: oklch(0.55 0.02 252);
	--muted-fg: oklch(0.65 0.02 252);
	--success: oklch(0.7 0.14 175);
	--info: oklch(0.72 0.12 240);
	--brand-cream: oklch(0.22 0.02 95);

	/* Surfaces */
	--bg: oklch(0.16 0.04 252);
	--bg-card: oklch(0.21 0.05 252);
	--bg-card-hover: oklch(0.28 0.05 252);
	--border: oklch(0.28 0.05 252);
	--text: oklch(0.94 0.005 95);
	--text-muted: oklch(0.65 0.02 252);

	/* Header glass */
	--header-bg: rgba(15, 20, 35, 0.8);
	--header-border: oklch(0.28 0.05 252);

	/* Hero logo */
	--logo-glow: oklch(0.65 0.1 252 / 0.15);
	--logo-circle: oklch(0.24 0.04 252);

	/* Install icon bg */
	--icon-bg: oklch(0.65 0.1 252 / 0.12);
}

/* ===== Base ===== */
html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
body {
	font-family:
		system-ui,
		-apple-system,
		'Segoe UI',
		Roboto,
		'Helvetica Neue',
		Arial,
		sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
}
a {
	color: var(--primary);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* ===== Header ===== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	background: var(--header-bg);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--header-border);
	padding: 0 1.5rem;
	height: 3.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.header-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--text);
	text-decoration: none;
}
.header-brand {
	font-family: var(--font-logo);
	font-size: 0.875rem;
	font-weight: 900;
	letter-spacing: 0.05em;
	line-height: 1;
	color: var(--accent);
}
.header-logo-svg {
	width: 1.75rem;
	height: 1.75rem;
	color: var(--accent);
}
.header-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Lang toggle */
.lang-toggle {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text-muted);
	padding: 0.25rem 0.75rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.85rem;
	transition:
		border-color 0.2s,
		color 0.2s;
	text-decoration: none;
}
.lang-toggle:hover {
	border-color: var(--text-muted);
	color: var(--text);
	text-decoration: none;
}

/* ===== Buttons ===== */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.6rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	transition:
		transform 0.2s,
		box-shadow 0.2s,
		filter 0.2s;
	cursor: pointer;
	border: none;
}
.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
	filter: brightness(1.08);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.btn-accent {
	background: var(--accent);
	color: oklch(0.25 0.06 252);
}
.btn-primary {
	background: var(--primary);
	color: var(--primary-fg);
}
.btn-sm {
	padding: 0.35rem 1rem;
	font-size: 0.85rem;
}
.header .btn {
	display: none;
}
@media (min-width: 640px) {
	.header .btn {
		display: inline-flex;
	}
}

/* ===== Hero ===== */
.hero {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 6rem 1.5rem 4rem;
	position: relative;
	overflow: hidden;
}

/* Hero logo — prominent with subtle glow */
.hero-logo-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 9rem;
	height: 9rem;
	margin-bottom: 1.5rem;
	animation: float 6s ease-in-out infinite;
}
.hero-logo-circle {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: var(--logo-circle);
	box-shadow: 0 0 32px var(--logo-glow);
}
.hero-logo-svg {
	position: relative;
	z-index: 1;
	width: 5.5rem;
	height: 5.5rem;
	color: var(--accent);
}
@media (min-width: 640px) {
	.hero-logo-wrap {
		width: 12rem;
		height: 12rem;
	}
	.hero-logo-svg {
		width: 7.5rem;
		height: 7.5rem;
	}
}

.hero h1 {
	font-size: 2.5rem;
	font-weight: 900;
	letter-spacing: 0.2em;
	margin-bottom: 0.5rem;
	font-family: var(--font-logo);
	color: var(--accent);
	-webkit-text-stroke: 0.5px var(--accent);
}
@media (min-width: 640px) {
	.hero h1 {
		font-size: 3.5rem;
	}
}
.hero-tagline {
	font-size: 1.25rem;
	color: var(--primary);
	font-weight: 600;
	margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
	.hero-tagline {
		font-size: 1.5rem;
	}
}
.hero-subtitle {
	font-size: 1.05rem;
	color: var(--text-muted);
	max-width: 36rem;
	margin: 0 auto 2rem;
}

/* ===== Sections ===== */
section {
	padding: 5rem 1.5rem;
}
.container {
	max-width: 72rem;
	margin: 0 auto;
}
.section-title {
	font-size: 2rem;
	font-weight: 900;
	text-align: center;
	margin-bottom: 3rem;
	letter-spacing: -0.01em;
	font-family: var(--font-logo);
}
@media (min-width: 640px) {
	.section-title {
		font-size: 2.5rem;
	}
}

/* ===== Features ===== */
.features-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}
@media (min-width: 640px) {
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (min-width: 1024px) {
	.features-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.feature-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 2rem;
	transition:
		transform 0.3s,
		box-shadow 0.3s,
		background 0.3s;
}
.feature-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	background: var(--bg-card-hover);
}
.feature-icon {
	color: var(--primary);
	margin-bottom: 1rem;
}
.feature-card h3 {
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}
.feature-card p {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* ===== How It Works ===== */
.how-grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) {
	.how-grid {
		grid-template-columns: repeat(2, 1fr);
		max-width: 48rem;
		margin: 0 auto;
	}
}
.how-step {
	text-align: center;
	padding: 1.5rem;
}
.how-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background: var(--primary);
	color: var(--primary-fg);
	font-weight: 700;
	font-size: 1.25rem;
	margin-bottom: 1rem;
}
.how-step h3 {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}
.how-step p {
	color: var(--text-muted);
	font-size: 0.95rem;
}

/* ===== Hero Install ===== */
.hero-install {
	margin-top: 2rem;
	width: 100%;
	max-width: 28rem;
	position: relative;
	z-index: 1;
}
.hero-install-hint {
	color: var(--text-muted);
	font-size: 0.95rem;
	margin-bottom: 1rem;
}

/* Install details card */
.install-details {
	margin-top: 1.5rem;
	text-align: left;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.25rem;
	max-width: 28rem;
	margin-left: auto;
	margin-right: auto;
}
.install-tabs {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}
.install-tab {
	flex: 1;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
	transition:
		background 0.2s,
		color 0.2s,
		border-color 0.2s;
}
.install-tab.active {
	background: var(--primary);
	color: var(--primary-fg);
	border-color: var(--primary);
}
.install-step-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border);
	font-size: 1rem;
	line-height: 1.5;
}
.install-step-row:last-child {
	border-bottom: none;
}
.install-step-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 8px;
	background: var(--icon-bg);
	color: var(--primary);
}
.install-step-num {
	font-weight: 700;
	color: var(--primary);
	font-size: 1.1rem;
	flex-shrink: 0;
}

/* ===== CTA Section ===== */
.cta-section {
	text-align: center;
	padding: 5rem 1.5rem;
}
.cta-section h2 {
	font-size: 2rem;
	font-weight: 900;
	margin-bottom: 1.5rem;
	font-family: var(--font-logo);
}
@media (min-width: 640px) {
	.cta-section h2 {
		font-size: 2.5rem;
	}
}
.cta-section .btn {
	font-size: 1.1rem;
	padding: 0.85rem 2.5rem;
	margin-bottom: 1rem;
}
.cta-sub {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-top: 0.75rem;
}

/* ===== Footer ===== */
footer {
	border-top: 1px solid var(--border);
	padding: 2rem 1.5rem;
	text-align: center;
	color: var(--text-muted);
	font-size: 0.85rem;
}
footer p + p {
	margin-top: 0.35rem;
}

/* ===== Animations ===== */
@keyframes float {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-6px);
	}
}
.fade-in {
	opacity: 0;
	transform: translateY(24px);
	transition:
		opacity 0.6s ease,
		transform 0.6s ease;
}
.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ===== Footer Links ===== */
.footer-links {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1rem;
}
.footer-links a {
	color: var(--text-muted);
	font-size: 0.85rem;
	text-decoration: none;
}
.footer-links a:hover {
	color: var(--text);
	text-decoration: none;
}

/* ===== Legal / Content Pages ===== */
.legal-content {
	max-width: 48rem;
	margin: 0 auto;
	padding: 6rem 1.5rem 4rem;
}
.legal-content h1 {
	font-size: 2rem;
	font-weight: 900;
	margin-bottom: 0.5rem;
	font-family: var(--font-logo);
	color: var(--text);
}
.legal-content .legal-date {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 2.5rem;
}
.legal-content h2 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	color: var(--text);
}
.legal-content p {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 1rem;
}
.legal-content ul {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.7;
	margin-bottom: 1rem;
	padding-left: 1.5rem;
	list-style: disc;
}
.legal-content li {
	margin-bottom: 0.5rem;
}
.legal-content a {
	color: var(--primary);
}
.legal-content a:hover {
	text-decoration: underline;
}
.legal-content strong {
	color: var(--text);
	font-weight: 600;
}

/* ===== Support Page ===== */
.support-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 2rem;
	margin-bottom: 1.5rem;
}
.support-card h2 {
	margin-top: 0;
}
.support-email {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--primary);
}
.faq-list {
	margin-top: 1rem;
}
.faq-item {
	border-bottom: 1px solid var(--border);
	padding: 1.25rem 0;
}
.faq-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.faq-question {
	font-weight: 600;
	color: var(--text);
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
}
.faq-answer {
	color: var(--text-muted);
	font-size: 0.95rem;
	line-height: 1.6;
}
.legal-nav {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
	display: flex;
	gap: 1.5rem;
}
.legal-nav a {
	color: var(--text-muted);
	font-size: 0.9rem;
}
.legal-nav a:hover {
	color: var(--text);
}
