/* SYNTAX platform — public site theme (dark, gradient, modern; Steam/itch/rendercad vibe).
   Palette/type/spacing come from tokens.css (single source of truth). Every page links
   app.css, so importing tokens here makes the token contract sitewide automatically. */
@import "tokens.css";
:root{
  /* legacy aliases mapped onto the token contract so existing selectors keep working */
  --bg2:#11141c;             /* page-2 tint (page-local, no semantic token) */
  --surface-hi:var(--surface-2);
  --muted:var(--text-dim);
  --muted-2:#888888;         /* tertiary/disabled copy (page-local) */
  --good:var(--ok);
  --border-lo:#2a2a2a;       /* the dev tool's low-contrast hairline (panel/button) */
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
/* The dev tool's signature port look: a faint dot-grid + soft top vignette over deep grey.
   Lifted from SyntaxUX #port so the public site reads as the SAME product. */
body{background-color:var(--bg);color:var(--text);font-family:var(--font);font-size:var(--fs-base);
  -webkit-font-smoothing:antialiased;
  background-image:
    radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.7px),
    radial-gradient(150% 120% at 70% -10%, #1e1e1e 0%, #161616 45%, #0f0f0f 100%);
  background-size:24px 24px, 100% 100%;
  background-attachment:fixed}
a{color:var(--brand-2);text-decoration:none}
a:hover{color:#fff}
.wrap{max-width:1180px;margin:0 auto;padding:0 var(--sp-5)}

/* top nav */
.nav{position:sticky;top:0;z-index:var(--z-nav);display:flex;align-items:center;gap:18px;
  padding:14px var(--sp-5);background:rgba(18,18,18,.85);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.brand{font-weight:800;letter-spacing:.5px;font-size:18px;display:flex;align-items:center;gap:9px}
.brand .mark{width:26px;height:26px;border-radius:7px;background:var(--grad);display:grid;place-items:center;color:#fff;font-size:15px}
/* BLACKRAT logo — the all-black rat mark reads on dark via a GREEN GLOW behind it (the
   signature dev-tool treatment), not a tile/background. Sitewide on nav + footer brand. */
.brand .logo{width:30px;height:30px;display:block;flex:0 0 auto;background:none;border-radius:0;
  filter:var(--logo-glow)}
.nav .grow{flex:1}
.nav a.link{color:var(--muted);font-size:14px;padding:7px 12px;border-radius:9px}
.nav a.link:hover,.nav a.link.active{color:#fff;background:var(--surface-hi)}
/* ── buttons — SHARP corners, FLAT solid fills, crisp 1px borders (sitewide; the dev
   tool inherits the sharp look too, which is intended). No gradients, no glow shadows. ── */
.btn{display:inline-flex;align-items:center;gap:8px;padding:var(--btn-pad);border-radius:var(--radius-0);
  font:inherit;font-weight:650;font-size:14px;line-height:1.15;cursor:pointer;background:var(--surface-2);
  color:var(--text);border:var(--btn-border) solid var(--border);
  transition:background var(--dur-fast),border-color var(--dur-fast),color var(--dur-fast),transform var(--dur-fast)}
.btn:hover{background:#2e2e2e;border-color:#3d3d3d;color:#fff}
.btn:active{transform:translateY(1px)}
/* primary = the BLACKRAT green CTA — a SOLID flat green fill on deep-green text (no gradient) */
.btn.primary{background:var(--green);color:var(--on-green);border-color:var(--green);font-weight:750}
.btn.primary:hover{background:var(--green-hi);border-color:var(--green-hi);color:var(--on-green)}
.btn.primary:active{background:var(--green-dim);border-color:var(--green-dim)}
/* secondary = outline: transparent fill, crisp 1px border */
.btn.ghost{background:transparent;border-color:var(--border);color:var(--text)}
.btn.ghost:hover{background:var(--surface);border-color:#3d3d3d;color:#fff}

/* hero — two columns: copy left, the live agent showcase right (stacks on mobile) */
.hero{position:relative;overflow:hidden;padding:72px 0 64px}
.hero::before{content:"";position:absolute;inset:-30% -10% auto;height:620px;
  background:radial-gradient(closest-side,rgba(47,224,106,.14),transparent 70%),
             radial-gradient(closest-side,rgba(255,255,255,.06),transparent 72%);
  filter:blur(26px);transform:translateY(-26%);z-index:-1}
.hero .wrap{display:block}
.hero-copy{min-width:0;max-width:760px}
.hero h1{font-size:clamp(36px,5.6vw,72px);line-height:1.0;margin:0 0 18px;font-weight:850;letter-spacing:-2px}
.hero h1 .gg{background:var(--green-grad);-webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:0 0 44px rgba(47,224,106,.22)}
.hero .eyebrow{color:var(--green)}
.hero .eyebrow::after{content:"";display:block;height:2px;margin-top:8px;width:64px;border-radius:2px;
  background:var(--green-grad);box-shadow:0 0 10px rgba(47,224,106,.5)}
.hero p.sub{font-size:clamp(16px,1.5vw,19px);color:var(--muted);max-width:560px;margin:0 0 28px;line-height:1.55}
.hero .cta{display:flex;gap:14px;justify-content:flex-start;flex-wrap:wrap}

/* ══ LIVE DEV CONSOLE — the Studio's OWN UI, embedded as a same-origin iframe
   (/demo-console.html) that loads the Studio's actual markup + stylesheet (dev-console.css /
   dev-tokens.css, copied verbatim from SyntaxUX/web). Because it IS the dev page's CSS, it is
   pixel-identical to :4317 and can never drift. The iframe document is the dev #app
   (rail | panel | port); here we only frame it. Every control inside is inert — only the big
   DEMO button runs the showcase (ring bloom + holographic head + voice + a drafted plan); it
   does no real dev work. ══ */
.agent-section{max-width:none;padding:var(--sp-4) clamp(16px,3vw,40px) 0}
.console-frame{position:relative;width:100%;max-width:1500px;margin:0 auto;
  height:min(82vh,820px);border:1px solid var(--border-lo);border-radius:var(--radius-lg);
  box-shadow:var(--shadow-lg);overflow:hidden;background:#121212}
.console-frame iframe{display:block;width:100%;height:100%;border:0}
.console-cap{max-width:1500px;margin:14px auto 0;text-align:center;color:var(--muted);
  font-size:var(--fs-sm);line-height:1.6}
.console-cap b{color:var(--green)}
.kbd{font-family:var(--font-mono);background:#121212;border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:2px 8px;color:var(--brand-2);font-size:13px} /* exact: 13px one-off, not the 12px --fs-xs step */

/* section headers */
.sec{padding:var(--sp-7) 0}
.sec h2{font-size:var(--fs-2xl);margin:0 0 6px;font-weight:780;letter-spacing:-.5px}
.sec .lead{color:var(--muted);margin:0 0 22px;max-width:680px}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:22px}
.sec-head h2,.sec-head .lead{margin:0}

/* numbered "how it works" steps — clean, no emoji (NVIDIA/Unity feel) */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(232px,1fr));gap:16px;counter-reset:step}
.step{position:relative;overflow:hidden;background:linear-gradient(180deg,#1e1e1e,#191919);
  border:1px solid var(--border);border-radius:var(--radius-lg);padding:26px 22px 22px;
  transition:border-color var(--dur-fast),box-shadow var(--dur-fast)}
.step:hover{border-color:#3d3d3d;box-shadow:0 14px 34px rgba(0,0,0,.5)}
.step::before{counter-increment:step;content:counter(step,decimal-leading-zero);
  position:absolute;top:8px;right:16px;font-weight:850;font-size:54px;line-height:1;color:transparent;
  -webkit-text-stroke:1px #2f2f2f;letter-spacing:-2px}
.step .num{font-family:var(--font-mono);font-size:11px;letter-spacing:.2em;color:var(--green);font-weight:700;text-transform:uppercase}
.step h3{margin:9px 0 7px;font-size:var(--fs-md)}
.step p{margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}

/* hero chips/trustline align left in the copy column */
.hero .chips{justify-content:flex-start}
.hero .trustline{text-align:left}

@media (max-width:900px){
  .hero .wrap{grid-template-columns:1fr;text-align:center;gap:var(--sp-6)}
  .hero p.sub{margin-left:auto;margin-right:auto}
  .hero .cta,.hero .chips{justify-content:center}
  .hero .trustline{text-align:center}
  .hero .eyebrow::after{margin-left:auto;margin-right:auto}
  /* the console iframe is internally responsive (the dev CSS stacks its own layout below 760px);
     give it more height so the stacked rail/panel/port fit. */
  .console-frame{height:min(86vh,720px)}
}

/* feature strip */
.feats{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}
.feat{background:linear-gradient(180deg,#1e1e1e,#191919);border:1px solid var(--border);border-radius:var(--radius-lg);
  padding:20px;transition:border-color var(--dur-fast),box-shadow var(--dur-fast)} /* exact: 20px, not the 22px --sp-5 step */
.feat:hover{border-color:#3d3d3d;box-shadow:0 14px 34px rgba(0,0,0,.5)}
.feat .ic{width:40px;height:40px;border-radius:var(--radius-md);background:var(--surface-2);border:1px solid var(--border);display:grid;place-items:center;font-size:20px;margin-bottom:12px}
.feat h3{margin:0 0 6px;font-size:var(--fs-md)}
.feat p{margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.5}

/* card grid (games / assets) */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}
.card{background:linear-gradient(180deg,#1e1e1e,#191919);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;
  transition:transform var(--dur-fast),border-color var(--dur-fast),box-shadow var(--dur-fast);cursor:pointer}
.card:hover{transform:translateY(-3px);border-color:#3d3d3d;box-shadow:var(--shadow-lg)}
.card .shot{aspect-ratio:16/10;background:linear-gradient(135deg,#2c2c2c,#161616);position:relative;display:grid;place-items:center;color:#cfcfcf;font-weight:800;font-size:26px;letter-spacing:1px;text-shadow:0 0 18px rgba(255,255,255,.18)}
.card .shot.alt{background:linear-gradient(135deg,#303030,#171717)}
.card .shot.alt2{background:linear-gradient(135deg,#262626,#121212)}
.card .body{padding:13px 14px}
.card .t{font-weight:680;font-size:15px;margin:0 0 3px}
.card .d{color:var(--muted);font-size:12.5px;line-height:1.4;margin:0 0 10px;min-height:34px}
.card .meta{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted-2)}
.tag{display:inline-block;font-size:10.5px;color:#cfcfcf;background:var(--surface-hi);border:1px solid var(--border);
  border-radius:20px;padding:2px 9px;margin-right:5px}
.badge{font-size:11px;font-weight:700;padding:3px 9px;border-radius:20px}
.badge.free{color:#04210f;background:var(--good)}
.badge.paid{color:#fff;background:var(--accent)}
.badge.feat{color:#141414;background:linear-gradient(180deg,#ededed,#c9c9c9)}

/* search + filters */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px}
.toolbar input,.toolbar select{background:#121212;border:1px solid var(--border);color:var(--text);
  border-radius:11px;padding:10px 13px;font:inherit;font-size:14px}
.toolbar input{flex:1;min-width:200px}

/* auth */
.authbox{max-width:420px;margin:60px auto;background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:28px}
.authbox h2{margin:0 0 4px}
.authbox .lead{color:var(--muted);margin:0 0 20px;font-size:14px}
.field{display:block;margin-bottom:14px}
.field span{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.field input{width:100%;background:#121212;border:1px solid var(--border);color:var(--text);border-radius:11px;padding:11px 13px;font:inherit;font-size:15px}
.authbox .btn{width:100%;justify-content:center;margin-top:6px}
.google{background:#fff;color:#1a1a1a;border:0}
.google:hover{background:#f1f1f1}
.divider{display:flex;align-items:center;gap:10px;color:var(--muted-2);font-size:12px;margin:18px 0}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--border)}
.note{font-size:12px;color:var(--muted-2);margin-top:14px;line-height:1.5}
.msg{font-size:13px;border-radius:10px;padding:10px 12px;margin-top:12px}
.msg.ok{background:rgba(61,220,132,.12);color:var(--good)}
.msg.err{background:rgba(217,138,138,.14);color:var(--danger)}

/* ── industry-standard multi-column footer (cohesive sitewide; markup identical per page) ── */
footer#site-footer{border-top:1px solid var(--border);color:var(--muted);font-size:var(--fs-sm);
  padding:var(--sp-7) 0 var(--sp-5);margin-top:var(--sp-8);
  background:linear-gradient(180deg,transparent,rgba(124,92,255,.04))}
.footer-top{display:grid;grid-template-columns:1.8fr repeat(5,1fr);gap:var(--sp-6) var(--sp-5)}
@media (max-width:1024px){.footer-top{grid-template-columns:1fr 1fr 1fr}}
.footer-brand .brand{font-size:var(--fs-lg);margin-bottom:10px}
.footer-brand p{color:var(--muted);max-width:300px;line-height:1.6;margin:0 0 16px;font-size:var(--fs-sm)}
.footer-social{display:flex;gap:10px}
.footer-social a{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;
  background:var(--surface);border:1px solid var(--border);color:var(--muted);transition:all var(--dur-fast)}
.footer-social a:hover{color:#fff;border-color:var(--brand);background:var(--surface-2);transform:translateY(-2px)}
.footer-col h4{font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:.08em;color:var(--text);
  margin:0 0 14px;font-weight:700}
.footer-col a{display:block;color:var(--muted);padding:5px 0;font-size:var(--fs-sm)}
.footer-col a:hover{color:#fff}
.footer-bottom{display:flex;gap:14px;flex-wrap:wrap;align-items:center;margin-top:var(--sp-6);
  padding-top:var(--sp-4);border-top:1px solid var(--border);color:var(--muted-2);font-size:var(--fs-xs)}
.footer-bottom .grow{flex:1}
.footer-bottom a{color:var(--muted-2)}.footer-bottom a:hover{color:#fff}

/* ── home: section eyebrow + stats band + CTA band + prompt chips ── */
.eyebrow{display:inline-block;font-size:var(--fs-xs);text-transform:uppercase;letter-spacing:.12em;
  font-weight:700;color:var(--brand-2);margin:0 0 10px}
.hero .eyebrow{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:5px 14px}
.trustline{color:var(--muted-2);font-size:var(--fs-xs);margin-top:22px;letter-spacing:.02em}
.chips{display:flex;flex-wrap:wrap;gap:9px;justify-content:center;margin-top:18px}
.chips .chip{font-family:var(--font-mono);font-size:13px;color:var(--brand-2);background:#121212;
  border:1px solid var(--border);border-radius:20px;padding:7px 14px;cursor:pointer;transition:all var(--dur-fast)}
.chips .chip:hover{border-color:var(--brand);color:#fff;transform:translateY(-1px)}
.statband{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:var(--sp-4);
  background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--sp-6) var(--sp-5)}
.statband .stat{text-align:center}
.statband .n{font-size:var(--fs-3xl);font-weight:850;background:var(--grad);-webkit-background-clip:text;
  background-clip:text;color:transparent;line-height:1}
.statband .k{color:var(--muted);font-size:var(--fs-sm);margin-top:8px}
.cta-band{position:relative;overflow:hidden;text-align:center;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--radius-lg);padding:var(--sp-8) var(--sp-5)}
.cta-band::before{content:"";position:absolute;inset:auto -10% -60% 50%;width:600px;height:340px;transform:translateX(-50%);
  background:radial-gradient(closest-side,rgba(255,255,255,.10),transparent 70%);filter:blur(20px);z-index:0}
.cta-band{background:linear-gradient(180deg,#1e1e1e,#171717)}
.cta-band > *{position:relative;z-index:1}
.cta-band h2{font-size:var(--fs-3xl);margin:0 0 10px;font-weight:850;letter-spacing:-.5px}
.cta-band p{color:var(--muted);max-width:560px;margin:0 auto 24px;font-size:var(--fs-lg)}

footer{border-top:1px solid var(--border);color:var(--muted-2);font-size:13px}
.empty{color:var(--muted);text-align:center;padding:60px 0}

@media (max-width:760px){
  .footer-top{grid-template-columns:1fr 1fr}
  .footer-brand{grid-column:1 / -1}
}

@media (max-width:640px){
  /* The nav has many links (Home/Play/Assets/Docs/Releases/Forum/Pricing + session) — on a
     phone they must WRAP, not overflow off-screen (overflow widened the body and clipped the
     centered hero too). Brand + session each take a full row; the links wrap+center between. */
  .nav{gap:6px 8px;padding:10px 12px;flex-wrap:wrap;justify-content:center}
  .nav .grow{display:none}
  .nav .brand{flex-basis:100%;justify-content:center;text-align:center;margin-bottom:2px}
  .nav a.link{padding:6px 9px;font-size:13px}
  #nav-session{flex-basis:100%;display:flex;justify-content:center;gap:8px;margin-top:4px}
  .nav .hide-sm{display:none}
  .wrap{padding-left:16px;padding-right:16px}     /* a touch more room on a phone */
  .hero{padding:44px 0 36px}
  /* size the hero so its widest line ("Watch it get built.", weight 850) fits the phone width;
     overflow-wrap lets it break rather than clip if a line is still too long. */
  .hero h1{font-size:clamp(22px,6.4vw,40px);letter-spacing:-.4px;overflow-wrap:break-word}
  .hero p.sub{font-size:16px}
  .kbd{white-space:normal;word-break:break-word}
  body{overflow-x:hidden}            /* belt-and-braces: never allow a stray horizontal scroll */
}

/* documentation + releases pages (docs.html / releases.html) — token-driven */
.toc{display:flex;flex-wrap:wrap;gap:8px;margin:var(--sp-4) 0 var(--sp-2);padding:var(--sp-3) 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.docs-steps{margin:var(--sp-3) 0;padding-left:22px;line-height:1.6}
.docs-steps li{margin:10px 0}
.docs-list{margin:var(--sp-3) 0;padding-left:20px;line-height:1.6}
.docs-list li{margin:8px 0;color:var(--text)}
.faq{display:flex;flex-direction:column;gap:10px;margin-top:var(--sp-3)}
.qa{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:14px 16px}
.qa summary{cursor:pointer;font-weight:650;color:var(--text);list-style-position:inside}
.qa[open] summary{color:var(--brand-2)}
.qa p{margin:10px 0 0;color:var(--text-dim);line-height:1.6}
.release{padding:var(--sp-5) 0;border-bottom:1px solid var(--border)}
.release h3{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:var(--fs-lg);margin:0 0 2px}
.release-date{display:block;color:var(--text-dim);font-family:var(--font-mono);font-size:var(--fs-xs);margin:0 0 10px}

/* accessibility: a visible keyboard focus ring (WCAG 2.4.7) + honor reduced-motion. Additive
   only (outline takes no layout space); mouse clicks are unaffected (:focus-visible). */
:focus-visible{outline:2px solid var(--brand-2);outline-offset:2px;border-radius:var(--radius-sm)}
a:focus-visible,.btn:focus-visible,.tag:focus-visible,.link:focus-visible,
button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--brand-2);outline-offset:3px}

/* cursor best-practices (sitewide): native <select> and <summary> are clickable but the
   UA gives them a text/default cursor — make them a pointer. Disabled controls must read
   as not-allowed, not as a clickable pointer. (The demo-console iframe loads its own CSS,
   so none of this reaches it.) */
select,summary{cursor:pointer}
button[disabled],.btn[disabled],button:disabled,.btn:disabled,
input:disabled,select:disabled,textarea:disabled,[aria-disabled="true"]{cursor:not-allowed}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;scroll-behavior:auto!important}
}

/* ════════════════════════════════════════════════════════════════════════════════════
   CINEMATIC MARKETING SITE  —  scoped under  body.site  (the public pages only).
   The dev tool (studio.html) does NOT carry .site, so its layout is untouched; only the
   sharp/flat buttons above inherit into it (intended). Editorial, high-contrast, AAA-studio
   feel in the SAME greyscale + green palette: alternating full-bleed section bands, hero +
   media-backed key sections with a dark scrim, sharp corners, confident type rhythm.
   ════════════════════════════════════════════════════════════════════════════════════ */

/* Clip the horizontal overhang of the full-bleed 100vw section bands (the band ::before
   reaches edge-to-edge). overflow-x:hidden on the BODY is propagated to the viewport (html
   is `visible`), so vertical scrolling + the sticky nav keep working — the body itself does
   not become a scroll container. (The 640px rule below already relies on this.) */
body.site{overflow-x:hidden}

/* ── nav: same sticky bar, refined to a crisp editorial header (sharp active underline,
   no pill). Layout/padding are left to the base + mobile rules so responsiveness is intact. */
.site .nav{background:rgba(13,13,13,.88);border-bottom:1px solid var(--border)}
.site .brand{letter-spacing:1px}
.site .nav a.link{border-radius:var(--radius-0);color:var(--text-dim);
  box-shadow:inset 0 -2px 0 transparent;transition:color var(--dur-fast),box-shadow var(--dur-fast)}
.site .nav a.link:hover{color:#fff;background:transparent;box-shadow:inset 0 -2px 0 var(--green-dim)}
.site .nav a.link.active{color:#fff;background:transparent;box-shadow:inset 0 -2px 0 var(--green)}

/* ── hero: full-bleed background media + dark scrim for legibility (the hero is already
   full width; the media lives on the element itself). The base green blob is dropped — the
   placeholder SVG carries its own horizon glow. */
.site .hero{background-color:var(--bg);background-image:var(--scrim),var(--media-hero);
  background-size:cover;background-position:center;background-repeat:no-repeat;
  border-bottom:1px solid var(--band-line);padding:88px 0 76px}
.site .hero::before{display:none}
.site .hero .eyebrow{border-radius:var(--radius-0)}
.site .hero h1{letter-spacing:-2.5px}
.site .hero .chips .chip{border-radius:var(--radius-0)}

/* ── alternating full-bleed section bands (zebra rhythm down the page) ──
   Each content section paints a 100vw band BEHIND its centered content via a z-index:-1
   ::before, so the band is edge-to-edge while the column stays put. The agent console
   section is excluded (left entirely alone). odd = base canvas; even = a deep, media-backed
   slab with a soft scrim — the "key sections get background media" requirement. */
.site .sec:not(.agent-section){position:relative}
.site .sec:not(.agent-section)::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;
  left:calc(50% - 50vw);width:100vw;background:var(--band-1)}
.site .sec:not(.agent-section):nth-of-type(even)::before{
  background-color:var(--band-2);background-image:var(--scrim-soft),var(--media-band-a);
  background-size:cover;background-position:center;background-repeat:no-repeat;
  box-shadow:inset 0 1px 0 var(--band-line),inset 0 -1px 0 var(--band-line)}
.site .sec:not(.agent-section):nth-of-type(4n)::before{background-image:var(--scrim-soft),var(--media-band-b)}
/* the first content section on a non-hero page (docs/play/forum/…) gets a cinematic media
   HEADER banner that masks-out into the base canvas below — every page opens editorially. */
.site>section.sec:not(.agent-section):first-of-type::before{
  bottom:auto;height:340px;background-color:transparent;background-image:var(--scrim),var(--media-band-b);
  background-size:cover;background-position:center;background-repeat:no-repeat;box-shadow:none;
  -webkit-mask-image:linear-gradient(180deg,#000 52%,transparent);mask-image:linear-gradient(180deg,#000 52%,transparent)}

/* ── section type rhythm: a touch more weight + tighter tracking (editorial) ── */
.site .sec h2{letter-spacing:-.6px}

/* ── cards / features / steps: SHARP corners, FLAT solid fill, crisp 1px border, a green
   border-highlight on hover (no gradients, no heavy glow shadows) ── */
/* tiles NEVER shift position on hover — the lift is conveyed purely by a stronger drop
   shadow (+ the green border highlight). No transform, so layout stays rock-steady. */
.site .feat,.site .step{background:var(--surface);border-radius:var(--radius-0);box-shadow:none;
  transition:border-color var(--dur-fast),background var(--dur-fast),box-shadow var(--dur-fast)}
.site .feat:hover,.site .step:hover{border-color:var(--green-dim);background:var(--surface-2);box-shadow:var(--shadow-lg)}
.site .feat .ic{border-radius:var(--radius-0)}
.site .card{background:var(--surface);border-radius:var(--radius-0);box-shadow:none;
  transition:border-color var(--dur-fast),background var(--dur-fast),box-shadow var(--dur-fast)}
.site .card:hover{border-color:var(--green-dim);background:var(--surface-2);box-shadow:var(--shadow-lg);transform:none}
.site .card .shot{border-radius:0}
.site .step::before{-webkit-text-stroke-color:#333}

/* ── stat band + closing CTA band: sharp; the CTA gets its own background media + scrim ── */
.site .statband{border-radius:var(--radius-0);background:var(--surface)}
.site .cta-band{border-radius:var(--radius-0);background-color:#0b0b0b;
  background-image:var(--scrim),var(--media-cta);background-size:cover;background-position:center;
  background-repeat:no-repeat;border:1px solid var(--band-line)}
.site .cta-band::before{display:none}

/* ── chips, tags, badges, toolbar, inputs, auth, FAQ, kbd: square everything for one
   cohesive sharp language ── */
.site .tag,.site .chip,.site .chips .chip,.site .badge{border-radius:var(--radius-0)}
/* prompt chips: hold position on hover (the base rule nudges them up) — hint lift via shadow */
.site .chips .chip:hover{transform:none;box-shadow:var(--shadow-sm)}
.site .toolbar input,.site .toolbar select{border-radius:var(--radius-0)}
.site .authbox{border-radius:var(--radius-0)}
.site .field input,.site .google,.site .msg,.site .qa,.site .kbd{border-radius:var(--radius-0)}

/* ── footer: refined to the brand green hairline tint (replacing the legacy purple wash),
   sharp social tiles ── */
.site footer#site-footer{background:linear-gradient(180deg,transparent,rgba(47,224,106,.045));border-top:1px solid var(--border)}
.site .footer-social a{border-radius:var(--radius-0)}
.site .footer-social a:hover{color:#fff;border-color:var(--green-dim);background:var(--surface-2);transform:none}

/* ── cursor affordances: every interactive thing on the marketing site reads as a pointer
   (links, buttons, selects, FAQ summaries, role=button/tab, and the JS-clickable card/chip
   tiles); disabled controls read as not-allowed ── */
.site a[href],.site button,.site summary,.site select,
.site [role="button"],.site [role="tab"],.site .card,.site .chip{cursor:pointer}
.site button:disabled,.site .btn:disabled,.site [aria-disabled="true"],
.site input:disabled,.site select:disabled{cursor:not-allowed}
/* a card explicitly marked non-clickable (e.g. forum posts use cursor:default) must NOT
   read as interactive — keep the default cursor AND drop the hover lift for it */
.site .card[style*="cursor:default"]{cursor:default}
.site .card[style*="cursor:default"]:hover{box-shadow:none;border-color:var(--border);background:var(--surface)}

/* ── accessibility: a sharp, on-brand green focus ring under .site (overrides the rounded
   global ring); honor prefers-reduced-motion by disabling any background video ── */
.site a:focus-visible,.site .btn:focus-visible,.site button:focus-visible,.site input:focus-visible,
.site select:focus-visible,.site textarea:focus-visible,.site summary:focus-visible,
.site .tag:focus-visible,.site .link:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:var(--radius-0)}
@media (prefers-reduced-motion: reduce){
  /* no background-attachment parallax + drop any decorative bg <video> on the marketing site */
  .site .hero{background-attachment:scroll}
  .site video{display:none!important}
}
