/* ═══════════════════════════════════════════════════════════════
   AgentDesk — v3 "editorial"
   Cream / ink, blue accent. Rules instead of cards, outline
   numerals, asymmetric grids, one easing everywhere.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #f5f4ef; --bg-2: #eeede6; --bg-3: #e5e4dc; --card: #fbfaf7;
  --ink: #141413; --on-ink: #f5f4ef; --on-ink-2: rgba(245,244,239,0.66);
  --text: #171716; --text-2: #5d5c57; --text-3: #8b8a83;
  --line: rgba(20,20,19,0.12); --line-2: rgba(20,20,19,0.22); --line-3: rgba(20,20,19,0.5);
  --accent: #1f8bff; --accent-ink: #0d6fd8; --accent-soft: rgba(31,139,255,0.10);
  --ok: #1d9a63; --warn: #b7791f; --neg: #c8372a;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --serif: "Newsreader", "Tiempos Text", Georgia, serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, monospace;
  --container: 1240px; --nav-h: 58px; --nav-top: 14px;
  --ease: cubic-bezier(.22,.61,.36,1); --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: .2s var(--ease); --t-med: .5s var(--ease-out);
  --shadow-win: 0 1px 1px rgba(20,20,19,0.04), 0 2px 6px rgba(20,20,19,0.05), 0 40px 80px -40px rgba(20,20,19,0.4);
  --grain-blend: multiply;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111110; --bg-2: #171716; --bg-3: #1e1e1c; --card: #1a1a18;
  --ink: #f5f4ef; --on-ink: #141413; --on-ink-2: rgba(20,20,19,0.66);
  --text: #f2f1ea; --text-2: #aeada5; --text-3: #78776f;
  --line: rgba(255,255,255,0.10); --line-2: rgba(255,255,255,0.18); --line-3: rgba(255,255,255,0.45);
  --accent: #4fa8ff; --accent-ink: #7cc0ff; --accent-soft: rgba(79,168,255,0.14);
  --ok: #4fd393; --warn: #e0a94a; --neg: #ff6b61;
  --shadow-win: 0 1px 1px rgba(0,0,0,0.3), 0 40px 80px -40px rgba(0,0,0,0.9);
  --grain-blend: screen;
  color-scheme: dark;
}

/* ── Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.xhero-lock, html.xhero-lock body { overflow: hidden; height: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; }
table { border-collapse: collapse; }
::selection { background: rgba(31,139,255,0.22); }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
@media (max-width: 600px) { .container { width: calc(100% - 36px); } }
.mono { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em; color: var(--text-3); text-transform: uppercase; }
.u { color: var(--accent-ink); border-bottom: 1px solid currentColor; }

/* Film grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04; mix-blend-mode: var(--grain-blend);
}
:root[data-theme="dark"] .grain { opacity: .03; }

/* ── Type ───────────────────────────────────────────────────── */
h2, h3, h4 { font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
h3 { font-size: 1.35rem; line-height: 1.25; }
h4 { font-size: 1rem; }
.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55; color: var(--text-2); max-width: 36em; }
.accent { color: var(--accent-ink); }
.br-desktop { display: none; }
@media (min-width: 900px) { .br-desktop { display: inline; } }

/* Section head: index on the margin, giant title, lead in the right column */
.sec { padding: clamp(96px, 11vw, 168px) 0; }
.sec--alt { background: var(--bg-2); }
.sec__head { display: grid; grid-template-columns: 7fr 5fr; gap: 24px clamp(32px, 6vw, 96px); align-items: end; padding-top: 22px; border-top: 1px solid var(--line-3); margin-bottom: clamp(48px, 6vw, 88px); }
.sec__idx { grid-column: 1 / -1; }
.sec__title { font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; max-width: 16ch; }
.sec__lead { font-size: 1.05rem; line-height: 1.55; color: var(--text-2); max-width: 44ch; padding-bottom: 6px; }
.sec__head--col { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; border-top: 0; padding-top: 0; margin: 0; position: sticky; top: 100px; }
@media (max-width: 900px) { .sec__head { grid-template-columns: 1fr; align-items: start; } .sec__title { max-width: none; } }

