/* Digital Steppe microsite */
:root {
  --bg: #050a14; --bg-2: #0a1320; --surface: rgba(12, 22, 34, .78); --solid: #0d1724;
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18);
  --text: #eef3ea; --muted: #a3b2a8; --soft: #d3dccf;
  --green: #7fd99a; --green-2: #2f9e5a; --gold: #ffd27a; --sky: #7fd0ff;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 18px; --wrap: 1180px; --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.1; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* top bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; height: 64px; display: flex; align-items: center; background: linear-gradient(rgba(5, 10, 20, .75), rgba(5, 10, 20, 0)); }
.bar { transition: background .3s, box-shadow .3s; }
.bar.solid { background: rgba(5, 10, 20, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 18px; }
.bar .brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: .02em; }
.bar .brand img { width: 26px; height: 26px; filter: invert(1); }
.bar .brand small { color: var(--muted); font-weight: 600; }
.bar nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.bar nav a { color: var(--soft); font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.bar nav a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; }
.bar nav a.cta { background: var(--green); color: #04140a; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-family: var(--font); transition: transform .2s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-green { background: linear-gradient(135deg, #8fe3a8, #2f9e5a); color: #04140a; box-shadow: 0 12px 30px -12px rgba(127, 217, 154, .8); }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(5, 10, 20, .35); backdrop-filter: blur(6px); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* 3D stage */
#stage { position: fixed; inset: 0; z-index: 0; }
#stage canvas { width: 100% !important; height: 100% !important; display: block; }
.stage-fallback { position: fixed; inset: 0; z-index: 0; background: center / cover no-repeat url("../data/khustai-rgb-1024.webp"); filter: brightness(.55) saturate(1.1); }
.hud { position: fixed; right: var(--gutter); bottom: 18px; z-index: 5; font: 600 11.5px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; color: rgba(220, 240, 225, .8); text-align: right; letter-spacing: .02em; background: rgba(5, 10, 20, .45); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; backdrop-filter: blur(6px); pointer-events: none; }
.hud { transition: opacity .4s; }
.hud.off { opacity: 0; }
.hud b { color: var(--green); font-weight: 700; }
.progress { position: fixed; left: 0; top: 0; height: 3px; z-index: 30; background: linear-gradient(90deg, var(--green), var(--gold)); width: 0; }

/* story */
.story { position: relative; z-index: 2; }
.chapter { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0; }
.chapter .card { max-width: 470px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 28px 28px 24px; backdrop-filter: blur(14px) saturate(130%); -webkit-backdrop-filter: blur(14px) saturate(130%); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.chapter.right .wrap { display: flex; justify-content: flex-end; }
.chap-n { font: 800 12px var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.chap-n::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.card h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); }
.card p { color: var(--soft); }
.card ul { margin: 0; padding-left: 18px; color: var(--soft); display: grid; gap: 6px; }
.card .big { font-family: var(--serif); font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--gold); margin: 6px 0 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 0 0 clamp(64px, 12vh, 120px); position: relative; z-index: 2; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 20, .25) 0%, rgba(5, 10, 20, 0) 35%, rgba(5, 10, 20, .65) 100%); pointer-events: none; }
.hero .wrap { position: relative; }
.kicker { font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: 12.5px; color: var(--green); margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(48px, 9vw, 116px); line-height: .95; letter-spacing: -.035em; max-width: 11ch; margin-bottom: 22px; text-shadow: 0 6px 40px rgba(0, 0, 0, .5); }
.hero h1 em { font-style: italic; color: var(--green); }
.hero p.lead { font-size: clamp(17px, 2vw, 21px); max-width: 44ch; color: var(--soft); text-shadow: 0 2px 16px rgba(0, 0, 0, .6); margin-bottom: 28px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; }
.hero .facts div { border-left: 2px solid var(--green); padding-left: 12px; }
.hero .facts b { display: block; font-size: 24px; font-family: var(--serif); }
.hero .facts span { font-size: 13px; color: var(--muted); }
.scroll-hint { margin-top: 30px; font-size: 13px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }

