:root{
  color-scheme:dark;
  --bg:#0a0d14;
  --bg-2:#0e1320;
  --panel:#121a2a;
  --panel-2:#0b1019;
  --line:#1f2a3f;
  --line-2:#2a3852;
  --text:#e9ebf1;
  --muted:#a7b0c4;
  --gold:#e9b949;
  --gold-hi:#f4cb6a;
  --on-gold:#17120a;
  --blue:#8ab4ff;
  --blue-bg:rgba(138,180,255,.12);
  --blue-line:rgba(138,180,255,.32);
  --focus:#8ab4ff;
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;min-height:100vh;background:radial-gradient(1100px 620px at 85% -12%,rgba(138,180,255,.11),transparent 62%),radial-gradient(900px 560px at -8% 38%,rgba(233,185,73,.05),transparent 60%),var(--bg);color:var(--text);font:400 1rem/1.65 var(--sans);-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,video{max-width:100%;height:auto}
a{color:var(--blue);text-underline-offset:3px}
a:focus-visible,.btn:focus-visible,summary:focus-visible{outline:2px solid var(--focus);outline-offset:3px;border-radius:4px}
p,li{overflow-wrap:break-word}
h1,h2,h3{font-weight:700;color:var(--text);margin:0}
h1{font-size:clamp(2.2rem,5.2vw,3.9rem);line-height:1.04;letter-spacing:-.025em;text-wrap:balance}
h2{font-size:clamp(1.7rem,3.4vw,2.4rem);line-height:1.15;letter-spacing:-.02em;margin-bottom:10px}
h3{font-size:clamp(1.3rem,2.2vw,1.6rem);line-height:1.2;letter-spacing:-.01em;margin-bottom:12px}
.wrap{max-width:1120px;margin:0 auto;padding:0 16px}
.sub{color:var(--muted);margin:0 0 40px;max-width:680px}
code{font:.88em var(--mono);background:var(--panel-2);border:1px solid var(--line-2);border-radius:6px;padding:1px 6px;color:var(--text)}
.kbd{font:600 .8rem/1 var(--mono);color:var(--blue);background:var(--blue-bg);border:1px solid var(--blue-line);border-radius:6px;padding:4px 7px 3px;white-space:nowrap}

/* header */
header.top{position:sticky;top:0;z-index:10;background:rgba(10,13,20,.82);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px}
.brand{font-weight:700;font-size:.92rem;letter-spacing:.01em;display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.brand::before{content:"";width:9px;height:9px;border-radius:2px;background:var(--gold);box-shadow:0 0 14px rgba(233,185,73,.55)}
nav{display:flex;gap:12px}
nav a{text-decoration:none;color:var(--muted);font-size:.86rem;white-space:nowrap}
nav a:hover{color:var(--text)}

/* hero */
.hero{padding:clamp(40px,7vw,88px) 0 clamp(56px,8vw,96px)}
.hero-grid{display:grid;gap:44px;align-items:center}
.eyebrow{margin:0 0 16px;font:700 .76rem/1 var(--sans);letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}
.lead{margin:20px 0 0;color:var(--muted);font-size:1.08rem;max-width:560px}
.lead strong{color:var(--text);font-weight:600}
.btns{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.btn{display:inline-flex;align-items:center;min-height:46px;padding:0 22px;border-radius:999px;font-weight:650;font-size:.98rem;text-decoration:none;border:1px solid var(--line-2);color:var(--text);background:transparent;transition:background .2s,border-color .2s}
.btn:hover{border-color:#3a4a68;background:var(--panel)}
.btn.primary{background:var(--gold);border-color:var(--gold);color:var(--on-gold);box-shadow:0 8px 28px -10px rgba(233,185,73,.6)}
.btn.primary:hover{background:var(--gold-hi);border-color:var(--gold-hi)}

/* media frame: window/dock look, media is never cropped */
.frame{position:relative;border:1px solid #27324b;border-radius:14px;background:var(--panel-2);overflow:hidden;box-shadow:0 0 0 1px rgba(138,180,255,.05),0 30px 70px -28px rgba(0,0,0,.85),0 0 100px -44px rgba(138,180,255,.4)}
.frame>video,.frame>img{display:block;width:100%;height:auto;max-height:min(72vh,640px);object-fit:contain;margin:0 auto}
.frame-bar{display:flex;align-items:center;gap:7px;height:32px;padding:0 14px;background:#0c1220;border-bottom:1px solid #1d2739}
.frame-bar i{width:9px;height:9px;border-radius:50%;background:#2a3550}
.frame-bar i:first-child{background:var(--gold);opacity:.85}
.frame.portrait{max-width:440px;justify-self:center;width:100%}
.frame.portrait.tall{width:fit-content;max-width:min(440px,100%)}
.frame.portrait.tall>img{width:auto;max-width:100%;max-height:640px}
/* a text example of a dock section, for features with no recording yet */

/* example: one real play, told in steps beside a dock sample */
#example{padding:clamp(56px,8vw,96px) 0 0}
.example-grid{display:grid;gap:clamp(28px,4.5vw,64px);align-items:center}
.example-copy{min-width:0}
.example-copy .lede{color:var(--muted);max-width:60ch;margin:0 0 22px}
.story{list-style:none;margin:0;padding:0;display:grid;gap:12px;counter-reset:st}
.story li{counter-increment:st;position:relative;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px 16px 62px;color:var(--muted);font-size:.96rem}
.story li::before{content:counter(st);position:absolute;left:18px;top:16px;width:30px;height:30px;border-radius:50%;background:var(--gold);color:var(--on-gold);font:700 .9rem/30px var(--sans);text-align:center}
.story li>b:first-child{display:block;color:var(--text);margin-bottom:2px}

/* features: alternating rows */
#features{padding-top:clamp(56px,8vw,96px)}
.feature{display:grid;gap:clamp(28px,4.5vw,64px);align-items:center;padding:clamp(44px,6.5vw,80px) 0;border-top:1px solid var(--line)}
.feature:last-of-type{padding-bottom:0}
.feature-text{min-width:0}
.kicker{margin:0 0 14px;font:700 .74rem/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.feature-text p:not(.kicker){color:var(--muted);margin:0 0 14px;max-width:560px}
.feature-text p:not(.kicker):last-child{margin-bottom:0}

/* how to use: numbered cards */
#how-to-use{padding:clamp(56px,8vw,96px) 0}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:14px;counter-reset:s}
.steps li{counter-increment:s;position:relative;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:22px 22px 22px 74px;color:var(--muted);font-size:.97rem}
.steps li::before{content:counter(s);position:absolute;left:22px;top:22px;width:34px;height:34px;border-radius:50%;background:var(--gold);color:var(--on-gold);font:700 .95rem/34px var(--sans);text-align:center}
.steps li>b:first-child{display:block;color:var(--text);font-size:1.02rem;margin-bottom:4px}
.steps li b{color:var(--text)}
.steps a{color:var(--blue)}

/* faq */
#faq{padding:clamp(56px,8vw,96px) 0 clamp(64px,8vw,104px)}
.faq{max-width:840px}
details{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:0 22px;margin-bottom:10px}
details[open]{border-color:#2b3a58}
summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0;font-weight:600;color:var(--text)}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";flex:none;color:var(--gold);font:400 1.5rem/1 var(--sans)}
details[open] summary::after{content:"\2212"}
details p,details ul{margin:0 0 20px;color:var(--muted)}
details ul{padding-left:20px}
details li+li{margin-top:8px}

/* footer */
footer{border-top:1px solid var(--line);padding:30px 0 44px;color:var(--muted);font-size:.88rem}
footer p{margin:0 0 6px}

@media (min-width:560px){
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:880px){
  .hero-grid{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:56px}
  .example-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
  .feature{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
  .feature:nth-of-type(even){grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
  .feature:nth-of-type(even) .feature-text{order:-1}
  .feature:nth-of-type(even) .frame.portrait{justify-self:center}
}
@media (min-width:620px){
  nav{gap:22px}
  nav a{font-size:.95rem}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
@media (prefers-reduced-motion:no-preference){
  .btn{transition:background .2s,border-color .2s}
}

#full-game .lede{color:var(--muted,inherit);max-width:62ch}
.fullgame{display:block;width:100%;height:auto;margin-top:20px;border-radius:12px;border:1px solid rgba(255,255,255,.1)}

/* real screenshots of the dock and popup, stacked in one feature */
.shots{display:grid;gap:16px;justify-self:center;width:100%;max-width:440px}
.shot{margin:0;border:1px solid #27324b;border-radius:12px;overflow:hidden;background:var(--panel-2)}
.shot img{display:block;width:100%;height:auto}
