/* ===== OpenToets, shared design system ===== */
:root{
  --bg:#e9ebe6; --grain:#e3e6df; --surface:#ffffff; --surface2:#f5f6f1;
  --ink:#171d1a; --muted:#5b655e; --faint:#8b948d; --line:#d4d9d0;
  --gold:#8a5e19; --gold-fill:#b8863b; --gold-soft:#f0e4cd;
  --go:#2f7d4f; --go-soft:#dcefe2; --stop:#b0473c; --stop-soft:#f4ddd8;
  --shadow:0 1px 2px rgba(20,30,25,.06),0 6px 22px rgba(20,30,25,.07);
  --font-ui:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-mono:ui-monospace,"Cascadia Code","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --r:14px;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#0d1210; --grain:#101613; --surface:#151b18; --surface2:#1b221e;
    --ink:#e9ede9; --muted:#98a29b; --faint:#6c766f; --line:#29312c;
    --gold:#d6ab5c; --gold-fill:#c99a45; --gold-soft:#2c2718;
    --go:#5cbd82; --go-soft:#16281d; --stop:#dd8073; --stop-soft:#2c1a17;
    --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 30px rgba(0,0,0,.35);
  }
}
:root[data-theme="light"]{
  --bg:#e9ebe6; --grain:#e3e6df; --surface:#ffffff; --surface2:#f5f6f1;
  --ink:#171d1a; --muted:#5b655e; --faint:#8b948d; --line:#d4d9d0;
  --gold:#8a5e19; --gold-fill:#b8863b; --gold-soft:#f0e4cd;
  --go:#2f7d4f; --go-soft:#dcefe2; --stop:#b0473c; --stop-soft:#f4ddd8;
  --shadow:0 1px 2px rgba(20,30,25,.06),0 6px 22px rgba(20,30,25,.07);
}
:root[data-theme="dark"]{
  --bg:#0d1210; --grain:#101613; --surface:#151b18; --surface2:#1b221e;
  --ink:#e9ede9; --muted:#98a29b; --faint:#6c766f; --line:#29312c;
  --gold:#d6ab5c; --gold-fill:#c99a45; --gold-soft:#2c2718;
  --go:#5cbd82; --go-soft:#16281d; --stop:#dd8073; --stop-soft:#2c1a17;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 10px 30px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
html,body{margin:0}
body{
  background:var(--bg); color:var(--ink); font-family:var(--font-ui); line-height:1.5;
  -webkit-font-smoothing:antialiased;
  background-image:radial-gradient(var(--grain) 1px,transparent 1px); background-size:22px 22px;
}
a{color:var(--gold);text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit;cursor:pointer;color:inherit}
h1,h2,h3{margin:0;text-wrap:balance}
.eyebrow{font-family:var(--font-mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);font-weight:600}

/* ===== account bar (shared across all pages) ===== */
.ot-bar{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:12px;
  background:color-mix(in srgb,var(--surface) 88%,transparent);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);padding:9px clamp(12px,4vw,26px)}