/* ── Buttons ────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: 0.95rem; white-space: nowrap; border: 1px solid transparent; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform .35s var(--ease-out), opacity var(--t-fast); will-change: transform; }
.btn:active { transform: scale(.97) !important; }
.btn svg { flex: none; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 0.88rem; }
.btn--lg { height: 52px; padding: 0 24px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ink); color: var(--on-ink); }
.btn--primary:hover { opacity: .9; }
.btn--outline { color: var(--text); border-color: var(--line-3); }
.btn--outline:hover { border-color: var(--text); }
.btn--ghost { color: var(--text); }
.btn--ghost:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.btn--inverse { background: #f5f4ef; color: #141413; }
.btn--inverse:hover { background: #fff; }

/* ── Nav (floating glass pill) ──────────────────────────────── */
.nav { position: fixed; z-index: 60; top: var(--nav-top); left: 50%; translate: -50% 0; width: min(var(--container), calc(100% - 28px)); height: var(--nav-h); border-radius: 999px; background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); border: 1px solid var(--line); transition: top .35s var(--ease), width .35s var(--ease), background .35s var(--ease); }
.nav.is-scrolled { top: 10px; width: min(1000px, calc(100% - 28px)); background: color-mix(in srgb, var(--bg) 84%, transparent); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; padding: 0 10px 0 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #1b1e24; flex: none; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); }
.brand__name { font-weight: 600; letter-spacing: -0.01em; font-size: 0.98rem; }
.nav__links { display: flex; gap: 2px; margin-inline: auto; }
.nav__links a { position: relative; padding: 8px 12px; border-radius: 999px; font-size: 0.92rem; color: var(--text-2); transition: color var(--t-fast), background var(--t-fast); }
.nav__links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
.nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::before { content: ""; position: absolute; left: 3px; top: 50%; translate: 0 -50%; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 4px; }
.theme-toggle { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); transition: background var(--t-fast), color var(--t-fast); }
.theme-toggle:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); }
.theme-toggle .i-sun, .theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"]  .theme-toggle .i-sun  { display: block; }
.nav__burger { display: none; width: 36px; height: 36px; margin-left: auto; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav__burger span { width: 18px; height: 1.5px; background: var(--text); transition: transform var(--t-med); }
@media (max-width: 960px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: flex; }
  body.nav-open .nav__links { display: flex; flex-direction: column; gap: 2px; position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 10px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4); }
  body.nav-open .nav__links a { padding: 12px 16px; font-size: 1rem; }
  body.nav-open .nav__burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
  body.nav-open .nav__burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
}

/* ── Intro (scroll-expansion) ──────────────────────────────── */
.xhero { position: relative; overflow: hidden; background: var(--bg); }
.xhero__bg { display: none; }
.xhero__stage { position: relative; height: 100dvh; min-height: 620px; display: grid; place-items: center; }
.xhero__media { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 300px; height: 400px; max-width: 100vw; max-height: 100%; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow-win); will-change: width, height; }
.xhero__canvas { position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 100vw; height: 100dvh; min-width: 100%; min-height: 100%; display: block; }
.xhero__dim { position: absolute; inset: 0; background: #000; opacity: .45; pointer-events: none; }
.xhero__media { background: #0b0b0a; }
.xhero__caption { position: relative; text-align: center; padding: 0 24px; pointer-events: none; will-change: transform, opacity; }
.xhero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.2vw, 5.6rem); line-height: 1; letter-spacing: -0.015em; display: flex; flex-direction: column; gap: 0.04em; color: #fff; color: color-mix(in srgb, #fff calc(var(--tc, 0) * 100%), var(--text)); text-shadow: 0 1px 18px rgba(0,0,0, calc(var(--tc, 0) * 0.7)); }
.xhero__line { display: block; will-change: transform; }
.xhero__line--r { padding-left: 0.6em; }
.xhero__extra { position: absolute; left: 0; right: 0; top: 100%; padding-top: 22px; }
.xhero__sub { font-size: clamp(1.05rem, 1.55vw, 1.3rem); line-height: 1.45; color: #fff; text-shadow: 0 1px 16px rgba(0,0,0,0.7); opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.xhero__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; height: 48px; padding: 0 22px; border-radius: 999px; background: #f5f4ef; color: #141413; font-weight: 500; pointer-events: auto; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease) .08s, transform .5s var(--ease) .08s, background var(--t-fast); }
.xhero__more:hover { background: #fff; }
.xhero__more span { transition: transform var(--t-fast); }
.xhero__more:hover span { transform: translateX(3px); }
.xhero.is-expanded .xhero__sub, .xhero.is-expanded .xhero__more { opacity: 1; transform: none; }
.xhero__hint { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--text-2); font-size: 0.82rem; transition: opacity .3s; }
.xhero__hint svg { animation: hint 1.8s var(--ease) infinite; }
@keyframes hint { 50% { transform: translateY(3px); } }
.xhero.is-expanded .xhero__hint { opacity: 0; pointer-events: none; }
@media (max-width: 767px) { .xhero__line--r { padding-left: 0; } .xhero__title { font-size: clamp(2.2rem, 10vw, 3.3rem); } }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { padding: clamp(72px, 9vw, 120px) 0 0; overflow: hidden; }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line-3); margin-bottom: clamp(28px, 4vw, 44px); }
.hero__display { font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: .98; letter-spacing: -0.05em; font-weight: 500; max-width: 15ch; margin-bottom: clamp(32px, 4vw, 48px); }
.hero__row { display: grid; grid-template-columns: 7fr 5fr; gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .hero__row { grid-template-columns: 1fr; } }
.hero__side { display: flex; flex-direction: column; gap: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__facts { display: flex; flex-direction: column; }
.hero__facts li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.92rem; color: var(--text-2); }
.hero__facts li:last-child { border-bottom: 1px solid var(--line); }
.hero__window { margin-top: clamp(48px, 6vw, 88px); perspective: 1400px; }
.reveal--tilt { transform: translateY(40px) rotateX(9deg); transform-origin: 50% 0; }
.reveal--tilt.is-visible { transform: none; }

