/* Breeze Code site. Tokens, fonts and buttons match the app (src/renderer/breeze.css). */
@font-face {
  font-family: 'Instrument Sans';
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/InstrumentSans-Variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Unbounded';
  font-weight: 200 900;
  font-display: swap;
  src: url('assets/fonts/Unbounded.woff2') format('woff2');
}

@font-face {
  font-family: 'Google Sans Code';
  font-weight: 300 800;
  font-display: swap;
  src: url('assets/fonts/GoogleSansCode-Latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --blue: #005EFF;
  --blue-soft: rgba(0, 94, 255, .14);
  --bg: #000;
  --bg-1: #0b0b0d;
  --bg-2: #131316;
  --bg-3: #1c1c21;
  --line: #26262c;
  --text: #f5f5f7;
  --text-2: #a1a1aa;
  --text-3: #6b6b75;
  --ok: #22c55e;
  --c-planner: #a78bfa;
  --c-builder: #38bdf8;
  --font-ui: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: Unbounded, var(--font-ui);
  --font-code: "Google Sans Code", Consolas, monospace;
  --r: 10px;
  --r-card: 16px;
  --glass-strong: rgba(24, 24, 30, .74);
  --glass-line: rgba(255, 255, 255, .1);
  --glass-blur: blur(22px) saturate(160%);
  /* Download glow, shared by the landing page finale and the footer of the other pages. */
  --glow-bg:
    radial-gradient(120% 70% at 50% 100%, rgba(0, 94, 255, .62), rgba(64, 72, 210, .26) 38%, rgba(167, 139, 250, .08) 58%, transparent 78%),
    radial-gradient(60% 40% at 18% 100%, rgba(56, 189, 248, .22), transparent 70%),
    radial-gradient(60% 40% at 82% 100%, rgba(167, 139, 250, .22), transparent 70%);
  /* Hero atmosphere: Pattaya bay (a 3x time-lapse video over its first frame) under a dark scrim so the headline
     stays readable. */
  --hero-scrim: linear-gradient(180deg, rgba(0, 0, 0, .74) 0%, rgba(3, 11, 31, .66) 40%, rgba(3, 11, 31, .56) 70%, rgba(0, 0, 0, .62) 100%);
  --hero-still: url("assets/Background/pattaya-bay.jpg") center 40% / cover no-repeat #030b1f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

main [id] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

::selection { background: rgba(0, 94, 255, .45); color: #fff; }
/* No page scrollbar; the wheel, keys and touch still scroll. */
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* Lenis smooth scrolling (on only when site.js starts it) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

a { color: inherit; }

p, li, dd { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: var(--blue); color: #fff; }

/* ---------- buttons (same as the app) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--bg-3);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 14px;
  font: 500 14px/1.2 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.btn:hover { border-color: #3a3a42; background: #24242a; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: #0052e0; border-color: #0052e0; }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; flex: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 12px; z-index: 50; display: flex; justify-content: center; padding: 0 16px; margin-top: 12px; }

.nav-in {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}

.logo img { width: 24px; height: 24px; }

.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 6px 10px; border-radius: 999px; color: var(--text-2); font-size: 14px; text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav .btn { margin-left: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; }

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 16px 16px 0; }

.hero-card {
  position: relative;
  isolation: isolate; /* the video and scrim sit behind the copy without leaving the card */
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 112px) 24px 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--hero-still); /* shows until the video plays, and instead of it with reduced motion */
  text-align: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  pointer-events: none;
}

/* The scrim (and the card's hairline edge) go over the video. */
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-scrim);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  border-radius: inherit;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}

.hero h1 {
  max-width: 1104px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38.4px, 6.48vw, 69.6px);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.lede {
  max-width: 744px;
  margin: 20px auto 0;
  color: rgba(245, 245, 247, .88);
  font-size: clamp(19.2px, 1.92vw, 21.6px);
  text-wrap: pretty;
}

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.hero-meta { margin: 14px 0 0; color: rgba(245, 245, 247, .85); font-size: 15.6px; }
.cta .btn-lg { padding: 14.4px 28.8px; font-size: 18px; }
.cta .btn svg { width: 19.2px; height: 19.2px; }

.hero-shot {
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  margin: clamp(40px, 6vw, 64px) auto 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 30px 80px rgba(0, 0, 0, .5);
}

