/* ============================================================
   Agent Island — site stylesheet (v6)
   Dark #050507 + teal #20C0B0 system (measured from the logo).
   Orange #E08040 = Claude / alarm surfaces only.
   Gold #E0B050 = micro accents only (logo-center scale).
   Hairline borders, restrained glows, no purple/blue AI slop.
   v4 rule: the product is shown ONLY through real screenshots —
   no CSS-drawn bars, popups, or MacBooks. The v6 hero-bar-shell
   is a HOUSING for the real screenshot, not a redrawn product.
   v6: Raycast-style floating capsule nav, hero bar mid-hero in a
   hardware shell, bigger tilted hero cards with scroll parallax,
   directional reveal choreography, restrained color micro-accents.
   v7 (final): headline periods dropped, hero-meta line and the two
   decorative chips deleted — NO decorative small-print widgets, ever.
   Raycast-grade nav glass (blur 22 / saturate 180, gradient fill,
   inner top highlight), fully symmetric hero cards, and a restrained
   brand-color particle canvas in the hero + final CTA.
   ============================================================ */


:root {
  color-scheme: dark;
  --bg: #050507;
  --bg-raise: #0b0d0e;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text: #eef2f1;
  --muted: #a2aca8;
  --faint: #869089;
  --accent: #20c0b0;
  --accent-strong: #30d0c0;
  --accent-ink: #04211d;
  --accent-dim: rgba(32, 192, 176, 0.14);
  --accent-line: rgba(32, 192, 176, 0.4);
  --orange: #e08040;
  --orange-strong: #eb9257;
  --orange-dim: rgba(224, 128, 64, 0.15);
  --orange-line: rgba(224, 128, 64, 0.42);
  --gold: #e0b050;
  --codex-blue: #6f95d2;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 3px; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 700; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: rgba(32, 192, 176, 0.3); }

/* ---------- scroll reveal v6 (JS adds .has-js + .is-revealed) ----------
   Directional entrances via the independent `translate`/`scale` props so
   they compose with each element's own `transform` (tilts, perspective).
   data-reveal          → floats up
   data-reveal="left"   → slides in from the left
   data-reveal="right"  → slides in from the right
   data-reveal="zoom"   → floats up + micro-scale 0.97 → 1              */
.has-js [data-reveal] {
  opacity: 0;
  translate: var(--rv-x, 0px) var(--rv-y, 26px);
  scale: var(--rv-s, 1);
  transition:
    opacity 0.55s ease var(--reveal-delay, 0ms),
    translate 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    scale 0.65s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}
.has-js [data-reveal].is-revealed { opacity: 1; translate: 0px 0px; scale: 1; }
[data-reveal="left"] { --rv-x: -44px; --rv-y: 0px; }
[data-reveal="right"] { --rv-x: 44px; --rv-y: 0px; }
[data-reveal="zoom"] { --rv-y: 30px; --rv-s: 0.97; }
/* hero cards get a longer runway */
.hero-card[data-reveal="left"] { --rv-x: -70px; }
.hero-card[data-reveal="right"] { --rv-x: 70px; }
/* elements with their own hover transforms need the union transition list,
   because [data-reveal]'s transition shorthand would otherwise drop them */
.has-js .hero-card[data-reveal] {
  transition:
    opacity 0.6s ease var(--reveal-delay, 0ms),
    translate 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.35s ease;
}
.has-js .collage-main[data-reveal],
.has-js .collage-chip[data-reveal] {
  transition:
    opacity 0.6s ease var(--reveal-delay, 0ms),
    translate 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    scale 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 0.3s ease;
}
.has-js .bento-cell[data-reveal] {
  transition:
    opacity 0.55s ease var(--reveal-delay, 0ms),
    translate 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    border-color 200ms ease,
    background 200ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.3, 1),
    box-shadow 260ms ease;
}
/* trust items: the dot lights first, then the words fade in */
.has-js .trust-band li[data-reveal] { opacity: 1; translate: 0px 0px; scale: 1; }
.has-js .trust-band li[data-reveal]::before {
  opacity: 0;
  transform: scale(0.2);
  transition:
    opacity 0.3s ease var(--reveal-delay, 0ms),
    transform 0.5s var(--spring) var(--reveal-delay, 0ms);
}
.has-js .trust-band li[data-reveal] strong,
.has-js .trust-band li[data-reveal] > span {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s ease calc(var(--reveal-delay, 0ms) + 160ms),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--reveal-delay, 0ms) + 160ms);
}
.has-js .trust-band li[data-reveal].is-revealed::before { opacity: 1; transform: scale(1); }
.has-js .trust-band li[data-reveal].is-revealed strong,
.has-js .trust-band li[data-reveal].is-revealed > span { opacity: 1; transform: none; }

/* ---------- header (v6: Raycast-style floating capsule) ---------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(1060px, calc(100% - 28px));
  min-height: 56px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  /* v7 Raycast-grade glass: a whisper of vertical light over the blur,
     never a flat fill — plus a 1px inner top highlight. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.012) 100%),
    rgba(9, 10, 13, 0.52);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 18px rgba(0, 0, 0, 0.22);
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}
/* scrolled: deepen + lift — softer, deeper shadow, highlight kept */
.site-header.is-scrolled {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.008) 100%),
    rgba(7, 8, 10, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 70px rgba(0, 0, 0, 0.5),
    0 6px 22px rgba(0, 0, 0, 0.34);
}
/* anchors must clear the floating capsule */
section[id] { scroll-margin-top: 96px; }
.brand, .header-actions, .site-header nav, .language-switch { display: inline-flex; align-items: center; }
.brand { gap: 10px; width: fit-content; font-weight: 700; letter-spacing: -0.01em; }
.brand img, .footer-logo img { width: 30px; height: 30px; border-radius: 7px; flex: 0 0 auto; }
.site-header nav { justify-content: center; gap: 2px; }
.site-header nav a, .language-switch a {
  position: relative;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 550;
  transition: color 160ms ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.site-header nav a:hover, .site-header nav a:focus-visible,
.language-switch a:hover, .language-switch a:focus-visible {
  color: var(--text);
  outline: none;
}
.language-switch a:hover, .language-switch a:focus-visible { background: rgba(255, 255, 255, 0.06); }
.header-actions { justify-self: end; gap: 10px; }
.language-switch { padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, 0.03); }
.language-switch a { min-width: 38px; min-height: 28px; padding: 4px 8px; justify-content: center; text-align: center; }
.language-switch .is-active { background: var(--accent-dim); color: var(--accent-strong); }
.menu-toggle {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle span { display: block; width: 16px; height: 2px; border-radius: 999px; background: currentColor; transition: transform 180ms ease; }
.menu-toggle span + span { margin-top: 4px; }
.site-header.is-menu-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
.site-header.is-menu-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* header CTA: Star on GitHub with live count */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 200ms var(--spring), box-shadow 200ms ease;
}
.header-cta:hover, .header-cta:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(32, 192, 176, 0.28);
  outline: none;
}
.header-cta:active { transform: translateY(0) scale(0.98); }
.header-cta svg { flex: 0 0 auto; }
.star-count {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 640;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 220ms var(--spring), box-shadow 220ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 34px rgba(32, 192, 176, 0.22);
}
.btn-accent:hover, .btn-accent:focus-visible {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 14px 40px rgba(32, 192, 176, 0.3);
  outline: none;
}
.btn-ghost { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--accent-line); background: rgba(255, 255, 255, 0.07); outline: none; }
/* Windows download: teal outline sibling of the solid Mac button (v8) */
.btn-outline {
  border-color: rgba(48, 208, 192, 0.45);
  background: rgba(32, 192, 176, 0.08);
  color: var(--text);
}
.btn-outline:hover, .btn-outline:focus-visible {
  border-color: var(--accent);
  background: rgba(32, 192, 176, 0.14);
  box-shadow: 0 10px 34px rgba(32, 192, 176, 0.12);
  outline: none;
}
.btn svg { flex: 0 0 auto; }

/* .primary-action kept for the 404 page */
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 650;
  transition: background 160ms ease, transform 200ms var(--spring);
}
.primary-action:hover, .primary-action:focus-visible { background: var(--accent-strong); transform: translateY(-1px); outline: none; }