/* App window */
.win { border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-win); font-size: 0.8rem; line-height: 1.45; }
.win__bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.lights { display: flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; }
.lights i:nth-child(1){background:#ff5f57} .lights i:nth-child(2){background:#febc2e} .lights i:nth-child(3){background:#28c840}
.win__title { flex: 1; text-align: center; font-size: 0.78rem; font-weight: 500; color: var(--text-3); }
.win__badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 0.68rem; color: var(--text-2); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.dot--ok { background: var(--ok); }
.win__body { display: grid; grid-template-columns: 220px 1fr; min-height: 500px; }
.win__side { border-right: 1px solid var(--line); padding: 14px 12px; background: var(--bg-2); display: flex; flex-direction: column; gap: 2px; }
.win__search { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--text-3); font-size: 0.76rem; margin-bottom: 6px; }
.win__new { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.win__new span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 13px; }
.win__group { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding: 10px 10px 4px; }
.win__item { padding: 6px 10px; border-radius: 8px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.78rem; }
.win__item.is-active { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.win__item--folder::before { content: "▸ "; color: var(--text-3); }
.win__main { display: flex; flex-direction: column; }
.chat { flex: 1; padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 14px; }
.bubble--user { align-self: flex-end; max-width: 78%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--on-ink); }
.bubble--ai { display: flex; flex-direction: column; gap: 10px; }
.bubble__head { display: flex; align-items: center; gap: 8px; }
.avatar { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; background: #1b1e24; }
.avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.32); }
.bubble__name { font-weight: 500; }
.bubble__time { color: var(--text-3); font-size: 0.72rem; }
.bubble--ai b { font-weight: 500; }
.tools { display: flex; flex-direction: column; }
.tool { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.tool:last-child { border-bottom: 1px solid var(--line); }
.tool__k { font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); width: 52px; flex: none; }
.tool__meta { margin-left: auto; font-family: var(--mono); font-size: 0.68rem; color: var(--text-3); white-space: nowrap; }
.tool__meta--ok { color: var(--ok); }
.tbl { width: 100%; font-size: 0.76rem; }
.tbl th, .tbl td { text-align: left; padding: 7px 8px 7px 0; border-bottom: 1px solid var(--line); }
.tbl th { font-family: var(--mono); font-weight: 400; color: var(--text-3); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tbl td:first-child { font-weight: 500; }
.tbl td:nth-child(n+2), .tbl th:nth-child(n+2) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .neg { color: var(--neg); font-weight: 500; } .tbl .warn { color: var(--warn); }
.filechip { display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--line-2); align-self: flex-start; }
.filechip__ic { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #1d7a4a; color: #fff; font-weight: 600; font-size: 0.66rem; }
.filechip__name { font-weight: 500; } .filechip__meta { color: var(--text-3); font-size: 0.72rem; }
.composer { display: flex; align-items: center; gap: 10px; margin: 8px 16px 16px; padding: 9px 9px 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-3); }
.composer__ph { flex: 1; }
.composer__send { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 14px; }

