/* narl3y.bid — design system
   Modern CSS only: cascade layers, OKLCH + light-dark(), native nesting, container queries,
   :has(), @property, scroll-driven animations and cross-document view transitions.
   No framework, no build step. */

@layer reset, tokens, base, layout, components, pages, utilities;

/* ------------------------------------------------------------------ reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: none; text-size-adjust: none; hanging-punctuation: first last; }
  body { min-height: 100dvh; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  img, picture, svg, video, canvas { display: block; max-width: 100%; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  p, h1, h2, h3, h4, li, dd { overflow-wrap: break-word; }
  h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; }
  p { text-wrap: pretty; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  table { border-collapse: collapse; }
  :target { scroll-margin-top: 7rem; }
}

/* ------------------------------------------------------------------ tokens */
@property --spot-x { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }
@property --spot-y { syntax: "<length-percentage>"; inherits: true; initial-value: 50%; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@layer tokens {
  :root {
    color-scheme: dark light;
    --page-h: 265;
    --font: "Inter Variable", "Inter", "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Inter Display", "SF Pro Display", "Segoe UI Variable Display", var(--font);
    --mono: "JetBrains Mono", "Berkeley Mono", "SF Mono", "Cascadia Code", ui-monospace, Menlo, Consolas, monospace;

    --bg: light-dark(oklch(98.4% 0.004 270), oklch(12.5% 0.016 272));
    --bg-2: light-dark(oklch(96% 0.006 270), oklch(15.5% 0.018 272));
    --surface: light-dark(oklch(100% 0 0 / 0.75), oklch(20% 0.02 272 / 0.55));
    --surface-solid: light-dark(oklch(100% 0 0), oklch(18% 0.02 272));
    --surface-2: light-dark(oklch(97% 0.006 270), oklch(23% 0.022 272 / 0.7));
    --line: light-dark(oklch(25% 0.02 272 / 0.1), oklch(100% 0 0 / 0.08));
    --line-2: light-dark(oklch(25% 0.02 272 / 0.18), oklch(100% 0 0 / 0.14));
    --text: light-dark(oklch(22% 0.02 272), oklch(95% 0.008 272));
    --text-2: light-dark(oklch(42% 0.02 272), oklch(75% 0.015 272));
    --text-3: light-dark(oklch(55% 0.015 272), oklch(60% 0.015 272));

    --accent: light-dark(oklch(52% 0.22 var(--page-h)), oklch(74% 0.17 var(--page-h)));
    --accent-2: light-dark(oklch(55% 0.2 calc(var(--page-h) + 60)), oklch(78% 0.15 calc(var(--page-h) + 60)));
    --accent-ink: light-dark(oklch(99% 0 0), oklch(15% 0.03 var(--page-h)));
    --ok: light-dark(oklch(58% 0.17 150), oklch(78% 0.18 150));
    --warn: light-dark(oklch(62% 0.16 75), oklch(82% 0.15 80));
    --err: light-dark(oklch(57% 0.21 25), oklch(70% 0.19 25));

    --grad: linear-gradient(110deg, var(--accent), var(--accent-2));
    --radius: 18px;
    --radius-sm: 11px;
    --shadow: 0 1px 2px light-dark(oklch(20% 0.02 270 / 0.06), oklch(0% 0 0 / 0.4)),
      0 14px 36px -16px light-dark(oklch(20% 0.04 270 / 0.18), oklch(0% 0 0 / 0.7));
    --shadow-lg: 0 30px 80px -30px light-dark(oklch(30% 0.08 var(--page-h) / 0.35), oklch(0% 0 0 / 0.85));
    --ease: cubic-bezier(.2, .8, .2, 1);
    --ease-spring: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%, 0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001);
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --nav-h: 64px;
  }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }
}

/* ------------------------------------------------------------------ base */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 56px); }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  body {
    font-family: var(--font);
    font-size: 16px;
    font-feature-settings: "cv11", "ss01", "ss03";
    background: var(--bg);
    color: var(--text);
    overflow-x: clip;
  }
  a { color: inherit; text-decoration-color: color-mix(in oklch, currentColor 35%, transparent); text-underline-offset: 3px; }
  a:hover { text-decoration-color: currentColor; }
  ::selection { background: color-mix(in oklch, var(--accent) 35%, transparent); }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
  code, kbd, pre, .mono { font-family: var(--mono); font-feature-settings: "calt" 0, "liga" 0; }
  .mono { font-size: 0.92em; letter-spacing: -0.01em; }
  kbd {
    display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 0.4em;
    font-size: 0.72rem; color: var(--text-2);
    border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2);
  }
  .i { width: 1.15em; height: 1.15em; flex: none; }
  hr { border: 0; border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------------ layout */
@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
  main { position: relative; z-index: 1; min-height: 60vh; }
  .section { padding-block: clamp(64px, 10vw, 120px); }
  .section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 32px; }
  .section__head > .muted { max-width: 42ch; }
  .section__head--center { flex-direction: column; align-items: center; text-align: center; margin-bottom: 56px; }
  .section__head--center .muted { max-width: 62ch; }

  /* Ambient page background: dot grid + soft accent glow */
  .bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
  .bg__grid {
    position: absolute; inset: -1px;
    background-image: radial-gradient(color-mix(in oklch, var(--text) 9%, transparent) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 30%, transparent 75%);
  }
  .bg__glow {
    position: absolute; inset: -30% -10% auto; height: 80vh;
    background:
      radial-gradient(40% 50% at 25% 30%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 70%),
      radial-gradient(35% 45% at 75% 20%, color-mix(in oklch, var(--accent-2) 18%, transparent), transparent 70%);
    filter: blur(40px);
  }
  /* light-dark() only takes colours, so opacity tweaks for light mode use the scheme selectors */
  @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --glow-o: .55; --gl-o: .5; } }
  :root[data-theme="light"] { --glow-o: .55; --gl-o: .5; }
  .bg__glow { opacity: var(--glow-o, 1); }
}

