/* Areion — website styles.
   Tokens are copied from 03 - App/Design/tokens.json (semantic colour, radius, spacing, shadow, glass).
   Type is Uni Neue (brand typeface), loaded separately by /assets/fonts/fonts.css: Black 900 for display,
   Bold 700 for heads and buttons, Book 400 for body. Without that file the site falls back to the system font. */


:root {
  color-scheme: light dark;
  /* surfaces */
  --bg-window: #f3f6fa; --bg-content: #ffffff; --bg-raised: #ffffff; --bg-sunken: #e8edf3;
  --glass: rgba(248,251,255,0.62); --glass-strong: rgba(252,253,255,0.84);
  --glass-highlight: rgba(255,255,255,0.80); --glass-edge: rgba(12,32,66,0.12);
  --line: rgba(12,32,66,0.10); --line-strong: rgba(12,32,66,0.20);
  --fill-control: rgba(12,32,66,0.06); --fill-hover: rgba(12,32,66,0.10); --fill-pressed: rgba(12,32,66,0.16);
  /* ink */
  --ink: #0f1828; --ink-secondary: #485262; --ink-tertiary: #5d6774; --ink-inverse: #ffffff;
  /* accent */
  --accent: #0175d3; --accent-hover: #0167bd; --accent-text: #0167bd; --accent-soft: #e3f2fd; --on-accent: #ffffff;
  --focus-ring: #0175d3; --selection: #bfe3fa;
  /* agent + status */
  --agent: #0a999d; --agent-soft: rgba(10,153,157,0.14); --on-agent: #001539;
  --success: #0a7e3a; --success-soft: rgba(10,126,58,0.12);
  --warning: #9d6304; --warning-soft: rgba(157,99,4,0.12);
  --danger: #c53732; --danger-soft: rgba(197,55,50,0.10);
  /* brand */
  --brand-abyss: #001539; --brand-navy: #01306b; --brand-ocean: #0175d3; --brand-spray: #3dfbf3; --brand-foam: #cff4ff;
  --tide-50: #e9faff; --tide-100: #cff4ff; --tide-200: #aee4fa; --tide-300: #83cdf4; --tide-400: #55afee; --tide-500: #2a90e0;
  --tide-600: #0175d3; --tide-700: #015aac; --tide-800: #004187; --tide-900: #01306b; --tide-950: #001539;
  --spray-200: #88fef6; --spray-300: #3dfbf3; --spray-400: #02e7e3; --spray-500: #07cac9; --spray-600: #03a7aa; --spray-700: #06858a;
  --mist-100: #f0f4f9; --mist-200: #e2e7eb; --mist-300: #cfd5dc; --mist-400: #b2b8bf; --mist-800: #31363c; --mist-900: #1d2023; --mist-950: #0d1013;
  /* shadows */
  --shadow-window: 0 24px 64px rgba(4,24,60,0.26), 0 2px 8px rgba(4,24,60,0.10), 0 0 0 0.5px rgba(4,24,60,0.20);
  --shadow-popover: 0 14px 40px rgba(4,24,60,0.18), 0 0 0 0.5px rgba(4,24,60,0.14);
  --shadow-glass: inset 0 1px 0 rgba(255,255,255,0.80), inset 0 -1px 0 rgba(255,255,255,0.20), 0 1px 2px rgba(4,24,60,0.08), 0 8px 24px rgba(4,24,60,0.08);
  --shadow-control: 0 1px 2px rgba(4,24,60,0.14), 0 0 0 0.5px rgba(4,24,60,0.16);
  --shadow-agent: 0 0 0 1.5px rgba(10,153,157,0.90), 0 0 22px 2px rgba(10,153,157,0.35);
  /* space, radius, motion */
  --space-xs: 4px; --space-sm: 8px; --space-md: 12px; --space-lg: 16px; --space-xl: 24px; --space-2xl: 32px; --space-3xl: 48px;
  --radius-xs: 4px; --radius-sm: 6px; --radius-md: 12px; --radius-lg: 18px; --radius-xl: 26px; --radius-capsule: 999px;
  --blur-glass: 28px;
  --ease-tide: cubic-bezier(.22,.9,.28,1); --ease-spring: cubic-bezier(.32,1.4,.5,1);
  /* site */
  --font-brand: "Uni Neue", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, monospace;
  --page: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --hero-bg: linear-gradient(180deg, var(--brand-foam), #ffffff 78%);
  --hero-bg: linear-gradient(in oklch 180deg, var(--brand-foam), #ffffff 78%);
  --mark-a: #01306b; --mark-b: #0175d3; --mark-tip: #02e7e3; --mark-glow: #55afee; --mark-glow-o: .22;
  --wordmark: #01306b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-window: #14171c; --bg-content: #1a1e24; --bg-raised: #232830; --bg-sunken: #0e1115;
    --glass: rgba(28,33,40,0.56); --glass-strong: rgba(36,41,49,0.80);
    --glass-highlight: rgba(255,255,255,0.16); --glass-edge: rgba(0,0,0,0.55);
    --line: rgba(255,255,255,0.09); --line-strong: rgba(255,255,255,0.18);
    --fill-control: rgba(255,255,255,0.08); --fill-hover: rgba(255,255,255,0.13); --fill-pressed: rgba(255,255,255,0.19);
    --ink: #eef3f9; --ink-secondary: #aab4c1; --ink-tertiary: #8d97a4; --ink-inverse: #0f1828;
    --accent-hover: #1b86de; --accent-text: #6cbcf2; --accent-soft: rgba(42,144,224,0.22);
    --focus-ring: #6cbcf2; --selection: #004187;
    --agent: #02e7e3; --agent-soft: rgba(2,231,227,0.16);
    --success: #7fd592; --success-soft: rgba(127,213,146,0.16);
    --warning: #f1be6b; --warning-soft: rgba(241,190,107,0.16);
    --danger: #ff7e77; --danger-soft: rgba(255,126,119,0.15);
    --shadow-window: 0 24px 64px rgba(0,0,0,0.62), 0 2px 8px rgba(0,0,0,0.40), 0 0 0 0.5px rgba(255,255,255,0.14);
    --shadow-popover: 0 14px 40px rgba(0,0,0,0.55), 0 0 0 0.5px rgba(255,255,255,0.12);
    --shadow-glass: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(255,255,255,0.04), 0 1px 2px rgba(0,0,0,0.30), 0 8px 24px rgba(0,0,0,0.30);
    --shadow-control: 0 1px 2px rgba(0,0,0,0.40), 0 0 0 0.5px rgba(255,255,255,0.10);
    --shadow-agent: 0 0 0 1.5px rgba(2,231,227,0.85), 0 0 26px 3px rgba(2,231,227,0.32);
    --hero-bg: radial-gradient(90% 70% at 50% 18%, #004187, transparent 70%), linear-gradient(180deg, #01306b, #001539 50%, var(--bg-content) 92%);
    --mark-a: #0175d3; --mark-b: #3dfbf3; --mark-tip: #e5fffc; --mark-glow: #3dfbf3; --mark-glow-o: .2;
    --wordmark: #cff4ff;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg-content); color: var(--ink);
  font: 400 17px/1.55 var(--font-brand);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
::selection { background: var(--selection); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bg-raised); padding: 8px 14px; border-radius: var(--radius-capsule); box-shadow: var(--shadow-popover); }
.skip:focus { left: 8px; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.label { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--radius-capsule); border: 0;
  font: 700 17px/1 var(--font-brand); letter-spacing: -0.005em; cursor: pointer;
  transition: background-color .16s ease, transform .24s var(--ease-spring), box-shadow .16s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn .ico { width: 20px; height: 20px; stroke-width: 2; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(4,24,60,.18), 0 8px 24px rgba(1,117,211,.28), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--fill-control); color: var(--ink); }
.btn-ghost:hover { background: var(--fill-hover); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; gap: 6px; }
.btn-sm .ico { width: 16px; height: 16px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; transition: background-color .24s ease, box-shadow .24s ease; }
.site-head.is-stuck {
  background: var(--glass-strong); box-shadow: inset 0 -1px 0 var(--line);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.8); backdrop-filter: blur(var(--blur-glass)) saturate(1.8);
}
.head-row { display: flex; align-items: center; gap: var(--space-xl); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--wordmark); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 29px; }
.brand .wordmark { width: 82px; height: auto; fill: currentColor; margin-top: 3px; }
.nav { display: flex; gap: var(--space-xl); margin-left: auto; font-size: 15px; font-weight: 700; }
.nav a { color: var(--ink-secondary); }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) { .nav { display: none; } .head-row .btn-sm { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--hero-bg); overflow: hidden; margin-top: -64px; padding: 64px 0 clamp(56px, 9vw, 112px); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: clamp(24px, 5vw, 56px); }
.morph-wrap { width: clamp(220px, 30vw, 330px); aspect-ratio: 300 / 236; margin-bottom: clamp(4px, 1vw, 12px); }
.morph { width: 100%; height: 100%; overflow: visible; }
.morph .s1 { stop-color: var(--mark-a); } .morph .s2 { stop-color: var(--mark-b); }
.morph [transform] { transform-box: view-box; transform-origin: 0 0; }
.morph .glow { transform-box: fill-box; transform-origin: center; }
.morph #mp, .morph #ms { opacity: 0; }
.morph #ms { stroke: var(--mark-tip); filter: drop-shadow(0 0 4px var(--mark-tip)); }
.morph #glw stop { stop-color: var(--mark-glow); }
.morph .glow-0 { stop-opacity: var(--mark-glow-o); } .morph .glow-1 { stop-opacity: 0; }
.morph .sheen { transform: translateX(760px); }
.morph-wrap.is-play .sheen { animation: sheen .75s cubic-bezier(.5,0,.3,1) 2.55s both; }
.morph-wrap.is-play .glow { animation: glow 1.4s ease-out 1.9s both; }
@keyframes sheen { from { transform: translateX(-260px); } to { transform: translateX(760px); } }
@keyframes glow { from { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 10px; border-radius: var(--radius-capsule);
  background: var(--glass-strong); box-shadow: var(--shadow-control); font-size: 13px; font-weight: 700; color: var(--ink-secondary); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--brand-ocean), var(--brand-spray)); }
