/* Tether — landing page
   Palette from the app icon: mint phone, coral heart, amber marionette bar, cocoa ink,
   on a warm near-black canvas. */

:root {
  --bg: #0d0a09;
  --bg-2: #120e0c;
  --surface: rgba(255, 240, 228, 0.028);
  --surface-2: rgba(255, 240, 228, 0.05);
  --line: rgba(255, 236, 222, 0.09);
  --line-2: rgba(255, 236, 222, 0.15);
  --text: #f7efe8;
  --text-2: #bfb2a7;
  --text-3: #968a80;
  --mint: #8be6bc;
  --mint-2: #5fc896;
  --coral: #ff8c7c;
  --amber: #f4bc52;
  --ink: #12201a;
  --radius: 28px;
  --radius-s: 16px;
  --wrap: 1200px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 50% -200px, rgba(139, 230, 188, 0.07), transparent 70%),
    var(--bg);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code, pre { font-family: var(--mono); }
p code, h3 code, .stat-label code {
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(255, 240, 228, 0.07);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: rgba(139, 230, 188, 0.32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--mint); color: var(--ink);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: calc(100% - 32px); } }

.ic { width: 1em; height: 1em; flex: none; }

/* ---------- Buttons ---------- */

.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 600 1rem/1 var(--sans); letter-spacing: -0.01em; text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s, box-shadow 0.35s var(--ease), border-color 0.25s;
}
.btn .ic { transition: transform 0.35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, #a5f0cd, var(--mint) 55%, #79dcae);
  box-shadow: 0 0 0 1px rgba(139, 230, 188, 0.5), 0 10px 30px -8px rgba(139, 230, 188, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(139, 230, 188, 0.7), 0 16px 44px -10px rgba(139, 230, 188, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-glass {
  color: var(--text);
  background: rgba(255, 240, 228, 0.06);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 240, 228, 0.1); border-color: rgba(255, 236, 222, 0.26); }
.btn-glass .ic { width: 0.8em; height: 0.8em; }
.btn-glass:hover .ic { transform: translate(2px, -2px); }

.btn-small { --h: 38px; padding: 0 16px; font-size: 0.875rem; gap: 6px; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; z-index: 50; top: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(880px, calc(100% - 24px));
  padding: 7px 7px 7px 12px;
  border-radius: 999px;
  background: rgba(22, 17, 15, 0.55);
  border: 1px solid var(--line);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  transition: background-color 0.3s, border-color 0.3s;
}
.nav.is-scrolled { background: rgba(22, 17, 15, 0.78); border-color: var(--line-2); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.02em; text-decoration: none;
}
.brand img { border-radius: 8px; filter: drop-shadow(0 2px 8px rgba(139, 230, 188, 0.25)); }

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.9rem; color: var(--text-2); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 240, 228, 0.06); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- Shared type ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  font-size: 0.875rem; color: var(--text-2);
  background: rgba(255, 240, 228, 0.045);
  border: 1px solid var(--line);
}
.pulse {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}
.pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--mint); opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.875rem; font-weight: 500; letter-spacing: 0.02em; color: var(--mint);
}
.eyebrow span {
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-3);
  padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px;
}

