/* =============================================================================
   Nythera Client - website design system
   Single source of truth for colours, type and shared components.
   ========================================================================== */
:root {
	--ink-900: #05060c;
	--ink-800: #080a14;
	--ink-700: #0c1020;
	--ink-600: #12172b;
	--line: rgba(140, 165, 255, 0.12);
	--line-strong: rgba(140, 165, 255, 0.28);

	--text: #eaf0ff;
	--text-dim: #97a3c4;
	--text-faint: #66719089;

	--aurora: #38f3d0;
	--aurora-deep: #0fb99c;
	--flare: #ff4d8d;
	--gold: #ffc857;

	--grad-aurora: linear-gradient(120deg, #38f3d0 0%, #5aa7ff 48%, #ff4d8d 100%);
	--grad-panel: linear-gradient(160deg, rgba(28, 36, 66, 0.9), rgba(9, 12, 24, 0.9));
	--glow-aurora: 0 0 0 1px rgba(56, 243, 208, 0.35), 0 18px 50px -18px rgba(56, 243, 208, 0.55);
	--shadow-panel: 0 30px 70px -40px rgba(0, 0, 0, 0.95);

	--font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

	--radius: 16px;
	--maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ink-900);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Ambient aurora field behind everything. */
body::before {
	content: "";
	position: fixed;
	inset: -20vh -10vw;
	z-index: -2;
	background:
		radial-gradient(50vw 45vh at 12% 8%, rgba(56, 243, 208, 0.16), transparent 65%),
		radial-gradient(45vw 40vh at 88% 2%, rgba(255, 77, 141, 0.14), transparent 62%),
		radial-gradient(60vw 55vh at 55% 105%, rgba(90, 167, 255, 0.12), transparent 68%);
	filter: blur(10px);
	pointer-events: none;
}

/* Faint block grid - a nod to Minecraft without being literal about it. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(140, 165, 255, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(140, 165, 255, 0.045) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 78%);
	pointer-events: none;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.grad-text {
	background: var(--grad-aurora);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--aurora);
}
.eyebrow::before {
	content: "";
	width: 22px;
	height: 1px;
	background: var(--aurora);
}

/* ---------------------------------------------------------------- buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-family: var(--font-display);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
	background: var(--grad-aurora);
	color: #04121a;
	box-shadow: 0 18px 40px -20px rgba(56, 243, 208, 0.8);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 24px 50px -18px rgba(56, 243, 208, 0.95); }
.btn-ghost {
	background: rgba(255, 255, 255, 0.03);
	border-color: var(--line-strong);
	color: var(--text);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--aurora); color: var(--aurora); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------ navbar */
.nav {
	position: sticky;
	top: 0;
	z-index: 40;
	backdrop-filter: blur(14px);
	background: rgba(5, 6, 12, 0.72);
	border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand-mark {
	width: 32px; height: 32px; border-radius: 9px;
	background: var(--grad-aurora);
	display: grid; place-items: center;
	color: #04121a; font-weight: 800; font-size: 16px;
	box-shadow: var(--glow-aurora);
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--text-dim); }
.nav-links a:hover { color: var(--aurora); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* -------------------------------------------------------------------- hero */
.hero { padding: 110px 0 90px; text-align: center; }
.hero h1 { font-size: clamp(44px, 7.4vw, 92px); font-weight: 700; margin-top: 22px; }
.hero p.lead {
	max-width: 620px;
	margin: 22px auto 0;
	color: var(--text-dim);
	font-size: clamp(16px, 2vw, 19px);
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.stats { display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; margin-top: 64px; }
.stat-value { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }

/* ----------------------------------------------------------------- sections */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 16px; }
.section-head p { color: var(--text-dim); margin-top: 14px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
	background: var(--grad-panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px;
	box-shadow: var(--shadow-panel);
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }
.card-icon {
	width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
	display: grid; place-items: center; font-size: 20px;
	background: rgba(56, 243, 208, 0.1);
	border: 1px solid rgba(56, 243, 208, 0.25);
}

/* ---------------------------------------------------------------- coin store */
.pack-grid { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.pack {
	position: relative;
	background: var(--grad-panel);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 26px 22px;
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.pack:hover { transform: translateY(-4px); border-color: var(--aurora); box-shadow: var(--glow-aurora); }
.pack.featured { border-color: rgba(56, 243, 208, 0.45); box-shadow: var(--glow-aurora); }
.pack-tag {
	position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
	background: var(--grad-aurora); color: #04121a;
	font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
	padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.pack-coin {
	width: 62px; height: 62px; margin: 6px auto 16px; border-radius: 50%;
	display: grid; place-items: center; font-size: 26px;
	background: radial-gradient(circle at 30% 25%, #ffe9a8, var(--gold) 55%, #b57e14);
	box-shadow: 0 12px 30px -14px rgba(255, 200, 87, 0.9);
}
.pack-amount { font-family: var(--font-display); font-size: 27px; font-weight: 700; }
.pack-name { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }
.pack-bonus { margin-top: 10px; font-size: 13px; color: var(--aurora); }
.pack-price { margin-top: 18px; font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.pack-cta { margin-top: 16px; }

/* ------------------------------------------------------------- account panel */
.account-panel {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
	align-items: end;
	background: var(--grad-panel);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	padding: 24px;
	margin-bottom: 30px;
}
@media (max-width: 700px) { .account-panel { grid-template-columns: 1fr; align-items: stretch; } }
label.field-label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 9px; }
input.field {
	width: 100%;
	background: rgba(3, 5, 12, 0.75);
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	padding: 13px 16px;
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 15px;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input.field:focus { border-color: var(--aurora); box-shadow: 0 0 0 3px rgba(56, 243, 208, 0.14); }

.account-result { margin-top: 16px; font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.chip {
	display: inline-flex; align-items: center; gap: 8px;
	background: rgba(56, 243, 208, 0.08);
	border: 1px solid rgba(56, 243, 208, 0.25);
	border-radius: 999px; padding: 6px 14px;
	font-family: var(--font-mono); font-size: 12px;
}
.chip.plus { background: rgba(255, 200, 87, 0.1); border-color: rgba(255, 200, 87, 0.3); color: var(--gold); }
.chip.error { background: rgba(255, 77, 141, 0.1); border-color: rgba(255, 77, 141, 0.32); color: #ff9dbe; }

/* --------------------------------------------------------------- item store */
.item {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	background: rgba(12, 16, 32, 0.7);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 14px;
}
.item-price { font-family: var(--font-mono); color: var(--gold); white-space: nowrap; }
.bundle-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.bundle-chips span {
	font-family: var(--font-mono); font-size: 11px;
	border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 8px; color: var(--text-dim);
}
.badge-featured {
	font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--flare); border: 1px solid rgba(255, 77, 141, 0.35); border-radius: 999px; padding: 3px 10px;
}

/* --------------------------------------------------------------------- faq */
details.faq {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 18px 20px;
	background: rgba(12, 16, 32, 0.6);
}
details.faq + details.faq { margin-top: 12px; }
details.faq summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { margin-top: 12px; color: var(--text-dim); font-size: 15px; }

/* ------------------------------------------------------------------ footer */
footer {
	border-top: 1px solid var(--line);
	padding: 40px 0;
	color: var(--text-faint);
	font-size: 13px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------------------------- toast */
.toast {
	position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(140%);
	background: rgba(9, 12, 24, 0.96);
	border: 1px solid var(--line-strong);
	border-radius: 12px; padding: 14px 20px; font-size: 14px;
	box-shadow: var(--shadow-panel); z-index: 80;
	transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	max-width: min(92vw, 460px);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.error { border-color: rgba(255, 77, 141, 0.45); }

.center { text-align: center; }
.muted { color: var(--text-dim); }
.mono { font-family: var(--font-mono); }