.hero h1 { margin-top: var(--space-xl); font-size: clamp(40px, 7.2vw, 80px); line-height: .98; max-width: 15ch; }
.hero .lede { margin-top: var(--space-xl); max-width: 36em; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--ink-secondary); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: var(--space-2xl); }
.cta-meta { font-size: 14px; line-height: 20px; color: var(--ink-tertiary); font-variant-numeric: tabular-nums; }
.cta-meta b { font-weight: 700; color: var(--ink-secondary); }
.cta-note { font-size: 14px; line-height: 20px; color: var(--ink-tertiary); }
.cta-note[hidden] { display: none; }
.hero .stage { margin-top: clamp(40px, 7vw, 72px); width: 100%; }

/* ---------- window mock ---------- */
.switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-capsule); background: var(--fill-control); margin: 0 auto var(--space-lg); }
.switch button { height: 30px; padding: 0 14px; border: 0; border-radius: var(--radius-capsule); background: transparent; color: var(--ink-secondary);
  font: 700 13px/1 var(--font-brand); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background-color .16s, color .16s; }
.switch button .ico { width: 15px; height: 15px; }
.switch button[aria-pressed="true"] { background: var(--bg-raised); color: var(--ink); box-shadow: var(--shadow-control); }
.stage-center { display: flex; flex-direction: column; align-items: center; }