/* ---------- shared section furniture ---------- */
.section-inner { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.eyebrow, .section-label {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-head { max-width: 720px; margin: 0 auto; text-align: center; }
.section-head h2 { margin: 16px 0 0; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.02; letter-spacing: -0.024em; }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.section-lead h2 { margin: 16px 0 0; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.03; letter-spacing: -0.024em; }
.section-lead p:last-child { margin: 20px 0 0; color: var(--muted); font-size: 17px; line-height: 1.6; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  /* v10: the hero owns the whole first screen — content vertically centered,
     the particle field dancing across all of it. ≤1024px reverts to natural
     height (cards stack below the copy there). */
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 118px 30px 96px;
  /* v6 light pass: soft ambient from the top, a teal pool mid-hero where the
     physical bar now floats, one faint brand-color pool behind each hero card.
     Kept dim on purpose — headline contrast comes first. */
  background:
    radial-gradient(1100px 480px at 50% -12%, rgba(32, 192, 176, 0.09), transparent 62%),
    radial-gradient(680px 280px at 50% 430px, rgba(32, 192, 176, 0.12), transparent 68%),
    radial-gradient(500px 400px at calc(50% - 560px) 300px, rgba(224, 128, 64, 0.07), transparent 70%),
    radial-gradient(500px 400px at calc(50% + 560px) 340px, rgba(32, 192, 176, 0.06), transparent 70%),
    var(--bg);
  text-align: center;
}
/* faint monochrome grain so the black isn't dead flat (noise, not grid) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.05;
  pointer-events: none;
}
/* v9: a slow breathing aurora behind the hero — soft teal + orange light that
   drifts and swells under the particle motes. 0%/100% is the resting frame, so
   reduced motion just freezes it calm. */
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -22% -10% 6% -10%;
  pointer-events: none;
  background:
    radial-gradient(44% 42% at 27% 30%, rgba(32, 192, 176, 0.16), transparent 70%),
    radial-gradient(42% 40% at 74% 42%, rgba(224, 128, 64, 0.11), transparent 72%);
  filter: blur(26px);
  opacity: 0.85;
  will-change: transform, opacity;
  animation: hero-aurora 19s ease-in-out infinite;
}
/* motes ride above the aurora (still under the headline at z-index 2) */
.hero canvas.fx-particles { z-index: 1; }
@keyframes hero-aurora {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.72; }
  50% { transform: translate3d(0, -2.5%, 0) scale(1.07); opacity: 1; }
}
/* v7: brand-color particle layer (canvas, JS-driven). Sits above the section
   background, below all content; pointer-transparent; empty (and invisible)
   under prefers-reduced-motion because the JS never starts it. */
canvas.fx-particles {
  display: block;
  position: absolute; /* canvas.* specificity outranks .cta-final > * */
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Full-page drifting halo field behind all content, so the motion is not
   just in the hero and final CTA. Fixed so it does not scroll away; content
   sits above it via z-index. */
canvas.fx-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
}
body > main,
body > footer { position: relative; z-index: 1; }
.hero-inner { position: relative; z-index: 2; width: min(880px, 100%); margin: 0 auto; }
.hero h1 {
  margin: 0;
  font-size: clamp(50px, 7.6vw, 92px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.032em;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-strong) 55%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle { max-width: 620px; margin: 30px auto 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; }
/* v10: looser action stack — the rows breathe instead of pressing on each other */
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-top: 64px; }
.hero-buttons { display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* v8: two equal-width platform downloads on the primary row, GitHub on the secondary row */
.hero-downloads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: min(540px, 100%); }
.hero-downloads .btn { width: 100%; padding-inline: 16px; }

/* install command pill */
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  min-height: 52px;
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-raise);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 200ms ease;
}
.cmd:hover { border-color: rgba(255, 255, 255, 0.24); }
/* v8: functional platform tag on the install command (requested content, not decoration) */
.cmd-os {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cmd-prompt { color: var(--accent); font-family: var(--mono); font-size: 14px; font-weight: 700; }
.cmd code {
  overflow-x: auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
  scrollbar-width: none;
}
.cmd code::-webkit-scrollbar { display: none; }
.cmd-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.cmd-copy:hover, .cmd-copy:focus-visible { color: var(--accent-strong); border-color: var(--accent-line); outline: none; }
.cmd-copy.is-copied { color: var(--accent-strong); border-color: var(--accent-line); animation: copy-pop 320ms var(--spring); }
@keyframes copy-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* ============================================================
   HERO — real screenshots only.
   v6: the real menu-bar screenshot now sits MID-HERO, mounted in
   a CSS hardware shell — a pure-black capsule housing with an
   inner hairline, deep drop shadow and a bottom reflection. The
   screenshot itself is edge-faded 3px via mask so it reads as one
   physical island, not a pasted rectangle. The shell idles on a
   slow 6s float; hover swells it and crossfades to the alert state.
   ============================================================ */
.hero-bar-stage {
  position: relative;
  z-index: 2;
  width: fit-content;
  margin: 64px auto 0;
  animation: bar-float 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes bar-float {
  0%, 100% { transform: translateY(3px); }
  50% { transform: translateY(-3px); }
}
.hero-bar-shell {
  position: relative;
  display: block;
  padding: 9px 12px;
  border-radius: 999px;
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.6),
    0 6px 16px rgba(0, 0, 0, 0.45),
    0 0 46px rgba(32, 192, 176, 0.12);
  transform: translateZ(0);
  transition: transform 260ms ease, box-shadow 260ms ease;
  will-change: transform;
}
/* bottom reflection — light catching the underside of the housing */
.hero-bar-shell::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 1px;
  height: 42%;
  border-radius: 0 0 999px 999px;
  background: radial-gradient(58% 120% at 50% 100%, rgba(255, 255, 255, 0.07), transparent 72%);
  pointer-events: none;
}
.hero-bar-shell:hover {
  transform: scale(1.04);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 48px rgba(0, 0, 0, 0.62),
    0 6px 16px rgba(0, 0, 0, 0.45),
    0 0 46px rgba(224, 80, 56, 0.24);
}
.hero-bar {
  position: relative;
  width: min(520px, calc(100vw - 96px));
  border-radius: 999px;
  overflow: hidden;
  /* fade the screenshot's outer 3px into the shell so no hard edge survives */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 3px, #000 calc(100% - 3px), transparent),
    linear-gradient(to bottom, transparent, #000 3px, #000 calc(100% - 3px), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 3px, #000 calc(100% - 3px), transparent),
    linear-gradient(to bottom, transparent, #000 3px, #000 calc(100% - 3px), transparent);
  mask-composite: intersect;
}
.hero-bar img { width: 100%; height: auto; }
.hero-bar .is-alert {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 260ms ease;
  will-change: opacity;
}
.hero-bar-shell:hover .is-alert { opacity: 1; }

/* floating real alarm windows beside the headline
   v7: fully symmetric pair — same top, same size, mirrored tilts (−9°/+9°),
   equal distance from the center line. Only the scroll counter-parallax
   (--par set by JS, ±10px) and hover break the mirror, on purpose. */
.hero-cards { position: absolute; inset: 0; z-index: 1; margin: 0; pointer-events: none; }
.hero-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0a0a0d;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translate3d(0, var(--par, 0px), 0) rotate(var(--tilt, 0deg));
  transition: transform 350ms cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 350ms ease;
  pointer-events: auto;
  will-change: transform;
}
.hero-card:hover {
  transform: translate3d(0, calc(var(--par, 0px) - 10px), 0) rotate(0deg) scale(1.03);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.66), 0 10px 26px rgba(0, 0, 0, 0.45);
}
.hero-card img { width: 100%; height: auto; }
/* v10: tops are viewport-relative so the pair rides with the centered copy
   inside the full-screen hero (same formula both sides — symmetry intact) */
.hero-card-left { --tilt: -9deg; left: max(16px, calc(50vw - 700px)); top: calc(50% - 235px); width: clamp(205px, 20vw, 300px); }
.hero-card-right { --tilt: 9deg; right: max(16px, calc(50vw - 700px)); top: calc(50% - 235px); width: clamp(205px, 20vw, 300px); }