.hero-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Pinned hero (site.js adds .is-pinned on large screens without reduced motion). The stage holds still
   while the page scrolls past; --e runs 0 to 1: the gradient pulls in from the edges into a rounded card,
   the words lift and fade, and the screenshot rises from the bottom to the centre. */
.hero.is-pinned { height: 260vh; margin-top: calc(-1 * var(--nav-h, 62px)); padding: 0; }

.hero.is-pinned .hero-card {
  position: sticky;
  top: 0;
  height: 100vh;
  max-width: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  clip-path: inset(calc(var(--e, 0) * 16px) calc(var(--e, 0) * 16px) round calc(var(--e, 0) * 20px));
}

.hero.is-pinned .hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px; /* centred on the screen */
  opacity: calc(1 - var(--e, 0) * 1.9);
  transform: translateY(calc(var(--e, 0) * -9vh)) scale(calc(1 + var(--e, 0) * .07));
  will-change: transform, opacity;
}

.hero.is-pinned.copy-gone .hero-copy { visibility: hidden; }

.hero.is-pinned .hero-shot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(min(1600px, 94vw, (100vh - 48px) * 16 / 9) - 10px); /* nearly as big as the screen allows */
  max-width: none;
  margin: 0;
  aspect-ratio: 16 / 9; /* the interactive window's own shape (ide-demo.css) */
  border-radius: 12px;
  transform: translate(-50%, calc(-50% + (1 - var(--e, 0)) * (31vh + 50%))) scale(calc(.9 + var(--e, 0) * .1));
  will-change: transform;
}

/* Hero entrance (site.js). html.anim is set in <head> only when motion is allowed; if GSAP never runs,
   the delayed keyframe shows the words anyway. */
.anim .hero-copy > *, .anim .hero-shot { opacity: 0; animation: show 0s 2.5s forwards; }
@keyframes show { to { opacity: 1; } }

/* ---------- sections ---------- */
.section { padding-top: clamp(80px, 11vw, 136px); }
.section-head { max-width: 720px; margin-bottom: 40px; }

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.section-head p { margin: 16px 0 0; color: var(--text-2); font-size: 17px; text-wrap: pretty; }

/* ---------- multi-agent showcase ---------- */
/* The showcase, the comparison table, the logo strip and the feature bento share one width, wider than the 1120px wrap, so their left and right edges line up. */
.showcase, .compare, .lang-marquee, .bento { --w: min(1440px, 100vw - clamp(40px, 12vw, 240px)); width: var(--w); margin-inline: calc(50% - var(--w) / 2); }
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.showcase-text h2 { font-size: clamp(28px, 3vw, 36px); }
.showcase-text p { margin: 18px 0 0; max-width: 44ch; color: var(--text-2); text-wrap: pretty; }
.showcase-text .link { display: inline-block; margin-top: 22px; color: #6ea2ff; font-weight: 500; }
/* The video floats on a blue wash, like a window on a desktop. */
.showcase-media {
  padding: clamp(20px, 4.5vw, 52px);
  border-radius: var(--r-card);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(120, 170, 255, .75), transparent 60%),
    linear-gradient(135deg, #3b82ff 0%, var(--blue) 55%, #1f4fd8 100%);
}
.showcase-video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  background: var(--bg-1);
  box-shadow: 0 24px 60px -18px rgba(0, 10, 40, .7);
}

@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
}

/* ---------- compare ---------- */
.compare { margin-top: clamp(96px, 12vw, 160px); }
.compare h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.compare > p { margin: 14px 0 28px; max-width: 60ch; color: var(--text-2); }

.table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: var(--bg-1);
  font-size: 15px;
}