.win {
  --tabs-w: 0px;
  position: relative; width: 100%; max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9.4;
  border-radius: var(--radius-xl); overflow: hidden; background: var(--bg-window);
  box-shadow: var(--shadow-window); text-align: left;
  font: 400 13px/16px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; /* the app UI uses the system font */
  display: grid; grid-template-columns: var(--tabs-w) 1fr; grid-template-rows: 44px 48px 1fr;
  grid-template-areas: "tabs tabs" "tool tool" "side page";
  transition: grid-template-columns .42s var(--ease-tide);
}
.win[data-tabs="side"] { --tabs-w: 220px; grid-template-rows: 0px 48px 1fr; grid-template-areas: "side tabs" "side tool" "side page"; }
.win .lights { position: absolute; left: 18px; top: 16px; display: flex; gap: 8px; z-index: 3; }
.win .lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.18); }
.win .lights i:nth-child(2) { background: #febc2e; } .win .lights i:nth-child(3) { background: #28c840; }

.w-tabs { grid-area: tabs; display: flex; align-items: flex-end; gap: 2px; padding: 0 12px 0 92px; overflow: hidden; }
.w-tab { display: flex; align-items: center; gap: 8px; height: 34px; min-width: 0; flex: 0 1 200px; padding: 0 12px; border-radius: var(--radius-md) var(--radius-md) 0 0; color: var(--ink-secondary); white-space: nowrap; }
.w-tab span { overflow: hidden; text-overflow: ellipsis; }
.w-tab.on { background: var(--bg-content); color: var(--ink); }
.fav { width: 16px; height: 16px; flex: none; border-radius: var(--radius-xs); background: linear-gradient(135deg, var(--tide-500), var(--spray-400)); }
.fav.b { background: linear-gradient(135deg, var(--tide-800), var(--tide-400)); } .fav.c { background: linear-gradient(135deg, #cb6443, #a97f05); } .fav.d { background: linear-gradient(135deg, #8675d4, #3e89d7); }
.w-plus { width: 28px; height: 28px; margin: 0 0 3px 4px; display: grid; place-items: center; color: var(--ink-tertiary); flex: none; }
.w-plus .ico { width: 16px; height: 16px; }

.w-tool { grid-area: tool; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: var(--bg-content); box-shadow: inset 0 -1px 0 var(--line); }
.win[data-tabs="side"] .w-tool { background: var(--bg-content); padding-left: 12px; }
.tb { width: 28px; height: 28px; display: grid; place-items: center; border-radius: var(--radius-capsule); color: var(--ink-secondary); flex: none; position: relative; }
.tb .ico { width: 16px; height: 16px; }
.tb.on { color: var(--accent-text); }
.tb .badge { position: absolute; right: -3px; top: 1px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--success); color: var(--bg-content);
  font: 700 9.5px/15px -apple-system, system-ui, sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.omni { flex: 1; min-width: 0; height: 32px; margin: 0 6px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--radius-capsule);
  background: var(--fill-control); color: var(--ink-secondary); white-space: nowrap; overflow: hidden; }
.omni .ico { width: 14px; height: 14px; }
.omni b { font-weight: 400; color: var(--ink); }

.w-side { grid-area: side; overflow: hidden; padding: 48px 8px 8px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-window); box-shadow: inset -1px 0 0 var(--line); }
.w-side .lbl { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-tertiary); padding: 8px 10px 6px; white-space: nowrap; }
.w-side .w-tab { flex: none; height: 34px; border-radius: var(--radius-sm); }
.w-side .w-tab.on { background: var(--bg-raised); box-shadow: var(--shadow-control); }
.win:not([data-tabs="side"]) .w-side { visibility: hidden; }
.win[data-tabs="side"] .w-tabs { visibility: hidden; }