h1 {
  font-size: clamp(2.75rem, 1.1rem + 7.2vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 600;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2.2rem, 1.1rem + 3.6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.02em; }

.grad {
  background: linear-gradient(100deg, var(--mint) 0%, #c9e7a0 38%, var(--amber) 62%, var(--coral) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.04em;
}

.lede {
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.55; color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- Hero ---------- */

.hero { position: relative; padding-top: clamp(124px, 13vw, 156px); isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0 0 auto; height: 1300px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 420px at 18% 520px, rgba(139, 230, 188, 0.13), transparent 70%),
    radial-gradient(560px 420px at 84% 600px, rgba(255, 140, 124, 0.12), transparent 70%),
    radial-gradient(700px 300px at 50% 140px, rgba(244, 188, 82, 0.06), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 236, 222, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(800px 520px at 50% 300px, #000, transparent 75%);
  mask-image: radial-gradient(800px 520px at 50% 300px, #000, transparent 75%);
}

.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy h1 { margin-top: 28px; max-width: 12ch; }
.hero-copy .lede { margin-top: 28px; max-width: 40rem; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* ---------- Hero stage: the Tether window ---------- */

.stage {
  position: relative;
  width: min(1180px, 100% - 32px);
  margin: clamp(48px, 5vw, 64px) auto 0;
}
.stage::before {
  /* the glow the window floats on */
  content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; top: 18%; bottom: -10%;
  background:
    radial-gradient(50% 60% at 30% 60%, rgba(139, 230, 188, 0.28), transparent 70%),
    radial-gradient(50% 60% at 72% 60%, rgba(255, 140, 124, 0.24), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.stage-inner {
  transform-origin: 50% 0%;
  transform: perspective(2000px) rotateX(var(--tilt, 0deg)) scale(var(--tscale, 1));
  will-change: transform;
}

.window {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, #1d1715, #161210);
  border: 1px solid rgba(255, 236, 222, 0.12);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 50px 120px -30px rgba(0, 0, 0, 0.85),
    0 30px 80px -40px rgba(139, 230, 188, 0.25);
  overflow: hidden;
  font-family: var(--sans);
  color: var(--text);
}
.win { position: relative; }
.win-bar {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  height: 52px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 240, 228, 0.02);
}
.lights { display: inline-flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff6b5f; }
.lights i:nth-child(2) { background: #f6bd4f; }
.lights i:nth-child(3) { background: #5fcf72; }
.win-title { display: flex; flex-direction: column; line-height: 1.15; margin-left: 160px; }
.win-title b { font-size: 13px; font-weight: 600; }
.win-title small { font-size: 11px; color: var(--text-3); }
.win-tools { margin-left: auto; display: inline-flex; gap: 6px; }
.win-tools i { width: 28px; height: 24px; border-radius: 8px; background: rgba(255, 240, 228, 0.06); }
.win-tools i.wide { width: 64px; }

.win-body {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 330px;
  height: 610px;
}

.win-side {
  padding: 14px 10px; border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}
.side-h { font-size: 11px; font-weight: 600; color: var(--text-3); margin: 12px 8px 6px; }
.side-h:first-child { margin-top: 2px; }
.side-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 10px;
}
.side-row b { display: block; font-size: 12.5px; font-weight: 500; }
.side-row small { display: block; font-size: 11px; color: var(--text-3); }
.side-row.is-sel { background: rgba(255, 240, 228, 0.07); }
.glyph {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 240, 228, 0.06);
}
.glyph::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 17px; border-radius: 3px; border: 1.5px solid var(--text-3);
}
.glyph.g-tablet::before { width: 14px; height: 17px; }
.glyph.g-watch::before { width: 10px; height: 12px; border-radius: 4px; }
.is-sel .glyph::before { border-color: var(--mint); background: rgba(139, 230, 188, 0.25); }
.glyph em {
  position: absolute; left: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--mint); border: 2px solid #1a1513;
}

.win-mirror {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(139, 230, 188, 0.06), transparent 70%);
}

.phone {
  position: relative;
  width: 236px; height: 496px;
  padding: 9px;
  border-radius: 46px;
  background: linear-gradient(145deg, #3a332f, #1b1715 45%, #2c2623);
  box-shadow: 0 0 0 1px rgba(255, 236, 222, 0.14), 0 30px 60px -20px rgba(0, 0, 0, 0.8), inset 0 0 0 2px #0a0807;
}
.phone-screen {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
  border-radius: 38px;
  background: linear-gradient(180deg, #fbf5ee, #f4ebe2);
  color: #2a1e18;
}
.island {
  position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%);
  width: 74px; height: 22px; border-radius: 999px; background: #0b0908;
}

.app {
  position: absolute; inset: 0;
  padding: 64px 18px 20px;
  display: flex; flex-direction: column;
  transition: transform 0.6s var(--ease), opacity 0.45s;
}
.app-logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, #a5f0cd, #5fc896);
  box-shadow: 0 6px 16px -6px rgba(95, 200, 150, 0.7);
}
.app-logo svg { width: 18px; height: 18px; fill: #fff; }
.app-title { position: relative; margin-top: 18px; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; align-self: flex-start; }
.app-sub { margin-top: 4px; font-size: 11.5px; color: #8a776b; }
.field {
  position: relative;
  margin-top: 12px; padding: 7px 11px; border-radius: 12px;
  background: #fff; border: 1px solid #eadfd5;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.app-signin .field:first-of-type { margin-top: 22px; }
.field-label { display: block; font-size: 9.5px; color: #9c8a7e; }
.field-value { display: block; height: 17px; line-height: 17px; font-size: 12.5px; font-weight: 500; color: #2a1e18; white-space: nowrap; overflow: hidden; }
.field-value.is-secret { letter-spacing: 0.08em; }
.field.is-focus { border-color: #5fc896; box-shadow: 0 0 0 3px rgba(95, 200, 150, 0.2); }
.field.is-focus .field-value::after {
  content: ""; display: inline-block; width: 1.5px; height: 13px; margin-left: 1px;
  vertical-align: -2px; background: #2fa673; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.app-btn {
  position: relative;
  margin-top: 18px; padding: 11px; border-radius: 12px; text-align: center;
  font-size: 13px; font-weight: 650; color: #fff;
  background: linear-gradient(180deg, #ff9a8a, #f2776a);
  box-shadow: 0 8px 18px -8px rgba(242, 119, 106, 0.8);
  transition: transform 0.15s;
}
.app-btn.is-pressed { transform: scale(0.96); }
.app-foot { margin-top: 12px; font-size: 11px; color: #b0786c; text-align: center; }

.app-home { transform: translateX(100%); opacity: 0; }
.app-kicker { font-size: 11px; font-weight: 600; color: #5fc896; letter-spacing: 0.04em; text-transform: uppercase; }
.app-home .app-title { margin-top: 2px; margin-bottom: 12px; font-size: 26px; }
.note {
  margin-top: 8px; padding: 11px 12px; border-radius: 12px; background: #fff; border: 1px solid #eee3d9;
}
.note i { display: block; height: 7px; border-radius: 4px; background: #e6d9cd; }
.note i + i { margin-top: 6px; width: 62%; background: #f0e6dd; }
.note.faint { opacity: 0.5; }
.phone-screen.is-signed-in .app-signin { transform: translateX(-30%); opacity: 0; }
.phone-screen.is-signed-in .app-home { transform: none; opacity: 1; }

.scanline {
  position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 60px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(95, 200, 150, 0.22) 85%, rgba(95, 200, 150, 0.9) 100%);
  opacity: 0; transform: translateY(-60px);
}
.phone-screen.is-scanning .scanline { animation: scan 1.1s var(--ease) forwards; }
@keyframes scan { 0% { opacity: 1; transform: translateY(-60px); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(480px); } }
.phone-screen.is-scanning .app-signin > :not(.app-logo) { outline: 1px dashed rgba(47, 166, 115, 0.85); outline-offset: 3px; border-radius: 6px; }
.flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.phone-screen.is-flash .flash { animation: flash 0.6s ease-out; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }

.ripple {
  position: absolute; z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  border: 2px solid rgba(47, 166, 115, 0.9); background: rgba(95, 200, 150, 0.18);
  opacity: 0; pointer-events: none;
}
.ripple.is-on { animation: ripple 0.7s var(--ease); }
@keyframes ripple { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

.mirror-bar { display: flex; gap: 8px; }
.mirror-bar > span {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: rgba(255, 240, 228, 0.06); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600;
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: #5fcf72; box-shadow: 0 0 8px #5fcf72; }
.mb-group i { width: 14px; height: 12px; border-radius: 4px; border: 1.5px solid var(--text-3); }

.win-agent {
  display: flex; flex-direction: column;
  border-left: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}
.agent-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px 12px;
}
.agent-head b { display: block; font-size: 13px; font-weight: 600; }
.agent-head small { display: block; font-size: 11.5px; color: var(--text-3); }
.mcp-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--mint);
  background: rgba(139, 230, 188, 0.1); border: 1px solid rgba(139, 230, 188, 0.3);
}
.mcp-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); }

.calls { display: flex; flex-direction: column; gap: 8px; padding: 6px 14px; flex: 1; }
.call {
  position: relative;
  display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 14px;
  background: rgba(255, 240, 228, 0.035); border: 1px solid var(--line);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), border-color 0.3s, background-color 0.3s;
}
.call-main { min-width: 0; }
.call code { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); }
.call small { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-res { font-size: 11px; color: var(--mint); font-family: var(--mono); }
.call-dot {
  position: relative; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(139, 230, 188, 0.16); border: 1.5px solid var(--mint);
}
.call-dot::after {
  /* a check mark once the call is done */
  content: ""; position: absolute; left: 4px; top: 1.5px; width: 4px; height: 7px;
  border: solid var(--mint); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}
.call.is-active { border-color: rgba(139, 230, 188, 0.4); background: rgba(139, 230, 188, 0.06); }

/* Before the demo runs, calls wait out of sight; without scripts they all show as done. */
.demo-live .call { opacity: 0; transform: translateY(8px); }
.demo-live .call.is-shown { opacity: 1; transform: none; }
.demo-live .call .call-res { opacity: 0; transition: opacity 0.3s; }
.demo-live .call.is-done .call-res { opacity: 1; }
.demo-live .call:not(.is-done) .call-dot { border-color: rgba(139, 230, 188, 0.4); border-top-color: var(--mint); background: none; animation: spin 0.8s linear infinite; }
.demo-live .call:not(.is-done) .call-dot::after { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.agent-foot {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 14px 14px; padding: 10px 12px; border-radius: 12px;
  font-size: 11.5px; color: var(--text-2);
  background: rgba(244, 188, 82, 0.07); border: 1px solid rgba(244, 188, 82, 0.2);
}
.agent-foot svg { width: 14px; height: 14px; color: var(--amber); flex: none; }

/* The tethers: lines from each call to the element it touched */
.tethers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.tether { fill: none; stroke-linecap: round; }
.tether-path { stroke: url(#tether-grad); stroke-width: 1.6; filter: drop-shadow(0 0 5px rgba(139, 230, 188, 0.55)); transition: opacity 0.5s, stroke-width 0.5s; }
.tether.is-past .tether-path { opacity: 0.32; stroke-width: 1.1; filter: none; }
.tether.is-gone { opacity: 0; transition: opacity 0.35s; }
.tether-knot { fill: var(--mint); }
.tether-ring { fill: #1a1513; stroke: var(--coral); stroke-width: 1.5; }
.tether.is-past .tether-knot, .tether.is-past .tether-ring { opacity: 0.45; }

@media (max-width: 1100px) {
  .win-body { grid-template-columns: 186px minmax(0, 1fr) 300px; }
  .win-title { margin-left: 120px; }
}
@media (max-width: 900px) {
  .win-side { display: none; }
  .win-body { grid-template-columns: minmax(0, 1fr) 300px; }
  .win-title { margin-left: 8px; }
}
@media (max-width: 640px) {
  .stage { width: calc(100% - 24px); }
  .window { border-radius: 18px; }
  .win-bar { height: 46px; gap: 12px; }
  .win-tools i:not(.wide) { display: none; }
  .win-tools i.wide { width: 40px; }
  .win-body { grid-template-columns: 1fr; height: auto; }
  .win-mirror { padding: 26px 0 20px; }
  .phone { width: 196px; height: 412px; border-radius: 40px; padding: 8px; }
  .phone-screen { border-radius: 33px; }
  .app { padding: 52px 14px 16px; }
  .app-title { font-size: 19px; margin-top: 14px; }
  .app-signin .field:first-of-type { margin-top: 16px; }
  .field { margin-top: 9px; }
  .app-btn { margin-top: 14px; padding: 9px; }
  .win-agent { border-left: 0; border-top: 1px solid var(--line); }
  .calls { padding: 4px 12px 0 30px; }
  .agent-head { padding: 14px 16px 10px 30px; }
  .agent-foot { margin: 12px 12px 14px 30px; }
}

/* ---------- Marquee ---------- */

.marquee { margin-top: clamp(72px, 9vw, 120px); text-align: center; }
.marquee-label { font-size: 0.875rem; color: var(--text-3); }
.marquee-mask {
  margin-top: 18px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track li {
  display: inline-flex; align-items: center; gap: 56px; padding-right: 56px;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.035em;
  color: rgba(247, 239, 232, 0.72); white-space: nowrap;
}
.marquee-track li::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--amber);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.9 6.6 4.4 10.6 12 12-7.6 1.4-11.1 5.4-12 12-.9-6.6-4.4-10.6-12-12C7.6 10.6 11.1 6.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.9 6.6 4.4 10.6 12 12-7.6 1.4-11.1 5.4-12 12-.9-6.6-4.4-10.6-12-12C7.6 10.6 11.1 6.6 12 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.marquee-track li:nth-child(3n+2)::after { background: var(--mint); }
.marquee-track li:nth-child(3n)::after { background: var(--coral); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.section { position: relative; padding-block: clamp(80px, 9vw, 132px); scroll-margin-top: 40px; }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-head { max-width: 46rem; }
.section-head.center { max-width: 58rem; margin-inline: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head h2 { margin-top: 20px; }
.section-head .lede { margin-top: 22px; max-width: 38rem; }

.card {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 240, 228, 0.045), rgba(255, 240, 228, 0.018));
  border: 1px solid var(--line);
  isolation: isolate;
  transition: border-color 0.35s, transform 0.5s var(--ease), background-color 0.35s;
}
.card::before, .card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity 0.4s;
}
.card::before {
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 230, 188, 0.09), transparent 45%);
}
.card::after {
  padding: 1px;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 230, 188, 0.55), rgba(255, 140, 124, 0.25) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before, .card:hover::after { opacity: 1; }

/* ---------- Agents: sticky split ---------- */

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); }
.sticky { position: sticky; top: 120px; }
.split-aside h2 { margin-top: 20px; font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.6rem); }
.split-aside .lede { margin-top: 22px; }
.split-main { display: flex; flex-direction: column; gap: 20px; }

.stat {
  display: flex; align-items: center; gap: 20px; margin-top: 40px; padding-top: 28px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-size: clamp(3.6rem, 2.6rem + 3vw, 5.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.06em;
  background: linear-gradient(180deg, #fff, #c9bdb2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-num sup { font-size: 0.5em; vertical-align: 0.7em; color: var(--mint); -webkit-text-fill-color: var(--mint); }
.stat-label { max-width: 16rem; color: var(--text-2); font-size: 0.95rem; }

.step { padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.step-copy p:last-child { margin-top: 10px; color: var(--text-2); }
.step-copy h3 { margin-top: 12px; font-size: 1.5rem; }
.step-k span {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber);
}

.code {
  margin: 0; padding: 20px 22px; border-radius: var(--radius-s);
  background: #0a0807; border: 1px solid var(--line);
  font-size: 13px; line-height: 1.75; color: var(--text-2);
  overflow-x: auto;
}
.c-dim { color: var(--text-3); }
.c-str { color: #f6d79a; }
.c-key { color: var(--coral); }
.c-mint { color: var(--mint); }

.log { display: grid; gap: 8px; }
.log li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr) 16px; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: #0a0807; border: 1px solid var(--line);
  font-family: var(--mono); font-size: 13px;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.log li:hover { border-color: rgba(139, 230, 188, 0.35); transform: translateX(4px); }
.log code { color: var(--text); font-weight: 600; }
.log span { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log svg { width: 16px; height: 16px; color: var(--mint); }

.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools li {
  padding: 7px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 12.5px; color: var(--text-2);
  background: rgba(255, 240, 228, 0.04); border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.tools li:hover { color: var(--mint); border-color: rgba(139, 230, 188, 0.4); background: rgba(139, 230, 188, 0.06); }

.shot {
  position: relative; overflow: hidden;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: #1e1e1e;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.8s var(--ease); }
.card:hover .shot img { transform: scale(1.025); }
.shot-wide { max-width: 492px; }

.snippet {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 14px;
  background: #0a0807; border: 1px solid var(--line);
}
.snippet code {
  flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-2);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.snippet code::-webkit-scrollbar { display: none; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 32px; padding: 0 12px; border-radius: 10px;
  font: 600 0.8rem var(--sans); color: var(--text);
  background: rgba(255, 240, 228, 0.07); border: 1px solid var(--line-2); cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.copy:hover { background: rgba(255, 240, 228, 0.12); }
.copy.is-done { color: var(--mint); }

/* ---------- Bento ---------- */

.bento {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas:
    "mirror  mirror  sidebar network"
    "mirror  mirror  remote  network"
    "a11y    a11y    build   actions"
    "web     themes  build   actions"
    "tabs    tabs    tabs    tabs";
}
.bento .card { display: flex; flex-direction: column; overflow: hidden; padding: 26px; gap: 22px; }
.card-copy h3 { font-size: 1.2rem; }
.card-copy p { margin-top: 8px; font-size: 0.95rem; line-height: 1.5; color: var(--text-2); }
.b-mirror { grid-area: mirror; }
.b-sidebar { grid-area: sidebar; }
.b-network { grid-area: network; }
.b-remote { grid-area: remote; }
.b-a11y { grid-area: a11y; }
.b-build { grid-area: build; }
.b-actions { grid-area: actions; }
.b-web { grid-area: web; }
.b-themes { grid-area: themes; }
.b-tabs { grid-area: tabs; }

.bento .shot { flex: 1; min-height: 200px; margin: 0 -8px -34px; border-radius: 14px 14px 0 0; }
.bento .shot-tall { min-height: 300px; }
.bento .shot::after {
  content: ""; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(18, 14, 12, 0.85));
  pointer-events: none;
}
.b-sidebar .shot { min-height: 170px; max-width: 249px; }

/* Mirror card art */
.b-mirror { padding-bottom: 0; }
.mirror-art { position: relative; flex: 1; min-height: 380px; display: flex; justify-content: center; overflow: hidden; margin: 0 -26px; }
.orbit { position: relative; width: min(100% - 24px, 480px); min-height: 380px; }
.mirror-art::before {
  content: ""; position: absolute; left: 50%; bottom: -40px; width: 360px; height: 360px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(139, 230, 188, 0.22), transparent);
  filter: blur(10px);
}
.mini-phone {
  position: absolute; left: 50%; bottom: -96px; transform: translateX(-50%);
  width: 262px; height: 560px; padding: 86px 24px 0; border-radius: 52px;
  background: linear-gradient(180deg, #2a3b55, #4a6c9a);
  box-shadow: 0 0 0 8px #1b1715, 0 0 0 9px rgba(255, 236, 222, 0.16), 0 30px 60px -10px rgba(0, 0, 0, 0.8);
}
.mini-phone .island { top: 16px; width: 76px; height: 22px; }
.mini-phone i { display: block; height: 42px; margin-bottom: 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.16); }
.mini-phone .touch {
  position: absolute; left: 58%; top: 128px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.3); border: 2px solid rgba(255, 255, 255, 0.75);
  animation: touch 3.2s var(--ease) infinite;
}
@keyframes touch {
  0%, 18% { transform: translate(0, 0) scale(1); opacity: 0; }
  24% { opacity: 1; }
  40% { transform: translate(0, 0) scale(0.8); }
  70% { transform: translate(-50px, 60px) scale(0.8); opacity: 1; }
  85%, 100% { transform: translate(-50px, 60px) scale(1.2); opacity: 0; }
}
.chip {
  position: absolute; padding: 7px 13px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 500; color: var(--text);
  background: rgba(30, 24, 21, 0.75); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.7);
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.card:hover .chip { border-color: rgba(139, 230, 188, 0.35); }
.c1 { left: 6%; top: 14%; }
.c2 { left: 0; top: 37%; }
.c3 { left: 5%; top: 60%; }
.c4 { right: 7%; top: 10%; }
.c5 { right: 1%; top: 33%; }
.c6 { right: 0; top: 56%; }
.c7 { left: 9%; top: 82%; color: var(--coral); }
.c8 { right: 4%; top: 79%; }
.card:hover .c1, .card:hover .c3, .card:hover .c7 { transform: translateX(-6px); }
.card:hover .c4, .card:hover .c5, .card:hover .c6, .card:hover .c8 { transform: translateX(6px); }

/* Remote */
.pair { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.digits { display: flex; align-items: center; gap: 4px; }
.digits i {
  display: grid; place-items: center; width: 26px; height: 34px; border-radius: 8px;
  font: 600 1rem var(--mono); font-style: normal; color: var(--text);
  background: #0a0807; border: 1px solid var(--line-2);
}
.digits b { width: 6px; height: 2px; margin: 0 2px; background: var(--text-3); }
.pair { flex-direction: column; align-items: flex-start; }
.pair-ways { display: flex; flex-wrap: wrap; gap: 6px; }
.pair-ways span {
  padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; color: var(--text-2);
  border: 1px solid var(--line); background: rgba(255, 240, 228, 0.04);
}
.digits i { width: 28px; height: 38px; font-size: 1.05rem; }

/* Accessibility */
.audit { margin-top: auto; display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: end; }
.audit-screen {
  position: relative; height: 176px; padding: 28px 12px 0; border-radius: 22px 22px 0 0;
  background: #f6eee6; border: 6px solid #1b1715; border-bottom: 0;
  display: flex; flex-direction: column; gap: 9px; margin-bottom: -26px;
}
.audit-screen i { display: block; border-radius: 6px; background: #e3d6ca; }
.a-t { height: 12px; width: 70%; background: #cdbcae !important; }
.a-f { height: 20px; }
.a-b { height: 22px; background: #f2776a !important; }
.a-s { position: absolute; right: 12px; top: 10px; width: 14px; height: 14px; border-radius: 4px !important; background: #8a776b !important; }
.flag { outline: 2px solid var(--coral); outline-offset: 2px; }
.vo {
  position: absolute; z-index: 1; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  font-size: 10px; font-weight: 700; color: var(--ink); background: var(--mint);
  box-shadow: 0 0 0 2px #f6eee6;
}
.vo1 { left: -6px; top: 22px; }
.vo2 { left: -6px; top: 48px; }
.vo3 { left: -6px; top: 77px; }
.vo4 { left: -6px; top: 108px; }
.audit-list { display: grid; gap: 6px; padding-bottom: 2px; }
.audit-list li {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px;
  font-size: 0.85rem; color: var(--text-2); background: #0a0807; border: 1px solid var(--line);
}
.sev { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.sev.hi { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.sev.mid { background: var(--amber); }
.sev.lo { background: var(--text-3); }

/* Web Inspector */
.webpick {
  position: relative; margin-top: auto; height: 150px; padding: 12px; border-radius: 14px;
  background: #f6eee6; display: flex; flex-direction: column; gap: 8px; margin-bottom: -40px;
}
.webpick > span:not(.wp-cursor) { display: block; border-radius: 6px; background: #e3d6ca; }
.wp-bar { height: 10px; width: 40%; }
.wp-hero { height: 30px; background: #d7c6b8 !important; }
.wp-card { height: 26px; position: relative; }
.wp-card.is-picked { background: rgba(124, 196, 255, 0.35) !important; outline: 2px solid #4f9ee8; }
.wp-card em {
  position: absolute; left: 0; top: -20px; padding: 2px 6px; border-radius: 4px;
  font: 600 10px var(--mono); font-style: normal; color: #fff; background: #3a86d6;
}
.wp-cursor {
  position: absolute; left: 62%; top: 68px; width: 14px; height: 18px;
  background: #1a1412;
  clip-path: polygon(0 0, 100% 62%, 56% 64%, 78% 100%, 62% 100%, 42% 68%, 0 90%);
  transition: transform 0.6s var(--ease);
}
.card:hover .wp-cursor { transform: translate(-8px, -4px); }

/* Themes */
.swatches { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatches i {
  aspect-ratio: 1.4; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--b) 55%, var(--a) 55%);
  transition: transform 0.4s var(--ease);
}
.swatches i:hover { transform: translateY(-3px); }
.swatches .plus {
  display: grid; place-items: center; font-style: normal; font-size: 1.2rem; color: var(--text-3);
  background: transparent; border-style: dashed; border-color: var(--line-2);
}

/* Inspector tabs */
.b-tabs { flex-direction: row !important; align-items: center; gap: 40px !important; }
.b-tabs .card-copy { flex: 1.2; }
.tabs { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.tabs li {
  padding: 8px 14px; border-radius: 999px; font-size: 0.875rem; color: var(--text-2);
  background: rgba(255, 240, 228, 0.04); border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.tabs li:hover { color: var(--text); border-color: var(--line-2); }
.tabs li:last-child { color: var(--mint); border-color: rgba(139, 230, 188, 0.35); background: rgba(139, 230, 188, 0.06); }

@media (max-width: 1100px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "mirror  mirror"
      "sidebar network"
      "remote  network"
      "a11y    a11y"
      "build   actions"
      "web     themes"
      "tabs    tabs";
  }
  .mirror-art, .orbit { min-height: 440px; }
  .mini-phone { bottom: -140px; }
}
@media (max-width: 760px) {
  .b-tabs { flex-direction: column !important; align-items: stretch; gap: 22px !important; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; }
  .bento > .card { grid-area: auto; }
  .bento .card { padding: 22px; }
  .bento .shot-tall { flex: none; height: 340px; }
  .mirror-art { min-height: 340px; }
  .orbit { min-height: 340px; }
  .mini-phone { width: 210px; height: 430px; bottom: -110px; padding: 72px 20px 0; border-radius: 44px; }
  .chip { font-size: 0.75rem; padding: 6px 11px; }
  .c2 { left: 2%; } .c5 { right: 0; } .c6 { right: 2%; }
  .audit { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .audit-list li { font-size: 0.78rem; padding: 7px 10px; }
}

/* ---------- CLI ---------- */

.cli { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.cli-copy h2 { margin-top: 20px; font-size: clamp(2.2rem, 1.2rem + 2.6vw, 3.6rem); }
.cli-copy .lede { margin-top: 22px; }
.term {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: #0a0807; border: 1px solid var(--line-2);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.term::before {
  content: ""; position: absolute; right: -80px; top: -120px; width: 380px; height: 320px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(139, 230, 188, 0.12), transparent);
}
.term-bar {
  display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 18px;
  border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-3);
}
.term-bar .lights i { width: 11px; height: 11px; }
.term-body {
  margin: 0; padding: 26px 28px 30px; overflow-x: auto;
  font-size: clamp(12px, 0.68rem + 0.22vw, 14px); line-height: 1.95; color: var(--text);
}
.term-body { white-space: normal; }
.tl { display: block; white-space: pre; }
.term-body .p { color: var(--mint); margin-right: 0.6ch; user-select: none; }
.term-body .s { color: #f6d79a; }
.term-body .f { color: var(--coral); }
.term-body .c { color: var(--text-3); }
.term-body .c:not(:first-child) { margin-top: 0.9em; }
.cursor {
  display: inline-block; width: 0.6em; height: 1.1em; margin-left: 4px; vertical-align: -0.2em;
  background: var(--mint); animation: blink 1.1s steps(1) infinite;
}

.cli-notes { margin-top: 36px; display: grid; }
.cli-notes li { padding: 18px 0; border-top: 1px solid var(--line); }
.cli-notes li:last-child { border-bottom: 1px solid var(--line); }
.cli-notes h3 { font-size: 1.05rem; }
.cli-notes p { margin-top: 6px; font-size: 0.95rem; color: var(--text-2); }

@media (max-width: 960px) { .cli { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Control ---------- */

.control {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ctl { padding: 22px 22px 28px; display: flex; flex-direction: column; }
.ctl h3 { margin-top: 26px; font-size: 1.15rem; }
.ctl p { margin-top: 8px; font-size: 0.95rem; color: var(--text-2); }
.ctl-art {
  height: 168px; border-radius: 18px; padding: 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 240, 228, 0.05), transparent 60%),
    #0a0807;
  border: 1px solid var(--line);
}

.toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: rgba(255, 240, 228, 0.05); border: 1px solid var(--line);
}
.toggle-row b { display: block; font-size: 0.875rem; font-weight: 600; }
.toggle-row small { display: block; font-size: 0.75rem; color: var(--text-3); }
.toggle {
  position: relative; width: 40px; height: 24px; border-radius: 999px; flex: none;
  background: rgba(255, 240, 228, 0.14); transition: background-color 0.35s;
}
.toggle::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); transition: transform 0.35s var(--ease);
}
.ctl:hover .toggle { background: var(--mint-2); }
.ctl:hover .toggle::after { transform: translateX(16px); }
.sock { display: flex; align-items: center; gap: 8px; font: 12px var(--mono); color: var(--text-3); padding-left: 4px; }
.sock-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

.sheet { padding: 14px; border-radius: 14px; background: #221b18; border: 1px solid var(--line-2); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8); }
.sheet b { display: block; font-size: 0.85rem; line-height: 1.3; font-weight: 600; }
.sheet small { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--text-3); }
.sheet-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.sheet-btns span {
  padding: 6px; border-radius: 8px; text-align: center; font-size: 0.8rem; font-weight: 600;
  background: rgba(255, 240, 228, 0.08);
}
.sheet-btns .ok { background: var(--mint); color: var(--ink); }

.handoff { padding: 14px; border-radius: 14px; background: rgba(244, 188, 82, 0.08); border: 1px solid rgba(244, 188, 82, 0.3); }
.handoff-k code { font-size: 0.75rem; color: var(--amber); }
.handoff p { margin-top: 6px; font-size: 0.9rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.handoff-wait { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 0.75rem; color: var(--text-2); }
.handoff-wait i { width: 4px; height: 4px; border-radius: 50%; background: var(--amber); animation: dots 1.4s infinite; }
.handoff-wait i:nth-child(2) { animation-delay: 0.2s; }
.handoff-wait i:nth-child(3) { animation-delay: 0.4s; margin-right: 6px; }
@keyframes dots { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

.turns { display: grid; gap: 8px; }
.turn {
  display: grid; grid-template-columns: 10px 1fr; column-gap: 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: rgba(255, 240, 228, 0.04); border: 1px solid var(--line);
  transition: border-color 0.4s, background-color 0.4s;
}
.turn i { grid-row: span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.turn b { font-size: 0.85rem; font-weight: 600; }
.turn small { font-size: 0.75rem; color: var(--text-3); }
.turn.is-on { border-color: rgba(139, 230, 188, 0.35); background: rgba(139, 230, 188, 0.06); }
.turn.is-on i { background: var(--mint); box-shadow: 0 0 8px var(--mint); }

@media (max-width: 1100px) { .control { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .control { grid-template-columns: 1fr; } }

/* ---------- Built with ---------- */

.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.facts li { padding: 26px 28px; display: flex; flex-direction: column; gap: 4px; }
.facts li + li { border-left: 1px solid var(--line); }
.facts b { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; }
.facts span { font-size: 0.9rem; color: var(--text-2); }

.limits {
  margin-top: 16px; padding: 22px 28px; border-radius: var(--radius);
  display: grid; grid-template-columns: 180px 1fr; gap: 24px;
  background: rgba(255, 240, 228, 0.02); border: 1px dashed var(--line-2);
}
.limits-h { font-size: 0.9rem; font-weight: 600; color: var(--amber); }
.limits ul { display: grid; gap: 8px; }
.limits li { position: relative; padding-left: 18px; font-size: 0.95rem; color: var(--text-2); }
.limits li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.limits li b { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .limits { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 420px) {
  .facts li { padding: 20px; }
  .facts b { font-size: 1.15rem; }
}

/* ---------- Closing ---------- */

.closing-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 64px);
  border-radius: 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, rgba(255, 240, 228, 0.05), rgba(255, 240, 228, 0.015));
  border: 1px solid var(--line);
}
.closing-glow {
  position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 300px at 50% 18%, rgba(139, 230, 188, 0.22), transparent 70%),
    radial-gradient(520px 340px at 15% 110%, rgba(255, 140, 124, 0.18), transparent 70%),
    radial-gradient(520px 340px at 85% 110%, rgba(244, 188, 82, 0.13), transparent 70%);
}
.closing-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 236, 222, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
}
.closing-icon {
  width: clamp(112px, 12vw, 152px); height: auto;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(139, 230, 188, 0.25));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px) rotate(-1.5deg); } }
.closing { padding-top: 24px; padding-bottom: clamp(56px, 7vw, 96px); }
.closing h2 { margin-top: 36px; }
.closing h2 .grad { display: block; width: fit-content; margin-inline: auto; }
.closing .lede { margin-top: 22px; max-width: 34rem; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 22rem; }
.footer-brand p { margin-top: 14px; font-size: 0.9rem; color: var(--text-3); }
.footer-nav { display: flex; gap: 64px; }
.footer-nav div { display: flex; flex-direction: column; gap: 10px; }
.footer-nav p { font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer-nav a { font-size: 0.9rem; color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-base p { font-size: 0.8rem; color: var(--text-3); }

/* ---------- Split / small screens ---------- */

@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 560px) {
  .term-body { padding: 20px 18px 24px; font-size: 11.5px; }
  .code { padding: 16px 14px; font-size: 11px; }
  .tl { white-space: pre-wrap; padding-left: 2.6ch; text-indent: -2.6ch; }
  .btn { --h: 50px; padding: 0 22px; }
  .hero .cta-row .btn { flex: 1 1 100%; }
  .closing .cta-row .btn { flex: 1 1 100%; }
  .stat { gap: 16px; }
  .log li { grid-template-columns: 74px minmax(0, 1fr) 16px; padding: 11px 12px; font-size: 12px; }
  .footer-nav { gap: 48px; }
}

/* ---------- Reveal (only when scripts run) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease) calc(var(--d, 0) * 90ms),
    transform 0.9s var(--ease) calc(var(--d, 0) * 90ms),
    filter 0.9s var(--ease) calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .term .tl { opacity: 0; transform: translateX(-8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .term.is-in .tl { opacity: 1; transform: none; }
.js .term.is-in .tl:nth-child(1) { transition-delay: 0.19s; }
.js .term.is-in .tl:nth-child(2) { transition-delay: 0.28s; }
.js .term.is-in .tl:nth-child(3) { transition-delay: 0.37s; }
.js .term.is-in .tl:nth-child(4) { transition-delay: 0.46s; }
.js .term.is-in .tl:nth-child(5) { transition-delay: 0.55s; }
.js .term.is-in .tl:nth-child(6) { transition-delay: 0.64s; }
.js .term.is-in .tl:nth-child(7) { transition-delay: 0.73s; }
.js .term.is-in .tl:nth-child(8) { transition-delay: 0.82s; }
.js .term.is-in .tl:nth-child(9) { transition-delay: 0.91s; }
.js .term.is-in .tl:nth-child(10) { transition-delay: 1.00s; }
.js .term.is-in .tl:nth-child(11) { transition-delay: 1.09s; }
.js .term.is-in .tl:nth-child(12) { transition-delay: 1.18s; }
.js .term.is-in .tl:nth-child(13) { transition-delay: 1.27s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .term .tl { opacity: 1; transform: none; filter: none; }
  .stage-inner { transform: none !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 8px; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee-mask { -webkit-mask-image: none; mask-image: none; }
  .mini-phone .touch { opacity: 0; }
}