.table th, .table td { padding: 26px 32px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { padding-block: 20px; background: var(--bg-2); color: var(--text-2); font-size: 14px; font-weight: 600; }
.table tbody th { width: 1%; font-weight: 500; white-space: nowrap; } /* as narrow as its longest label */
.table td { width: 50%; }
.table td { color: var(--text-2); }
.table td.win { border-bottom-color: rgba(255, 255, 255, .18); background: var(--blue); color: #fff; }
.note { margin: 12px 0 0; color: var(--text-2); font-size: 13px; }

@media (max-width: 640px) {
  .table { font-size: 14px; }
  .table th, .table td { padding: 12px; }
  .table tbody th { width: auto; white-space: normal; }
}

/* ---------- features: a row of cards ----------
   Default (phones, reduced motion, no JS): a native swipe row with snap points.
   .is-pinned (site.js, large screens): the section holds still and vertical scroll drives the row sideways. */
.hs { --edge: max(20px, calc((100% - 1080px) / 2)); }
.hs.is-pinned { padding-top: 0; }
.hs-intro { margin: 0 20px 32px var(--edge); }

.features {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 4px var(--edge) 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
}

.feature {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 20px;
  width: min(86vw, 520px);
  padding: 10px 10px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-1);
  scroll-snap-align: start;
}

.feature-media { order: -1; }
.feature-text { padding: 0 12px; }
.feature h3 { margin: 0 0 10px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 24px); line-height: 1.2; letter-spacing: -.02em; }
.feature p { margin: 0; color: var(--text-2); font-size: 15.5px; text-wrap: pretty; }

.shot { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }

code, .mono { font-family: var(--font-code); font-size: .9em; }
.feature p code { padding: 1px 6px; border-radius: 4px; background: var(--bg-3); color: var(--text); }

.hs.is-pinned .hs-pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding: var(--nav-h, 62px) var(--edge) 0;
  overflow: hidden;
}

.hs.is-pinned .hs-track { display: flex; align-items: center; gap: clamp(40px, 6vw, 96px); width: max-content; will-change: transform; }
.hs.is-pinned .hs-intro { width: min(440px, 32vw); margin: 0; }
.hs.is-pinned .features { align-items: stretch; gap: 28px; padding: 0; overflow: visible; }
/* Height-led width so a card plus its words always fits a short laptop screen. */
.hs.is-pinned .feature { width: min(600px, 42vw, calc((100vh - 330px) * 1.6)); }
.hs.is-pinned .team { display: flex; flex-direction: column; justify-content: center; aspect-ratio: 16 / 9; }

/* Team mock: an HTML picture of the @mention flow, drawn like the app's chat panel */
.team { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(80% 60% at 100% 0%, rgba(0, 94, 255, .14), transparent 70%), var(--bg-1); }
.team-prompt { margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); font: 400 14.5px/2 var(--font-code); }
.mention { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 4px; border-radius: 6px; font-weight: 600; vertical-align: middle; }
.mention img { width: 16px; height: 16px; border-radius: 4px; }
.m-claude { background: rgba(217, 119, 87, .16); color: #f0a487; }
.m-codex { background: rgba(255, 255, 255, .08); color: var(--text); }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0 0; }
.lane dt { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.lane dt::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.lane dd { margin: 0; padding-left: 16px; color: var(--text-2); font: 400 13px/1.8 var(--font-code); }
.team-foot { margin: 18px 0 0; color: var(--text-2); font-size: 13px; }

@media (max-width: 480px) {
  .lanes { grid-template-columns: 1fr; }
}

/* Language strip under the comparison table: coloured logos with names, sliding left forever. */
.lang-marquee {
  margin-top: clamp(40px, 6vw, 64px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.lang-track { display: flex; width: max-content; animation: lang-slide 40s linear infinite; }
.lang-track ul { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); margin: 0; padding: 8px clamp(20px, 2.5vw, 36px); list-style: none; }
.lang-track li { display: flex; align-items: center; gap: 12px; flex: none; color: var(--text-2); font-size: 18px; font-weight: 600; white-space: nowrap; }
.lang-track img { width: 32px; height: 32px; }
@keyframes lang-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .lang-marquee { -webkit-mask-image: none; mask-image: none; }
  .lang-track { width: auto; animation: none; }
  .lang-track ul { flex-wrap: wrap; justify-content: center; gap: 20px 32px; }
  .lang-track ul[aria-hidden] { display: none; }
}

/* Main features: a bento. The multi-agent tile is twice the size and sits on the blue wash used by the showcase;
   the rest are quiet dark tiles, each with a picture of the feature (a screenshot or a small mockup of the app's UI). */
.bento { margin-top: clamp(80px, 10vw, 136px); }
.bento-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: 32px; }
.bento-head h3 { margin: 0; max-width: 16ch; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.03em; }
.bento-head p { max-width: 34ch; margin: 0; color: var(--text-2); font-size: 17px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "split split agents" "split split board" "editor git tools";
  gap: 16px;
}
.tile-split { grid-area: split; }
.tile-agents { grid-area: agents; }
.tile-board { grid-area: board; }
.tile-editor { grid-area: editor; }
.tile-git { grid-area: git; }
.tile-tools { grid-area: tools; }

