/* Swoop website
   Light: pale sky. Dark: indigo/violet night. One system-blue accent. */

/* ───────────── Tokens ───────────── */
:root {
  --bg: #eef4fc;
  --wash-1: rgba(118, 168, 255, 0.34);
  --wash-2: rgba(168, 156, 255, 0.20);
  --wash-3: rgba(132, 206, 255, 0.24);
  --surface: rgba(255, 255, 255, 0.62);
  --surface-2: rgba(255, 255, 255, 0.88);
  --surface-raised: #ffffff;
  --line: rgba(18, 38, 84, 0.09);
  --line-strong: rgba(18, 38, 84, 0.15);
  --text: #0c1222;
  --text-2: #3d485d;
  --text-3: #5b667c;
  --accent: #0071e3;
  --accent-text: #0062c4;
  --accent-soft: rgba(0, 113, 227, 0.10);
  --on-accent: #ffffff;
  --nav-bg: rgba(246, 250, 255, 0.70);
  --menu-bg: #f8fbff;
  --shadow: 0 1px 2px rgba(16, 30, 70, 0.05), 0 14px 34px -16px rgba(16, 30, 70, 0.20);
  --shadow-lg: 0 50px 100px -40px rgba(24, 48, 120, 0.42), 0 16px 36px -18px rgba(24, 48, 120, 0.26);
  --glow-1: rgba(80, 140, 255, 0.40);
  --glow-2: rgba(150, 120, 255, 0.28);
  --feather-fill: rgba(110, 130, 250, 0.07);
  --feather-line: rgba(88, 108, 220, 0.26);
  --feather-quill: rgba(88, 108, 220, 0.42);
  --band: rgba(255, 255, 255, 0.42);
  --scrim: rgba(10, 14, 32, 0.66);
  --seg-head: #0b3f9e;
  --seg-glow: none;

  --term-bg: #0f1024;
  --term-line: rgba(255, 255, 255, 0.08);
  --term-text: #e4e4f4;
  --term-dim: #8b8fb3;
  --term-prompt: #7fa8ff;
  --term-key: #9cc0ff;
  --term-str: #c9b3ff;

  --radius: 24px;
  --radius-sm: 14px;
  --max: 1200px;
  --gutter: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e22;
    --wash-1: rgba(104, 82, 226, 0.30);
    --wash-2: rgba(44, 72, 196, 0.26);
    --wash-3: rgba(124, 92, 255, 0.13);
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.085);
    --surface-raised: #1d1b38;
    --line: rgba(255, 255, 255, 0.085);
    --line-strong: rgba(255, 255, 255, 0.15);
    --text: #f3f2fb;
    --text-2: #bcb9d6;
    --text-3: #9a97ba;
    --accent: #0071e3;
    --accent-text: #62b0ff;
    --accent-soft: rgba(10, 132, 255, 0.16);
    --nav-bg: rgba(22, 20, 46, 0.66);
    --menu-bg: #1c1a38;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 18px 40px -20px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 60px 120px -40px rgba(0, 0, 0, 0.75), 0 18px 40px -18px rgba(0, 0, 0, 0.55);
    --glow-1: rgba(76, 112, 255, 0.36);
    --glow-2: rgba(150, 100, 255, 0.30);
    --feather-fill: rgba(150, 130, 255, 0.06);
    --feather-line: rgba(172, 156, 255, 0.22);
    --feather-quill: rgba(172, 156, 255, 0.34);
    --band: rgba(255, 255, 255, 0.025);
    --scrim: rgba(6, 5, 16, 0.76);
    --seg-head: #ffffff;
    --seg-glow: 0 0 6px 1px rgba(160, 200, 255, 0.9);
    --term-bg: #0b0a1a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0f0e22;
  --wash-1: rgba(104, 82, 226, 0.30);
  --wash-2: rgba(44, 72, 196, 0.26);
  --wash-3: rgba(124, 92, 255, 0.13);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.085);
  --surface-raised: #1d1b38;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f3f2fb;
  --text-2: #bcb9d6;
  --text-3: #9a97ba;
  --accent: #0071e3;
  --accent-text: #62b0ff;
  --accent-soft: rgba(10, 132, 255, 0.16);
  --nav-bg: rgba(22, 20, 46, 0.66);
  --menu-bg: #1c1a38;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 18px 40px -20px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 60px 120px -40px rgba(0, 0, 0, 0.75), 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  --glow-1: rgba(76, 112, 255, 0.36);
  --glow-2: rgba(150, 100, 255, 0.30);
  --feather-fill: rgba(150, 130, 255, 0.06);
  --feather-line: rgba(172, 156, 255, 0.22);
  --feather-quill: rgba(172, 156, 255, 0.34);
  --band: rgba(255, 255, 255, 0.025);
  --scrim: rgba(6, 5, 16, 0.76);
  --seg-head: #ffffff;
  --seg-glow: 0 0 6px 1px rgba(160, 200, 255, 0.9);
  --term-bg: #0b0a1a;
  color-scheme: dark;
}

