/* ───────────────────────── tokens ───────────────────────── */
:root {
  --bg: #0a0c0f;
  --bg-2: #0e1115;
  --surface: #13171c;
  --surface-2: #181d23;
  --line: #222932;
  --line-strong: #2f3843;
  --text: #e6edf3;
  --text-2: #a7b1bc;
  --text-3: #6f7a86;

  --accent: #2f8cff;
  --accent-2: #0878bd;
  --accent-soft: rgba(47, 140, 255, 0.14);
  --cyan: #56d4dd;
  --green: #3fb950;
  --yellow: #ffd84d;
  --orange: #f0a13a;
  --red: #f47067;
  --purple: #c592ff;
  --supervisor: #7aa2f7;

  /* term-server app palette */
  --app-side: #181818;
  --app-editor: #1e1e1e;
  --app-pane: #211d1d;
  --app-border: #2b2b2b;
  --app-fg: #cccccc;
  --app-muted: #8b8b8b;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-xl: 0 40px 120px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: 0.88em; }
p code, li code { background: rgba(255,255,255,0.06); padding: 0.1em 0.4em; border-radius: 5px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 32px); }

/* ───────────────────────── background ───────────────────────── */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: absolute; left: 0; right: 0; top: -260px; z-index: -1; pointer-events: none;
  height: 900px; overflow: hidden;
  background:
    radial-gradient(closest-side at 35% 45%, rgba(47,140,255,0.22), transparent),
    radial-gradient(closest-side at 68% 40%, rgba(86,212,221,0.12), transparent);
  filter: blur(20px);
  animation: glow 14s ease-in-out infinite alternate;
}
@keyframes glow { to { opacity: 0.65; } }

/* ───────────────────────── buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 10px 18px; font-weight: 600; font-size: 15px; line-height: 1.2;
  transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #3b95ff, #1f74e0);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 24px -8px rgba(47,140,255,0.7);
}
.btn-primary:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 12px 32px -8px rgba(47,140,255,0.9); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.04); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #43505e; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 7px; }

/* ───────────────────────── nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10,12,15,0.72); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 6px 12px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.gh-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 14.5px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.gh-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: transparent; border-radius: 10px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: grid; padding: 8px 16px 16px; background: rgba(10,12,15,0.96); border-bottom: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--text-2); font-weight: 500; }

/* ───────────────────────── hero ───────────────────────── */
.hero { padding: 72px 0 40px; position: relative; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03);
  font-size: 13.5px; color: var(--text-2); transition: border-color .2s, color .2s;
}
.pill:hover { border-color: #43505e; color: var(--text); }
.pill-tag { background: var(--accent-soft); color: #8cc2ff; font-weight: 600; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.hero-title { font-size: clamp(42px, 7.4vw, 88px); font-weight: 800; margin-top: 26px; letter-spacing: -0.045em; }
.grad {
  background: linear-gradient(92deg, #7cc0ff 0%, #2f8cff 35%, #56d4dd 70%, #9ff0c9 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad 8s ease-in-out infinite alternate;
}
@keyframes grad { to { background-position: 100% 0; } }
.hero-sub { max-width: 680px; margin: 22px auto 0; font-size: clamp(17px, 2vw, 19px); color: var(--text-2); }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; margin-top: 34px; }
.install-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 14px; color: var(--text-2);
  max-width: 100%;
}
.install-chip .prompt { color: var(--green); }
.install-chip code { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-btn {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2);
  transition: color .2s, background .2s, border-color .2s; font-size: 13px;
}
.copy-btn:hover { color: var(--text); border-color: #43505e; }
.copy-btn.copied { color: var(--green); border-color: rgba(63,185,80,0.5); }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--text-3); font-size: 14px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }

.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 3px rgba(63,185,80,0.18); }
.dot.warn { background: var(--orange); box-shadow: 0 0 0 3px rgba(240,161,58,0.2); }
.dot.err { background: var(--red); }

/* ───────────── app window (shared by demos) ───────────── */
.hero-demo-wrap { margin-top: 64px; position: relative; isolation: isolate; }
.app-window {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--app-editor); box-shadow: var(--shadow-xl);
  border: 1px solid #2c3036;
  opacity: 0; transform: translateY(32px) scale(0.98);
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
  font-family: var(--mono);
}
.app-window.in { opacity: 1; transform: none; }
.hero-floor { position: absolute; left: 10%; right: 10%; bottom: -60px; height: 120px; background: radial-gradient(closest-side, rgba(47,140,255,0.28), transparent); filter: blur(30px); z-index: -1; }