/* ------------------------------------------------------------------ components */
@layer components {
  .skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: top .2s; }
  .skip:focus { top: 12px; }

  /* ---------- typography */
  .display { font-family: var(--font-display); font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
  .display--xl { font-size: clamp(2.6rem, 6.6vw, 5.6rem); letter-spacing: -0.045em; line-height: 0.98; }
  .display .line { display: block; }
  .h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -0.03em; }
  .h3 { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; }
  .h4 { font-size: 1.02rem; font-weight: 650; letter-spacing: -0.01em; }
  .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 60ch; line-height: 1.55; }
  .lead strong { color: var(--text); font-weight: 600; }
  .muted { color: var(--text-2); }
  .small { font-size: 0.85rem; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
    font: 600 0.75rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  }
  .eyebrow--live { padding: 7px 12px 7px 9px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); backdrop-filter: blur(12px); color: var(--text-2); letter-spacing: 0.06em; }
  .eyebrow--live .i { color: var(--ok); filter: drop-shadow(0 0 6px var(--ok)); }
  .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
  .tag {
    display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 99px;
    font: 600 0.7rem/1.5 var(--mono); letter-spacing: 0.02em; vertical-align: middle;
    color: var(--accent); background: color-mix(in oklch, var(--accent) 14%, transparent);
    border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  }
  .tag--lg { font-size: 0.85rem; padding: 3px 10px; transform: translateY(-0.4em); }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .link { color: var(--accent); font-weight: 550; text-decoration: none; }
  .link:hover { text-decoration: underline; }

  /* ---------- buttons */
  .btn {
    --b: var(--surface-2);
    position: relative; isolation: isolate;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    height: 42px; padding: 0 18px; border-radius: 12px;
    font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
    background: var(--b); border: 1px solid var(--line-2); color: var(--text);
    transition: transform .25s var(--ease-spring), background .2s, border-color .2s, box-shadow .25s;
  }
  .btn:hover { border-color: color-mix(in oklch, var(--accent) 50%, var(--line-2)); transform: translateY(-1px); }
  .btn:active { transform: translateY(0) scale(.98); }
  .btn--sm { height: 34px; padding: 0 12px; font-size: 0.85rem; border-radius: 10px; gap: 6px; }
  .btn--lg { height: 52px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
  .btn--xl { height: auto; min-height: 64px; padding: 12px 26px 12px 22px; border-radius: 16px; gap: 14px; justify-content: flex-start; text-align: left; }
  .btn--xl .i { width: 1.5em; height: 1.5em; }
  .btn--primary {
    color: var(--accent-ink); border-color: transparent;
    background: var(--grad);
    box-shadow: 0 8px 28px -10px color-mix(in oklch, var(--accent) 80%, transparent), inset 0 1px 0 oklch(100% 0 0 / 0.25);
  }
  .btn--primary:hover { box-shadow: 0 14px 40px -12px color-mix(in oklch, var(--accent) 90%, transparent), inset 0 1px 0 oklch(100% 0 0 / 0.3); border-color: transparent; }
  .btn--primary::after { /* sheen */
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    background: linear-gradient(105deg, transparent 35%, oklch(100% 0 0 / 0.35) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
    transition: background-position .8s var(--ease);
  }
  .btn--primary:hover::after { background-position: 150% 0; }
  .btn--ghost { --b: transparent; }
  .btn--glow { border-color: color-mix(in oklch, var(--accent) 35%, var(--line-2)); }
  .btn--glow .i { color: oklch(70% 0.2 15); }
  .icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--text-2); border: 1px solid transparent; transition: background .2s, color .2s; }
  .icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }

  /* ---------- navigation */
  .nav {
    position: sticky; top: 0; z-index: 50; height: var(--nav-h);
    background: color-mix(in oklch, var(--bg) 72%, transparent);
    backdrop-filter: saturate(1.6) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
  }
  .nav[data-scrolled] { border-bottom-color: var(--line); }
  @supports (animation-timeline: scroll()) {
    .nav { animation: nav-line linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
    @keyframes nav-line { to { border-bottom-color: var(--line); background: color-mix(in oklch, var(--bg) 85%, transparent); } }
  }
  .nav__inner { display: flex; align-items: center; gap: 24px; height: 100%; width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
  .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; letter-spacing: -0.03em; font-size: 1.12rem; }
  .brand__mark {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
    color: var(--accent-ink); background: var(--grad);
    box-shadow: 0 6px 18px -6px color-mix(in oklch, var(--accent) 80%, transparent), inset 0 1px 0 oklch(100% 0 0 / .3);
  }
  .brand__mark .i { width: 20px; height: 20px; stroke-width: 2.2; }
  .brand__tld { color: var(--text-3); font-weight: 600; }
  .nav__links { display: flex; gap: 4px; }
  .nav__links a {
    display: block; padding: 7px 12px; border-radius: 9px; text-decoration: none;
    color: var(--text-2); font-weight: 550; font-size: 0.93rem; transition: color .2s, background .2s;
  }
  .nav__links a:hover { color: var(--text); background: var(--surface-2); }
  .nav__links a[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
  .nav__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .kbd-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 12px; border-radius: 11px;
    color: var(--text-3); background: var(--surface-2); border: 1px solid var(--line); font-size: 0.88rem; transition: border-color .2s, color .2s;
  }
  .kbd-btn:hover { border-color: var(--line-2); color: var(--text-2); }
  .kbd-btn__label { margin-right: 18px; }
  .kbd-btn kbd { height: 1.6em; }
  [data-theme-toggle] .i--sun { display: none; }
  @media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) [data-theme-toggle] .i--sun { display: block; } :root:not([data-theme="dark"]) [data-theme-toggle] .i--moon { display: none; } }
  :root[data-theme="light"] [data-theme-toggle] .i--sun { display: block; }
  :root[data-theme="light"] [data-theme-toggle] .i--moon { display: none; }
  /* Mobile tab bar. It lives outside the header: the header's backdrop-filter would make it
     the containing block for position:fixed children. */
  .tabbar { display: none; }
  @media (max-width: 860px) {
    .nav__links { display: none; }
    .tabbar {
      position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 60;
      display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 18px;
      background: color-mix(in oklch, var(--surface-solid) 82%, transparent); backdrop-filter: blur(20px) saturate(1.6);
      border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
    }
    .tabbar > * { display: grid; justify-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 12px; color: var(--text-3); text-decoration: none; font-size: 0.66rem; font-weight: 600; letter-spacing: .02em; }
    .tabbar .i { width: 21px; height: 21px; }
    .tabbar [aria-current="page"] { color: var(--text); background: var(--surface-2); }
    .tabbar [aria-current="page"] .i { color: var(--accent); }
    body { padding-bottom: 84px; }
    .kbd-btn { display: none; }
  }
  @media (max-width: 420px) { .nav .btn--glow span { display: none; } .brand__tld { display: none; } }

  /* ---------- chips */
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 99px;
    font-size: 0.85rem; font-weight: 550; background: var(--surface); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
  }
  .chip small { color: var(--text-3); font-weight: 450; }
  .chip small::before { content: "·"; margin-right: 6px; }

  /* ---------- app icon */
  .app-icon {
    --s: 48px;
    position: relative; display: grid; place-items: center; flex: none;
    width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.28);
    color: oklch(98% 0.02 var(--h));
    background:
      radial-gradient(120% 120% at 20% 0%, oklch(78% 0.16 calc(var(--h) + 25)) 0%, transparent 55%),
      linear-gradient(150deg, oklch(64% 0.19 var(--h)), oklch(42% 0.17 calc(var(--h) - 25)));
    box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.35), inset 0 -2px 6px oklch(0% 0 0 / 0.2), 0 8px 20px -8px oklch(55% 0.2 var(--h) / 0.7);
  }
  .app-icon .i { width: 56%; height: 56%; stroke-width: 1.6; filter: drop-shadow(0 1px 1px oklch(0% 0 0 / 0.25)); }
  .app-icon--sm { --s: 28px; }
  .app-icon--sm .i { stroke-width: 2; }
  .app-icon--xl { --s: clamp(76px, 11vw, 112px); }

  /* ---------- cards (with cursor-tracking spotlight border) */
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); grid-auto-flow: dense; gap: 16px; }
  .card {
    position: relative; container-type: inline-size;
    display: flex; flex-direction: column; gap: 14px; padding: 20px;
    border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: transform .35s var(--ease-spring), border-color .3s, box-shadow .3s;
  }
  .card::before { /* spotlight */
    content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(360px circle at var(--spot-x) var(--spot-y), color-mix(in oklch, oklch(70% 0.18 var(--h)) 16%, transparent), transparent 45%);
  }
  .card::after { /* border glow */
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(240px circle at var(--spot-x) var(--spot-y), oklch(75% 0.18 var(--h)), transparent 60%);
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 24px 50px -24px oklch(50% 0.2 var(--h) / 0.45); }
  .card:hover::before, .card:hover::after, .card:focus-within::after { opacity: 1; }
  .card__top { display: flex; align-items: center; gap: 14px; }
  .card__title { min-width: 0; flex: 1; }
  .card__title h3 { font-size: 1.12rem; font-weight: 680; letter-spacing: -0.02em; }
  .card__title p { font-size: 0.8rem; color: var(--text-3); font-weight: 500; }
  .card__link { text-decoration: none; }
  .card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
  .card__arrow { color: var(--text-3); transition: transform .35s var(--ease-spring), color .2s; }
  .card:hover .card__arrow { transform: translate(2px, -2px); color: oklch(75% 0.16 var(--h)); }
  .card__tagline { color: var(--text-2); font-size: 0.95rem; line-height: 1.5; flex: 1; }
  .card__bullets { display: grid; gap: 6px; font-size: 0.86rem; color: var(--text-2); }
  .card__bullets li { display: flex; gap: 8px; align-items: baseline; }
  .card__bullets .i { color: oklch(72% 0.17 var(--h)); width: 14px; height: 14px; transform: translateY(2px); }
  .card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 0.8rem; color: var(--text-3); }
  .card__platforms { display: flex; gap: 8px; color: var(--text-2); }
  .card__platforms .i { width: 16px; height: 16px; }
  .card__meta { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card--featured { grid-column: span 1; }
  @media (min-width: 980px) {
    .card--featured:nth-child(1), .card--featured:nth-child(3n + 7) { grid-column: span 2; }
  }
  @container (min-width: 520px) {
    .card__bullets { grid-template-columns: 1fr 1fr; }
    .card__tagline { font-size: 1.05rem; }
  }
  .card[hidden] { display: none; }

  /* ---------- toolbar */
  .toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; position: sticky; top: calc(var(--nav-h) + 8px); z-index: 10; padding: 8px; border-radius: 16px; background: color-mix(in oklch, var(--bg) 70%, transparent); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); }
  .toolbar__right { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
  .seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .seg button { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 9px; color: var(--text-2); font-weight: 560; font-size: 0.88rem; white-space: nowrap; transition: color .2s, background .2s; }
  .seg button b { font: 600 0.7rem var(--mono); color: var(--text-3); padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
  .seg button:hover { color: var(--text); }
  .seg button[aria-checked="true"] { color: var(--text); background: var(--surface-solid); box-shadow: 0 1px 2px oklch(0% 0 0 / .2), inset 0 0 0 1px var(--line-2); }
  .seg button[aria-checked="true"] b { color: var(--accent); }
  .search, .select { position: relative; display: flex; align-items: center; height: 40px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
  .search:focus-within, .select:focus-within { border-color: color-mix(in oklch, var(--accent) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 15%, transparent); }
  .search .i { position: absolute; left: 11px; color: var(--text-3); pointer-events: none; }
  .search input { width: 200px; height: 100%; padding: 0 38px 0 36px; background: none; border: 0; outline: 0; }
  .search kbd { position: absolute; right: 8px; }
  .select select { appearance: none; height: 100%; padding: 0 34px 0 12px; background: none; border: 0; outline: 0; font-size: 0.9rem; font-weight: 550; color: var(--text-2); }
  .select select option { background: var(--surface-solid); color: var(--text); }
  .select .i { position: absolute; right: 10px; pointer-events: none; color: var(--text-3); }
  @media (max-width: 640px) { .toolbar { position: static; } .toolbar__right { margin-left: 0; width: 100%; } .search { flex: 1; } .search input { width: 100%; } }
  .empty { padding: 48px; text-align: center; color: var(--text-2); border: 1px dashed var(--line-2); border-radius: var(--radius); }

  /* ---------- dots */
  .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); vertical-align: middle; flex: none; }
  .dot--ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in oklch, var(--ok) 20%, transparent); }
  .dot--error { background: var(--err); box-shadow: 0 0 0 3px color-mix(in oklch, var(--err) 20%, transparent); }
  .dot--syncing { background: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
  .dot--pending { background: var(--text-3); }
  @keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in oklch, var(--warn) 0%, transparent); opacity: .6; } }

  /* ---------- panels */
  .panel { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); }
  .panel > * + * { margin-top: 12px; }
  .stack { display: grid; gap: 10px; }
  .ticks { display: grid; gap: 10px; font-size: 0.92rem; color: var(--text-2); }
  .ticks li { display: flex; gap: 10px; }
  .ticks .i { color: var(--ok); margin-top: 3px; }
  .callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: color-mix(in oklch, var(--accent) 8%, transparent); border: 1px solid color-mix(in oklch, var(--accent) 25%, transparent); }
  .callout .i { color: var(--accent); margin-top: 4px; }

  /* ---------- page header */
  .page-head { padding-block: clamp(56px, 9vw, 104px) clamp(32px, 5vw, 56px); }
  .page-head .lead { margin-top: 20px; }

  /* ---------- palette (⌘K) */
  .palette { width: min(640px, calc(100% - 24px)); max-height: min(560px, 80dvh); margin: 12vh auto auto; padding: 0; border: 0; border-radius: 20px; background: transparent; color: var(--text); overflow: visible; }
  .palette::backdrop { background: oklch(10% 0.02 270 / 0.55); backdrop-filter: blur(6px); }
  .palette[open] { animation: pop .28s var(--ease-spring); }
  .palette[open]::backdrop { animation: fade .2s ease; }
  @keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
  @keyframes fade { from { opacity: 0; } }
  .palette__box { display: flex; flex-direction: column; max-height: inherit; border-radius: 20px; background: color-mix(in oklch, var(--surface-solid) 92%, transparent); backdrop-filter: blur(24px) saturate(1.5); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; }
  .palette__field { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
  .palette__field .i { color: var(--text-3); width: 20px; height: 20px; }
  .palette__field input { flex: 1; background: none; border: 0; outline: 0; font-size: 1.08rem; }
  .palette__field input::-webkit-search-cancel-button { display: none; }
  .palette__list { overflow-y: auto; padding: 8px; overscroll-behavior: contain; }
  .palette__list li > a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
  .palette__list li > a[aria-selected="true"] { background: color-mix(in oklch, var(--accent) 14%, transparent); }
  .palette__list .pl-text { flex: 1; min-width: 0; }
  .palette__list .pl-text b { display: block; font-weight: 600; }
  .palette__list .pl-text small { display: block; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .palette__list .pl-group { padding: 10px 12px 4px; font: 600 0.7rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
  .palette__list .pl-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--text-2); }
  .palette__list .pl-empty { padding: 24px; text-align: center; color: var(--text-3); }
  .palette__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--text-3); }
  .palette__foot span { display: inline-flex; align-items: center; gap: 4px; }

  /* ---------- toast */
  .toast {
    position: fixed; left: 50%; bottom: 28px; z-index: 90; translate: -50% 20px; opacity: 0; pointer-events: none;
    display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
    background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-weight: 550; font-size: 0.92rem;
    transition: opacity .25s, translate .35s var(--ease-spring);
  }
  .toast[data-show] { opacity: 1; translate: -50% 0; }
  @media (max-width: 860px) { .toast { bottom: 96px; } }

  /* ---------- footer */
  .footer { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, transparent, var(--bg-2)); }
  .footer__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px; padding-block: 56px 32px; }
  .footer__brand p { margin-top: 14px; max-width: 36ch; color: var(--text-2); font-size: 0.92rem; }
  .footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .footer__cols h2 { font: 600 0.72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
  .footer__cols ul { display: grid; gap: 9px; font-size: 0.92rem; }
  .footer__cols a { text-decoration: none; color: var(--text-2); }
  .footer__cols a:hover { color: var(--text); }
  .footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px 32px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--text-3); }
  .footer__sync { display: inline-flex; align-items: center; gap: 6px; }
  .footer__sync .i { color: var(--ok); }
  @media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  /* ---------- prose (README + legal) */
  .prose { color: var(--text-2); font-size: 1rem; line-height: 1.72; max-width: 78ch; }
  .prose > * + * { margin-top: 1em; }
  .prose :is(h1, h2, h3, h4, h5, h6) { color: var(--text); letter-spacing: -0.02em; margin-top: 1.8em; scroll-margin-top: 8rem; }
  .prose h1 { font-size: 1.9rem; }
  .prose h2 { font-size: 1.5rem; padding-bottom: .35em; border-bottom: 1px solid var(--line); }
  .prose h3 { font-size: 1.18rem; }
  .prose h4 { font-size: 1rem; }
  .prose :is(h1, h2, h3, h4):first-child { margin-top: 0; }
  .prose a { color: var(--accent); }
  .prose strong { color: var(--text); font-weight: 650; }
  .prose :is(ul, ol) { padding-left: 1.4em; }
  .prose li + li { margin-top: .35em; }
  .prose li::marker { color: var(--text-3); }
  .prose img { border-radius: 12px; height: auto; display: inline-block; vertical-align: middle; }
  .prose p[align="center"] { text-align: center; }
  .prose p[align="center"] img { margin-inline: auto; }
  .prose div[align="center"], .prose [align="center"] { text-align: center; }
  .prose code { font-size: .86em; padding: .15em .4em; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
  .prose pre { padding: 16px 18px; border-radius: 14px; background: light-dark(oklch(97% 0.006 270), oklch(9% 0.012 272)); border: 1px solid var(--line); overflow-x: auto; font-size: .86rem; line-height: 1.6; }
  .prose pre code { padding: 0; border: 0; background: none; font-size: inherit; color: var(--text); }
  .prose blockquote { padding: 4px 0 4px 18px; border-left: 3px solid color-mix(in oklch, var(--accent) 60%, transparent); color: var(--text-2); }
  .prose table { display: block; width: max-content; max-width: 100%; overflow-x: auto; font-size: .9rem; border: 1px solid var(--line); border-radius: 12px; }
  .prose :is(th, td) { padding: 9px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
  .prose th { color: var(--text); background: var(--surface-2); font-weight: 600; }
  .prose tr:last-child td { border-bottom: 0; }
  .prose hr { margin-block: 2em; }
  .prose details { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); }
  .prose summary { cursor: pointer; color: var(--text); font-weight: 600; }
  .prose .markdown-alert { padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: color-mix(in oklch, var(--accent) 7%, transparent); }
  .prose .markdown-alert-warning, .prose .markdown-alert-caution { border-left-color: var(--warn); background: color-mix(in oklch, var(--warn) 8%, transparent); }
  .prose .markdown-alert-title { font-weight: 650; color: var(--text); }
  .prose .task-list-item { list-style: none; margin-left: -1.3em; }
  .prose input[type="checkbox"] { margin-right: .5em; accent-color: var(--accent); }
  .prose kbd { font-size: .78em; }
  .prose--sm { font-size: .93rem; }

  /* ---------- reveal on scroll (scroll-driven when supported) */
  @supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
      [data-reveal], .card, .app-section { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
      @keyframes reveal { from { opacity: 0; translate: 0 28px; scale: .985; } }
    }
  }
}