/* ---------- trust band ---------- */
.trust-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raise); }
.trust-band ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.trust-band li { position: relative; display: grid; gap: 5px; min-width: 0; padding: 22px 24px; border-right: 1px solid var(--line); transition: background 200ms ease; }
.trust-band li:hover { background: rgba(32, 192, 176, 0.04); }
.trust-band li:last-child { border-right: 0; }
/* the dot lives on the li so it can light up before the text (v6 reveal) */
.trust-band li::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 28px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(32, 192, 176, 0.55);
}
.trust-band strong { padding-left: 16px; color: var(--text); font-size: 14px; font-weight: 680; }
.trust-band span { padding-left: 16px; color: var(--faint); font-size: 12.5px; line-height: 1.45; }

/* featured-in row (verified listings only) */
.featured-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
}
.featured-in > span { color: var(--faint); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.featured-in a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease, border-color 160ms ease, transform 200ms var(--spring);
}
.featured-in a:hover, .featured-in a:focus-visible { color: var(--accent-strong); border-color: var(--accent-line); transform: translateY(-1px); outline: none; }
.featured-in a svg { flex: 0 0 auto; }

/* ---------- features (alternating rows) ---------- */
.features-section { padding: 128px 0 40px; }

/* ============================================================
   v15 FEATURE DESK — the reference method, done right. The CHROME is
   RENDERED in the browser (crisp DOM: menu bar, wallpaper, frame) — no
   screenshot, no white edge, no notch-key artifact. Only the genuine
   product rides on top as real footage (island shimmer, panels, alarm),
   each captured with NO menu bar baked in. A complete framed screen,
   never a floating black void.
   ============================================================ */
.feature-theater { position: relative; margin-top: 60px; }
/* faint starfield around the desk (two box-shadow layers) */
.feature-theater::before, .feature-theater::after {
  content: ""; position: absolute; z-index: 0; top: -60px; left: 8%;
  width: 2px; height: 2px; border-radius: 50%; pointer-events: none;
  background: rgba(238, 242, 241, 0.45);
  box-shadow: 16vw 26px 0 rgba(238,242,241,.32), 33vw -20px 0 rgba(238,242,241,.2),
    52vw 40px 0 rgba(238,242,241,.36), 68vw -8px 0 rgba(238,242,241,.24),
    82vw 22px 0 rgba(32,192,176,.3), 26vw 92px 0 rgba(224,128,64,.24);
}
.feature-theater::after { top: auto; bottom: -20px; left: 12%;
  box-shadow: 20vw -40px 0 rgba(238,242,241,.22), 44vw 10px 0 rgba(238,242,241,.3),
    60vw -22px 0 rgba(32,192,176,.24), 78vw 4px 0 rgba(238,242,241,.2); }

/* the complete framed screen */
.theater-screen {
  position: relative; z-index: 1;
  width: min(1080px, 100%); margin: 0 auto;
  aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 44px 110px rgba(0,0,0,0.6), 0 10px 34px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

/* the RENDERED wallpaper: teal light burst + diagonal rays fading to
   near-black (the "壁纸" — bright corner, dark depth, brand color) */
.desk-wallpaper {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(122deg, transparent 13%, rgba(70,228,204,0.13) 20%, transparent 27%,
      transparent 38%, rgba(70,228,204,0.08) 44%, transparent 50%),
    radial-gradient(92% 82% at 4% -8%, rgba(64,226,204,0.36), rgba(24,112,102,0.14) 38%, transparent 66%),
    radial-gradient(70% 62% at 42% 28%, rgba(34,156,142,0.14), transparent 70%),
    radial-gradient(62% 56% at 98% 106%, rgba(224,128,64,0.13), transparent 60%),
    linear-gradient(146deg, #08211e 0%, #061713 42%, #030c0a 76%, #020706 100%);
}
/* noise so the gradient never bands */
.desk-wallpaper::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  background-size: 160px 160px; mix-blend-mode: overlay;
}

/* the RENDERED menu bar (native, crisp — no screenshot) */
.desk-menubar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  height: 40px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 15px;
  background: linear-gradient(180deg, rgba(3,10,9,0.62), rgba(3,10,9,0.26));
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mb-left { display: flex; align-items: center; gap: 16px; color: rgba(238,242,241,0.9); font-size: 13px; }
.mb-left svg { margin-right: 3px; }
.mb-app { font-weight: 700; color: #fff; }
.mb-left span { font-weight: 500; }
.mb-right { display: flex; align-items: center; gap: 11px; color: rgba(238,242,241,0.86); }
.mb-clock { font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
/* the island (real footage) hangs at the notch, centered */
.mb-island {
  position: absolute; left: 50%; top: 50%; z-index: 4;
  width: min(430px, 43%); transform: translate(-50%, -50%);
}
.mb-island-video { display: block; width: 100%; height: auto; border-radius: 15px; }

/* product stages */
.desk-stage {
  position: absolute; inset: 40px 0 0 0; z-index: 2;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.desk-stage.is-active { opacity: 1; visibility: visible; transition: opacity 0.4s ease; }
.prod-window video { display: block; width: 100%; height: 100%; object-fit: cover; }
.prod-panel video { height: auto; object-fit: fill; }

/* usage / auto-resume: the panel drops from under the island */
.prod-panel {
  position: absolute; left: 50%; top: 0; z-index: 2;
  width: min(780px, 82%);
  transform: translateX(-50%);
  border-radius: 0 0 15px 15px; overflow: hidden; transform-origin: 50% 0;
  box-shadow: 0 34px 74px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.05);
  cursor: grab;
}
.prod-panel[data-scrub]:active { cursor: grabbing; }
.desk-stage.is-active .prod-panel { animation: v15-drop 0.62s cubic-bezier(0.22,1,0.3,1) 0.08s backwards; }
@keyframes v15-drop { from { opacity: 0; transform: translateX(-50%) translateY(-20px) scaleY(0.86); } }

/* alarm: the real window bursts onto the desktop */
.prod-alarm {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: min(300px, 34%); aspect-ratio: 1040 / 1048;
  transform: translate(-50%, -50%);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 42px 82px rgba(0,0,0,0.62), 0 0 54px rgba(224,128,64,0.18);
}
.desk-stage.is-active .prod-alarm { animation: v15-pop 0.5s cubic-bezier(0.26,1.5,0.44,1) 0.12s backwards; }
@keyframes v15-pop { from { opacity: 0; transform: translate(-50%,-46%) scale(0.72); } }

.scrub-hint {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); z-index: 3;
  padding: 5px 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 999px;
  background: rgba(6,12,11,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: rgba(238,242,241,0.6); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em;
}

/* install: a terminal window on the desk (command-line text) */
.term-install {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%,-50%); z-index: 2;
  width: min(500px, 58%);
  overflow: hidden; border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(9,9,13,0.94); box-shadow: 0 34px 76px rgba(0,0,0,0.55);
}
.desk-stage.is-active .term-install { animation: v15-pop 0.5s cubic-bezier(0.26,1.4,0.44,1) 0.1s backwards; }
.dw-bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dw-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.13); }
.dw-bar span:nth-child(1) { background: #f5605a; }
.dw-bar span:nth-child(2) { background: #f6bd3e; }
.dw-bar span:nth-child(3) { background: #43c645; }
.dw-bar em { margin-left: 6px; color: var(--faint); font-family: var(--mono); font-size: 11px; font-style: normal; }
.term-install pre { margin: 0; padding: 14px 16px 16px; overflow: hidden; }
.term-install code { color: var(--muted); font-family: var(--mono); font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.t-prompt { color: var(--accent); }
.t-dim { color: var(--faint); }
.t-gold { color: var(--gold); font-weight: 700; }

/* the glass dock — sits INSIDE the screen near the bottom, like the macOS dock */
.theater-dock-wrap { position: absolute; left: 50%; bottom: 18px; z-index: 6; width: fit-content; transform: translateX(-50%); }
.theater-tooltip {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  padding: 7px 13px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: rgba(14,16,17,0.95); color: var(--text); font-size: 12.5px; font-weight: 650;
  white-space: nowrap; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: left 0.3s cubic-bezier(0.2,0.8,0.3,1); pointer-events: none;
}
.theater-tabs {
  display: flex; gap: 12px; padding: 10px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 22px;
  background: rgba(13,15,16,0.72);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
}
.theater-tab {
  appearance: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; padding: 0;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  color: var(--muted); box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.25s var(--spring), box-shadow 0.25s ease;
}
.theater-tab img { border-radius: 7px; }
.theater-tab .tab-icon { width: 25px; height: 25px; }
.theater-tab:hover, .theater-tab:focus-visible { color: var(--text); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); outline: none; }
.theater-tab.is-active {
  color: var(--accent-strong); border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(32,192,176,0.18), rgba(32,192,176,0.06));
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(32,192,176,0.2), inset 0 1px 0 rgba(255,255,255,0.1);
}
.theater-tab[data-theater-tab="alarm"].is-active { color: var(--orange-strong); border-color: var(--orange-line); background: linear-gradient(180deg, rgba(224,128,64,0.18), rgba(224,128,64,0.05)); box-shadow: 0 10px 26px rgba(224,128,64,0.18), inset 0 1px 0 rgba(255,255,255,0.1); }
.theater-tab[data-theater-tab="usage"].is-active { color: var(--gold); border-color: rgba(224,176,80,0.42); background: linear-gradient(180deg, rgba(224,176,80,0.16), rgba(224,176,80,0.05)); box-shadow: 0 10px 26px rgba(224,176,80,0.16), inset 0 1px 0 rgba(255,255,255,0.1); }

.theater-caption {
  position: relative; z-index: 1;
  margin: 24px auto 0; min-height: 1.7em; max-width: 560px;
  color: var(--muted); font-size: 16px; line-height: 1.55; text-align: center;
}

/* ---------- bento grid ---------- */
.bento-section { padding: 120px 0; }
.bento-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 52px; }
.bento-cell {
  --cell-line: var(--accent-line);
  --cell-bg: rgba(32, 192, 176, 0.045);
  min-width: 0;
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 200ms ease, background 200ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 260ms ease;
}
.bento-cell:hover {
  border-color: var(--cell-line);
  background: var(--cell-bg);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
/* v6: hover keyline takes the color of the content —
   cell 1 alarm sounds → orange, cell 5 run records → gold, rest teal */
.bento-grid .bento-cell:nth-child(1) { --cell-line: var(--orange-line); --cell-bg: rgba(224, 128, 64, 0.055); }
.bento-grid .bento-cell:nth-child(5) { --cell-line: rgba(224, 176, 80, 0.42); --cell-bg: rgba(224, 176, 80, 0.05); }
.bento-cell h3 { margin: 0; color: var(--text); font-size: 16px; font-weight: 680; }
.bento-cell p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ============================================================
   SHOWCASE — real-screenshot depth collage.
   The real usage panel leans back in perspective; real UI
   crops float around it as glass chips.
   ============================================================ */
.showcase-section {
  padding: 120px 0 130px;
  background:
    linear-gradient(90deg, transparent 6%, rgba(32, 192, 176, 0.3) 50%, transparent 94%) top center / 100% 1px no-repeat,
    var(--bg-raise);
  overflow: hidden;
}
.showcase-collage { position: relative; width: min(960px, 100%); margin: 76px auto 0; }
.collage-main {
  width: min(780px, 92%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #050507;
  box-shadow: 0 46px 110px rgba(0, 0, 0, 0.62), 0 8px 30px rgba(0, 0, 0, 0.4);
  transform: perspective(1400px) rotateX(5deg);
  transform-origin: 50% 100%;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 300ms ease;
  will-change: transform;
}
.collage-main:hover {
  transform: perspective(1400px) rotateX(2deg) translateY(-5px);
  box-shadow: 0 56px 130px rgba(0, 0, 0, 0.68), 0 10px 34px rgba(0, 0, 0, 0.44);
}
.collage-main img { width: 100%; height: auto; }
.collage-chip {
  position: absolute;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #050507;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 200ms ease, box-shadow 200ms ease;
  will-change: transform;
}
.collage-chip:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.04);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65);
}
.collage-chip img { width: 100%; height: auto; }
.chip-claude { --tilt: -3.5deg; left: -6px; top: 16%; width: clamp(150px, 21vw, 208px); }
.chip-codex { --tilt: 3deg; right: -6px; top: 40%; width: clamp(150px, 21vw, 208px); }
.chip-reset { --tilt: -2deg; left: 8%; bottom: -18px; width: clamp(180px, 24vw, 248px); }

