/* nightcast.fun homepage. Same rules as the legal pages: system fonts and
   local images only, nothing loaded from third parties. Palette mirrors
   scenes/ui/UiKit.gd; the site is always dark, like the game. */
:root {
	--bg: #0c0a14;
	--bg-deep: #07060d;
	--surface: #171226;
	--panel: #2a2240;
	--text: #f7efe0;
	--muted: #bcb0d4;
	--gold: #f0bf5a;
	--gold-deep: #c98f2e;
	--arcane: #9b7bff;
	--teal: #3fd3c1;
	--rose: #ff6f91;
	--line: rgba(188, 176, 212, 0.16);
	--display: Georgia, "Times New Roman", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--arcane); text-underline-offset: 3px; }
a:hover { color: var(--text); }

.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 24px; }

/* Night sky: two layers of stars and a haloed moon, all CSS. */
.sky { position: relative; isolation: isolate; }
.sky::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(1.5px 1.5px at 12% 18%, #fff8 50%, transparent 52%),
		radial-gradient(1px 1px at 27% 42%, #fff6 50%, transparent 52%),
		radial-gradient(1.5px 1.5px at 44% 12%, #fff7 50%, transparent 52%),
		radial-gradient(1px 1px at 58% 34%, #fff5 50%, transparent 52%),
		radial-gradient(1.5px 1.5px at 71% 22%, #fff8 50%, transparent 52%),
		radial-gradient(1px 1px at 86% 48%, #fff6 50%, transparent 52%),
		radial-gradient(1px 1px at 8% 62%, #fff5 50%, transparent 52%),
		radial-gradient(1.5px 1.5px at 93% 8%, #fff7 50%, transparent 52%),
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(155, 123, 255, 0.18), transparent 70%),
		linear-gradient(180deg, #120d22 0%, var(--bg) 70%);
}
.sky::after {
	content: ""; position: absolute; z-index: -1; pointer-events: none;
	width: 220px; height: 220px; right: 6%; top: 70px; border-radius: 50%;
	background: radial-gradient(circle at 42% 40%, #fff6dc 0%, #f3dfae 38%, #d9b978 62%, transparent 63%);
	box-shadow: 0 0 80px 30px rgba(240, 191, 90, 0.16), 0 0 220px 90px rgba(155, 123, 255, 0.10);
	opacity: 0.9;
}

header.site { position: relative; z-index: 2; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font: 600 21px/1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; }
.brand svg { width: 24px; height: 24px; }
nav.top { display: flex; gap: 4px; }
nav.top a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 7px 13px; border-radius: 999px; border: 1px solid transparent; }
nav.top a:hover { color: var(--text); border-color: var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 48px; align-items: center; padding: 56px 0 88px; }
.kicker { margin: 0 0 14px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
h1 { margin: 0 0 18px; font: 600 clamp(40px, 6.2vw, 68px)/1.04 var(--display); letter-spacing: -0.01em; text-wrap: balance; }
h1 em { font-style: normal; color: var(--gold); text-shadow: 0 0 34px rgba(240, 191, 90, 0.35); }
.lead { margin: 0 0 30px; color: var(--muted); font-size: 19px; max-width: 34em; }
.lead strong { color: var(--text); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: 0.02em; }
.btn-gold { color: #2a1a05; background: linear-gradient(180deg, #f8d27c, var(--gold) 55%, var(--gold-deep)); box-shadow: 0 4px 0 #8a5a14, 0 10px 30px rgba(240, 191, 90, 0.28); }
.btn-gold:hover { color: #2a1a05; filter: brightness(1.06); }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 2px 0 #8a5a14, 0 6px 18px rgba(240, 191, 90, 0.24); }
.soon { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(23, 18, 38, 0.7); color: var(--muted); font-size: 14px; }
.soon svg { width: 16px; height: 16px; fill: var(--muted); }

.screen { position: relative; border-radius: 22px; padding: 10px; background: linear-gradient(160deg, #3a2f58, #1a1430 60%); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(240, 191, 90, 0.25), 0 0 90px rgba(155, 123, 255, 0.22); }
.screen img { border-radius: 14px; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.hero .screen { transform: rotate(-1.2deg); }

/* Numbers band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: rgba(23, 18, 38, 0.6); }
.stats div { padding: 26px 12px; text-align: center; }
.stats div + div { border-left: 1px solid var(--line); }
.stats b { display: block; font: 600 40px/1 var(--display); color: var(--gold); }
.stats span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Sections */
section.block { padding: 96px 0 0; }
h2 { margin: 0 0 14px; font: 600 clamp(30px, 4vw, 42px)/1.12 var(--display); text-wrap: balance; }
.section-lead { margin: 0 0 40px; color: var(--muted); font-size: 18px; max-width: 40em; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.casters { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.casters li { display: grid; grid-template-columns: 12px 1fr; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.casters i { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.casters b { font-family: var(--display); font-size: 19px; letter-spacing: 0.04em; }
.casters em { font-style: normal; color: var(--c); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-left: 8px; }
.casters p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.card div { padding: 20px 22px 24px; }
.card h3 { margin: 0 0 8px; font: 600 22px/1.25 var(--display); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.tag { display: inline-block; margin-bottom: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent, var(--gold)); }

.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 22px; }
.pillar { padding: 26px 26px 28px; border-radius: 20px; background: linear-gradient(160deg, var(--panel), var(--surface)); border: 1px solid var(--line); }
.pillar h3 { margin: 0 0 8px; font: 600 22px/1.25 var(--display); }
.pillar p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Closing call to action */
.cta { margin: 104px 0 0; padding: 56px 32px; border-radius: 28px; text-align: center; background: radial-gradient(ellipse at 50% 0%, rgba(240, 191, 90, 0.18), transparent 60%), linear-gradient(160deg, #2b2147, #151025); border: 1px solid rgba(240, 191, 90, 0.3); }
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0 auto 26px; color: var(--muted); max-width: 34em; }
.cta .actions { justify-content: center; }

footer.site { margin-top: 88px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 36px; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

@media (max-width: 900px) {
	.hero, .split { grid-template-columns: 1fr; gap: 36px; }
	.hero { padding: 32px 0 64px; }
	.hero .screen { transform: none; }
	.cards { grid-template-columns: 1fr; }
	.pillars { grid-template-columns: 1fr; }
	.sky::after { width: 140px; height: 140px; top: 96px; right: -20px; opacity: 0.55; }
	section.block { padding-top: 72px; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.brand { font-size: 18px; letter-spacing: 0.12em; }
	nav.top a { padding: 6px 10px; }
	.lead { font-size: 17px; }
	.sky::after { display: none; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stats div:nth-child(3) { border-left: 0; }
	.stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
	.stats b { font-size: 32px; }
	.btn, .soon { width: 100%; justify-content: center; }
	.cta { padding: 40px 20px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn-gold:active { transform: none; }
}