.tile {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--bg-2);
}
.tile-step { display: block; margin-bottom: 8px; color: #6ea2ff; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tile h4 { margin: 0 0 8px; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.tile-text p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.tile-vis { flex: 1; min-height: 0; }

/* The big tile */
.tile-split {
  justify-content: space-between;
  padding: clamp(26px, 3vw, 40px);
  border-color: rgba(255, 255, 255, .12);
  background:
    radial-gradient(90% 80% at 0% 0%, rgba(120, 170, 255, .25), transparent 60%),
    linear-gradient(135deg, #1652dc 0%, var(--blue) 55%, #1a46c4 100%); /* darker corner and glow keep white text at 5:1 or more */
}
.tile-split .tile-step { color: #fff; }
.tile-split h4 { color: #fff; font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.tile-split .tile-text p { max-width: 52ch; color: #fff; font-size: 16px; }
.v-split { flex: 0 0 auto; padding: 20px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: #141417; box-shadow: 0 24px 60px -18px rgba(0, 10, 40, .7); }
.v-prompt { margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--text); font: 400 14px/2 var(--font-code); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 4px; border-radius: 6px; font-weight: 600; vertical-align: middle; }
.tag img, .v-lane b img { width: 16px; height: 16px; border-radius: 4px; }
.t-claude { background: rgba(217, 119, 87, .16); color: #f0a487; }
.t-codex { background: rgba(120, 140, 255, .16); color: #a9b4ff; }
.v-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.v-lane { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.v-lane b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--text); font-size: 14px; font-weight: 600; }
.v-lane em { color: var(--ok); font-size: 12px; font-style: normal; font-weight: 500; }
.v-lane code, .v-guard code { color: var(--text-2); font: 400 13px/1.5 var(--font-code); }
.v-lane code.is-live { color: var(--text); }
.v-lane code.is-live::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: var(--ok); vertical-align: middle; animation: v-pulse 1.6s ease-in-out infinite; }
.v-guard { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding: 10px 12px; border: 1px solid rgba(255, 196, 0, .25); border-radius: 8px; background: rgba(255, 196, 0, .07); color: #f2d27a; font-size: 13px; line-height: 1.5; }
.v-guard svg { flex: none; width: 15px; height: 15px; }
.v-guard code { color: #f2d27a; }

/* Agents: their faces, then the three prompt modes */
.v-agents { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; }
.v-faces { display: flex; gap: 10px; }
.v-faces img { width: 40px; height: 40px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1); }

/* Board: eight little chats, three of them busy */
.v-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-content: end; }
.bb { display: flex; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-1); }
.bb img { width: 16px; height: 16px; margin-bottom: 2px; border-radius: 4px; }
.bb i { display: block; height: 4px; border-radius: 2px; background: #2a2a31; }
.bb i + i { width: 60%; }
.bb.is-on { border-color: rgba(0, 94, 255, .5); }
.bb.is-on i { background: linear-gradient(90deg, #2a2a31 0%, #4d7dff 50%, #2a2a31 100%) 0 0 / 200% 100%; animation: v-shimmer 1.8s linear infinite; }

/* Screenshot tiles (tiles are not links, so nothing moves on hover): a 1:1 crop of the app across the top of the tile, so its text reads at real size */
.tile-editor, .tile-git { padding-top: 0; }
.tile-shot { flex: none; height: 220px; margin: 0 -26px; overflow: hidden; border-bottom: 1px solid var(--line); background: #1e1e20; }
.tile-shot img { width: 100%; height: 100%; object-fit: none; }
.tile-editor .tile-shot img { object-position: -300px -60px; } /* menu.js being written */
.tile-git .tile-shot img { object-position: -40px -52px; }          /* Commit & Push, staged changes */

/* Tools: three chips flowing into the agents */
.v-tools { display: flex; align-items: center; gap: 10px; min-height: 150px; }
.v-chips { display: flex; flex-direction: column; gap: 8px; }
.v-chips span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-1); color: var(--text); font-size: 13px; white-space: nowrap; }
.v-flow { flex: none; width: 40px; height: 90px; color: #3a3a42; }
.v-stack { flex-direction: column; gap: 6px; }
.v-stack img { width: 34px; height: 34px; padding: 5px; }

@keyframes v-pulse { 50% { opacity: .3; } }
@keyframes v-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .v-lane code.is-live::after, .bb.is-on i { animation: none; } }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "split split" "agents board" "editor git" "tools tools"; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: 1fr; grid-template-areas: "split" "agents" "board" "editor" "git" "tools"; }
  .v-lanes { grid-template-columns: 1fr; }
}

/* ---------- download ---------- */
.finale {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin-top: clamp(80px, 11vw, 136px);
}

@property --open {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

/* The app's onboarding sky: deep Breeze blue through the middle, pale sky in the corners, a hint of violet low down.
   Like the app's launch, it opens from the centre through a soft-edged circular mask; site.js holds it shut
   (.is-closed) until the finale scrolls in, then plays it open (.is-open). */
.finale-sky {
  --open: 160vmax;
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  /* The second layer eases the sky in over the top 12%, so the section meets the page's black with no seam however high the curtains ride. */
  --mask: radial-gradient(circle at 50% 50%, #000 calc(var(--open) - 120px), transparent var(--open)),
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, .009) 1.2%, rgba(0, 0, 0, .058) 2.4%, rgba(0, 0, 0, .163) 3.6%, rgba(0, 0, 0, .317) 4.8%, rgba(0, 0, 0, .5) 6%, rgba(0, 0, 0, .683) 7.2%, rgba(0, 0, 0, .837) 8.4%, rgba(0, 0, 0, .942) 9.6%, rgba(0, 0, 0, .991) 10.8%, #000 12%);
  -webkit-mask-image: var(--mask);
  mask-image: var(--mask);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  background:
    radial-gradient(60% 55% at 12% 8%, #b9dcff 0%, rgba(185, 220, 255, 0) 70%),
    radial-gradient(55% 60% at 92% 96%, #a9d1fb 0%, rgba(169, 209, 251, 0) 70%),
    radial-gradient(45% 40% at 18% 92%, #7a5cff 0%, rgba(122, 92, 255, 0) 70%),
    linear-gradient(125deg, #8fc3ff 0%, #2f6bff 34%, #1f4dff 55%, #3d7bff 78%, #9cc9f7 100%);
}

/* Slow drifting light inside the sky, so it feels alive while it holds. */
.finale-sky::before,
.finale-sky::after {
  content: '';
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}

.finale-sky::before {
  left: -20vmax;
  top: -30vmax;
  background: #d6ecff;
  animation: sky-drift 5s ease-in-out infinite alternate;
}

.finale-sky::after {
  right: -25vmax;
  bottom: -35vmax;
  background: #5b3dff;
  opacity: .35;
  animation: sky-drift 6s ease-in-out -2s infinite alternate-reverse;
}

.finale-sky.is-closed { --open: 0px; }
.finale-sky.is-open { animation: sky-open 1s cubic-bezier(.65, 0, .35, 1) both; }

@keyframes sky-open {
  from { --open: 0px; }
  to { --open: 160vmax; }
}

/* Holds the edge blurs above the drifting light. */
.finale-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* The stops trace a smootherstep curve so the fade under the footer shows no kink at either end. */
.finale-veil {
  background:
    linear-gradient(to top,
      rgba(2, 6, 24, .8),
      rgba(2, 6, 24, .793) 10%,
      rgba(2, 6, 24, .754) 20%,
      rgba(2, 6, 24, .67) 30%,
      rgba(2, 6, 24, .546) 40%,
      rgba(2, 6, 24, .4) 50%,
      rgba(2, 6, 24, .254) 60%,
      rgba(2, 6, 24, .13) 70%,
      rgba(2, 6, 24, .046) 80%,
      rgba(2, 6, 24, .007) 90%,
      rgba(2, 6, 24, 0)) 0 100% / 100% 35% no-repeat;
}

/* Two blurred curtains with uneven edges hang from the top, so the fade never ends along one line: navy reaches
   furthest because plain black over the pale sky turns grey, and black follows inside it to meet the page.
   Each pulses about its own mean edge (the transform-origin), so crests and troughs grow and shrink in place.
   Twice the sky's height, with the top half solid, so the top stays covered as they scale. */
.finale-veil::before,
.finale-veil::after {
  content: '';
  position: absolute;
  inset: -100% -35% 0;
  background-size: 100% 100%;
}

.finale-veil::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1000 1000 2000' preserveAspectRatio='none'%3E%3Cfilter id='b' filterUnits='userSpaceOnUse' x='-400' y='-1400' width='1800' height='3000'%3E%3CfeGaussianBlur stdDeviation='30 85'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' fill='%23020a2c' d='M-200-1200H1200V230C1080 0 960 430 800 360S560-60 420 80 200 410-200 150Z'/%3E%3C/svg%3E");
  transform-origin: 50% 59.5%;
  animation: veil-amp-a 7s ease-in-out infinite alternate;
}

.finale-veil::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -1000 1000 2000' preserveAspectRatio='none'%3E%3Cfilter id='b' filterUnits='userSpaceOnUse' x='-400' y='-1400' width='1800' height='3000'%3E%3CfeGaussianBlur stdDeviation='25 60'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' fill='%23000' d='M-200-1200H1200V81C1100 153 1000 32 880 32S700 175 570 144 380 4 250 50 60 162-200 72Z'/%3E%3C/svg%3E");
  transform-origin: 50% 54.5%;
  animation: veil-amp-b 11s ease-in-out -4s infinite alternate;
}

@keyframes veil-amp-a {
  from { transform: scaleY(.72); }
  to { transform: scaleY(1.22); }
}

@keyframes veil-amp-b {
  from { transform: scaleY(1.2); }
  to { transform: scaleY(.72); }
}

@keyframes sky-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(8vmax, 6vmax) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .finale-sky::before,
  .finale-sky::after,
  .finale-veil::before,
  .finale-veil::after { animation: none; }
}

@property --fill { syntax: '<length>'; inherits: false; initial-value: 0px; }

/* The two download buttons are opposites: hovering floods the other one's colour out from the cursor (site.js sets --x and --y).
   Over the sky the blue button would vanish into the blue, so the finale's starts white. */
:is(.hero, .finale) .btn-primary {
  /* The 160px feather is about three button-heights, so no circle edge shows as it spreads. */
  background-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--to) calc(var(--fill) - 160px), transparent var(--fill));
  background-origin: border-box;
  background-repeat: no-repeat;
  transition: --fill .6s cubic-bezier(.33, 0, .2, 1), border-color .4s ease, color .35s ease .05s;
}
.hero .btn-primary { --to: #fff; }
.finale .btn-primary { --to: var(--blue); background-color: #fff; border-color: #fff; color: var(--blue); }
@media (hover: hover) {
  /* 460px puts the solid part of the fill past the far corner from any starting point on the button. */
  .hero .btn-primary:hover { --fill: 460px; background-color: var(--blue); border-color: #fff; color: var(--blue); }
  .finale .btn-primary:hover { --fill: 460px; background-color: #fff; border-color: var(--blue); color: #fff; }
  /* The sky turns white just behind the button so its blue state stands off it. */
  .download-copy:has(.btn-primary:hover)::before { opacity: .65; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.hero, .finale) .btn-primary, .download-copy::before { transition: none; }
}

/* FAQ and legal pages: the same screen-tall glow painted at the bottom of the page, behind the footer. */
.glow { background-image: var(--glow-bg); background-position: bottom; background-size: 100% 100vh; background-repeat: no-repeat; }

.download {
  display: flex;
  flex: 1;
  align-items: center;
  padding: clamp(96px, 16vh, 160px) 20px clamp(48px, 10vh, 96px);
}

.download-in {
  width: 100%;
  max-width: 1080px; /* .wrap's content width */
  margin: 0 auto;
  text-align: center;
}

/* Sized from the viewport so the name always fits on one line. */
.download h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 60px);
  line-height: .98;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.download-copy > p:not(.download-meta) { max-width: 34ch; margin: 18px auto 0; color: rgba(245, 245, 247, .88); font-size: clamp(18px, 1.6vw, 21px); }
.download-meta { margin: 32px 0 0; color: rgba(245, 245, 247, .78); font-size: 13px; }
/* The sky's pale side sits behind this copy. */
.download-copy > p, .download h2 { text-shadow: 0 1px 16px rgba(2, 14, 70, .55); }

/* The white patch the button's hover brings up: centred on the button, easing out on a long smootherstep curve so it has no edge,
   and fading out before the lines above and below it. bottom is the button's centre, measured from the copy's end. */
.download-copy { position: relative; }
.download-copy::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 79px;
  width: 980px;
  height: 200px;
  transform: translate(-50%, 50%);
  background: radial-gradient(closest-side,
    #fff,
    rgba(255, 255, 255, .991) 10%,
    rgba(255, 255, 255, .942) 20%,
    rgba(255, 255, 255, .837) 30%,
    rgba(255, 255, 255, .683) 40%,
    rgba(255, 255, 255, .5) 50%,
    rgba(255, 255, 255, .317) 60%,
    rgba(255, 255, 255, .163) 70%,
    rgba(255, 255, 255, .058) 80%,
    rgba(255, 255, 255, .009) 90%,
    rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity .8s ease;
}

@media (max-width: 980px) {
  .download h2 { font-size: min(8.8vw, 64px); }
}

.download-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 20px; font-size: 14px; }
.download-links a { color: rgba(245, 245, 247, .8); text-decoration: none; }
.download-links a:hover { color: var(--text); }

/* ---------- inline links ---------- */
/* Plain until hovered or focused, then a blue line draws in from the left (same move as the footer links). */
.link, .prose a, .faq-a a {
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat;
  transition: background-size .35s cubic-bezier(.16, 1, .3, 1), color .15s;
}
.link:hover, .prose a:hover, .faq-a a:hover,
.link:focus-visible, .prose a:focus-visible, .faq-a a:focus-visible { background-size: 100% 2px; }

/* ---------- FAQ and legal pages ---------- */
.page { max-width: 1120px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) 20px 0; }

.page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.1;
  letter-spacing: -.03em;
}

.page-meta { margin: 12px 0 40px; color: var(--text-2); font-size: 14px; }

.prose { color: var(--text-2); font-size: 17px; line-height: 1.7; }
.prose h2 { margin: 44px 0 12px; color: var(--text); font: 600 22px/1.3 var(--font-ui); letter-spacing: -.01em; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul { padding-left: 20px; }
.prose b { color: var(--text); font-weight: 600; }
.prose h3 { margin: 28px 0 8px; color: var(--text); font: 600 18px/1.35 var(--font-ui); }
.prose ul ul { margin-top: 8px; }
/* Legal convention: disclaimers set in capitals, a touch smaller so the block stays readable. */
.prose .caps { font-size: 14.5px; letter-spacing: .02em; }

/* Contents list at the top of the legal pages */
.toc { margin: 32px 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg-1); }
.toc ol { margin: 0; padding-left: 22px; columns: 2 280px; column-gap: 48px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.prose .toc a { color: var(--text-2); }
.prose .toc a:hover { color: var(--text); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 32px; }

.faq-group { margin: 48px 0 14px; font-family: var(--font-display); font-size: clamp(20px, 2vw, 24px); letter-spacing: -.02em; }
.page-meta + .faq-group { margin-top: 0; }

.faq { margin-bottom: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background: var(--text-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}
.faq[open]:not([data-state="closing"]) summary::after { transform: rotate(180deg); }
.faq summary:hover::after { background: var(--text); }
.faq-a { padding: 0 20px 18px; color: var(--text-2); }
.faq-a p { margin: 0 0 10px; }
.faq-a p:last-child { margin: 0; }
.faq-a b { color: var(--text); font-weight: 600; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(80px, 11vw, 136px); padding: 32px 0 48px; border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer small { color: var(--text-2); font-size: 13px; }
.finale .footer { margin-top: 0; }
.finale .footer, .glow .footer {
  border-top-color: var(--glass-line);
  background: rgba(8, 10, 20, .32);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}
.footer .logo img { width: auto; height: 30px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-bottom: 2px;
  background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 2px no-repeat;
  color: var(--text-2);
  text-decoration: none;
  transition: color .2s, background-size .35s cubic-bezier(.16, 1, .3, 1), transform .15s;
}
.footer nav a:hover { background-size: 100% 2px; color: var(--text); }
.footer nav a:active { transform: scale(.95); }
/* Click (site.js adds .is-opening): a quick press-and-spring as the new tab opens. */
.footer nav a.is-opening { color: var(--text); animation: open .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes open {
  30% { transform: scale(.9); }
  100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .footer nav a.is-opening { animation: none; }
}