/* ---------- repo proof ---------- */
.repo-proof {
  padding: 128px 0;
  background: linear-gradient(90deg, transparent 6%, rgba(32, 192, 176, 0.3) 50%, transparent 94%) top center / 100% 1px no-repeat;
}
.repo-layout { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr); gap: 64px; align-items: start; }
.repo-console { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-raise); overflow: hidden; }
.repo-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
}
.repo-console-top span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.repo-console-top a, .repo-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 620;
  transition: border-color 160ms ease, transform 200ms var(--spring);
}
.repo-console-top a:hover, .repo-links a:hover,
.repo-console-top a:focus-visible, .repo-links a:focus-visible { border-color: var(--accent-line); transform: translateY(-1px); outline: none; }
.repo-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.repo-stats a { min-width: 0; padding: 16px 16px 18px; border-right: 1px solid var(--line); transition: background 160ms ease; }
.repo-stats a:last-child { border-right: 0; }
.repo-stats a:hover, .repo-stats a:focus-visible { background: rgba(32, 192, 176, 0.05); outline: none; }
.repo-stats span { display: block; color: var(--faint); font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.repo-stats strong { display: block; margin-top: 7px; overflow: hidden; color: var(--text); font-size: 20px; font-weight: 700; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.repo-command { border-bottom: 1px solid var(--line); }
.repo-command > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.repo-command button {
  margin-left: auto;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.repo-command button:hover, .repo-command button:focus-visible { color: var(--accent-strong); border-color: var(--accent-line); outline: none; }
.repo-command button.is-copied { color: var(--accent-strong); border-color: var(--accent-line); animation: copy-pop 320ms var(--spring); }
.repo-command pre { margin: 0; padding: 0 18px 18px; overflow-x: auto; }
.repo-command code { color: var(--text); font-family: var(--mono); font-size: 13px; line-height: 1.7; white-space: pre; }
.repo-links { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 18px 18px; }

/* ---------- capability cards (merged: features + details + open source) ---------- */
.cap-section {
  /* crewargo-style pin: the section is a 340vh runway; the shell sticks
     for ~240vh of it while the cards ride up through the viewport. */
  position: relative;
  min-height: 340vh;
  padding: 0;
  overflow: clip;
}
.cap-section > .section-inner {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 980px), (prefers-reduced-motion: reduce) {
  .cap-section { min-height: auto; padding: 100px 0; }
  .cap-section > .section-inner { position: static; min-height: auto; display: block; }
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 64px auto 0;
}
@media (max-width: 980px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card {
  display: flex;
  flex-direction: column;
  min-height: 336px;
  background: #0e1013;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 30px 26px 26px;
  /* JS writes the per-frame translate target; this transition smooths the
     coarse wheel steps — measured off crewargo's real implementation. */
  transform: translateY(110vh) scale(0.965);
  transition: transform 0.62s cubic-bezier(0.19, 1, 0.22, 1),
              border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
  will-change: transform;
}
.cap-card:hover {
  border-color: rgba(32, 192, 176, 0.45);
  background: #11151a;
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(32, 192, 176, 0.12);
}
@media (max-width: 980px), (prefers-reduced-motion: reduce) {
  .cap-card { transform: none; }
}
.cap-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  padding: 6px 4px 2px;
  margin-bottom: 14px;
}
.cap-art svg { width: 100%; max-width: 224px; height: auto; filter: drop-shadow(0 0 14px rgba(32, 192, 176, 0.18)); }
.cap-card h3 { margin: 26px 0 8px; font-size: 19px; font-weight: 680; letter-spacing: -0.01em; color: #fff; }
.cap-card p { margin: 0; color: rgba(255, 255, 255, 0.58); font-size: 14.5px; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq-section {
  padding: 128px 0;
  background: linear-gradient(90deg, transparent 6%, rgba(32, 192, 176, 0.3) 50%, transparent 94%) top center / 100% 1px no-repeat;
}
.faq-list { max-width: 780px; margin: 48px auto 0; border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
  padding: 20px 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 640;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: color 160ms ease, padding-left 240ms cubic-bezier(0.2, 0.8, 0.3, 1);
}
.faq-list summary:hover { color: var(--accent-strong); padding-left: 6px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 1.5px solid var(--faint);
  border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.3, 1), border-color 160ms ease;
}
.faq-list summary:hover::after { border-color: var(--accent); }
.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-body { overflow: hidden; }
.faq-list p { max-width: 700px; margin: 0 0 24px; color: var(--muted); font-size: 15.5px; line-height: 1.66; }
.faq-list code { padding: 2px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--bg-raise); color: var(--accent-strong); font-family: var(--mono); font-size: 13px; }

/* ---------- final CTA ---------- */
/* v6 light pass: bigger teal rise from the bottom + one small pool of
   orange (left) and teal (right) at the sides — the page ends lit. */
.cta-final {
  position: relative;
  padding: 150px 30px 160px;
  background:
    linear-gradient(90deg, transparent 6%, rgba(32, 192, 176, 0.3) 50%, transparent 94%) top center / 100% 1px no-repeat,
    radial-gradient(1000px 480px at 50% 116%, rgba(32, 192, 176, 0.16), transparent 64%),
    radial-gradient(360px 280px at 10% 96%, rgba(224, 128, 64, 0.07), transparent 70%),
    radial-gradient(360px 280px at 90% 96%, rgba(32, 192, 176, 0.08), transparent 70%),
    var(--bg);
  text-align: center;
}
.cta-inner { width: min(720px, 100%); margin: 0 auto; }
.cta-final h2 { margin: 0; font-size: clamp(40px, 6vw, 66px); line-height: 1.0; letter-spacing: -0.028em; }
.cta-final > .cta-inner > p { margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.cta-final .hero-actions { margin-top: 36px; }
/* v5: slightly stronger hover halo on the closing CTA only */
.cta-final .btn-accent:hover, .cta-final .btn-accent:focus-visible {
  box-shadow: 0 14px 44px rgba(32, 192, 176, 0.34), 0 0 34px rgba(32, 192, 176, 0.16);
}

/* ---------- footer ---------- */
/* v5: faint teal light rising from the very bottom to close the page.
   (The v9 "aperture rings" experiment here was a misread and is gone —
   the halo/光晕 feel lives in the particle motes of the hero + final CTA.) */
.site-footer {
  padding: 0 30px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background:
    radial-gradient(1100px 340px at 50% 128%, rgba(32, 192, 176, 0.05), transparent 72%),
    var(--bg);
}
.footer-shell { width: min(1160px, 100%); margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr); gap: 64px; padding: 54px 0 48px; }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--text); font-size: 16px; font-weight: 700; }
/* v6: a small halo on the closing logo */
.footer-logo img { filter: drop-shadow(0 0 9px rgba(32, 192, 176, 0.38)); }
.footer-brand { display: grid; align-content: start; min-width: 0; }
.footer-copyright { margin: 18px 0 0; color: var(--faint); font-size: 13.5px; line-height: 1.45; }
.footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; gap: 32px; min-width: 0; }
.footer-column { min-width: 0; }
.footer-column h3 { margin: 0 0 14px; color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-column ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-column a { display: inline-flex; max-width: 100%; padding: 2px 0; color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; transition: color 150ms ease, transform 200ms ease; }
.footer-column a:hover { color: var(--accent-strong); }
.footer-column a:focus-visible { color: var(--accent-strong); outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 3px; }

/* ---------- blog ---------- */
.blog-main { background: var(--bg); color: var(--text); }
.blog-hero {
  padding: 112px 30px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.blog-shell { width: min(920px, 100%); margin: 0 auto; }
.blog-path { margin: 0; color: var(--faint); font-family: var(--mono); font-size: 13px; font-weight: 650; }
.blog-hero h1 { max-width: 820px; margin: 14px 0 0; color: var(--text); font-size: clamp(38px, 5.4vw, 58px); line-height: 1.04; letter-spacing: 0; text-wrap: balance; }
.blog-hero p:last-child { max-width: 680px; margin: 14px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.blog-section { padding: 28px 30px 98px; background: var(--bg); }
.blog-list-shell { width: min(920px, 100%); margin: 0 auto; }
.featured-post, .post-card {
  position: relative;
  display: block;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color 200ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.3, 1), background 200ms ease, box-shadow 260ms ease;
}
.featured-post { padding: 28px; margin-bottom: 34px; }
.featured-post:hover, .featured-post:focus-visible, .post-card:hover, .post-card:focus-visible {
  border-color: var(--accent-line);
  background: rgba(32, 192, 176, 0.045);
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.post-arrow {
  position: absolute;
  right: 22px;
  top: 24px;
  color: var(--faint);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 200ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.3, 1), color 200ms ease;
}
.featured-post:hover .post-arrow, .post-card:hover .post-arrow { opacity: 1; transform: none; color: var(--accent-strong); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; color: var(--faint); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.post-meta strong { padding: 4px 7px; border-radius: 6px; background: var(--accent-dim); color: var(--accent-strong); font-size: 11px; text-transform: uppercase; }
.post-meta time { color: var(--muted); }
.featured-post h2, .post-card h2 { margin: 18px 0 0; color: var(--text); line-height: 1.12; letter-spacing: -0.015em; }
.featured-post h2 { font-size: 29px; }
.post-card h2 { font-size: 21px; }
.featured-post p, .post-card p { margin: 14px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.62; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.blog-filter {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 200ms var(--spring);
}
.blog-filter:hover { border-color: var(--line-strong); color: var(--text); transform: translateY(-1px); }
.blog-filter.is-active { border-color: var(--accent-line); background: var(--accent-dim); color: var(--accent-strong); }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.post-card { padding: 24px; }
.post-card.is-hidden { display: none; }

.article-hero .blog-shell { width: min(1120px, 100%); }
.article-hero h1 { max-width: 880px; font-size: clamp(38px, 5.2vw, 60px); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 220px;
  gap: 72px;
  width: min(1040px, 100%);
  margin: 0 auto;
  align-items: start;
}
.post-body { min-width: 0; color: var(--muted); font-size: 17px; line-height: 1.78; }
.post-body > :first-child { margin-top: 0; }
.post-body p { margin: 0 0 1.25em; }
.post-body h2 { scroll-margin-top: 100px; margin: 2.35em 0 0.65em; color: var(--text); font-size: 29px; line-height: 1.18; letter-spacing: 0; }
.post-body h3 { margin: 1.8em 0 0.55em; color: var(--text); font-size: 20px; line-height: 1.3; letter-spacing: 0; }
.post-body a { color: var(--accent-strong); text-decoration: underline; text-decoration-color: rgba(68, 218, 198, 0.35); text-underline-offset: 3px; }
.post-body code { padding: 2px 5px; border-radius: 4px; background: var(--bg-raise); color: #c8f7ef; font-family: var(--mono); font-size: 0.88em; }
.post-body pre { margin: 24px 0 30px; padding: 20px 22px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #090c0f; line-height: 1.62; }
.post-body pre code { padding: 0; background: transparent; color: #d8e5e3; font-size: 13px; }
.post-body ul, .post-body ol { display: grid; gap: 9px; margin: 0 0 1.4em; padding-left: 22px; }
.post-body blockquote { margin: 26px 0; padding: 3px 0 3px 20px; border-left: 3px solid var(--accent); color: var(--text); font-size: 19px; }
.post-figure { margin: 30px 0 36px; }
.post-figure img { display: block; width: 100%; max-height: 620px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #080a0d; }
.post-figure.is-portrait img { width: min(520px, 100%); margin: 0 auto; }
.post-figure figcaption { margin-top: 10px; color: var(--faint); font-family: var(--mono); font-size: 12px; line-height: 1.55; }
.article-toc { position: sticky; top: 106px; padding-top: 4px; }
.article-toc strong { display: block; margin-bottom: 12px; color: var(--faint); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.article-toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
.article-toc a:hover, .article-toc a:focus-visible { color: var(--accent-strong); outline: none; }
.article-end { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-end p { color: var(--muted); font-size: 15px; }
.article-back { display: inline-flex; margin-top: 18px; color: var(--accent-strong); font-weight: 650; }

.changelog-section { padding-top: 24px; }
.changelog-list { display: grid; gap: 18px; }
.changelog-release {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}
.changelog-release h2 {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.changelog-release h3 {
  margin: 20px 0 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0;
}
.changelog-release p,
.changelog-release li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.68;
}
.changelog-release p { margin: 0 0 12px; }
.changelog-release ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.changelog-release code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--bg-raise);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.92em;
}

/* ---------- legal / contact ---------- */
.legal-main { background: var(--bg); color: var(--text); }
.legal-hero {
  padding: 128px 30px 42px;
  background: radial-gradient(900px 380px at 30% -20%, rgba(32, 192, 176, 0.09), transparent 62%), var(--bg);
}
.legal-shell { width: min(900px, 100%); margin: 0 auto; }
.legal-hero h1 { max-width: 760px; margin: 18px 0 0; color: var(--text); font-size: clamp(44px, 6.4vw, 68px); line-height: 0.98; letter-spacing: -0.025em; }
.legal-hero p { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.62; }
.legal-hero span { display: block; margin-top: 18px; color: var(--faint); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.legal-section { padding: 36px 30px 98px; }
.legal-copy { border-top: 1px solid var(--line-strong); }
.legal-copy h2 { margin: 0; padding-top: 30px; color: var(--text); font-size: 23px; line-height: 1.2; letter-spacing: -0.01em; }
.legal-copy p { max-width: 760px; margin: 12px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.legal-copy a { color: var(--accent-strong); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* contact form + channel cards */
.contact-section { padding: 26px 30px 98px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 26px; width: min(1000px, 100%); margin: 0 auto; align-items: start; }
.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}
.contact-form label { display: grid; gap: 8px; color: var(--text); font-size: 13.5px; font-weight: 650; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg-raise);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--faint); }
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-dim);
  outline: none;
}
.contact-form .btn { width: 100%; }
.form-note { margin: -4px 0 0; color: var(--faint); font-size: 12.5px; line-height: 1.5; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 20px 44px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  transition: border-color 200ms ease, transform 260ms cubic-bezier(0.2, 0.8, 0.3, 1), background 200ms ease;
}
.contact-card:hover, .contact-card:focus-visible {
  border-color: var(--accent-line);
  background: rgba(32, 192, 176, 0.045);
  transform: translateY(-3px);
  outline: none;
}
.contact-card strong { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 15.5px; font-weight: 680; }
.contact-card span { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.contact-card .post-arrow { top: 20px; right: 18px; }
.contact-card:hover .post-arrow { opacity: 1; transform: none; color: var(--accent-strong); }

/* ---------- 404 ---------- */
.not-found {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: radial-gradient(800px 400px at 50% -10%, rgba(32, 192, 176, 0.1), transparent 62%), var(--bg);
}
.not-found-page { width: min(560px, calc(100% - 40px)); display: grid; gap: 18px; justify-items: start; }
.not-found-page img { width: 42px; height: 42px; border-radius: 9px; }
.not-found-page h1 { margin: 0; font-size: clamp(48px, 8vw, 72px); line-height: 0.95; letter-spacing: -0.025em; }
.not-found-page p:not(.eyebrow) { margin: 0 0 8px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.not-found-links a { color: var(--faint); font-size: 14px; font-weight: 600; transition: color 150ms ease; }
.not-found-links a:hover { color: var(--accent-strong); }

/* ---------- CJK ---------- */
html[data-lang="zh"] body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif; }
html[data-lang="zh"] .hero h1,
html[data-lang="zh"] .section-head h2,
html[data-lang="zh"] .section-lead h2,
html[data-lang="zh"] .feature-copy h3,
html[data-lang="zh"] .cta-final h2 { letter-spacing: 0; word-break: keep-all; overflow-wrap: normal; line-break: strict; }
html[data-lang="zh"] .hero-subtitle,
html[data-lang="zh"] .section-head p,
html[data-lang="zh"] .section-lead p,
html[data-lang="zh"] .faq-list p,
html[data-lang="zh"] .feature-points span,
html[data-lang="zh"] .bento-cell p { word-break: normal; overflow-wrap: break-word; line-break: strict; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .menu-toggle { display: grid; }
  .site-header.is-menu-open { border-radius: 26px; }
  .site-header.is-menu-open nav { display: grid; grid-column: 1 / -1; grid-template-columns: 1fr; gap: 8px; padding: 10px 8px 8px; }
  .site-header.is-menu-open nav a { display: flex; align-items: center; min-height: 42px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); }
  .site-header.is-menu-open nav a::after { display: none; }
  .repo-layout, .footer-main { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-band ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-band li { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-band li:nth-child(odd) { border-right: 1px solid var(--line); }
  .trust-band li:nth-last-child(-n + 1) { border-bottom: 0; }
  .footer-main { gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; }
}
/* hero cards degrade to a static row below the hero copy */
@media (max-width: 1024px) {
  /* v10: full-screen hero is a desktop treat — stacked layouts flow naturally */
  .hero { min-height: 0; justify-content: flex-start; }
  .hero-cards {
    position: static;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    width: min(680px, 100%);
    margin: 48px auto 0;
  }
  .hero-card { position: static; width: 36%; --par: 0px; }
  .hero-card-left { --tilt: -4deg; }
  .hero-card-right { --tilt: 4deg; }
}
@media (max-width: 720px) {
  .site-header { top: 10px; min-height: 52px; padding: 7px 8px 7px 14px; }
  .brand span { display: none; }
  .header-actions { gap: 7px; }
  .language-switch a { min-width: 34px; padding: 5px 8px; font-size: 13px; }
  .header-cta { min-height: 34px; padding: 7px 11px; font-size: 13px; }
  .header-cta .cta-label { display: none; }
  .hero { padding: 92px 16px 64px; }
  .hero-bar-stage { margin-top: 28px; }
  .hero-bar-shell { padding: 7px 10px; }
  .hero-subtitle { font-size: 16.5px; }
  .hero-actions { align-items: stretch; }
  .cmd { justify-content: space-between; }
  .hero-buttons { width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .hero-downloads { grid-template-columns: 1fr; width: 100%; }
  .hero-cards { gap: 14px; margin-top: 40px; }
  .hero-card { width: 44%; margin-top: 0; }
  .showcase-collage { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
  .collage-main { flex: 0 0 100%; width: 100%; transform: none; }
  .collage-main:hover { transform: none; }
  .collage-chip { position: static; }
  .chip-claude, .chip-codex { width: 38%; }
  .chip-reset { width: 52%; }
  .feature-theater { margin-top: 36px; }
  .theater-screen { border-radius: 14px; aspect-ratio: 4 / 3; }
  .desk-menubar { height: 30px; padding: 0 9px; }
  .mb-left { gap: 8px; font-size: 10px; }
  /* phone menu bar: Apple mark + app name only — the rest would crowd the island */
  .mb-left span { display: none; }
  .mb-right { gap: 6px; }
  .mb-right svg { transform: scale(0.8); }
  /* phone: keep only wifi + battery + clock on the right; the island needs room */
  .mb-right svg:nth-of-type(1), .mb-right svg:nth-of-type(2) { display: none; }
  .mb-clock { font-size: 10px; }
  .mb-island { width: 39%; }
  .desk-stage { inset: 30px 0 0 0; }
  .prod-panel { width: 92%; }
  .prod-alarm { width: 46%; }
  .scrub-hint { bottom: 11%; font-size: 9px; padding: 4px 9px; }
  .term-install { width: 84%; }
  .term-install code { font-size: 10px; }
  .term-install pre { padding: 9px 11px 11px; }
  .theater-dock-wrap { bottom: 12px; }
  .theater-tabs { gap: 8px; padding: 8px; border-radius: 17px; }
  .theater-tab { width: 44px; height: 44px; border-radius: 12px; }
  .theater-tab img { width: 20px; height: 20px; }
  .theater-tab .tab-icon { width: 20px; height: 20px; }
  .theater-tooltip { font-size: 11.5px; padding: 6px 10px; }
  .theater-caption { font-size: 14.5px; }
  .trust-band ul { grid-template-columns: 1fr; }
  .trust-band li, .trust-band li:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-band li:last-child { border-bottom: 0; }
  .featured-in { padding: 14px 16px; }
  .section-inner { width: min(calc(100% - 32px), 1160px); }
  .cap-section, .faq-section { padding: 84px 0; }
  .features-section { padding-bottom: 20px; }
  .bento-grid { grid-template-columns: 1fr; }
  .repo-stats { grid-template-columns: 1fr; }
  .repo-stats a { border-right: 0; border-bottom: 1px solid var(--line); }
  .repo-stats a:last-child { border-bottom: 0; }
  .repo-stats { border-bottom: 1px solid var(--line); }
  .repo-console-top { align-items: flex-start; flex-direction: column; gap: 10px; padding: 14px 18px; }
  .cta-final { padding: 100px 16px 110px; }
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero, .legal-hero { padding: 84px 16px 24px; }
  .blog-hero h1 { font-size: 38px; line-height: 1.08; }
  .blog-section, .legal-section { padding: 24px 16px 74px; }
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-toc { display: none; }
  .post-body { font-size: 16.5px; line-height: 1.72; }
  .post-body h2 { margin-top: 2.05em; font-size: 25px; }
  .post-body pre { padding: 16px; }
  .contact-section { padding: 20px 16px 74px; }
  .site-footer { padding: 0 16px 28px; }
  .footer-main { gap: 30px; padding: 34px 0; }
  .footer-links { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 390px) {
  .mb-island { width: 32%; }
  .cmd code { font-size: 12.5px; }
  .cmd-os { display: none; }
}

/* ---------- reduced motion: static, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .has-js [data-reveal] { opacity: 1; translate: 0px 0px; scale: 1; transform: none; }
  .has-js .hero-card[data-reveal] { transform: rotate(var(--tilt, 0deg)); }
  .has-js .collage-chip[data-reveal] { transform: rotate(var(--tilt, 0deg)); }
  .has-js .collage-main[data-reveal] { transform: perspective(1400px) rotateX(5deg); }
  .has-js .trust-band li[data-reveal]::before { opacity: 1; transform: scale(1); }
  .has-js .trust-band li[data-reveal] strong,
  .has-js .trust-band li[data-reveal] > span { opacity: 1; transform: none; }
  .hero-bar-stage { animation: none; }
  .hero-card, .collage-chip, .collage-main { transition: none; }
}

/* v6: closing glow — a soft teal rise under the final CTA so the page ends
   with the same "lit screen" feeling the hero opens with. */
.cta-final {
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: auto 0 -40% 0;
  height: 80%;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(32, 192, 176, 0.12), transparent 70%);
  pointer-events: none;
}
.cta-final > * { position: relative; }
.cta-final .btn-primary:hover {
  box-shadow: 0 0 32px rgba(32, 192, 176, 0.35);
}

/* v15.1: visible contact email in footer + contact page */
.footer-email { display: inline-block; margin: 6px 0 0; color: var(--muted); font-size: 13.5px; text-decoration: none; transition: color 160ms ease; }
.footer-email:hover, .footer-email:focus-visible { color: var(--accent-strong); }
.contact-email-line { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.contact-email-line a { color: var(--accent-strong); text-decoration: none; font-weight: 600; }
.contact-email-line a:hover, .contact-email-line a:focus-visible { text-decoration: underline; }

/* On-site blog posts */
.blog-hero .post-meta { margin-bottom: 18px; }
.post-body { width: min(720px, 100%); margin: 0 auto; color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.post-body h2 { margin: 44px 0 14px; color: var(--text); font-size: 26px; letter-spacing: -0.015em; line-height: 1.25; }
.post-body h3 { margin: 32px 0 10px; color: var(--text); font-size: 19px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { display: grid; gap: 9px; margin: 0 0 18px; padding-left: 22px; }
.post-body strong { color: var(--text); }
.post-body a { color: var(--accent-strong); text-decoration: none; }
.post-body a:hover, .post-body a:focus-visible { text-decoration: underline; }
.post-body code { padding: 2px 6px; border-radius: 6px; background: var(--accent-dim); color: var(--accent-strong); font-family: var(--mono); font-size: 0.88em; }
.post-body pre { margin: 0 0 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); overflow-x: auto; }
.post-body pre code { padding: 0; background: none; color: var(--text); font-size: 13.5px; line-height: 1.65; }
.post-body blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 2px solid var(--accent-strong); color: var(--text); }
.post-body hr { margin: 36px 0; border: 0; border-top: 1px solid var(--line); }
.post-footer-nav { width: min(720px, 100%); margin: 48px auto 0; padding-top: 22px; border-top: 1px solid var(--line); }
.post-footer-nav a { color: var(--accent-strong); font-family: var(--mono); font-size: 13.5px; font-weight: 650; text-decoration: none; }
.post-footer-nav a:hover, .post-footer-nav a:focus-visible { text-decoration: underline; }
.post-footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* Compare page */
.compare-note { width: min(760px, 100%); margin: 0 auto 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 14px; line-height: 1.62; }
.compare-note strong { color: var(--text); }
.compare-table-wrap { width: min(880px, 100%); margin: 0 auto 8px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.compare-table-wrap:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare-table thead th { color: var(--text); font-weight: 650; font-size: 14px; white-space: nowrap; }
.compare-table thead th:nth-child(2) { color: var(--accent-strong); }
.compare-table tbody th { color: var(--muted); font-weight: 500; }
.compare-table tbody td { color: var(--text); }
.compare-table td.hl { background: var(--accent-dim); font-weight: 550; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-fineprint { width: min(760px, 100%); margin: 30px auto 0; color: var(--faint); font-size: 12.5px; line-height: 1.6; }

/* ---- Community page (QR grid) ---- */
.qr-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 34px 0 10px;
}
.qr-card {
  background: var(--panel, rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 26px 18px;
  text-align: center;
  max-width: 320px;
}
.qr-card img {
  width: 250px;
  max-width: 100%;
  border-radius: 12px;
  display: block;
  margin: 0 auto 12px;
  background: #fff;
}
.qr-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.qr-card span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- Report tab: two separate cards ---- */
.report-pair {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 8px 4px;
}
.report-pair img {
  width: min(440px, 46%);
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
@media (max-width: 720px) {
  .report-pair img { width: min(440px, 94%); }
}


/* ---- Micro-interactions (owner brief 2026-07-15) ---- */

/* Star buttons: the star fills gold and pops on hover */
.header-cta svg, .btn-ghost svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.header-cta:hover svg, .header-cta:focus-visible svg,
.btn-ghost:hover svg, .btn-ghost:focus-visible svg {
  transform: scale(1.28) rotate(72deg);
  filter: drop-shadow(0 0 7px rgba(255, 197, 61, 0.65));
}
.header-cta:hover svg path, .header-cta:focus-visible svg path,
.btn-ghost:hover svg path, .btn-ghost:focus-visible svg path {
  fill: #ffc53d;
}

/* Download buttons: the arrow drops into the tray on hover */
.btn-dl { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.dl-ico { flex: 0 0 auto; overflow: visible; }
@keyframes dl-drop {
  0% { transform: translateY(-7px); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateY(6px); opacity: 0; }
}
.btn-dl:hover .dl-arrow, .btn-dl:focus-visible .dl-arrow {
  animation: dl-drop 0.7s ease-in-out infinite;
}

/* Hero scroll cue: cascading chevrons */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: -2px;
  opacity: 0.75;
  transition: opacity 0.25s ease;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue span {
  width: 15px;
  height: 15px;
  margin-top: -7px;
  border-right: 2.2px solid rgba(255, 255, 255, 0.8);
  border-bottom: 2.2px solid rgba(255, 255, 255, 0.8);
  transform: rotate(45deg);
  animation: cue-fall 1.7s ease-in-out infinite;
}
.scroll-cue span:nth-child(2) { animation-delay: 0.18s; }
.scroll-cue span:nth-child(3) { animation-delay: 0.36s; }
@keyframes cue-fall {
  0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
  45% { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}

/* Cursor spotlight: one fixed layer, GPU-only, screen-blended teal pool */
.cursor-spot {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(560px at var(--mx, 50%) var(--my, 38%),
    rgba(32, 192, 176, 0.075), transparent 62%);
  mix-blend-mode: screen;
}

/* Hero H1: one-shot shine sweep on load */
@keyframes h1-shine {
  0% { background-position: -140% 0, 0 0; }
  26% { background-position: 240% 0, 0 0; }
  100% { background-position: 240% 0, 0 0; }
}
.hero h1 {
  /* clip-text paints only inside the background box; pad it down so the
     descender of "g" keeps its ink (owner: "G 被割了一半"). */
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
  /* Two layers: a travelling gleam band over a standing silver-teal
     metal gradient — the "质感" pass. The gleam sweeps once every 7s. */
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0) 44%, rgba(198, 255, 245, 0.95) 50%, rgba(255, 255, 255, 0) 56%) no-repeat,
    linear-gradient(180deg, #ffffff 28%, #dcebe8 70%, #a8ccc6 100%);
  background-size: 240% 100%, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 20px rgba(160, 240, 226, 0.16));
  animation: h1-shine 7s ease-in-out 0.35s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span, .btn-dl:hover .dl-arrow { animation: none; }
  .hero h1 { background: none; color: #fff; animation: none; }
  .cursor-spot { display: none; }
}
@media (hover: none) {
  .cursor-spot { display: none; }
}


/* ---- Flourish pass 2 (owner: 四个都加) ---- */

/* Border beam: a light runs the card's edge on hover */
@property --beam {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.cap-card { position: relative; }
.cap-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 19px;
  padding: 1px;
  background: conic-gradient(from var(--beam),
    transparent 0deg 318deg,
    rgba(32, 192, 176, 0.08) 330deg,
    rgba(96, 240, 222, 0.95) 350deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.cap-card:hover::after {
  opacity: 1;
  animation: beam-spin 2.6s linear infinite;
}
@keyframes beam-spin { to { --beam: 360deg; } }

/* Theater tabs tilt in with real depth */
.theater-screen { perspective: 1100px; }
.desk-stage.is-active { animation: stage-tilt 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes stage-tilt {
  from { opacity: 0; transform: rotateX(8deg) translateY(14px); }
}

/* Magnetic buttons: JS feeds --magx/--magy */
.magnetic {
  transform: translate(var(--magx, 0px), var(--magy, 0px));
  transition: transform 0.16s ease-out;
  will-change: transform;
}

/* Film grain: one static noise layer, the cheapest "expensive" texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
  mix-blend-mode: overlay;
}

@media (prefers-reduced-motion: reduce) {
  .cap-card:hover::after { animation: none; }
  .desk-stage.is-active { animation: none; }
  .magnetic { transition: none; transform: none; }
}


/* ---- Flourish pass 3: marquee, typewriter caret, tilt, sea preview ---- */
.listing-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1060px, calc(100% - 48px));
  margin: -20px auto 26px;
  position: relative;
  z-index: 2;
}
.listing-lead {
  flex: 0 0 auto;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.listing-marquee {
  flex: 1;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.listing-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.listing-marquee:hover .listing-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.listing-chip {
  flex: 0 0 auto;
  margin-right: 10px;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.listing-chip:hover { color: var(--text); border-color: var(--accent-line); }

.cmd-caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.tiltable { transition: transform 0.25s ease-out; will-change: transform; }
.report-pair { perspective: 900px; }

.sea-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
  .listing-track { animation: none; }
  .listing-marquee { overflow-x: auto; -webkit-mask: none; mask: none; }
  .cmd-caret { animation: none; }
}


/* ---- Flourish pass 4: stagger type, octo wave, progress, selection ---- */

/* Headings: characters rise in with a blur, 34ms apart */
.st-run .st-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(6px);
  animation: ch-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 34ms);
}
@keyframes ch-in {
  to { opacity: 1; transform: none; filter: none; }
}

/* GitHub button: the mark waves hello on hover */
.gh-ico { transform-origin: 50% 62%; }
.btn:hover .gh-ico, .btn:focus-visible .gh-ico { animation: gh-wave 0.65s ease; }
@keyframes gh-wave {
  25% { transform: rotate(-14deg); }
  55% { transform: rotate(10deg); }
  80% { transform: rotate(-5deg); }
}

/* Brand sparks spin once on hover */
.brand img, .footer-logo img { transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand:hover img, .footer-logo:hover img { transform: rotate(180deg); }

/* Theater tab icon pops when selected */
.theater-tab[aria-selected="true"] .tab-icon { animation: tab-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes tab-pop { 40% { transform: scale(1.28); } }

/* FAQ answers slide in when opened */
.faq-list details[open] > *:not(summary) { animation: faq-in 0.35s ease; }
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
}

/* Marquee chips lift on hover */
.listing-chip { transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, background 0.2s ease; }
.listing-chip:hover { transform: translateY(-2px); background: rgba(32, 192, 176, 0.08); }
.listing-strip { margin: 34px auto; }

/* Scroll progress hairline under the nav */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(var(--sp, 0));
  background: linear-gradient(90deg, var(--accent), #7ef0e2);
  pointer-events: none;
}

/* Brand-teal text selection */
::selection { background: rgba(32, 192, 176, 0.32); color: #eafffb; }

@media (prefers-reduced-motion: reduce) {
  .st-run .st-ch { animation: none; opacity: 1; transform: none; filter: none; }
  .gh-ico, .theater-tab[aria-selected="true"] .tab-icon { animation: none; }
  .scroll-progress { display: none; }
  .faq-list details[open] > *:not(summary) { animation: none; }
}


/* Listing chips: clean focus (the default outline doubled the border on
   click) and a slightly richer hover */
.listing-chip:focus { outline: none; }
.listing-chip:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(32, 192, 176, 0.18);
}
.listing-chip:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 12px rgba(32, 192, 176, 0.12);
}
.listing-chip { -webkit-tap-highlight-color: transparent; }


/* ---- Flourish pass 5: star burst + copy flash ---- */
.star-burst {
  position: fixed;
  z-index: 95;
  pointer-events: none;
  color: #ffc53d;
  text-shadow: 0 0 6px rgba(255, 197, 61, 0.8);
  transform: translate(-50%, -50%);
  animation: burst 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes burst {
  30% {
    opacity: 1;
    transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1.15) rotate(40deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(90deg);
  }
}

.copied-flash { animation: copy-flash 0.65s ease; }
@keyframes copy-flash {
  25% {
    border-color: rgba(61, 214, 140, 0.9);
    box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.22), 0 0 18px rgba(61, 214, 140, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .star-burst { display: none; }
  .copied-flash { animation: none; }
}


/* Hero subtitle: one line on desktop, brand-tinted tool names with their
   marks trailing the words */
.hero-subtitle { max-width: none; font-size: clamp(15px, 1.55vw, 19px); }
@media (max-width: 760px) {
  .hero-subtitle { font-size: 16px; }
}
.brand-claude, .brand-codex { font-weight: 640; white-space: nowrap; }
.brand-claude { color: #e08a5f; }
.brand-codex { color: #74b8f5; }
.brand-mark {
  /* The global img/display:block reset was breaking these onto their own
     lines, and the source marks are black-on-transparent — a currentColor
     mask solves both: inline, and tinted by the brand span. */
  display: inline-block;
  width: 1.02em;
  height: 1.02em;
  margin-left: 0.28em;
  vertical-align: -0.16em;
  background-color: currentColor;
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}
.brand-mark-claude { --mark: url("./assets/agent-island-mark-claude.png"); }
.brand-mark-codex { --mark: url("./assets/agent-island-mark-openai.png"); }