/* the ask (solid sections) */
.ask { position: relative; z-index: 3; background: linear-gradient(180deg, rgba(5, 10, 20, 0) 0%, var(--bg) 140px); padding: 160px 0 40px; }
.ask-head { max-width: 760px; margin-bottom: 44px; }
.ask-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(36px, 5vw, 64px); }
.ask-head h2 em { font-style: italic; color: var(--gold); }
.ask-head p { font-size: 18px; color: var(--soft); }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 64px; }
.path { background: var(--solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 8px; align-content: start; }
.path .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(127, 217, 154, .12); color: var(--green); margin-bottom: 6px; }
.path .ico svg { width: 22px; height: 22px; }
.path h3 { font-size: 20px; }
.path p { color: var(--muted); margin: 0; font-size: 15px; }
.path .who { font-size: 13px; color: var(--soft); margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); margin-bottom: 64px; }
.panel { background: var(--solid); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 16px; }
.money { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.money b { font-family: var(--serif); font-size: 46px; color: var(--gold); line-height: 1; }
.money span { color: var(--muted); }
.bar-funds { display: flex; height: 16px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 6px 0 16px; }
.f1 { background: #6b4a2f; } .f2 { background: #4f8a45; } .f3 { background: #a07c40; } .f4 { background: #4d6c95; } .f5 { background: #7ea3d4; } .f6 { background: #2f9e5a; }
.funds-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--soft); }
.funds-list li { display: grid; grid-template-columns: 12px 46px 1fr; gap: 8px; align-items: baseline; }
.funds-list i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; }
.timeline b { color: var(--gold); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.timeline span { color: var(--soft); font-size: 15px; }
.timeline strong { display: block; color: var(--text); }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 64px; }
.why div { border-top: 2px solid var(--green); padding-top: 14px; }
.why b { display: block; font-size: 17px; margin-bottom: 4px; }
.why span { color: var(--muted); font-size: 14.5px; }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 64px; }
.team div { background: var(--solid); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.team b { display: block; margin-bottom: 4px; }
.team span { color: var(--muted); font-size: 14px; }
.section-label { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 800; margin: 0 0 18px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 48px); background: linear-gradient(140deg, rgba(127, 217, 154, .12), var(--solid) 55%); border: 1px solid rgba(127, 217, 154, .3); border-radius: 26px; padding: clamp(26px, 5vw, 56px); margin-bottom: 40px; }
.contact h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 46px); }
.contact p { color: var(--soft); }
.form { display: grid; gap: 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--soft); }
.form input, .form select, .form textarea { width: 100%; font: 500 15px var(--font); color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.form select option { background: #0d1724; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); }
.form .hp { position: absolute; left: -9999px; }
.form .status { min-height: 1.4em; font-size: 14.5px; margin: 0; }
.form .status.ok { color: #8fe3a8; } .form .status.err { color: #ff9b8a; }
.foot { position: relative; z-index: 3; background: var(--bg); padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.credit { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .paths, .grid2, .contact { grid-template-columns: 1fr; }
  .why, .team { grid-template-columns: 1fr 1fr; }
  .chapter .wrap, .chapter.right .wrap { justify-content: center; }
  .chapter .card { max-width: 560px; }
}
@media (max-width: 640px) {
  .bar nav a:not(.cta) { display: none; }
  .bar .brand { white-space: nowrap; }
  .bar .brand small { display: none; }
  .bar nav a.cta { white-space: nowrap; padding: 7px 14px; }
  .hero { padding-top: 88px; }
  .why, .team, .form .two { grid-template-columns: 1fr; }
  .chapter { align-items: flex-end; padding-bottom: 72px; }
  .chapter .card { padding: 22px; background: rgba(8, 16, 26, .86); }
  .hud { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { #stage, .hud, .bar, .progress { display: none !important; } }
