/* ============================================================
   Aronno Keyboard Landing Page — Styles
   ============================================================ */

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

/* Design tokens */
:root {
	--bg: #050508;
	--surface: #0f0f15;
	--surface-2: #16161f;
	--surface-3: #1e1e2a;
	--accent: #818cf8;
	--accent-bright: #a5b4fc;
	--accent-dim: #6366f1;
	--green: #34d399;
	--amber: #fbbf24;
	--rose: #fb7185;
	--text: #f1f5f9;
	--text-secondary: #cbd5e1;
	--text-muted: #64748b;
	--border: rgba(255, 255, 255, 0.06);
	--glow: rgba(99, 102, 241, 0.08);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family:
		"Inter",
		-apple-system,
		BlinkMacSystemFont,
		sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

/* ── Utilities ─────────────────────────────── */
.container {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.section {
	padding: 6rem 0;
}

.gradient-text {
	background: linear-gradient(135deg, var(--text) 0%, var(--accent) 50%, var(--accent-bright) 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.bengali {
	font-family: "Noto Sans Bengali", "Inter", sans-serif;
}

/* ── Animated gradient background ─────────────────────────── */
.bg-glow {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}

.bg-glow::before {
	content: "";
	position: absolute;
	top: -40%;
	left: -20%;
	width: 80%;
	height: 80%;
	background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
	animation: drift 20s ease-in-out infinite alternate;
}

.bg-glow::after {
	content: "";
	position: absolute;
	bottom: -30%;
	right: -20%;
	width: 70%;
	height: 70%;
	background: radial-gradient(ellipse, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
	animation: drift 25s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
	0% {
		transform: translate(0, 0) scale(1);
	}
	100% {
		transform: translate(60px, 40px) scale(1.1);
	}
}

/* ── Grid pattern overlay ─────────────────────────────────── */
.bg-grid {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 64px 64px;
	pointer-events: none;
}

.page {
	position: relative;
	z-index: 1;
}

/* ── Navigation ────────────────────────────── */
nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	padding: 1rem 0;
	background: rgba(5, 5, 8, 0.8);
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border);
}

nav .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-brand {
	font-size: 1.3rem;
	font-weight: 800;
	color: var(--text);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nav-brand span {
	font-size: 1.5rem;
}

.nav-links {
	display: flex;
	gap: 2rem;
	align-items: center;
}

.nav-links a {
	color: var(--text-muted);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.2s;
}

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

/* ── Hero ──────────────────────────────────── */
.hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 5rem;
}

.hero-content {
	position: relative;
	z-index: 1;
	text-align: center;
	width: 100%;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1.2rem;
	border-radius: 100px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--accent-bright);
	margin-bottom: 2rem;
	letter-spacing: 0.04em;
}

.hero-badge .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
	animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.3;
	}
}

.hero h1 {
	font-size: 4.5rem;
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.04em;
	margin-bottom: 1.5rem;
}

.hero-sub {
	font-size: 1.25rem;
	color: var(--text-secondary);
	max-width: 600px;
	margin: 0 auto 2.5rem;
	line-height: 1.7;
}

.hero-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.9rem 2rem;
	border-radius: 14px;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.25s;
	border: none;
	cursor: pointer;
}

.btn svg {
	width: 22px;
	height: 22px;
}

.btn-primary {
	background: var(--accent-dim);
	color: #fff;
	box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
	background: var(--accent);
	transform: translateY(-2px);
	box-shadow: 0 0 40px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
	background: var(--surface-2);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: var(--surface-3);
	transform: translateY(-2px);
}

/* ── Keyboard Preview ──────────────────────── */
.keyboard-preview {
	margin-top: 4rem;
	display: flex;
	justify-content: center;
}

.keyboard-mock {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 20px;
	padding: 1.5rem;
	max-width: 420px;
	width: 100%;
	box-shadow:
		0 40px 80px rgba(0, 0, 0, 0.5),
		0 0 60px var(--glow);
}

.kb-input {
	background: var(--surface-2);
	border-radius: 12px;
	padding: 1rem 1.2rem;
	margin-bottom: 1rem;
	border: 1px solid var(--border);
}

.kb-input-text {
	font-size: 1.1rem;
	color: var(--text);
	line-height: 1.5;
}

.kb-input-cursor {
	display: inline-block;
	width: 2px;
	height: 1.2em;
	background: var(--accent);
	vertical-align: text-bottom;
	animation: blink 1s infinite;
}

@keyframes blink {
	0%,
	50% {
		opacity: 1;
	}
	51%,
	100% {
		opacity: 0;
	}
}

.kb-rows {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kb-row {
	display: flex;
	gap: 4px;
	justify-content: center;
}

.kb-key {
	background: var(--surface-2);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	min-width: 32px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	color: var(--text-secondary);
	transition: all 0.15s;
}

.kb-key:hover {
	background: var(--surface-3);
	color: var(--text);
}

.kb-key.active {
	background: var(--accent-dim);
	color: #fff;
	border-color: var(--accent);
}

.kb-key.wide {
	min-width: 48px;
	font-size: 0.75rem;
}

.kb-key.space {
	flex: 1;
	max-width: 180px;
	font-size: 0.7rem;
	color: var(--text-muted);
}

.kb-label {
	text-align: center;
	margin-top: 0.8rem;
	font-size: 0.75rem;
	color: var(--text-muted);
	font-weight: 500;
}

/* ── Features ──────────────────────────────── */
.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-top: 3rem;
}

