/* Couchside — self-contained styles for couchside.ets3d.com.
   Intentionally distinct from the shared ETS3D warm palette: this matches the
   app's own dark console look (bg #0b1220, cards #141c2e, green/blue accents).
   Do NOT import /assets/css — these pages stand alone. */

:root {
  --bg: #0b1220;
  --bg-deep: #070d18;
  --card: #141c2e;
  --card-2: #0f1626;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.26);
  --ink: #e6edf7;
  --muted: #8b98ad;
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.12);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.12);
  --amber: #fbbf24;
  --red: #f87171;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
code, .mono { font-family: var(--mono); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* Ambient neural-network canvas (effects.js) sits fixed at z-index:0; keep all
   page content above it so the network reads as a faint backdrop only. */
.hero, .section, .nav, .footer, footer { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}
.section { padding: 84px 0; position: relative; }
.section__title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
.section__lede { color: var(--muted); max-width: 58ch; margin: 0 0 40px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--green); color: #05281c;
  padding: 8px 14px; border-radius: 0 0 8px 0; font-weight: 600; z-index: 99;
}
.skip-link:focus { left: 0; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { max-width: 1080px; margin: 0 auto; padding: 14px 22px; display: flex; align-items: center; gap: 22px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.nav__brand svg { display: block; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav__links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.nav__links a:hover { color: var(--ink); }
.nav__gh {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 16px; color: var(--ink) !important; font-weight: 600;
}
.nav__gh:hover { border-color: var(--green); color: var(--green) !important; }
@media (max-width: 700px) { .nav__links a:not(.nav__gh) { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 380px at 18% 8%, rgba(52, 211, 153, 0.10), transparent 65%),
    radial-gradient(640px 420px at 86% 26%, rgba(96, 165, 250, 0.10), transparent 65%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(700px 480px at 50% 0%, rgba(0, 0, 0, 0.5), transparent 78%);
  -webkit-mask-image: radial-gradient(700px 480px at 50% 0%, rgba(0, 0, 0, 0.5), transparent 78%);
}
.hero__inner {
  position: relative; max-width: 1080px; margin: 0 auto; padding: 0 22px;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 44px; align-items: center;
}
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.hero h1 .accent { color: var(--green); }
.hero__sub { color: var(--muted); font-size: 1.06rem; max-width: 54ch; margin: 0 0 30px; }
.hero__sub strong { color: var(--ink); font-weight: 600; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); font-family: var(--mono); }
.hero__note a { color: var(--green); }

/* Store badges — official badge STYLE recreated in CSS/SVG (no hotlinked
   Apple/Google artwork). hrefs stay literal placeholders until the listings
   are live; the SOON pip keeps them honest in the meantime. */
.storebadge {
  position: relative;
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 9px 18px 9px 14px; min-height: 54px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.storebadge:hover { border-color: var(--green); transform: translateY(-1px); }
.storebadge__logo { width: 26px; height: 26px; flex: none; }
.storebadge__text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.storebadge__text small { font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #c8d0dd; }
.storebadge__text strong { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }
.storebadge--soon { opacity: 0.9; }
.storebadge__soon {
  position: absolute; top: -9px; right: -7px;
  font-family: var(--mono); font-size: 0.58rem; font-weight: 700; letter-spacing: 0.08em;
  background: var(--green); color: #05281c; border-radius: 999px; padding: 2px 7px;
}
.btn-gh {
  display: inline-flex; align-items: center; gap: 9px; min-height: 54px;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 20px;
  color: var(--ink); text-decoration: none; font-weight: 600; background: var(--card-2);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.btn-gh:hover { border-color: var(--green); transform: translateY(-1px); }
.btn-gh svg { width: 20px; height: 20px; }

/* ---------- Phone mockup ---------- */
.phone-wrap { position: relative; display: flex; justify-content: center; }
.phone-wrap::before {
  content: ""; position: absolute; inset: 8% 12%;
  background: radial-gradient(closest-side, rgba(52, 211, 153, 0.14), transparent 72%);
  filter: blur(6px); pointer-events: none;
}
.phone {
  position: relative; width: 292px; padding: 9px; border-radius: 46px;
  background: linear-gradient(160deg, #232c42, #10182b 55%, #1b2438);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 2px #05080f;
}
.phone__screen {
  border-radius: 38px; background: var(--bg-deep); overflow: hidden;
  padding: 12px 14px 0; min-height: 560px; display: flex; flex-direction: column;
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.phone__island { width: 92px; height: 25px; border-radius: 14px; background: #01040a; margin: 2px auto 12px; flex: none; }
.phone__topbar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.phone__appname { font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; }
.phone__host { font-family: var(--mono); font-size: 0.62rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; box-shadow: 0 0 6px rgba(52, 211, 153, 0.8); }
.dot--amber { background: var(--amber); box-shadow: 0 0 6px rgba(251, 191, 36, 0.7); }

.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 13px; margin-bottom: 10px;
}
.pcard__label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pcard__temp { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--green); line-height: 1.05; }
.pcard__temp small { font-size: 1rem; color: rgba(52, 211, 153, 0.7); }
.pcard__sub { font-family: var(--mono); font-size: 0.6rem; color: var(--muted); margin-top: 3px; }
.phone__row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pstat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 9px; }
.pstat b { display: block; font-family: var(--mono); font-size: 0.8rem; color: var(--ink); font-weight: 600; }
.pstat span { font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pstat i { display: block; height: 3px; border-radius: 2px; background: rgba(148, 163, 184, 0.18); margin-top: 6px; position: relative; overflow: hidden; }
.pstat i::after { content: ""; position: absolute; inset: 0; width: var(--w, 40%); border-radius: 2px; background: var(--blue); }
.pstat--green i::after { background: var(--green); }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 0.58rem; color: var(--ink);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px;
}
.pchip .dot { width: 5px; height: 5px; }
.phone__actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pbtn {
  font-family: var(--mono); font-size: 0.56rem; text-align: center; letter-spacing: 0.02em;
  border-radius: 10px; padding: 9px 4px; border: 1px solid;
}
.pbtn--amber { color: var(--amber); border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.07); }
.pbtn--blue { color: var(--blue); border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.07); }
.pbtn--red { color: var(--red); border-color: rgba(248, 113, 113, 0.4); background: rgba(248, 113, 113, 0.07); }
.phone__tabs {
  margin-top: auto; display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid var(--line); padding: 10px 0 16px;
  font-family: var(--mono); font-size: 0.6rem; color: var(--muted);
}
.phone__tabs .is-active { color: var(--green); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px 22px 24px; position: relative;
}
.step__num {
  font-family: var(--mono); font-weight: 700; font-size: 0.8rem;
  color: var(--green); background: var(--green-dim); border: 1px solid rgba(52, 211, 153, 0.3);
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.codeblock {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px;
}
.codeblock code {
  flex: 1; font-size: 0.72rem; color: var(--green); line-height: 1.5;
  overflow-x: auto; white-space: nowrap; scrollbar-width: thin;
}
.codeblock code .p { color: var(--muted); }
.copybtn {
  flex: none; font-family: var(--mono); font-size: 0.68rem; font-weight: 700; cursor: pointer;
  color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: 7px;
  padding: 6px 11px; transition: border-color 0.15s ease, color 0.15s ease;
}
.copybtn:hover { border-color: var(--green); color: var(--green); }
.copybtn.is-copied { border-color: var(--green); color: var(--green); background: var(--green-dim); }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature:hover { border-color: rgba(52, 211, 153, 0.45); transform: translateY(-2px); }
.feature__icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--green-dim); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.25);
  margin-bottom: 14px;
}
.feature:nth-child(even) .feature__icon { background: var(--blue-dim); color: var(--blue); border-color: rgba(96, 165, 250, 0.25); }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 7px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.feature p code { font-size: 0.8rem; color: var(--green); background: var(--bg-deep); border-radius: 5px; padding: 1px 5px; }

/* ---------- Security / privacy strip ---------- */
.security { background: var(--card-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.security__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.secitem { display: flex; gap: 12px; align-items: flex-start; }
.secitem svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.secitem h3 { margin: 0 0 3px; font-size: 0.94rem; }
.secitem p { margin: 0; color: var(--muted); font-size: 0.84rem; }
.security__link { font-family: var(--mono); font-size: 0.84rem; }
.security__link a { color: var(--green); }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 48px; }
.footer__inner {
  max-width: 1080px; margin: 0 auto; padding: 0 22px;
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 0.85rem;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.footer__tag { font-family: var(--mono); font-size: 0.76rem; color: var(--muted); width: 100%; margin: 4px 0 0; }
.footer__tag::before { content: "// "; color: var(--green); }

/* ---------- Legal (privacy.html) ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 70px 22px 90px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); letter-spacing: -0.02em; margin: 0 0 6px; }
.legal .updated { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin: 0 0 34px; }
.legal h2 { font-size: 1.15rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--muted); font-size: 0.96rem; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--green); }
.legal .tldr {
  background: var(--card); border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 14px;
  padding: 18px 20px; margin: 0 0 10px;
}
.legal .tldr p { margin: 0; color: var(--ink); }
.legal .tldr .pcard__label { margin-bottom: 6px; }

/* ---------- Interactive demo (TV + phone remote) ---------- */
.stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.stage__tag {
  margin: 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
}
.stage__live { color: var(--green); font-weight: 700; animation: livePulse 2.4s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* --- The simulated box screen (TV) --- */
.tv { width: 100%; max-width: 480px; }
.tv__screen {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  border-radius: 16px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 50% 0%, #14203a, #0a1120 70%),
    var(--bg-deep);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(5, 8, 15, 0.9),
              inset 0 0 90px rgba(0, 0, 0, 0.55);
  color: var(--ink); font-size: clamp(11px, 2.6vw, 14px);
}
.tv__foot {
  width: 44%; height: 12px; margin: 0 auto;
  background: linear-gradient(#1a2438, #0c1322); border: 1px solid rgba(148, 163, 184, 0.16);
  border-top: none; border-radius: 0 0 12px 12px;
}
.tv__bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; font-family: var(--mono); font-size: 0.72em; color: var(--muted);
  background: linear-gradient(rgba(7, 13, 24, 0.85), transparent);
}
.tv__host { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.tv__bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.tv__wm {
  position: absolute; bottom: 8px; right: 12px; z-index: 3;
  font-family: var(--mono); font-size: 0.62em; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(148, 163, 184, 0.32);
}

/* library */
.tv__lib {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px 14px 12px; gap: 12px; opacity: 0; transition: opacity 0.35s ease;
}
.tv__screen[data-state="library"] .tv__lib { opacity: 1; }
.tv__feat {
  position: relative; border-radius: 12px; padding: 12px 14px; min-height: 34%;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  color: #fff; overflow: hidden; box-shadow: inset 0 -50px 40px -20px rgba(0, 0, 0, 0.6);
}
.tv__feat::after { content: ""; position: absolute; inset: 0; background: rgba(4, 8, 15, 0.28); z-index: 0; }
.tv__featglyph { position: relative; z-index: 1; font-size: 1.7em; line-height: 1; }
.tv__featname { position: relative; z-index: 1; font-weight: 700; font-size: 1.05em; letter-spacing: -0.01em; }
.tv__featplay {
  position: relative; z-index: 1; align-self: flex-start; margin-top: 4px;
  font-family: var(--mono); font-size: 0.66em; color: #05281c; background: var(--green);
  padding: 3px 9px; border-radius: 999px; font-weight: 700;
}
.tv__rowwrap { overflow: hidden; }
.tv__row {
  display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.tv__row::-webkit-scrollbar { display: none; }
.tile {
  flex: 0 0 auto; width: 62px; aspect-ratio: 3 / 4; border-radius: 9px;
  background: var(--g, #223); border: 2px solid transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #fff; padding: 4px; transition: transform 0.18s ease, border-color 0.18s ease; position: relative;
  box-shadow: inset 0 -22px 24px -14px rgba(0, 0, 0, 0.6);
}
.tile__art { font-size: 1.35em; line-height: 1; }
.tile__name {
  font-size: 0.5em; font-weight: 600; text-align: center; line-height: 1.15;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.tile.is-sel {
  border-color: var(--green); transform: translateY(-6px) scale(1.06);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(52, 211, 153, 0.25);
}
.tv__hint { text-align: center; font-family: var(--mono); font-size: 0.68em; color: var(--muted); }

/* overlays */
.tv__ov {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.tv__screen[data-state="wedged"] .tv__ov--wedged,
.tv__screen[data-state="launching"] .tv__ov--launch,
.tv__screen[data-state="game"] .tv__ov--game { opacity: 1; }
.tv__ov--wedged { background: radial-gradient(120% 100% at 50% 40%, #0a0f19, #04070d); }
.tv__wicon { font-size: 1.9em; filter: grayscale(0.2); animation: wedgeBlink 1.6s steps(2) infinite; }
@keyframes wedgeBlink { 0%, 60% { opacity: 0.9; } 61%, 100% { opacity: 0.3; } }
.tv__wtitle { font-weight: 700; color: #cbd5e1; }
.tv__wsub { font-family: var(--mono); font-size: 0.72em; color: var(--muted); }
.tv__ov--launch { background: rgba(5, 9, 17, 0.72); backdrop-filter: blur(2px); }
.tv__spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.25); border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tv__ltitle { font-family: var(--mono); font-size: 0.82em; color: var(--ink); }
.tv__ov--game { color: #fff; }
.tv__gart {
  position: absolute; inset: 0; z-index: -1; font-size: 3.4em;
  display: flex; align-items: center; justify-content: center;
  filter: saturate(1.1); opacity: 0.92;
}
.tv__gart::after { content: ""; position: absolute; inset: 0; background: rgba(4, 8, 15, 0.42); }
.tv__gtitle { font-weight: 800; font-size: 1.35em; letter-spacing: -0.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.tv__gsub { font-family: var(--mono); font-size: 0.7em; color: rgba(255, 255, 255, 0.8); }

/* wake / restart animations */
.tv__screen.is-waking .tv__lib { animation: wake 0.65s ease; }
@keyframes wake { 0% { opacity: 0; transform: scale(1.04); filter: brightness(2); } 100% { opacity: 1; transform: none; filter: none; } }
.tv__screen.is-blink { animation: blink 0.42s ease; }
@keyframes blink { 0%, 100% { filter: none; } 40% { filter: brightness(0.2); } 55% { filter: brightness(1.8); } }

/* --- Phone remote --- */
.remote {
  width: 208px; border-radius: 30px; padding: 8px;
  background: linear-gradient(160deg, #232c42, #10182b 55%, #1b2438);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #05080f;
  margin-top: -30px; position: relative; z-index: 4;
}
.remote__screen {
  border-radius: 24px; background: var(--bg-deep); border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 12px;
}
.remote__bar {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 0.64rem; color: var(--muted);
}
.remote__bar .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px var(--green); display: inline-block; margin-right: 4px; }
.remote__mode { color: var(--green); font-weight: 700; }
.pad {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  gap: 6px; aspect-ratio: 1; background: var(--card-2); border: 1px solid var(--line);
  border-radius: 18px; padding: 10px; touch-action: none; outline: none;
}
.pad:focus-visible { border-color: var(--blue); }
.pad__d, .pad__a {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 12px; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.1s ease, background 0.12s ease, border-color 0.12s ease; -webkit-tap-highlight-color: transparent;
}
.pad__d:hover, .pad__a:hover { border-color: rgba(96, 165, 250, 0.5); }
.pad__d.is-press, .pad__a.is-press { transform: scale(0.9); background: rgba(96, 165, 250, 0.16); }
.pad__d--u { grid-column: 2; grid-row: 1; }
.pad__d--l { grid-column: 1; grid-row: 2; }
.pad__a  { grid-column: 2; grid-row: 2; font-family: var(--mono); font-weight: 800; color: var(--green); border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.08); }
.pad__d--r { grid-column: 3; grid-row: 2; }
.pad__d--dn { grid-column: 2; grid-row: 3; }
.pad__hint {
  position: absolute; left: 0; right: 0; bottom: -2px; grid-column: 1 / -1; grid-row: 3;
  pointer-events: none; text-align: center; align-self: end; font-family: var(--mono);
  font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); opacity: 0.7;
}
.remote__btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.rbtn {
  border: 1px solid var(--line); background: var(--card); color: var(--muted);
  border-radius: 11px; padding: 9px 6px; font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer; transition: transform 0.1s ease, border-color 0.12s ease, color 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.rbtn:hover { border-color: rgba(96, 165, 250, 0.5); color: var(--ink); }
.rbtn.is-press { transform: scale(0.94); }
.rbtn--amber { color: var(--amber); border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.07); }
.rbtn--amber:hover { border-color: var(--amber); color: var(--amber); }

.stage__cue {
  margin: 2px 0 0; min-height: 1.2em; text-align: center; font-size: 0.82rem; color: var(--muted);
  font-family: var(--mono); max-width: 34ch;
}
.stage__cue b { color: var(--green); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .stage__live, .tv__wicon, .tv__spin { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; gap: 46px; }
  .stage { order: 2; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .security__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .hero { padding-top: 60px; }
  .steps, .features, .security__grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