.win-bar {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  background: #16181b; border-bottom: 1px solid #262a2f; position: relative;
}
.tl { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.win-url {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans); font-size: 12.5px; color: var(--text-3);
  background: rgba(255,255,255,0.04); border: 1px solid #262a2f; padding: 3px 12px; border-radius: 7px;
  white-space: nowrap; max-width: 60%; overflow: hidden; text-overflow: ellipsis;
}

.app { display: grid; grid-template-columns: 240px 1fr; height: 520px; }
.app-side { background: var(--app-side); border-right: 1px solid var(--app-border); display: flex; flex-direction: column; font-family: var(--sans); min-width: 0; }
.side-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px 8px; font-size: 11.5px; color: var(--app-fg); letter-spacing: 0.02em; }
.side-icons { color: var(--app-muted); }
.ico-plus::before { content: "+"; font-style: normal; font-size: 16px; }
.side-filter { margin: 0 10px 8px; padding: 6px 10px; border-radius: 6px; background: #2a2a2a; color: #6e6e6e; font-size: 12.5px; }
.side-tree { flex: 1; overflow: hidden; font-size: 13px; }
.side-foot { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--app-border); color: var(--app-muted); font-size: 12px; }
.side-foot .count { display: inline-flex; align-items: center; gap: 6px; }