/* ------------------------------------------------------------------ pages */
@layer pages {
  /* ---------- hero */
  .hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(40px, 6vw, 72px); overflow: hidden; }
  .hero__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; mask-image: linear-gradient(to bottom, #000 55%, transparent); }
  .hero__gl[data-ready] { opacity: var(--gl-o, .9); }
  .hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
  .hero__copy .lead { margin-top: 26px; }
  .hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  @media (max-width: 960px) { .hero__inner { grid-template-columns: 1fr; } }

  .term {
    border-radius: 16px; overflow: hidden; font-size: 0.8rem;
    background: light-dark(oklch(99% 0.003 270 / .85), oklch(9% 0.014 272 / .82));
    border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px);
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); transition: transform .8s var(--ease);
  }
  .term:hover { transform: none; }
  @media (max-width: 960px) { .term { transform: none; } }
  .term__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
  .term__bar span { width: 11px; height: 11px; border-radius: 50%; background: oklch(68% 0.19 25); }
  .term__bar span:nth-child(2) { background: oklch(80% 0.15 85); }
  .term__bar span:nth-child(3) { background: oklch(74% 0.17 150); }
  .term__bar b { margin-left: 10px; font: 500 0.74rem var(--mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .term__body { padding: 18px; line-height: 1.85; white-space: pre; overflow-x: auto; color: var(--text-2); min-height: 260px; scrollbar-width: thin; }
  @media (max-width: 520px) { .term__body { font-size: 0.7rem; padding: 14px; min-height: 0; } }
  .t-dim { color: var(--text-3); }
  .t-ok { color: var(--ok); }
  .t-warn { color: var(--warn); }
  .t-app { color: light-dark(oklch(50% 0.18 var(--h)), oklch(80% 0.14 var(--h))); font-weight: 600; }
  .t-ver { color: var(--text); }
  .t-cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
  @keyframes blink { 50% { opacity: 0; } }

  .stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(48px, 7vw, 80px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(12px); overflow: hidden; }
  .stats > div { padding: 20px 22px; border-left: 1px solid var(--line); }
  .stats > div:first-child { border-left: 0; }
  .stats dt { font: 600 0.7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
  .stats dd { margin-top: 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .stats__small { font-size: 1.05rem !important; font-weight: 600 !important; color: var(--text-2); padding-top: .5em; }
  @media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > div { border-top: 1px solid var(--line); } .stats > div:nth-child(odd) { border-left: 0; } .stats > div:nth-child(-n + 2) { border-top: 0; } .stats > div:last-child { grid-column: span 2; } }

  /* ---------- how it works */
  .flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
  .flow::before { content: ""; position: absolute; top: 42px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); opacity: .5; mask: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 14px); animation: dash 1.5s linear infinite; }
  @keyframes dash { to { mask-position: 14px 0; } }
  .flow__step { position: relative; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(10px); }
  .flow__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: var(--grad); color: var(--accent-ink); box-shadow: 0 8px 24px -8px var(--accent); }
  .flow__step h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .flow__step p { color: var(--text-2); font-size: 0.94rem; }
  @media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow::before { display: none; } }

  .pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: var(--radius); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
  .pillars li { padding: 28px 24px; background: var(--bg); }
  .pillars .i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 16px; }
  .pillars h3 { font-size: 1.02rem; margin-bottom: 6px; }
  .pillars p { font-size: 0.9rem; color: var(--text-2); }
  @media (max-width: 860px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 480px) { .pillars { grid-template-columns: 1fr; } }

  .cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 56px); border-radius: 26px; overflow: hidden; isolation: isolate; border: 1px solid var(--line-2); background: var(--surface); }
  .cta::before { content: ""; position: absolute; inset: -50%; z-index: -1; background: conic-gradient(from var(--spin), transparent 0 60%, color-mix(in oklch, var(--accent) 35%, transparent), color-mix(in oklch, var(--accent-2) 35%, transparent), transparent 90%); animation: spin 8s linear infinite; filter: blur(40px); }
  @keyframes spin { to { --spin: 360deg; } }
  .cta p { color: var(--text-2); max-width: 52ch; margin-top: 10px; }

  /* ---------- app page */
  .app-hero { position: relative; padding-block: 28px clamp(32px, 5vw, 56px); overflow: hidden; }
  .app-hero__glow { position: absolute; inset: -40% -10% 0; z-index: -1; background: radial-gradient(50% 60% at 30% 30%, oklch(65% 0.2 var(--h) / .28), transparent 70%), radial-gradient(40% 50% at 80% 10%, oklch(70% 0.16 calc(var(--h) + 50) / .2), transparent 70%); filter: blur(30px); }
  .crumbs { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-3); margin-bottom: 28px; }
  .crumbs a { text-decoration: none; color: var(--text-2); }
  .crumbs .i { width: 14px; height: 14px; }
  .app-hero__main { display: flex; gap: clamp(20px, 3vw, 32px); align-items: flex-start; }
  .app-hero__title { min-width: 0; }
  .app-hero__title .lead { margin-block: 12px 20px; }
  @media (max-width: 600px) { .app-hero__main { flex-direction: column; } }
  .dl-card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
  .dl-card__label { display: grid; }
  .dl-card__label b { font-size: 1.05rem; }
  .dl-card__label small { font: 500 0.78rem/1.6 var(--mono); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }
  .dl-card__warn { flex-basis: 100%; display: flex; gap: 8px; align-items: center; color: var(--warn); font-size: 0.88rem; }
  .dl-card__pending { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-radius: 16px; border: 1px dashed var(--line-2); background: var(--surface); }
  .dl-card__pending b, .dl-card__pending small { display: block; }
  .dl-card__pending small { color: var(--text-2); }
  .facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 36px; border-radius: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
  .facts > div { padding: 14px 16px; background: color-mix(in oklch, var(--bg) 80%, transparent); backdrop-filter: blur(8px); min-width: 0; }
  .facts dt { font: 600 0.66rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
  .facts dd { margin-top: 4px; font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
  @media (max-width: 1100px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (max-width: 520px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

  .subnav { position: sticky; top: var(--nav-h); z-index: 20; border-block: 1px solid var(--line); background: color-mix(in oklch, var(--bg) 80%, transparent); backdrop-filter: blur(16px) saturate(1.4); }
  .subnav__inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .subnav a { position: relative; padding: 14px 14px; font-size: 0.9rem; font-weight: 560; color: var(--text-2); text-decoration: none; white-space: nowrap; }
  .subnav a:hover { color: var(--text); }
  .subnav a[aria-current="true"] { color: var(--text); }
  .subnav a[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); view-transition-name: subnav-ink; }

  .app-body { display: grid; gap: clamp(48px, 7vw, 80px); padding-block: clamp(40px, 6vw, 64px); }
  .app-section > .h3 { margin-bottom: 20px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
  .app-section > .h3 .muted { font-size: 0.9rem; font-weight: 500; }
  .app-summary { font-size: 1.12rem; color: var(--text-2); max-width: 70ch; line-height: 1.7; }
  .highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-block: 28px 40px; }
  .highlights li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 520; }
  .highlights .i { flex: none; padding: 4px; width: 26px; height: 26px; border-radius: 8px; color: oklch(98% 0.02 var(--h)); background: oklch(60% 0.18 var(--h)); stroke-width: 2.5; }
  .os-table { display: grid; gap: 8px; margin-top: 14px; max-width: 640px; }
  .os-table li { display: grid; grid-template-columns: 22px 110px 1fr; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
  .os-table span { color: var(--text-2); font-size: 0.92rem; }

  .files { display: grid; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
  .files__row { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.1fr) 90px minmax(0, 1fr) 80px; align-items: center; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.9rem; }
  .files__row:first-child { border-top: 0; }
  .files__row:hover:not(.files__row--head) { background: var(--surface-2); }
  .files__row--head { font: 600 0.68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
  .files__name { display: flex; gap: 12px; align-items: center; min-width: 0; }
  .files__name > .i { color: var(--text-3); }
  .files__name > span { min-width: 0; }
  .files__name b { display: block; font-weight: 600; font-family: var(--mono); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .files__name small { color: var(--text-3); }
  .files__name small a { color: var(--text-2); }
  .files__plat { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
  .files__plat small { color: var(--text-3); }
  .hash { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; color: var(--text-2); font-size: 0.8rem; transition: background .2s, color .2s; }
  .hash:hover { background: var(--surface-2); color: var(--text); }
  .hash .i { width: 14px; height: 14px; }
  @media (max-width: 760px) {
    .files__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
    .files__row--head { display: none; }
    .files__row > :nth-child(2), .files__row > :nth-child(3), .files__row > :nth-child(4) { grid-column: 1; font-size: 0.8rem; }
    .files__row > :nth-child(5) { grid-row: 1 / span 4; grid-column: 2; }
  }
  .verify, .older { margin-top: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
  .verify summary, .older summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 0.93rem; list-style: none; }
  .verify summary::-webkit-details-marker, .older summary::-webkit-details-marker { display: none; }
  .verify summary::after, .older summary::after { content: "+"; margin-left: auto; font: 500 1.2rem var(--mono); color: var(--text-3); transition: rotate .3s var(--ease-spring); }
  .verify[open] summary::after, .older[open] summary::after { rotate: 45deg; }
  .verify > :not(summary), .older > :not(summary) { margin: 0 16px 16px; }
  .verify p { color: var(--text-2); font-size: 0.92rem; }
  .verify pre { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: light-dark(oklch(97% 0.006 270), oklch(9% 0.012 272)); font-size: 0.82rem; overflow-x: auto; line-height: 1.7; }
  .dropzone {
    display: flex; align-items: center; gap: 14px; margin-top: 14px !important; padding: 18px 20px; border-radius: 14px; cursor: pointer;
    border: 1.5px dashed var(--line-2); background: var(--surface-2); transition: border-color .2s, background .2s, transform .3s var(--ease-spring);
  }
  .dropzone > .i { width: 30px; height: 30px; color: var(--accent); }
  .dropzone b, .dropzone small { display: block; }
  .dropzone small { color: var(--text-3); font-size: 0.82rem; }
  .dropzone:hover, .dropzone[data-over] { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 8%, var(--surface-2)); }
  .dropzone[data-over] { transform: scale(1.01); }
  .dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
  .verify__result:empty { display: none; }
  .verify__result { display: block; padding: 12px 14px; line-height: 1.6; border-radius: 12px; font-size: 0.9rem; overflow-wrap: anywhere; }
  .verify__result[data-state="ok"] { color: var(--ok); background: color-mix(in oklch, var(--ok) 10%, transparent); border: 1px solid color-mix(in oklch, var(--ok) 30%, transparent); }
  .verify__result[data-state="bad"] { color: var(--err); background: color-mix(in oklch, var(--err) 10%, transparent); border: 1px solid color-mix(in oklch, var(--err) 30%, transparent); }
  .verify__result[data-state="busy"] { color: var(--text-2); background: var(--surface-2); }
  .verify__result code { font-size: 0.78rem; }
  .older__group h3 { font-size: 0.85rem; margin: 8px 0; color: var(--text-2); }
  details::details-content { transition: height .35s var(--ease), content-visibility .35s allow-discrete; height: 0; overflow: clip; }
  details[open]::details-content { height: auto; }
  :root { interpolate-size: allow-keywords; }

  .release { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); padding: 20px; margin-bottom: 28px; }
  .release__body[data-clamped] { max-height: 340px; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); }
  .release__more { margin-top: 12px; font-size: 0.92rem; }
  .release header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
  .timeline { position: relative; display: grid; gap: 2px; max-width: 760px; }
  .timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--accent), transparent); opacity: .35; }
  .timeline li { position: relative; display: flex; gap: 18px; padding: 8px 0; }
  .timeline__dot { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); z-index: 1; }
  .timeline li:first-child .timeline__dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 22%, transparent); }
  .timeline p { font-weight: 520; }
  .timeline small { color: var(--text-3); }

  .pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); }
  .pager__link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 650; transition: border-color .2s, transform .3s var(--ease-spring); }
  .pager__link:hover { border-color: var(--line-2); transform: translateY(-2px); }
  .pager__link > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .pager__link small { flex-basis: 100%; font: 600 0.68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
  .pager__link--next { justify-content: flex-end; text-align: right; }
  .pager__link--next > span { justify-content: flex-end; }

  /* ---------- donate */
  .donate { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 48px; }
  .donate__main, .donate__side { display: grid; gap: 20px; }
  @media (max-width: 960px) { .donate { grid-template-columns: 1fr; } }
  .coin { position: relative; padding: clamp(20px, 3vw, 32px); border-radius: 22px; border: 1px solid var(--line); background: var(--surface); backdrop-filter: blur(12px); overflow: hidden; isolation: isolate; }
  .coin--featured { border-color: oklch(75% 0.15 var(--h) / .4); }
  .coin--featured::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 100% 0%, oklch(75% 0.16 var(--h) / .16), transparent 60%); }
  .coin__head { display: flex; gap: 16px; align-items: flex-start; }
  .coin__head p { margin-top: 4px; }
  .coin__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; color: oklch(20% 0.05 var(--h)); background: linear-gradient(150deg, oklch(85% 0.16 var(--h)), oklch(70% 0.18 calc(var(--h) - 20))); box-shadow: 0 10px 24px -10px oklch(70% 0.18 var(--h)); }
  .coin__icon .i { width: 26px; height: 26px; stroke-width: 2.2; }
  .coin__body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 26px; }
  @media (max-width: 600px) { .coin__body { grid-template-columns: 1fr; justify-items: center; } }
  .qr { width: 200px; padding: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-2), 0 20px 40px -20px oklch(0% 0 0 / .6); }
  .qr svg { width: 100%; height: auto; }
  .coin__addr { min-width: 0; width: 100%; }
  .addr { display: block; padding: 14px 16px; border-radius: 12px; background: light-dark(oklch(97% 0.006 270), oklch(9% 0.012 272)); border: 1px solid var(--line); font-size: 0.86rem; word-break: break-all; line-height: 1.5; color: var(--text); user-select: all; }
  .coin__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
  .coin__fee { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 0.86rem; color: var(--text-2); }
  .coin__fee .i { color: var(--ok); }
  .coin--empty { opacity: .85; }
  .coin__soon { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 0.92rem; }
  .method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; transition: border-color .2s, transform .3s var(--ease-spring); }
  .method:hover { border-color: var(--line-2); transform: translateY(-1px); }
  .method > span { flex: 1; }
  .method b, .method small { display: block; }
  .method small { color: var(--text-3); font-size: 0.8rem; }
  .fees { width: 100%; font-size: 0.9rem; }
  .fees :is(th, td) { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; }
  .fees th { font: 600 0.68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
  .fees td:last-child, .fees th:last-child { text-align: right; }
  .fees small { color: var(--text-3); }

  /* ---------- legal */
  .legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-bottom: 64px; }
  .legal__toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
  .legal__toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
  .legal__toc a { display: block; padding: 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-3); text-decoration: none; font-size: 0.9rem; transition: color .2s, border-color .2s; }
  .legal__toc a:hover { color: var(--text); }
  .legal__toc a[aria-current="true"] { color: var(--text); border-left-color: var(--accent); }
  .legal__body section > * + * { margin-top: 1em; }
  .legal__body section > h3 { margin-top: 2em; }
  .legal__body section > .muted { margin-top: .4em; font-size: .9rem; }
  .legal__body section + section { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
  .legal__body h2 { border: 0; padding: 0; font-size: 1.7rem; }
  @media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal__toc { position: static; } .legal__toc ol { display: flex; flex-wrap: wrap; border: 0; gap: 6px; } .legal__toc a { border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; margin: 0; } }

  /* ---------- status */
  .status-poll { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: var(--text-2); }
  .status-table { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
  .status-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); font-size: 0.9rem; }
  .status-row:first-child { border-top: 0; }
  .status-row--head { font: 600 0.68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); background: var(--surface-2); }
  .status-row > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .status-app a { font-weight: 600; text-decoration: none; }
  @media (max-width: 760px) { .status-row { grid-template-columns: 1fr 1fr; } .status-row--head { display: none; } }
  .status-log-title { margin: 48px 0 16px; }
  .log { display: grid; gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line); font: 0.8rem/1.5 var(--mono); }
  .log__item { display: grid; grid-template-columns: 130px 110px 70px minmax(0, 1fr); gap: 12px; padding: 9px 14px; background: var(--bg); }
  .log__item time { color: var(--text-3); }
  .log__slug { color: var(--accent); }
  .log__trig { color: var(--text-3); }
  .log__item--error .log__msg { color: var(--err); }
  @media (max-width: 760px) { .log__item { grid-template-columns: 1fr 1fr; } .log__msg { grid-column: span 2; } }

  /* ---------- 404 */
  .nf { padding-block: clamp(64px, 12vw, 140px); text-align: center; display: grid; justify-items: center; gap: 20px; }
  .nf__code { position: relative; font: 800 clamp(6rem, 22vw, 14rem)/0.9 var(--font-display); letter-spacing: -0.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .nf__code::before, .nf__code::after { content: attr(data-glitch); position: absolute; inset: 0; background: inherit; -webkit-background-clip: text; background-clip: text; }
  .nf__code::before { animation: glitch 2.6s infinite steps(1); clip-path: inset(0 0 60% 0); translate: -3px 0; opacity: .7; }
  .nf__code::after { animation: glitch 3.1s infinite steps(1) reverse; clip-path: inset(55% 0 0 0); translate: 3px 0; opacity: .7; }
  @keyframes glitch { 0%, 92% { transform: none; } 94% { transform: translate(6px, -2px) skewX(8deg); } 96% { transform: translate(-6px, 2px); } }
  .nf .lead { margin-inline: auto; }
  .nf__apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
  .nf__apps a { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; }
}

/* ------------------------------------------------------------------ view transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.3, .9, .3, 1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

@layer utilities {
  [hidden] { display: none !important; }
}

@media print {
  .nav, .footer, .bg, .hero__gl, .subnav, .toolbar, .palette, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}