.ot-bar .brand{display:flex;align-items:center;gap:10px;min-width:0}
.ot-bar .mark{width:30px;height:30px;flex:none;border-radius:8px;background:
  linear-gradient(135deg,var(--gold-fill),color-mix(in srgb,var(--gold-fill) 55%,#000));
  display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.15)}
.ot-bar .mark svg{width:18px;height:18px}
.ot-bar .name{font-weight:800;letter-spacing:-.01em;font-size:16px}
.ot-bar .name b{color:var(--gold)}
.ot-bar .crumb{font-family:var(--font-mono);font-size:11px;color:var(--faint);letter-spacing:.1em;text-transform:uppercase;border-left:1px solid var(--line);padding-left:10px;margin-left:2px}
.ot-bar .sp{flex:1}
.ot-bar .who{font-size:13px;color:var(--muted)}
.ot-bar .who b{color:var(--ink)}
.ot-btn{font-family:var(--font-ui);font-weight:600;font-size:13.5px;border-radius:9px;padding:8px 14px;border:1px solid var(--line);background:var(--surface2);white-space:nowrap}
.ot-btn:hover{border-color:var(--gold)}
.ot-btn.primary{background:var(--gold-fill);color:#fff;border:none}
.ot-btn.primary:hover{filter:brightness(1.07)}
.ot-btn.ghost{background:transparent}
.ot-icon{width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:var(--surface2);display:grid;place-items:center;font-size:15px;flex:none}
.ot-icon:hover{border-color:var(--gold)}
@media(max-width:560px){.ot-bar .crumb{display:none}.ot-bar .who span{display:none}}

/* ===== auth modal ===== */
.ot-modal-bg{position:fixed;inset:0;z-index:100;background:rgba(10,14,12,.55);backdrop-filter:blur(3px);
  display:none;align-items:center;justify-content:center;padding:18px}
.ot-modal-bg.show{display:flex}
.ot-modal{width:100%;max-width:400px;background:var(--surface);border:1px solid var(--line);border-radius:16px;
  box-shadow:var(--shadow);padding:26px;animation:otpop .16s ease-out}
@keyframes otpop{from{transform:translateY(8px) scale(.98);opacity:0}to{transform:none;opacity:1}}
.ot-modal h2{font-size:21px;font-weight:800;margin-bottom:4px}
.ot-modal .sub{color:var(--muted);font-size:13.5px;margin-bottom:18px}
.ot-tabs{display:flex;gap:6px;background:var(--surface2);border:1px solid var(--line);border-radius:10px;padding:4px;margin-bottom:18px}
.ot-tabs button{flex:1;border:none;background:transparent;padding:8px;border-radius:7px;font-weight:600;font-size:13.5px;color:var(--muted)}
.ot-tabs button.on{background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
.ot-field{margin-bottom:12px}
.ot-field label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:5px;letter-spacing:.02em}
.ot-field input{width:100%;padding:11px 13px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface2);
  color:var(--ink);font-size:15px;font-family:inherit}
.ot-field input:focus{outline:none;border-color:var(--gold)}
.ot-modal .err{display:none;background:var(--stop-soft);border:1px solid var(--stop);color:var(--ink);
  border-radius:9px;padding:9px 12px;font-size:13px;margin-bottom:12px}
.ot-modal .err.show{display:block}
.ot-modal .submit{width:100%;margin-top:6px;padding:12px;font-size:15px}
.ot-modal .close{position:absolute;top:14px;right:16px;font-size:20px;background:none;border:none;color:var(--muted)}
.ot-modal .note{font-size:12px;color:var(--faint);margin-top:14px;text-align:center;line-height:1.5}

/* ===== landing ===== */
.wrap{max-width:1080px;margin:0 auto;padding:0 clamp(14px,4vw,26px)}
.hero{padding:clamp(46px,8vw,88px) 0 clamp(30px,5vw,52px);max-width:720px}
.hero h1{font-size:clamp(30px,6vw,52px);font-weight:800;letter-spacing:-.02em;line-height:1.04}
.hero h1 .hl{color:var(--gold)}
.hero p{color:var(--muted);font-size:clamp(15px,2.2vw,19px);margin:18px 0 0;max-width:60ch}
.hero .cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.hero .cta .ot-btn{padding:12px 22px;font-size:15px}
.badges{display:flex;gap:8px 18px;flex-wrap:wrap;margin-top:26px;font-size:13px;color:var(--muted)}
.badges b{color:var(--ink)}
.section-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:14px 0 16px;flex-wrap:wrap}
.section-h h2{font-size:clamp(20px,3vw,26px);font-weight:800}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px;padding-bottom:20px}
.tcard{display:flex;flex-direction:column;gap:10px;text-align:left;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--r);padding:18px;box-shadow:var(--shadow);transition:transform .12s,border-color .12s;color:inherit}
a.tcard:hover{transform:translateY(-3px);border-color:var(--gold);text-decoration:none}
.tcard .ico{width:46px;height:46px;border-radius:11px;background:var(--gold-soft);display:grid;place-items:center;color:var(--gold)}
.tcard .ico svg{width:26px;height:26px}
.tcard h3{font-size:17px;font-weight:700}
.tcard p{font-size:13.5px;color:var(--muted);margin:0;flex:1}
.tcard .foot{display:flex;align-items:center;justify-content:space-between;font-family:var(--font-mono);
  font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--faint);border-top:1px solid var(--line);padding-top:10px}
.pill{font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;padding:3px 8px;border-radius:99px;font-weight:700}
.pill.live{background:var(--go-soft);color:var(--go)}
.pill.soon{background:var(--surface2);color:var(--faint);border:1px solid var(--line)}
.tcard.soon{opacity:.72}
.tcard.soon:hover{transform:none;border-color:var(--line)}
.mission{background:var(--surface2);border:1px dashed var(--line);border-radius:var(--r);padding:clamp(20px,4vw,34px);margin:30px 0}
.mission h2{font-size:clamp(19px,2.6vw,24px);font-weight:800;margin-bottom:10px}
.mission p{color:var(--muted);max-width:70ch;margin:0 0 8px}
.foot{border-top:1px solid var(--line);margin-top:36px;padding:26px 0 48px;color:var(--faint);
  font-size:12.5px;font-family:var(--font-mono);letter-spacing:.03em;line-height:1.7}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.scenebox{display:flex;justify-content:center;margin:2px 0 10px}
.scenesvg{width:100%;max-width:340px;height:auto;border-radius:11px;border:1px solid var(--line);box-shadow:var(--shadow)}