/* ── Marquee ────────────────────────────────────────────────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line-3); padding: 22px 0; margin-top: clamp(64px, 8vw, 110px); }
.marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; color: var(--text); }
.marquee__track i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Stats: outline numerals ────────────────────────────────── */
.stats { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats__grid { grid-template-columns: 1fr; } }
.stat { padding: 8px 24px 20px 0; border-left: 1px solid var(--line-3); padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.stat__v { font-size: clamp(4rem, 8vw, 7.5rem); line-height: .9; font-weight: 500; letter-spacing: -0.06em; color: var(--bg); -webkit-text-stroke: 1.5px var(--text); paint-order: stroke fill; font-variant-numeric: tabular-nums; transition: color .6s var(--ease-out); }
.stat:hover .stat__v { color: var(--text); }
.stat__v small { font-size: 0.32em; letter-spacing: -0.02em; -webkit-text-stroke: 0; color: var(--text-2); margin-left: 6px; vertical-align: 0.9em; }
.stat__l { font-size: 0.9rem; color: var(--text-2); max-width: 22ch; line-height: 1.45; }

/* ── Product index list ─────────────────────────────────────── */
.index { position: relative; border-top: 1px solid var(--line-3); }
.index__row { position: relative; display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: start; padding: 34px 0; border-bottom: 1px solid var(--line-2); transition: padding var(--t-med); }
.index__row:hover { padding-left: 12px; }
.index__n { font-size: 0.8rem; color: var(--text-3); padding-top: 8px; transition: color var(--t-fast); }
.index__row:hover .index__n { color: var(--accent-ink); }
.index__body h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; margin-bottom: 8px; }
.index__body p { color: var(--text-2); max-width: 46ch; }
.index__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.95rem; padding-top: 10px; white-space: nowrap; }
.index__link span { color: var(--accent-ink); transition: transform var(--t-fast); }
.index__row:hover .index__link span { transform: translateX(4px); }
.index__preview { position: absolute; right: 22%; top: 0; width: 300px; pointer-events: none; opacity: 0; transform: translateY(calc(var(--my, 0px) - 50%)) scale(.96) rotate(-2deg); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); z-index: 2; }
.index__row:hover .index__preview { opacity: 1; transform: translateY(calc(var(--my, 0px) - 50%)) scale(1) rotate(-1deg); }
@media (max-width: 1000px) {
  .index__row { grid-template-columns: 48px 1fr; }
  .index__link { grid-column: 2; }
  .index__preview { position: static; width: 100%; opacity: 1; transform: none; grid-column: 2; margin-top: 8px; }
  .index__row:hover .index__preview { transform: none; }
  .index__row:hover { padding-left: 0; }
}
.pv { border-radius: 14px; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); background: var(--card); box-shadow: var(--shadow-win); padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.pv::before { content: ""; display: block; width: 100%; height: 6px; margin-bottom: 6px; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); background: radial-gradient(circle at 5px 3px, #ff5f57 2.5px, transparent 3px), radial-gradient(circle at 17px 3px, #febc2e 2.5px, transparent 3px), radial-gradient(circle at 29px 3px, #28c840 2.5px, transparent 3px); background-repeat: no-repeat; }
.pv--chat .pv__u, .pv--chat .pv__a { display: block; height: 20px; border-radius: 10px; background: color-mix(in srgb, var(--text) 13%, transparent); width: 72%; }
.pv--chat .pv__u { align-self: flex-end; background: var(--ink); width: 58%; border-bottom-right-radius: 4px; }
.pv--chat .short { width: 40%; }
.pv--files { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.pv--files::before { flex-basis: 100%; }
.pv__f { padding: 7px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); font-family: var(--mono); font-size: 0.68rem; color: var(--text-2); }
.pv__out { flex-basis: 100%; margin-top: 4px; padding: 9px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 0.7rem; }
.pv--term { background: #151513; color: #d9d8d0; font-family: var(--mono); font-size: 0.74rem; gap: 5px; border-color: rgba(255,255,255,0.18); }
.pv--term::before { border-bottom-color: rgba(255,255,255,0.12); }
.pv--term i { font-style: normal; color: #4fa8ff; margin-right: 6px; } .pv--term .ok { color: #5fd39a; }

.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 64px); }
.spec > div { padding-top: 16px; border-top: 1px solid var(--line-2); }
.spec dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.spec dd { font-size: 0.93rem; color: var(--text-2); }
.spec--col { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
@media (max-width: 900px) { .spec { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .spec { grid-template-columns: 1fr; } }

/* ── Audience scrollytelling ────────────────────────────────── */
.story { display: grid; grid-template-columns: 300px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.story__nav { position: sticky; top: 100px; display: flex; flex-direction: column; border-top: 1px solid var(--line-3); }
@media (max-width: 900px) { .story__nav { position: static; flex-direction: row; overflow-x: auto; border-top: 0; gap: 4px; padding-bottom: 8px; } }
.story__btn { display: grid; grid-template-columns: 34px 1fr; gap: 6px; align-items: baseline; text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text-3); transition: color var(--t-fast), padding var(--t-med); }
.story__btn.is-active { color: var(--text); padding-left: 6px; }
.story__btn .mono { color: inherit; }
@media (max-width: 900px) { .story__btn { flex: none; grid-template-columns: 1fr; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; } .story__btn .mono { display: none; } .story__btn.is-active { background: var(--card); padding-left: 14px; } }
.panel { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.panel:first-child { padding-top: 0; }
.panel__meta { display: flex; gap: 12px; align-items: baseline; }
.panel__meta b { font-weight: 500; color: var(--text); font-size: 0.9rem; }
.panel__prompt { font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; max-width: 24ch; }
.panel__prompt::before { content: "“"; color: var(--accent-ink); }
.panel__prompt::after { content: "”"; color: var(--accent-ink); }
.panel__tasks { display: flex; flex-wrap: wrap; gap: 8px; }
.panel__tasks span { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.82rem; color: var(--text-2); }
.panel__result { display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding: 16px 0 0; border-top: 1px solid var(--line-2); font-family: var(--mono); font-size: 0.8rem; line-height: 1.6; color: var(--text-2); max-width: 60ch; }
.panel__result i { width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--ok); }

/* ── Security: contour rings ────────────────────────────────── */
.security { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 900px) { .security { grid-template-columns: 1fr; } }
.security__copy .sec__title { margin: 16px 0 18px; }
.contour { position: relative; aspect-ratio: 1; max-width: 640px; margin-inline: auto; width: 100%; }
.contour__svg { width: 100%; height: 100%; overflow: visible; }
.ring { transform-origin: 300px 300px; }
.ring--1 { animation: spin 90s linear infinite; }
.ring--2 { animation: spin 140s linear infinite reverse; }
.ring--3 { animation: spin 200s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring__line { fill: none; stroke: var(--line-3); stroke-width: 1; stroke-dasharray: 3 5; }
.ring__line--outer { stroke: var(--accent); stroke-dasharray: 1 6; stroke-width: 1.5; stroke-linecap: round; }
.ring__text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--text-2); }
.ring__text--outer { fill: var(--accent-ink); }
.core { fill: var(--ink); }
.core__t { fill: var(--on-ink); font-size: 13px; font-weight: 500; letter-spacing: -0.01em; }
.core__s { fill: var(--on-ink-2); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.outside__t { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--text-3); }
.outside__x { font-size: 12px; fill: var(--neg); }

/* ── Steps: giant numerals ──────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 110px; border-top: 1px solid var(--line-3); }
.step__n { position: absolute; top: 4px; left: -4px; font-size: 7rem; line-height: 1; font-weight: 500; letter-spacing: -0.06em; color: var(--bg-2); -webkit-text-stroke: 1.2px var(--line-3); paint-order: stroke fill; transition: color .6s var(--ease-out); }
.step:hover .step__n { color: var(--text); }
.step h3 { margin-bottom: 10px; position: relative; }
.step p { color: var(--text-2); font-size: 0.95rem; max-width: 34em; position: relative; }

/* ── Download rows ──────────────────────────────────────────── */
.dl { border-top: 1px solid var(--line-3); }
.dl__row { display: grid; grid-template-columns: 140px 1fr 1.2fr auto; gap: 24px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line-2); }
@media (max-width: 900px) { .dl__row { grid-template-columns: 1fr; gap: 10px; } }
.dl__row p { color: var(--text-2); font-size: 0.93rem; }
.code { position: relative; display: flex; align-items: center; gap: 8px; padding: 11px 44px 11px 16px; border-radius: 999px; background: #151513; color: #d9d8d0; font-family: var(--mono); font-size: 0.76rem; white-space: nowrap; overflow: hidden; }
.code__p { color: #78776f; }
.code__copy { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 50%; color: #aeada5; display: grid; place-items: center; font-size: 14px; transition: background var(--t-fast), color var(--t-fast); }
.code__copy:hover { background: rgba(255,255,255,0.1); color: #fff; }
.code__copy.is-done { color: #5fd39a; }

/* ── Pricing table ──────────────────────────────────────────── */
.price { overflow-x: auto; }
.price__t { width: 100%; min-width: 760px; }
.price__t th, .price__t td { text-align: center; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--text-2); vertical-align: middle; }
.price__t thead th { vertical-align: bottom; padding-bottom: 22px; border-bottom: 1px solid var(--line-3); }
.price__t tfoot td { border-bottom: 0; padding-top: 22px; }
.price__feat { text-align: left !important; color: var(--text) !important; padding-left: 0 !important; width: 32%; }
.price__name { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.03em; color: var(--text); }
.price__d { display: block; font-size: 0.8rem; color: var(--text-3); margin-top: 2px; }
.price__v { display: block; font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); margin-top: 12px; }
.price__t .is-featured { background: color-mix(in srgb, var(--text) 4%, transparent); }
.price__t thead .is-featured { border-top: 2px solid var(--accent); }
.price__t i.y, .price__t i.n { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.price__t i.y { background: var(--accent); } .price__t i.n { border: 1px solid var(--line-2); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 96px); align-items: start; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; } .sec__head--col { position: static; } }
.faq { border-top: 1px solid var(--line-3); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 500; font-size: 1.1rem; letter-spacing: -0.015em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--line-3); transition: transform .45s var(--ease-out), background var(--t-fast); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; background: currentColor; translate: -50% -50%; }
.faq__plus::after { rotate: 90deg; }
.faq__item[open] .faq__plus { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.faq__a { padding: 0 0 24px; color: var(--text-2); max-width: 60ch; animation: faq-in .4s var(--ease-out) both; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }

/* ── CTA: full-bleed image band ─────────────────────────────── */
.cta { position: relative; padding: clamp(96px, 12vw, 180px) 0; background: #0b0b0a; color: #f5f4ef; overflow: hidden; isolation: isolate; }
.cta__art { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; display: block; opacity: .9; }
.cta__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 40px clamp(32px, 6vw, 96px); align-items: end; }
@media (max-width: 900px) { .cta__grid { grid-template-columns: 1fr; } }
.cta .sec__idx { color: rgba(245,244,239,0.55); }
.cta__title { font-size: clamp(2.6rem, 6vw, 5.6rem); line-height: .98; letter-spacing: -0.05em; font-weight: 500; margin-top: 18px; }
.cta__side p { color: rgba(245,244,239,0.75); font-size: 1.05rem; max-width: 40ch; }
.cta__form { display: flex; gap: 8px; margin-top: 24px; }
.cta__form input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.28); background: rgba(255,255,255,0.06); color: #fff; outline: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color var(--t-fast), background var(--t-fast); }
.cta__form input::placeholder { color: rgba(255,255,255,0.5); }
.cta__form input:focus { border-color: #fff; background: rgba(255,255,255,0.12); }
.cta__note { margin-top: 14px !important; font-size: 0.84rem !important; color: rgba(245,244,239,0.5) !important; }
.cta__note a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.4); }
@media (max-width: 520px) { .cta__form { flex-direction: column; } }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { position: relative; overflow: hidden; padding: 64px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { margin-top: 14px; color: var(--text-3); font-size: 0.9rem; max-width: 260px; }
.footer__col h4 { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); font-weight: 400; margin-bottom: 14px; }
.footer__col a { display: block; padding: 5px 0; color: var(--text-2); font-size: 0.92rem; transition: color var(--t-fast); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--text-3); }
.footer__wordmark { margin: 36px auto -0.3em; width: min(var(--container), calc(100% - 48px)); font-size: clamp(4rem, 13.5vw, 13rem); font-weight: 500; letter-spacing: -0.06em; line-height: 1; color: var(--bg); -webkit-text-stroke: 1px var(--line-2); paint-order: stroke fill; user-select: none; pointer-events: none; }

/* ── Reveal ─────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal--tilt { opacity: 1; transform: none; transition: none; }
  .marquee__track, .xhero__hint svg, .ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* Responsive overrides (last so they win) */
@media (max-width: 1100px) { .win__body { grid-template-columns: 1fr; } .win__side { display: none; } }