.w-page { grid-area: page; background: var(--bg-content); overflow: hidden; padding: clamp(14px, 3%, 32px) clamp(16px, 4%, 44px); }
.w-page h4 { margin: 0; font: 800 clamp(15px, 2.2vw, 26px)/1.1 var(--font-brand); letter-spacing: -0.015em; }
.w-page .by { margin: 4px 0 clamp(10px, 2%, 20px); color: var(--ink-tertiary); font-size: 12px; }
.board { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(40px, 7vw, 92px); gap: clamp(6px, 1vw, 12px); }
.board i { border-radius: var(--radius-md); background: var(--g); }
.board i:nth-child(1) { --g: linear-gradient(160deg, #01306b, #0175d3); grid-row: span 2; }
.board i:nth-child(2) { --g: linear-gradient(135deg, #cff4ff, #83cdf4); }
.board i:nth-child(3) { --g: linear-gradient(135deg, #0175d3, #3dfbf3); grid-row: span 2; }
.board i:nth-child(4) { --g: linear-gradient(200deg, #e2e7eb, #b2b8bf); }
.board i:nth-child(5) { --g: linear-gradient(135deg, #001539, #004187); }
.board i:nth-child(6) { --g: linear-gradient(160deg, #88fef6, #07cac9); }
.board i:nth-child(7) { --g: linear-gradient(135deg, #2a90e0, #01306b); }
.board i:nth-child(8) { --g: linear-gradient(135deg, #f0f4f9, #cff4ff); }
@media (prefers-color-scheme: dark) {
  .board i:nth-child(2) { --g: linear-gradient(135deg, #004187, #2a90e0); }
  .board i:nth-child(4) { --g: linear-gradient(200deg, #31363c, #1d2023); }
  .board i:nth-child(8) { --g: linear-gradient(135deg, #1d2023, #01306b); }
}
@media (max-width: 720px) {
  .win { aspect-ratio: 4 / 3.6; }
  .win[data-tabs="side"] { --tabs-w: 128px; }
  .w-tab { flex-basis: 140px; } .w-tab:nth-child(n+3) { display: none; }
  .w-side .w-tab:nth-child(n+3) { display: flex; }
  .w-tool .tb.hide-sm { display: none; }
  .board { grid-template-columns: repeat(3, 1fr); }
  .board i:nth-child(n+7) { display: none; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-alt { background: var(--bg-window); }
.section-head { max-width: 40rem; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: var(--space-md); font-size: clamp(32px, 5vw, 52px); line-height: 1.04; }
.section-head p { margin-top: var(--space-lg); font-size: 19px; color: var(--ink-secondary); }

.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 88px); margin-top: clamp(56px, 8vw, 104px); }
.feature:nth-of-type(even) .f-art { order: -1; }
.f-copy .tile { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px rgba(4,24,60,.18); }
.f-copy .tile .ico { width: 24px; height: 24px; stroke-width: 1.9; }
.tile-shield { background: linear-gradient(135deg, #0a7e3a, #07cac9); }
.tile-capture { background: linear-gradient(135deg, #0175d3, #3dfbf3); }
.tile-agent { background: linear-gradient(135deg, #06858a, #02e7e3); }
.f-copy h3 { margin-top: var(--space-xl); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.06; }
.f-copy p { margin-top: var(--space-lg); color: var(--ink-secondary); font-size: 18px; }
.f-copy ul { margin: var(--space-xl) 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.f-copy li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 16px; line-height: 1.45; }
.f-copy li .ico { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-text); stroke-width: 2.2; }
.f-art { position: relative; border-radius: var(--radius-xl); padding: clamp(24px, 5vw, 56px); display: grid; place-items: center; min-height: 340px; overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, var(--tide-100), transparent 60%), linear-gradient(160deg, var(--mist-100), var(--tide-200)); }
@media (prefers-color-scheme: dark) {
  .f-art { background: radial-gradient(120% 90% at 20% 0%, var(--tide-900), transparent 60%), linear-gradient(160deg, var(--mist-900), var(--mist-950)); }
}
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-of-type(even) .f-art { order: 0; }
  .f-art { min-height: 0; }
}

/* UI vignettes (system font, like the app) */
.ui { font: 400 13px/16px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; color: var(--ink); text-align: left; }
.pop { width: 100%; max-width: 320px; border-radius: var(--radius-lg); padding: var(--space-md); background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.8); backdrop-filter: blur(var(--blur-glass)) saturate(1.8); box-shadow: var(--shadow-popover), inset 0 1px 0 var(--glass-highlight); }
.pop-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; font-weight: 700; }
.pop-head .ico { width: 18px; height: 18px; color: var(--success); }
.pop-head small { margin-left: auto; font-weight: 400; color: var(--ink-tertiary); font-size: 11px; }
.big-num { padding: 4px 4px 12px; display: flex; align-items: baseline; gap: 8px; }
.big-num b { font: 300 44px/1 -apple-system, system-ui, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.big-num span { color: var(--ink-secondary); }
.rows { border-radius: var(--radius-md); background: var(--fill-control); padding: 4px 0; }
.row { display: flex; align-items: center; gap: 8px; padding: 7px 12px; }
.row + .row { box-shadow: inset 0 1px 0 var(--line); }
.row span:last-child { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--ink-secondary); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.toggle-row { display: flex; align-items: center; gap: 8px; padding: 12px 4px 2px; }
.sw { margin-left: auto; width: 38px; height: 22px; border-radius: 11px; background: var(--accent); position: relative; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
.sw::after { content: ""; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-control); }

.sheet { width: 100%; max-width: 360px; border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.8); backdrop-filter: blur(var(--blur-glass)) saturate(1.8); box-shadow: var(--shadow-popover), inset 0 1px 0 var(--glass-highlight); }
.sheet h5 { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; }
.sheet .sub { color: var(--ink-tertiary); font-size: 12px; margin-top: 2px; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0; }
.thumbs i { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--g); position: relative; }
.thumbs i::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 1.5px #fff; -webkit-mask: none; }
.thumbs i:nth-child(5n+1) { --g: linear-gradient(160deg, #01306b, #0175d3); } .thumbs i:nth-child(5n+2) { --g: linear-gradient(135deg, #cff4ff, #83cdf4); }
.thumbs i:nth-child(5n+3) { --g: linear-gradient(135deg, #0175d3, #3dfbf3); } .thumbs i:nth-child(5n+4) { --g: linear-gradient(200deg, #cfd5dc, #8d939a); }
.thumbs i:nth-child(5n) { --g: linear-gradient(135deg, #001539, #2a90e0); }
.file { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--radius-md); background: var(--fill-control); font-family: var(--font-mono); font-size: 12px; color: var(--ink-secondary); }
.file .ico { width: 16px; height: 16px; color: var(--accent-text); }
.ui-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.ui-btn { height: 28px; padding: 0 14px; border-radius: var(--radius-capsule); display: inline-flex; align-items: center; font-weight: 500; background: var(--bg-raised); box-shadow: var(--shadow-control); }
.ui-btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: none; }

.gate { width: 100%; max-width: 360px; border-radius: var(--radius-lg); overflow: hidden; background: var(--glass-strong);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.8); backdrop-filter: blur(var(--blur-glass)) saturate(1.8); box-shadow: var(--shadow-popover), var(--shadow-agent); }
.gate-band { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--warning-soft); color: var(--warning); font-weight: 700; font-size: 12px; }
.gate-band .ico { width: 16px; height: 16px; }
.gate-body { padding: 16px; }
.agent-chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 7px; border-radius: var(--radius-capsule); background: var(--agent-soft); color: var(--ink); font-size: 11px; font-weight: 600; }
.agent-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--agent); box-shadow: 0 0 0 3px var(--agent-soft); }
.gate h5 { margin: 12px 0 0; font-size: 15px; line-height: 20px; font-weight: 700; }
.gate .detail { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--fill-control); color: var(--ink-secondary); font-size: 12px; line-height: 17px; }
.gate .detail b { color: var(--ink); font-weight: 600; }
.stop-hint { margin-top: 12px; color: var(--ink-tertiary); font-size: 11px; }
kbd { font: 500 11px/1 -apple-system, system-ui, sans-serif; padding: 2px 5px; border-radius: var(--radius-xs); background: var(--fill-control); box-shadow: inset 0 -1px 0 var(--line-strong); color: var(--ink-secondary); }

/* ---------- small features grid ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); margin-top: clamp(40px, 6vw, 64px); }
.card { border-radius: var(--radius-lg); padding: var(--space-xl); background: var(--bg-raised); box-shadow: var(--shadow-control); }
.ico-wrap { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.ico-wrap .ico { width: 22px; height: 22px; }
.card h3 { margin-top: var(--space-lg); font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
.card p { margin-top: var(--space-sm); font-size: 15px; line-height: 1.5; color: var(--ink-secondary); }
@media (max-width: 960px) { .grid4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }

/* ---------- install ---------- */
.steps { list-style: none; margin: clamp(40px, 6vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); counter-reset: step; }
.step { counter-increment: step; border-radius: var(--radius-lg); padding: var(--space-xl); background: var(--bg-raised); box-shadow: var(--shadow-control); display: flex; flex-direction: column; }
.step::before { content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-navy), var(--brand-ocean)); color: #fff; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.step h3 { margin-top: var(--space-lg); font-size: 19px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.step p { margin-top: var(--space-sm); font-size: 15px; line-height: 1.5; color: var(--ink-secondary); }
.step .shot { margin-top: auto; padding-top: var(--space-lg); }
.chip-ui { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-capsule); background: var(--bg-sunken); color: var(--ink);
  font: 500 12px/1 -apple-system, system-ui, sans-serif; white-space: nowrap; }
.chip-ui.accent { background: var(--accent); color: #fff; }
.path { font-weight: 700; color: var(--ink); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.why { margin-top: var(--space-lg); display: flex; gap: var(--space-md); align-items: flex-start; padding: var(--space-lg) var(--space-xl); border-radius: var(--radius-lg);
  background: var(--accent-soft); color: var(--ink); font-size: 15px; line-height: 1.5; }
.why .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--accent-text); }

.import { margin-top: var(--space-lg); display: grid; grid-template-columns: auto 1fr; gap: var(--space-lg); align-items: start; padding: var(--space-xl); border-radius: var(--radius-lg); background: var(--bg-raised); box-shadow: var(--shadow-control); }
.import h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.import p { margin-top: 6px; font-size: 15px; color: var(--ink-secondary); }

/* ---------- requirements ---------- */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 6vw, 64px); }
.cols3 h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.cols3 ul { margin: var(--space-md) 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cols3 li { display: flex; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-secondary); }
.cols3 li .ico { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.cols3 .yes .ico { color: var(--success); } .cols3 .not .ico { color: var(--ink-tertiary); }
.cols3 p { margin-top: var(--space-md); font-size: 16px; line-height: 1.5; color: var(--ink-secondary); }
code { font-family: var(--font-mono); font-size: 13px; padding: 2px 6px; border-radius: var(--radius-xs); background: var(--bg-sunken); color: var(--ink); word-break: break-all; }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; } }

/* ---------- final band ---------- */
.band { position: relative; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(70% 90% at 80% 0%, rgba(61,251,243,.28), transparent 60%), linear-gradient(160deg, #01306b, #0175d3);
  background: radial-gradient(70% 90% at 80% 0%, rgba(61,251,243,.28), transparent 60%), linear-gradient(in oklch 160deg, #01306b, #0175d3); }
.band .wrap { padding-top: clamp(64px, 10vw, 112px); padding-bottom: clamp(64px, 10vw, 112px); display: flex; flex-direction: column; align-items: center; }
.band .mark { width: 72px; height: 80px; }
.band h2 { margin-top: var(--space-xl); font-size: clamp(40px, 7vw, 72px); line-height: 1; }
.band p { margin-top: var(--space-lg); font-size: 19px; color: rgba(255,255,255,.82); }
.band .btn-primary { margin-top: var(--space-2xl); background: #fff; color: var(--brand-navy); box-shadow: 0 8px 24px rgba(0,21,57,.3); }
.band .btn-primary:hover { background: var(--brand-foam); }
.band .cta-meta { margin-top: 14px; color: rgba(255,255,255,.72); }
.band :focus-visible { outline-color: #fff; }

/* ---------- footer ---------- */
.foot { padding: var(--space-2xl) 0 var(--space-3xl); background: var(--bg-window); font-size: 14px; color: var(--ink-tertiary); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg) var(--space-xl); }
.foot .brand .wordmark { width: 70px; }
.foot nav { display: flex; gap: var(--space-xl); margin-left: auto; }
.foot nav a { color: var(--ink-secondary); }
.foot small { font-size: 14px; }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-tide), transform .7s var(--ease-tide); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