.tree-ws { display: flex; align-items: center; gap: 6px; padding: 5px 12px; color: var(--app-fg); font-weight: 600; font-size: 12.5px; border-left: 3px solid transparent; }
.tree-ws .chev { color: var(--app-muted); font-size: 10px; }
.tree-term {
  display: flex; align-items: center; gap: 9px; padding: 6px 12px 6px 22px; border-left: 3px solid var(--c, #555);
  color: var(--app-fg); position: relative; transition: background .3s, opacity .4s, transform .4s var(--ease);
}
.tree-term.active { background: #2a2d2e; }
.tree-term.enter { opacity: 0; transform: translateX(-12px); }
.tree-term .ticon { width: 22px; height: 22px; border-radius: 5px; border: 1px solid #3c3c3c; display: grid; place-items: center; font-size: 11px; color: var(--app-muted); flex: none; }
.tree-term .tname { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.tree-term .tname b { font-weight: 500; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tree-term .tname small { font-size: 9.5px; color: var(--app-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.tree-term .tstate { margin-left: auto; flex: none; }

.agent-chip {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 2px 7px; border-radius: 5px; border: 1px solid; white-space: nowrap;
}
.agent-chip.working { color: #6cb6ff; border-color: rgba(108,182,255,0.5); background: rgba(108,182,255,0.08); }
.agent-chip.blocked { color: #ffb454; border-color: rgba(255,180,84,0.55); background: rgba(255,180,84,0.1); animation: pulse-warn 1.6s ease-in-out infinite; }
.agent-chip.idle { color: var(--app-muted); border-color: #3c3c3c; }
.agent-chip.bell { color: var(--yellow); border-color: rgba(255,216,77,0.5); background: rgba(255,216,77,0.08); }
@keyframes pulse-warn { 50% { box-shadow: 0 0 0 4px rgba(255,180,84,0.12); } }
.wave { display: inline-flex; gap: 1.5px; align-items: flex-end; height: 9px; }
.wave i { width: 2px; background: currentColor; border-radius: 1px; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .15s; } .wave i:nth-child(3) { animation-delay: .3s; }
@keyframes wave { 0%,100% { height: 3px; } 50% { height: 9px; } }

.app-panes { display: grid; min-width: 0; background: var(--app-border); gap: 1px; grid-template-columns: 1fr; grid-template-rows: 1fr; transition: grid-template-columns .6s var(--ease), grid-template-rows .6s var(--ease); }
.pane { background: var(--app-pane); display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; animation: pane-in .5s var(--ease); }
@keyframes pane-in { from { opacity: 0; } }
.pane-head { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; background: var(--app-side); border-bottom: 1px solid var(--app-border); font-family: var(--sans); font-size: 11.5px; color: var(--app-muted); white-space: nowrap; overflow: hidden; flex: none; }
.pane-head .pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.pane-head .crumb b { color: var(--app-fg); font-weight: 500; }
.pane-head .live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.pane-head .pacts { margin-left: auto; letter-spacing: 6px; opacity: 0.6; }
.pane.focus .pane-head { color: var(--app-fg); }

.term {
  flex: 1; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--app-fg);
  white-space: pre-wrap; word-break: break-word; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start;
}
.term .ln { min-height: 1.55em; }
.cursor { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: -0.18em; background: var(--app-fg); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.t-g { color: #3fb950; } .t-b { color: #6cb6ff; } .t-c { color: #56d4dd; } .t-y { color: #e3b341; }
.t-m { color: #d2a8ff; } .t-r { color: #f47067; } .t-d { color: #7d8590; } .t-w { color: #fff; font-weight: 700; }
.t-u { color: #56d4dd; text-decoration: underline; text-underline-offset: 2px; }
.t-bar { color: #6cb6ff; }

.app-status {
  display: flex; align-items: center; gap: 14px; height: 26px; padding: 0 12px;
  background: #0f6ab5; color: #eaf3ff; font-family: var(--sans); font-size: 11.5px; white-space: nowrap; overflow: hidden;
}
.app-status .dot.ok { box-shadow: none; background: #7ee787; }
.app-status .sep { width: 1px; height: 12px; background: rgba(255,255,255,0.3); }
.app-status .grow { flex: 1; }
.status-limit { display: inline-flex; align-items: center; gap: 6px; }
.lim-bar { width: 42px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.25); overflow: hidden; }
.lim-bar i { display: block; height: 100%; background: #fff; border-radius: 3px; transition: width 1s var(--ease); }

.toast-stack { position: absolute; right: 14px; bottom: 40px; display: flex; flex-direction: column; gap: 10px; z-index: 5; width: 290px; max-width: calc(100% - 28px); }
.toast {
  font-family: var(--sans); background: #1f2328; border: 1px solid #353b42; border-left: 3px solid var(--c, var(--accent));
  border-radius: 10px; padding: 10px 12px; box-shadow: 0 16px 40px -10px rgba(0,0,0,0.7);
  animation: toast-in .45s var(--ease);
}
.toast.out { animation: toast-out .35s ease-in forwards; }
.toast-t { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text); }
.toast-b { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.4; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ───────────────────────── strip ───────────────────────── */
.strip { padding: 48px 0 16px; }
.strip-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.strip-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-3); font-weight: 600; }
.strip-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; list-style: none; padding: 0; margin: 0; }
.strip-logos li { font-family: var(--mono); font-size: 17px; color: var(--text-2); font-weight: 500; opacity: 0.75; transition: opacity .2s, color .2s; }
.strip-logos li:hover { opacity: 1; color: var(--text); }

/* ───────────────────────── sections ───────────────────────── */
.section { padding: 120px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.018) 12%, rgba(255,255,255,0.018) 88%, transparent); }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 16px; font-weight: 500; }
.eyebrow-accent { color: var(--cyan); }
h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.lead { font-size: 18px; color: var(--text-2); margin: 20px 0 0; text-wrap: pretty; }
.lead strong, .lead em { color: var(--text); font-style: normal; }

.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split-rev .split-copy { order: 2; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; color: var(--text-2); }
.checks li b { color: var(--text); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%238cc2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.tag { display: inline-block; font-size: 0.82em; font-weight: 600; padding: 1px 9px; border-radius: 6px; font-family: var(--mono); vertical-align: 1px; }
.tag-warn { color: #ffb454; background: rgba(255,180,84,0.12); border: 1px solid rgba(255,180,84,0.35); }
.tag-ok { color: #7ee787; background: rgba(63,185,80,0.12); border: 1px solid rgba(63,185,80,0.35); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* reveal on scroll */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: reveal .8s var(--ease) var(--d, 0ms) backwards; }
@keyframes reveal { from { opacity: 0; transform: translateY(24px); } }

/* ───────────────────────── resilience demo ───────────────────────── */
.mini-window { position: relative; border-radius: 12px; overflow: hidden; background: var(--app-pane); border: 1px solid #2c3036; box-shadow: var(--shadow-xl); display: flex; flex-direction: column; }
.mini-window .term { height: 300px; flex: none; }
.conn-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 11.5px; color: var(--text-2);
  padding: 2px 9px; border-radius: 999px; border: 1px solid #2f353c; background: rgba(255,255,255,0.03); transition: color .3s;
}
.overlay { position: absolute; inset: 38px 0 0; display: grid; place-items: center; background: rgba(18,16,16,0.72); backdrop-filter: blur(3px); animation: fade .25s; }
.overlay[hidden] { display: none; }
.overlay-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: var(--sans); color: var(--text-2); font-size: 14px; }
.overlay.white { background: #f4f4f4; backdrop-filter: none; }
.overlay.white .overlay-inner { color: #666; }
@keyframes fade { from { opacity: 0; } }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,0.12); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.demo-controls .btn { font-size: 14px; padding: 9px 14px; }
.demo-controls .btn[disabled] { opacity: 0.45; cursor: default; }

.arch { display: flex; align-items: stretch; margin-top: 22px; font-family: var(--sans); }
.arch-node {
  flex: 1; min-width: 0; padding: 10px 8px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface);
  text-align: center; transition: border-color .3s, background .3s, opacity .3s, transform .3s var(--ease);
}
.arch-node span { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arch-node small { display: block; font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--mono); }
.arch-broker { border-color: rgba(63,185,80,0.45); background: rgba(63,185,80,0.07); }
.arch-node.down { opacity: 0.35; border-style: dashed; }
.arch-node.swap { border-color: var(--cyan); background: rgba(86,212,221,0.1); transform: translateY(-3px); }
.arch-link { width: 34px; flex: none; position: relative; align-self: center; height: 2px; background: var(--line-strong); }
.arch-link i { position: absolute; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: packet 1.6s linear infinite; opacity: 0; }
.arch-link i:nth-child(2) { animation-delay: .53s; } .arch-link i:nth-child(3) { animation-delay: 1.06s; }
.arch-link.cut { background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px); }
.arch-link.cut i { animation: none; opacity: 0; }
@keyframes packet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }

/* ───────────────────────── agents ───────────────────────── */
.agents-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.agent-board { background: var(--app-side); border: 1px solid #2c3036; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xl); position: relative; }
.board-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--app-border); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--app-fg); }
.board-legend { display: flex; gap: 14px; text-transform: none; letter-spacing: 0; color: var(--text-3); font-size: 12px; }
.board-legend span { display: inline-flex; align-items: center; gap: 6px; }
.st { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.st-working { background: #6cb6ff; } .st-blocked { background: #ffb454; } .st-idle { background: #555; }
.board-rows { padding: 6px 0; }
.brow {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 10px 18px; border-left: 3px solid var(--c); transition: background .35s;
}
.brow.flash { background: rgba(255,180,84,0.07); }
.brow.focus { background: #2a2d2e; }
.brow .bicon { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #3c3c3c; display: grid; place-items: center; font-size: 15px; background: #202020; }
.brow .binfo { min-width: 0; }
.brow .btitle { font-size: 14px; font-weight: 500; color: var(--app-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .bsub { font-family: var(--mono); font-size: 11.5px; color: var(--app-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .agent-chip { font-size: 11px; padding: 3px 9px; }
.agent-side { display: grid; gap: 16px; }
.feature-card { padding: 22px 22px 20px; }
.feature-card h3 { font-size: 18px; margin: 12px 0 6px; letter-spacing: -0.015em; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.fc-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: 18px; }

/* ───────────────────────── access ───────────────────────── */
.access-demo { position: relative; display: flex; flex-direction: column; }
.access-demo .mini-window { width: 100%; }
.access-demo .term { height: 280px; }
.access-panel {
  position: relative; align-self: flex-end; width: min(380px, 100%); margin-top: 14px;
  background: #1c2026; border: 1px solid #353b42; border-radius: 12px; padding: 14px; font-family: var(--sans);
  box-shadow: 0 30px 60px -12px rgba(0,0,0,0.75); transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s;
}
.access-panel.show { transform: none; opacity: 1; }
.ap-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ap-title { font-weight: 600; font-size: 14px; }
.ap-req { border: 1px solid rgba(255,180,84,0.35); background: rgba(255,180,84,0.06); border-radius: 9px; padding: 12px; transition: opacity .4s, border-color .4s, background .4s; }
.ap-req.approved { border-color: rgba(63,185,80,0.4); background: rgba(63,185,80,0.07); }
.ap-kind { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; }
.ap-name { margin: 4px 0; font-size: 14px; }
.ap-name code { color: var(--yellow); }
.ap-why { font-size: 12.5px; color: var(--text-2); }
.ap-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.ap-actions .btn { pointer-events: none; }
#ap-approve.press { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(47,140,255,0.35); }
.ap-log { margin-top: 10px; font-size: 12px; color: var(--text-3); display: grid; gap: 4px; font-family: var(--mono); }
.ap-log div { animation: fade .4s; }
.ap-log .ok { color: #7ee787; }
.fake-cursor { position: absolute; width: 18px; height: 18px; pointer-events: none; z-index: 3; transition: left .9s var(--ease), top .9s var(--ease), opacity .3s; opacity: 0; }

/* ───────────────────────── features ───────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); background: var(--surface-2); }
.feature h3 { font-size: 17.5px; margin: 18px 0 6px; letter-spacing: -0.015em; }
.feature p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.f-vis { height: 110px; border-radius: 10px; background: #111418; border: 1px solid var(--line); overflow: hidden; position: relative; font-family: var(--mono); font-size: 12px; }

.f-panes { display: grid; gap: 4px; padding: 8px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; animation: panes 8s var(--ease) infinite; }
.f-panes i { background: var(--app-pane); border: 1px solid #2f2a2a; border-radius: 4px; position: relative; }
.f-panes i::before { content: ""; position: absolute; left: 6px; top: 6px; width: 40%; height: 3px; border-radius: 2px; background: #3b3434; box-shadow: 0 7px 0 #3b3434, 0 14px 0 #2f8cff55; }
.f-panes i:first-child { grid-row: span 2; }
.f-panes i:last-child { display: none; }
@keyframes panes { 0%,20% { grid-template-columns: 1fr 1fr; } 40%,60% { grid-template-columns: 1.6fr 1fr; } 80%,100% { grid-template-columns: 1fr 1.4fr; } }

.f-tree { color: var(--app-fg); }
.f-tree .ws { position: absolute; left: 14px; height: 20px; line-height: 20px; padding-left: 8px; border-left: 2px solid var(--line-strong); }
.f-tree .ws-root { top: 4px; }
.f-tree .ws-api { top: 25px; left: 28px; border-color: #3fb950; }
.f-tree .ws-web { top: 67px; left: 28px; border-color: #e3b341; }
.f-tree .term-chip {
  position: absolute; left: 46px; top: 46px; height: 18px; line-height: 16px; padding: 0 8px; border-radius: 5px; font-size: 11px;
  background: #1c2127; border: 1px solid #3fb950; animation: hop 5s var(--ease) infinite;
}
@keyframes hop {
  0%, 35% { transform: none; border-color: #3fb950; }
  50%, 85% { transform: translateY(42px); border-color: #e3b341; }
  100% { transform: none; border-color: #3fb950; }
}

.f-render { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: 30px; }
.f-render span { animation: hue 6s linear infinite; }
.f-render .c1 { color: #f47067; } .f-render .c2 { color: #f0a13a; animation-delay: -1s; } .f-render .c3 { color: #e3b341; animation-delay: -2s; }
.f-render .c4 { color: #3fb950; animation-delay: -3s; } .f-render .c5 { color: #56d4dd; animation-delay: -4s; } .f-render .c6 { color: #c592ff; animation-delay: -5s; }
.f-render .nf { font-size: 22px; color: #6cb6ff; margin-left: 10px; animation: none; }
@keyframes hue { to { filter: hue-rotate(360deg); } }

.f-scroll { display: grid; place-items: center; }
.f-scroll b { position: relative; z-index: 1; font-size: 26px; color: var(--text); background: rgba(17,20,24,0.85); padding: 2px 10px; border-radius: 6px; }
.scroll-col { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 8px, #2a3038 8px 10px, transparent 10px 14px, #232a31 14px 16px); background-size: 100% 16px; animation: scroll-y 1.2s linear infinite; opacity: 0.7; }
.scroll-col::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 12px, #111418 12px 14px); opacity: 0.9; }
@keyframes scroll-y { to { background-position: 0 -16px; } }

.f-files { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; color: var(--app-fg); font-family: var(--sans); font-size: 13px; }
.f-files span:nth-child(n+2) { margin-left: 16px; }
.f-files .hl { background: var(--accent-soft); border-radius: 5px; padding: 1px 6px; margin-left: 10px !important; }
.f-files em { font-style: normal; color: #7ee787; font-size: 11px; margin-left: 8px; font-family: var(--mono); animation: saved 3s infinite; }
@keyframes saved { 0%,40% { opacity: 0; } 50%,90% { opacity: 1; } 100% { opacity: 0; } }

.f-proc, .f-quota { padding: 14px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.f-proc div, .f-quota div { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 10px; color: var(--app-fg); }
.f-proc .in { padding-left: 12px; } .f-proc .in2 { padding-left: 24px; }
.f-proc em, .f-quota em { height: 6px; border-radius: 3px; background: #242a31; position: relative; overflow: hidden; }
.f-proc em::after, .f-quota em::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, var(--accent), var(--cyan)); border-radius: 3px; animation: jitter 2.4s ease-in-out infinite alternate; }
.f-quota em::after { animation: none; background: linear-gradient(90deg, #3fb950, #56d4dd); }
.f-proc div:nth-child(2) em::after { animation-delay: -.8s; } .f-proc div:nth-child(3) em::after { animation-delay: -1.6s; }
@keyframes jitter { 0% { transform: scaleX(0.7); transform-origin: left; } 100% { transform: scaleX(1.05); transform-origin: left; } }

.f-audio { display: flex; align-items: center; justify-content: center; gap: 5px; }
.f-audio i { width: 6px; border-radius: 3px; background: linear-gradient(180deg, var(--cyan), var(--accent)); animation: eq 1.1s ease-in-out infinite; }
.f-audio i:nth-child(1) { animation-delay: -.2s; } .f-audio i:nth-child(2) { animation-delay: -.5s; } .f-audio i:nth-child(3) { animation-delay: -.1s; }
.f-audio i:nth-child(4) { animation-delay: -.7s; } .f-audio i:nth-child(5) { animation-delay: -.3s; } .f-audio i:nth-child(6) { animation-delay: -.9s; }
.f-audio i:nth-child(7) { animation-delay: -.4s; } .f-audio i:nth-child(8) { animation-delay: -.6s; } .f-audio i:nth-child(9) { animation-delay: -.8s; }
@keyframes eq { 0%,100% { height: 12px; } 50% { height: 64px; } }

.f-lock { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 7px; padding: 12px; }
.f-lock span { padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(63,185,80,0.35); background: rgba(63,185,80,0.08); color: #7ee787; animation: lock 4s infinite; }
.f-lock span:nth-child(2) { animation-delay: .4s; } .f-lock span:nth-child(3) { animation-delay: .8s; } .f-lock span:nth-child(4) { animation-delay: 1.2s; } .f-lock span:nth-child(5) { animation-delay: 1.6s; }
@keyframes lock { 0%,100% { opacity: 0.55; } 20% { opacity: 1; box-shadow: 0 0 0 3px rgba(63,185,80,0.15); } 40% { opacity: 0.55; } }

/* ───────────────────────── phones ───────────────────────── */
.phones { position: relative; height: 560px; }
.phone { position: absolute; width: 260px; aspect-ratio: 390 / 844; border-radius: 38px; padding: 10px; background: #0d0f12; border: 1px solid #2c3036; box-shadow: var(--shadow-xl); }
.phone img, .phone-screen { width: 100%; height: 100%; border-radius: 29px; object-fit: cover; object-position: top; overflow: hidden; }
.phone-back { left: 8%; top: 40px; transform: rotate(-7deg); opacity: 0.65; }
.phone-front { right: 12%; top: 0; transform: rotate(3deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: rotate(3deg) translateY(-12px); } }
.phone-screen { background: #1e1b1b; display: flex; flex-direction: column; font-family: var(--sans); }
.ph-top { display: flex; align-items: center; gap: 12px; height: 46px; padding: 18px 14px 0; background: #181818; color: var(--app-fg); font-size: 13px; flex: none; box-sizing: content-box; }
.ph-top b { font-weight: 600; }
.ph-nav { margin-left: auto; color: var(--app-muted); }
.ph-nav em { font-style: normal; font-size: 11px; margin: 0 4px; }
.term-phone { font-size: 10.5px; padding: 10px; }
.ph-keys { display: flex; gap: 5px; padding: 8px 8px 18px; background: #181818; border-top: 1px solid var(--app-border); flex: none; }
.ph-keys span { flex: 1; text-align: center; padding: 6px 0; border-radius: 6px; background: #2a2a2a; color: var(--app-fg); font-size: 10.5px; font-family: var(--mono); }
.ph-keys span.tap { background: var(--accent); color: #fff; }

/* ───────────────────────── gallery ───────────────────────── */
.g-tabs, .it-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.g-tabs button, .it-tabs button {
  padding: 8px 16px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color .2s, background .2s, border-color .2s;
}
.g-tabs button:hover, .it-tabs button:hover { color: var(--text); }
.g-tabs button[aria-selected="true"], .it-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }
.g-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid #2c3036; box-shadow: var(--shadow-xl); background: #111; }
.g-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.02); transition: opacity .6s, transform .8s var(--ease); }
.g-frame img.active { opacity: 1; transform: none; }

/* ───────────────────────── hosted ───────────────────────── */
.hosted { overflow: hidden; }
.hosted::before {
  content: ""; position: absolute; left: 50%; top: 80px; width: 1100px; height: 700px; transform: translateX(-50%); z-index: -1;
  background: radial-gradient(closest-side, rgba(86,212,221,0.10), transparent 70%);
}
.provision {
  max-width: 720px; margin: 0 auto 48px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: end;
}
.prov-steps { display: grid; gap: 8px; font-family: var(--mono); font-size: 13.5px; }
.prov-step { display: flex; align-items: center; gap: 10px; color: var(--text-3); transition: color .3s; }
.prov-step i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; position: relative; transition: border-color .3s, background .3s; }
.prov-step.run { color: var(--text-2); }
.prov-step.run i { border-color: var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; }
.prov-step.done { color: var(--text); }
.prov-step.done i { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%230a0c0f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.prov-host { color: var(--cyan); background: transparent !important; }
.prov-meter { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: #1e242b; overflow: hidden; }
.prov-meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--cyan)); transition: width .4s linear; }
.prov-time { grid-row: 1; grid-column: 2; font-family: var(--mono); font-size: 34px; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }

.compare { margin: 20px auto 0; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.compare th, .compare td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); font-weight: 600; }
.compare th:last-child { color: var(--cyan); }
.compare td:first-child { color: var(--text); font-weight: 500; width: 22%; }
.compare td { color: var(--text-2); }
.compare td.same { text-align: center; color: #7ee787; }

.soon-badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; padding: 5px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); background: rgba(86,212,221,0.08); border: 1px solid rgba(86,212,221,0.3);
}
.soon-dot { background: var(--cyan); animation: soon 2s ease-in-out infinite; }
@keyframes soon { 50% { box-shadow: 0 0 0 5px rgba(86,212,221,0.15); } }
.soon-inline { font-size: 10.5px; letter-spacing: 0.06em; padding: 1px 6px; margin-left: 6px; border-radius: 5px; border: 1px solid rgba(86,212,221,0.35); vertical-align: 1px; }

.notify {
  display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; margin: -16px auto 0; padding: 6px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s;
}
.notify:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.notify input {
  flex: 1 1 200px; min-width: 0; height: 46px; padding: 0 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); font: inherit; font-size: 16px; outline: none;
}
.notify input::placeholder { color: var(--text-3); }
.notify .btn { height: 46px; padding-inline: 22px; }
.notify-msg { flex-basis: 100%; margin: 2px 8px 6px; font-size: 14px; }
.notify-msg:empty { display: none; }
.notify-msg.ok { color: #7ee787; } .notify-msg.err { color: #ffb454; }
.notify-msg a { text-decoration: underline; text-underline-offset: 2px; }
.notify.done input, .notify.done .btn { display: none; }
.notify-fine { text-align: center; color: var(--text-3); font-size: 13.5px; margin: 14px 0 0; }

.hosted-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 64px; align-items: stretch; }
.hosted-grid .provision { margin: 0; max-width: none; }
.hosted-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hosted-perks li { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.hosted-perks b { font-size: 15.5px; letter-spacing: -0.01em; }
.hosted-perks span { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ───────────────────────── install tabs ───────────────────────── */
.install-tabs { position: relative; background: #0f1215; border: 1px solid #2c3036; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-xl); }
.it-tabs { justify-content: flex-start; margin-bottom: 12px; padding-right: 70px; }
.it-tabs button { padding: 6px 12px; font-size: 13px; }
.it-panels pre { display: none; margin: 0; padding: 16px; border-radius: 10px; background: #15181c; border: 1px solid var(--line); overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--app-fg); min-height: 240px; }
.it-panels pre.active { display: block; animation: fade .35s; }
.it-panels .c { color: #6f7a86; } .it-panels .p { color: var(--green); user-select: none; }
.it-panels .ok { color: var(--green); } .it-panels .k { color: var(--cyan); font-weight: 700; } .it-panels .u { color: var(--green); text-decoration: underline; }
.it-panels .w { color: var(--yellow); }
.it-copy { position: absolute; top: 16px; right: 16px; }

/* ───────────────────────── faq ───────────────────────── */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; color: var(--text-3); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text-2); font-size: 15px; }

/* ───────────────────────── final ───────────────────────── */
.final { padding: 60px 0 120px; }
.final-inner {
  text-align: center; padding: 72px 24px; border-radius: 24px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(47,140,255,0.22), transparent 60%), var(--surface);
  border: 1px solid var(--line-strong);
}
.final-inner p { color: var(--text-2); font-size: 18px; margin: 14px 0 0; }
.hero-ctas.center { justify-content: center; }

/* ───────────────────────── footer ───────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 32px 0 48px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a { color: var(--text-2); font-size: 14px; }
.footer nav a:hover { color: var(--text); }
.fine { margin: 0 0 0 auto; color: var(--text-3); font-size: 13px; }

/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .split, .agents-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split-rev .split-copy { order: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hosted-grid { grid-template-columns: minmax(0, 1fr); }
  .app { grid-template-columns: 200px 1fr; }
}
@media (max-width: 720px) {
  .gh-link span, .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .hero { padding-top: 44px; }
  .hero-demo-wrap { margin-top: 44px; }
  .install-chip { width: 100%; }
  .install-chip code { flex: 1; text-align: left; }
  .app-panes { grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; }
  .app-panes .pane { grid-column: 1 !important; grid-row: 1 !important; }
  .app-panes .pane:not(.focus) { display: none; }
  .app { grid-template-columns: 1fr; height: 440px; }
  .app-side { display: none; }
  .hide-sm { display: none; }
  .term { font-size: 11px; }
  .section { padding: 84px 0; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .arch-link { width: 14px; }
  .arch-node small { display: none; }
  .arch-node span { font-size: 11px; white-space: normal; }
  .access-demo .mini-window { width: 100%; }
  .access-panel { width: 100%; }
  .hosted-perks { grid-template-columns: minmax(0, 1fr); }
  .phones { height: 480px; }
  .phone { width: 210px; }
  .phone-back { display: none; }
  .phone-front { right: 50%; margin-right: -105px; }
  .provision { grid-template-columns: minmax(0, 1fr); }
  .prov-time { grid-row: auto; grid-column: auto; font-size: 26px; }
  .fine { margin-left: 0; }
  .toast-stack { width: 240px; }
  .win-url { position: static; transform: none; flex: 1; min-width: 0; max-width: none; margin-left: 6px; }
  .compare { overflow: visible; }
  .compare table { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: grid; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare td { display: block; padding: 0; border: 0; width: auto !important; }
  .compare td[data-label]::before { content: attr(data-label) ": "; color: var(--text-3); }
  .compare td[data-label="Hosted"]::before { color: var(--cyan); }
  .compare td.same { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .app-window { transform: none; opacity: 1; }
}

/* ───────────────────────── 404 ───────────────────────── */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; }
.notfound .term { flex: none; max-width: 100%; background: var(--app-pane); border: 1px solid #2c3036; border-radius: 12px; padding: 16px 20px; text-align: left; white-space: pre-wrap; }
.notfound h1 { font-size: 72px; font-weight: 800; }
.notfound p { margin: 0; color: var(--text-2); }