@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1000px) { :root { --gutter: 32px; } }

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
@supports (overflow: clip) { body { overflow-x: clip; } }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 46% at 12% -4%, var(--wash-1), transparent 72%),
    radial-gradient(46% 40% at 92% 6%, var(--wash-2), transparent 72%),
    radial-gradient(70% 50% at 50% 108%, var(--wash-3), transparent 72%);
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code, kbd, pre { font-family: var(--mono); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2.5px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 10px;
}

.ic { width: 20px; height: 20px; flex: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.skip:focus { top: 16px; text-decoration: none; }

.wrap { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.wrap.narrow { --max: 820px; }

/* Type roles */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-text);
}
h2 {
  font-size: clamp(34px, 5.2vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 750;
  text-wrap: balance;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.accent-text { color: var(--accent-text); }
.note { font-size: 14.5px; color: var(--text-3); line-height: 1.55; }
.note.center { text-align: center; max-width: 680px; margin: 28px auto 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 24px -10px rgba(0, 113, 227, 0.7);
}
.btn-primary:hover { background: #0a78ec; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 30px -10px rgba(0, 113, 227, 0.8); }
.btn-glass {
  background: var(--surface-2); color: var(--text); border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.btn-glass:hover { box-shadow: var(--shadow); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-lg .ic { width: 21px; height: 21px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14.5px; gap: 7px; }
.btn-sm .ic { width: 17px; height: 17px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid transparent; background: transparent; color: var(--text-2);
  cursor: pointer; transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ───────────── Navigation ───────────── */
.nav {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav-bar {
  position: relative;
  pointer-events: auto;
  max-width: 1080px; margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 8px 28px -18px rgba(16, 30, 70, 0.35);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled .nav-bar { border-color: var(--line-strong); box-shadow: var(--shadow); }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; }
.mark {
  display: inline-grid; place-items: center; flex: none; border-radius: 30%; color: #fff;
  background: linear-gradient(180deg, #3b3699, #1f1c57);
  box-shadow: inset 0 0 0 0.75px rgba(255, 255, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 4px 12px rgba(46, 42, 126, 0.28);
}
.mark svg { width: 70%; height: 70%; }
.nav-links { list-style: none; display: flex; gap: 2px; margin: 0 auto; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 999px;
  color: var(--text-2); font-size: 14.5px; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.theme-toggle .ic-sun { display: none; }
.menu-toggle { display: none; }
.menu-toggle .ic-shut { display: none; }
.nav.open .menu-toggle .ic-open { display: none; }
.nav.open .menu-toggle .ic-shut { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ic-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

@media (max-width: 899px) {
  .menu-toggle { display: inline-grid; }
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 8px;
    border-radius: 22px; background: var(--menu-bg);
    border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; border-radius: 14px; }
  .nav-actions { margin-left: auto; }
  .nav-links + .nav-actions { margin-left: auto; }
}
@media (max-width: 380px) {
  .nav-bar .btn-sm span { display: none; }
  .nav-bar .btn-sm { width: 36px; padding: 0; }
}

/* ───────────── Hero ───────────── */
.hero { position: relative; padding-top: clamp(116px, 15vw, 164px); isolation: isolate; overflow-x: clip; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-icon {
  width: clamp(92px, 11vw, 124px); height: auto;
  filter: drop-shadow(0 18px 30px rgba(10, 60, 110, 0.35));
  margin-bottom: 22px;
}
.hero-label {
  padding: 6px 13px 6px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-2); letter-spacing: 0.08em; font-size: 12px;
  margin-bottom: 26px;
}
.hero-label .dot { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.18); }
.hero h1 {
  font-size: clamp(50px, 9.2vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
}
.hero .lede { max-width: 640px; margin-top: 26px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.fine { margin-top: 18px; font-size: 13.5px; color: var(--text-3); }

/* Wing motif */
.wing {
  position: absolute; z-index: -1; left: 0; right: 0; top: clamp(40px, 5vw, 64px);
  display: flex; justify-content: center; gap: clamp(60px, 9vw, 150px);
  pointer-events: none;
  opacity: 0.85;
}
.wing svg { width: min(30vw, 400px); height: auto; overflow: visible; }
.wing-l { transform-origin: 93% 95%; }
.wing-r { transform-origin: 7% 95%; }
.js .wing-l { animation: unfold-l 1.6s var(--ease) both; }
.js .wing-r { animation: unfold-r 1.6s var(--ease) both; }
@keyframes unfold-l { from { opacity: 0; transform: rotate(22deg) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes unfold-r { from { opacity: 0; transform: rotate(-22deg) scale(0.92); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .wing { top: 58px; gap: 16vw; opacity: 0.7; }
  .wing svg { width: 38vw; }
}

/* Hero window */
.hero-stage { position: relative; margin-top: clamp(56px, 7vw, 84px); }
.window-glow {
  position: absolute; inset: 8% 6% -4%; z-index: -1;
  background:
    radial-gradient(50% 60% at 30% 50%, var(--glow-1), transparent 70%),
    radial-gradient(50% 60% at 72% 46%, var(--glow-2), transparent 70%);
  filter: blur(50px);
  opacity: 0.9;
}
.window {
  margin: 0;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-lg);
  background: transparent;
  overflow: hidden;
}
.window img { width: 100%; }
.hero-window { max-width: 1100px; margin-inline: auto; border-radius: 14px; }
.js .hero-window { animation: rise 1.2s 0.15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(0.985); } to { opacity: 1; transform: none; } }

.facts {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(48px, 6vw, 72px);
  max-width: 980px;
}
.facts li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 12px; }
.facts li + li { border-left: 1px solid var(--line-strong); }
.facts strong { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.03em; font-weight: 750; }
.facts span { font-size: 14px; color: var(--text-3); }
@media (max-width: 640px) {
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .facts li + li { border-left: 0; }
  .facts li:nth-child(even) { border-left: 1px solid var(--line-strong); }
}

/* ───────────── Sections ───────────── */
.section { padding-block: clamp(84px, 11vw, 150px) 0; }
.section-head { text-align: center; max-width: 840px; margin: 0 auto clamp(40px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.section-head .lede { max-width: 640px; }

/* Cards */
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 20px; letter-spacing: -0.02em; font-weight: 680; margin: 18px 0 8px; }
.card p { color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.card-icon {
  flex: none;
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text);
}
.card-icon .ic { width: 22px; height: 22px; }

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-wide { grid-column: span 2; }
@media (max-width: 999px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .card-wide { grid-column: auto; } .card { padding: 22px; } }

.segbar { margin-top: 26px; }
.segbar-track {
  position: relative; height: 12px; border-radius: 6px; overflow: hidden;
  background: #2f86ff;
}
.segbar-track.live { background: var(--line-strong); }
.segbar-track .fill {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  background: #2f86ff;
  will-change: width;
}
.segbar-track .head {
  position: absolute; top: 1px; bottom: 1px; width: 2px; margin-left: -1px; border-radius: 1px;
  background: var(--seg-head); opacity: 0.95; box-shadow: var(--seg-glow);
  transition: opacity 0.3s var(--ease);
}
.segbar-track .head.idle { opacity: 0; }
.segbar-track .flash {
  position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px;
  background: rgba(255, 255, 255, 0.95); border-radius: 2px;
  animation: seg-split 0.7s var(--ease) forwards;
}
@keyframes seg-split { from { opacity: 1; transform: scaleY(1.6); } to { opacity: 0; transform: scaleY(1); } }
.segbar-track.done { transition: opacity 0.5s var(--ease); }
.segbar-track.fade { opacity: 0.35; }
.segbar-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.segbar-meta [data-segbar-state].ok { color: #34c759; font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.chips li {
  padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 550;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
}

.modes { list-style: none; display: grid; gap: 6px; margin-top: 16px; }
.modes li {
  display: flex; flex-direction: column; padding: 9px 12px; border-radius: 12px;
  border: 1px solid transparent;
}
.modes li strong { font-size: 14.5px; font-weight: 650; }
.modes li span { font-size: 13px; color: var(--text-3); }
.modes li.on { background: var(--accent-soft); border-color: var(--line); position: relative; }
.modes li.on::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: var(--accent);
  -webkit-mask: radial-gradient(circle, #000 64%, transparent 66%);
}
.modes li.on::before {
  content: ""; position: absolute; right: 18px; top: 50%; width: 5px; height: 9px; margin-top: -6px; z-index: 1;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.card-privacy .privacy-row { display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.zero { display: flex; flex-direction: column; align-items: center; text-align: center; flex: none; padding-right: 8px; }
.zero span { font-size: clamp(84px, 9vw, 128px); font-weight: 800; line-height: 0.9; letter-spacing: -0.06em; color: var(--accent-text); }
.zero small { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
@media (max-width: 640px) { .card-privacy .privacy-row { flex-direction: column; align-items: flex-start; } .zero { align-items: flex-start; } }

/* ───────────── Tour ───────────── */
.dive {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; gap: clamp(32px, 6vw, 80px);
}
.dive + .dive { margin-top: clamp(96px, 12vw, 160px); }
.dive-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.dive-flip .dive-copy { order: 2; }
.dive-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.dive-copy h3 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.032em; font-weight: 750; text-wrap: balance; }
.dive-copy > p:not(.label) { color: var(--text-2); font-size: 17.5px; }
.dive-media { position: relative; }
.dive-media::before {
  content: ""; position: absolute; inset: 6% 4%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, var(--glow-1), transparent 72%);
  filter: blur(40px); opacity: 0.55;
}
.float { position: absolute; box-shadow: 0 0 0 1px var(--line-strong), 0 40px 80px -30px rgba(0, 0, 0, 0.5); }
.float-menubar { width: 25%; right: -3%; bottom: -12%; border-radius: 14px; }
.float-add { width: 30%; left: -5%; bottom: -14%; border-radius: 16px; }

.ticks { list-style: none; display: grid; gap: 10px; margin-top: 4px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--accent-soft);
}
.ticks li::after {
  content: ""; position: absolute; left: 8px; top: 6px; width: 5px; height: 10px;
  border: solid var(--accent-text); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.seg-control {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; margin-top: 8px;
  border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.seg-control button {
  border: 0; background: transparent; cursor: pointer;
  padding: 7px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 550; color: var(--text-2);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.seg-control button:hover { color: var(--text); }
.seg-control button[aria-selected="true"] { background: var(--surface-raised); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.settings-window picture { transition: opacity 0.25s var(--ease); }
.settings-window.swapping picture { opacity: 0.2; }

@media (max-width: 860px) {
  .dive { grid-template-columns: minmax(0, 1fr); }
  .dive-flip { grid-template-columns: minmax(0, 1fr); }
  .dive-flip .dive-copy { order: 0; }
  .dive-media { margin-top: 8px; }
  .float-menubar { width: 30%; right: -2%; bottom: -10%; }
  .float-add { width: 34%; left: auto; right: -2%; bottom: -12%; }
}
@media (max-width: 520px) {
  .float { display: none; }
  .seg-control { display: flex; width: 100%; flex-wrap: nowrap; }
  .seg-control button { flex: 1; padding: 7px 4px; font-size: 13.5px; }
}

/* ───────────── Extension ───────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-copy { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.browsers { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.browsers li {
  padding: 7px 15px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
}
kbd {
  display: inline-block; min-width: 24px; padding: 1px 6px; margin: 0 1px;
  border-radius: 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  background: var(--surface-2); font-family: var(--font); font-size: 14px; line-height: 1.5; text-align: center; color: var(--text);
}
.ext-stage {
  position: relative; display: grid; place-items: center;
  min-height: 460px; padding: clamp(28px, 5vw, 56px);
  border-radius: 32px; background: var(--surface); border: 1px solid var(--line);
  overflow: hidden;
}
.ext-stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 50% 40%, var(--glow-1), transparent 70%);
  opacity: 0.6;
}
.ext-shot { margin: 0; max-width: 400px; width: 100%; }
.ext-shot img { width: 100%; border-radius: 16px; box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-lg); }
.ext-fallback { display: none; width: 100%; max-width: 380px; }
.ext-stage.no-shot .ext-fallback { display: block; }
.ext-card {
  border-radius: 18px; padding: 16px; background: var(--surface-raised);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-lg);
  display: grid; gap: 8px;
}
.ext-card-head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding-bottom: 6px; }
.ext-card-head em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; color: #1f9d4a; background: rgba(52, 199, 89, 0.14); padding: 2px 9px; border-radius: 999px; }
.ext-sub { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
.ext-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.ext-type { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }
.ext-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ext-go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; }
.ext-go .ic { width: 15px; height: 15px; }
.ext-row.muted { opacity: 0.7; }
.ext-tag { font-size: 12px; color: var(--text-3); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .ext-stage { min-height: 0; } }

/* ───────────── Remote ───────────── */
.remote-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; }
.remote-cards { display: grid; gap: 16px; }
.card.mini { display: flex; gap: 16px; padding: 22px; align-items: flex-start; }
.card.mini h3 { margin: 6px 0 6px; font-size: 18px; }
.pair-code { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--mono); }
.pair-code span {
  padding: 6px 12px; border-radius: 10px; font-size: 19px; font-weight: 700; letter-spacing: 0.18em;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text);
}
.pair-code span + span::before { content: ""; }
.pair-code span:first-child::after { content: none; }

.term {
  display: flex; flex-direction: column; min-width: 0;
  border-radius: 20px; background: var(--term-bg); color: var(--term-text);
  border: 1px solid var(--term-line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--term-line); background: rgba(255, 255, 255, 0.03); }
.lights { display: flex; gap: 7px; flex: none; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.term-tabs { display: flex; gap: 2px; margin-inline: auto; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.term-tabs button {
  border: 0; background: transparent; color: var(--term-dim); cursor: pointer;
  padding: 5px 12px; border-radius: 7px; font-size: 13.5px; font-weight: 550;
}
.term-tabs button:hover { color: var(--term-text); }
.term-tabs button[aria-selected="true"] { background: rgba(255, 255, 255, 0.12); color: #fff; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  border: 1px solid var(--term-line); background: rgba(255, 255, 255, 0.05); color: var(--term-text);
  padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 550; cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.12); }
.copy-btn .ic { width: 15px; height: 15px; }
.copy-btn.copied { color: #7ee2a0; }
.term :focus-visible { outline-color: #8ab8ff; }
.term-pane { flex: 1; min-width: 0; }
.term pre { margin: 0; padding: 22px 24px; overflow-x: auto; font-size: 13.5px; line-height: 1.75; tab-size: 2; }
.term code { font-family: var(--mono); }
.term .c { color: var(--term-dim); }
.term .p::before { content: "$ "; color: var(--term-prompt); user-select: none; -webkit-user-select: none; }
.term .k { color: var(--term-key); }
.term .s { color: var(--term-str); }
.term-foot { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--term-line); font-size: 13px; overflow-x: auto; }
.term-foot code { flex: 1; white-space: nowrap; }
@media (max-width: 860px) { .remote-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .lights { display: none; }
  .term-tabs { margin-inline: 0; }
  .copy-btn { margin-left: auto; }
  .term-bar .copy-btn .copy-label { display: none; }
  .term-bar .copy-btn { padding: 7px 9px; }
  .term pre { padding: 18px 16px; font-size: 12.5px; }
}

/* ───────────── Security ───────────── */
.security .wrap { position: relative; }
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.sec { padding-top: 22px; border-top: 1px solid var(--line-strong); }
.sec .ic { width: 26px; height: 26px; color: var(--accent-text); }
.sec h3 { font-size: 19px; letter-spacing: -0.02em; margin: 16px 0 8px; font-weight: 680; }
.sec p { color: var(--text-2); font-size: 15.5px; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ───────────── FAQ ───────────── */
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.faq details[open] { background: var(--surface-2); border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 60px 20px 22px; font-weight: 620; font-size: 17px; letter-spacing: -0.01em;
  border-radius: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 2px; margin-top: -1px;
  border-radius: 2px; background: var(--text-3); transition: transform 0.25s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details > div { padding: 0 22px 22px; color: var(--text-2); display: grid; gap: 12px; font-size: 16px; }
.faq ol { padding-left: 22px; display: grid; gap: 4px; }
.faq code { font-size: 13.5px; padding: 2px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--text); word-break: break-word; }

/* ───────────── Final CTA ───────────── */
.final { padding-bottom: clamp(84px, 10vw, 130px); }
.final-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: 36px; background: var(--surface); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}
.final-card::before {
  content: ""; position: absolute; inset: -20% 10% auto; height: 80%; z-index: -2;
  background: radial-gradient(50% 50% at 50% 50%, var(--glow-1), transparent 70%);
  filter: blur(30px); opacity: 0.7;
}
.final-wing { position: absolute; z-index: -1; width: min(620px, 80%); right: -8%; bottom: -18%; opacity: 0.9; }
.final-icon { width: 96px; filter: drop-shadow(0 16px 26px rgba(10, 60, 110, 0.3)); }
.final-card .lede { max-width: 520px; }
.final-card .cta-row { margin-top: 12px; }

/* ───────────── Footer ───────────── */
.footer { border-top: 1px solid var(--line); padding-block: 40px 48px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .mark { width: 32px; height: 32px; }
.footer-brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer-brand span { font-size: 14px; color: var(--text-3); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.footer-links a { color: var(--text-2); font-size: 14.5px; }
.footer-fine { grid-column: 1 / -1; font-size: 13px; color: var(--text-3); }
@media (max-width: 700px) { .footer-inner { grid-template-columns: minmax(0, 1fr); } .footer-links { justify-content: flex-start; } }

/* ───────────── Reveal ───────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(3n + 2) { transition-delay: 0.06s; }
.bento .reveal:nth-child(3n) { transition-delay: 0.12s; }
.sec-grid .reveal:nth-child(3n + 2) { transition-delay: 0.06s; }
.sec-grid .reveal:nth-child(3n) { transition-delay: 0.12s; }

@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 { opacity: 1; transform: none; }
  .btn:hover { transform: none; }
}

@media print {
  .nav, .wing { display: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