.feature-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 2rem;
	transition: all 0.3s;
}

.feature-card:hover {
	border-color: rgba(99, 102, 241, 0.2);
	transform: translateY(-4px);
}

.feature-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 1.2rem;
}

.feature-icon.purple {
	background: rgba(99, 102, 241, 0.12);
}
.feature-icon.green {
	background: rgba(52, 211, 153, 0.12);
}
.feature-icon.amber {
	background: rgba(251, 191, 36, 0.12);
}
.feature-icon.rose {
	background: rgba(251, 113, 133, 0.12);
}
.feature-icon.blue {
	background: rgba(56, 189, 248, 0.12);
}
.feature-icon.teal {
	background: rgba(45, 212, 191, 0.12);
}

.feature-card h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.feature-card p {
	font-size: 0.9rem;
	color: var(--text-muted);
	line-height: 1.6;
}

/* ── Layouts Section ───────────────────────── */
.layouts-section {
	background: var(--surface);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.section-header {
	text-align: center;
	margin-bottom: 3rem;
}

.section-header h2 {
	font-size: 2.5rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: 0.8rem;
}

.section-header p {
	font-size: 1.1rem;
	color: var(--text-muted);
	max-width: 550px;
	margin: 0 auto;
}

.layouts-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.2rem;
}

.layout-card {
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 1.8rem;
	display: flex;
	align-items: center;
	gap: 1.2rem;
	transition: all 0.3s;
}

.layout-card:hover {
	border-color: rgba(99, 102, 241, 0.25);
}

.layout-badge {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 1.1rem;
}

.layout-badge.bn {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
	color: var(--accent-bright);
}

.layout-badge.en {
	background: linear-gradient(135deg, rgba(52, 211, 153, 0.2), rgba(45, 212, 191, 0.2));
	color: var(--green);
}

.layout-info h3 {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.layout-info .sub {
	font-size: 0.85rem;
	color: var(--text-muted);
}

.layout-info .bn-name {
	font-size: 0.8rem;
	color: var(--accent-bright);
	margin-top: 0.15rem;
}

/* ── CTA / Download ────────────────────────── */
.cta-section {
	position: relative;
	text-align: center;
	overflow: hidden;
}

.cta-glow {
	position: absolute;
	bottom: -200px;
	left: 50%;
	transform: translateX(-50%);
	width: 700px;
	height: 700px;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
	pointer-events: none;
}

.cta-section .container {
	position: relative;
	z-index: 1;
}

.cta-section h2 {
	font-size: 2.8rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	margin-bottom: 1rem;
}

.cta-section p {
	font-size: 1.1rem;
	color: var(--text-muted);
	margin-bottom: 2.5rem;
}

.store-buttons {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.store-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	background: var(--surface-2);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 0.8rem 1.6rem;
	text-decoration: none;
	color: var(--text);
	transition: all 0.25s;
}

.store-btn:hover {
	border-color: rgba(99, 102, 241, 0.3);
	transform: translateY(-2px);
}

.store-btn svg {
	width: 28px;
	height: 28px;
}

.store-btn .store-meta {
	text-align: left;
}

.store-btn .store-small {
	font-size: 0.65rem;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.store-btn .store-name {
	font-size: 1rem;
	font-weight: 700;
}

/* ── Footer ────────────────────────────────── */
footer {
	padding: 2.5rem 0;
	text-align: center;
	border-top: 1px solid var(--border);
}

footer p {
	font-size: 0.8rem;
	color: var(--text-muted);
}

footer a {
	color: var(--accent);
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 1024px) {
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.hero h1 {
		font-size: 2.8rem;
	}
	.hero-sub {
		font-size: 1.05rem;
	}
	.section {
		padding: 4rem 0;
	}
	.section-header h2 {
		font-size: 2rem;
	}
	.features-grid {
		grid-template-columns: 1fr;
	}
	.layouts-grid {
		grid-template-columns: 1fr;
	}
	.nav-links {
		display: none;
	}
	.cta-section h2 {
		font-size: 2rem;
	}
	.keyboard-mock {
		max-width: 340px;
		padding: 1rem;
	}
	.kb-key {
		min-width: 26px;
		height: 36px;
		font-size: 0.75rem;
	}
}

@media (max-width: 480px) {
	.hero {
		padding-top: 4rem;
		min-height: auto;
		padding-bottom: 3rem;
	}
	.hero h1 {
		font-size: 2.2rem;
	}
	.hero-sub {
		font-size: 0.95rem;
	}
	.hero-buttons {
		flex-direction: column;
		align-items: center;
	}
	.btn {
		width: 100%;
		max-width: 280px;
		justify-content: center;
	}
	.keyboard-mock {
		max-width: 300px;
	}
	.kb-key {
		min-width: 22px;
		height: 32px;
		font-size: 0.7rem;
	}
	.kb-key.wide {
		min-width: 36px;
	}
	.feature-card {
		padding: 1.5rem;
	}
	.store-buttons {
		flex-direction: column;
		align-items: center;
	}
	.store-btn {
		width: 100%;
		max-width: 280px;
		justify-content: center;
	}
}
