/* Fleetwork site
   Layout: a centered 1160px column. Hero splits copy left and a live app window right; features
   are a bento of small moving cards; big builds are a numbered four-step flow.
   Palette comes from the app itself: warm paper, charcoal ink, and the four effort tiers
   (teal to indigo) as the only accent family. Gold marks a passed check. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F7F6F5;
  --paper-2: #F0EEEB;
  --surface: #FFFFFF;
  --sunk: #ECE9E6;
  --ink: #292C33;
  --ink-2: #555A64;
  --muted: #8A847D;
  --line: #E2DED9;
  --line-2: #D5D0CA;
  --ok: #3A7A57;
  --bad: #B0453A;
  --gold: #F2B23A;
  --t1: #8DB8B9; --t2: #8297C2; --t3: #5F6DAE; --t4: #3F4385;
  --btn-ink: #292C33; --btn-ink-text: #F7F6F5;
  --glow: color-mix(in srgb, var(--t2) 28%, transparent);
  --shadow: 0 1px 2px rgba(41, 44, 51, .05), 0 12px 32px -16px rgba(41, 44, 51, .28);
  --shadow-lg: 0 2px 4px rgba(41, 44, 51, .04), 0 40px 80px -32px rgba(41, 44, 51, .38);
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --col: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131416; --paper-2: #17181A; --surface: #1E1F22; --sunk: #25262A;
    --ink: #ECEAE6; --ink-2: #B9B5AF; --muted: #858079; --line: #2A2B2F; --line-2: #36383D;
    --ok: #6CBB8C; --bad: #E07B6F;
    --btn-ink: #ECEAE6; --btn-ink-text: #17181A;
    --glow: color-mix(in srgb, var(--t3) 40%, transparent);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 40px 80px -32px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 var(--sans);
  font-feature-settings: "cv11", "ss03", "cv05";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
.bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
/* softens the background under the reading column and fades out toward the edges */
.bg-veil {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: color-mix(in srgb, var(--paper) 45%, transparent);
  backdrop-filter: blur(2.5px); -webkit-backdrop-filter: blur(2.5px);
  --edge: linear-gradient(90deg, transparent 0, transparent calc(50% - 760px), #000 calc(50% - 520px), #000 calc(50% + 520px), transparent calc(50% + 760px), transparent 100%);
  mask-image: var(--edge); -webkit-mask-image: var(--edge);
}
@media (max-width: 1100px) {
  .bg-veil { --edge: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
}
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--t2) 40%, transparent); }
:focus-visible { outline: 2px solid var(--t3); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500;
  border-radius: 999px; padding: 10px 18px; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; margin-top: -2px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-ink { background: var(--btn-ink); color: var(--btn-ink-text); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--t4) 70%, transparent); }
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--t3) 80%, transparent); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { background: var(--surface); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: calc(var(--col) + 48px); margin: 12px auto 0; padding: 10px 12px 10px 16px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background .3s, border-color .3s, box-shadow .3s, margin .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-color: var(--line); box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 6px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--sunk); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center;
  max-width: var(--col); margin: 0 auto; padding: 88px 24px 72px;
}
.hero::before {
  content: ""; position: absolute; inset: -120px -20% auto 30%; height: 640px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 60% 40%, color-mix(in srgb, var(--t2) 30%, transparent), transparent 70%),
    radial-gradient(30% 40% at 85% 65%, color-mix(in srgb, var(--t1) 34%, transparent), transparent 70%),
    radial-gradient(30% 40% at 40% 70%, color-mix(in srgb, var(--t3) 18%, transparent), transparent 70%);
  filter: blur(20px); animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-4%, 3%) scale(1.08) rotate(4deg); } }
.pill-beta {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.pill-beta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t1); box-shadow: 0 0 0 0 var(--t1); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--t1) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
h1 {
  margin-top: 22px; font-size: clamp(44px, 6.2vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 600;
  background: linear-gradient(100deg, var(--ink) 30%, var(--t3) 62%, var(--t1) 90%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
  padding-bottom: .1em; margin-bottom: -.1em;
}
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.lede { margin-top: 22px; font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-meta { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* the demo window */
.demo { position: relative; perspective: 1600px; }
.win {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  transform: rotateY(-7deg) rotateX(3deg); transform-origin: 60% 50%;
  transition: transform .8s var(--ease);
}
.demo:hover .win { transform: rotateY(-2deg) rotateX(1deg); }
.win-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 12px; color: var(--muted); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.win-bar i:nth-child(1) { background: #EE6A5F; } .win-bar i:nth-child(2) { background: #F5BE4F; } .win-bar i:nth-child(3) { background: #62C554; }
.win-bar span { margin-left: 12px; font-weight: 500; color: var(--ink-2); transition: opacity .3s; }
.win-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); height: 420px; }
.d-side { position: relative; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--paper-2); }
.d-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 0 6px 14px; }
.d-brand img { width: 18px; height: 18px; border-radius: 5px; }
.d-pulse { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.d-projects { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12.5px; }
.d-projects li { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--ink-2); transition: background .35s, color .35s; }
.d-projects li.on { background: var(--sunk); color: var(--ink); font-weight: 500; }
.d-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background .3s, box-shadow .3s; flex: none; }
.d-projects li[data-p="all"] .d-dot { background: var(--ink); }
.d-projects li.busy .d-dot { background: var(--c, var(--t2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--t2)) 25%, transparent); }
.d-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: var(--paper); min-width: 0; }
.d-feed { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 16px 20px 8px; overflow: hidden; }
.turn { display: grid; gap: 8px; animation: rise .5s var(--ease) both; }
.turn.out { animation: fadeout .4s ease both; }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
@keyframes fadeout { to { opacity: 0; transform: translateY(-8px); } }
.t-you { justify-self: end; max-width: 80%; font-size: 13px; padding: 8px 12px; border-radius: 14px 14px 4px 14px; background: var(--surface); border: 1px solid var(--line); }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chips span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); animation: pop .4s var(--ease) both; animation-delay: calc(var(--i) * 110ms + 120ms); }
.t-chips b { font-weight: 500; color: var(--muted); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.t-status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.t-status .spin { width: 12px; height: 12px; }
.t-status.done { color: var(--ok); }
.t-status svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-ms { display: flex; gap: 4px; }
.t-ms i { width: 22px; height: 5px; border-radius: 3px; background: var(--line-2); transition: background .4s; }
.t-ms i.ok { background: var(--t3); }
.t-move { font-size: 12.5px; padding: 9px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: rise .5s var(--ease) both; }
.t-move b { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.d-composer { position: relative; display: flex; align-items: center; margin: 8px 16px 16px; padding: 12px 44px 12px 14px; min-height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; box-shadow: var(--shadow); }
.d-composer #demoType:empty::before { content: "Ask Fleetwork to do something"; color: var(--muted); }
.caret { display: inline-block; width: 1.5px; height: 15px; margin-left: 1px; background: var(--ink); animation: blink 1s steps(2) infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0; } }
.d-send { position: absolute; right: 8px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 8px; background: var(--ink); transition: transform .2s; }
.d-send::after { content: ""; position: absolute; left: 10px; top: 8px; border-left: 10px solid var(--paper); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.d-send.hit { transform: scale(.82); }
.float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  animation: bob 6s ease-in-out infinite;
}
.float svg { width: 15px; height: 15px; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.f-route { left: -24px; top: -20px; }
.f-check { right: -18px; bottom: 74px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.tier { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tier.t1 { background: var(--t1); } .tier.t2 { background: var(--t2); } .tier.t3 { background: var(--t3); } .tier.t4 { background: var(--t4); }
.spin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--t3); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------- sections ---------- */
.section { max-width: var(--col); margin: 0 auto; padding: 96px 24px 24px; }
.head { max-width: 640px; margin-bottom: 40px; }
.head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; }
.head p { margin-top: 16px; font-size: 18px; color: var(--ink-2); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.span-2 { grid-column: span 2; }
.card {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  padding: 18px 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  isolation: isolate;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--glow), transparent 60%);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; margin-top: 8px; }
.card p { font-size: 15px; color: var(--ink-2); max-width: 34em; }
.art {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 18px;
  height: 188px; margin: 0 -8px; border-radius: 14px; background: var(--paper);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1px);
  background-size: 16px 16px; overflow: hidden;
}

/* routing */
.r-msg { font-size: 14px; padding: 9px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); white-space: nowrap; }
.r-wire { position: relative; width: 70px; height: 2px; background: var(--line-2); border-radius: 2px; }
.r-wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--t3); box-shadow: 0 0 12px var(--t3); animation: wire 3.2s var(--ease) infinite; }
@keyframes wire { 0% { left: 0; opacity: 0; } 10% { opacity: 1; } 45% { left: calc(100% - 8px); opacity: 1; } 55%, 100% { left: calc(100% - 8px); opacity: 0; } }
.r-chips { display: grid; gap: 8px; }
.r-chips span { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); animation: chip 3.2s var(--ease) infinite; animation-delay: calc(var(--i) * 120ms); }
.r-chips b { font-weight: 500; color: var(--muted); min-width: 48px; }
.r-chips em { width: 9px; height: 9px; border-radius: 50%; }
.r-chips em.t2 { background: var(--t2); }
@keyframes chip { 0%, 40% { transform: translateX(-8px) scale(.94); opacity: .35; } 52%, 92% { transform: none; opacity: 1; } 100% { opacity: .35; } }

/* tiers */
.tiers { display: grid; gap: 10px; width: min(86%, 300px); }
.tiers div { position: relative; display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tiers div::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--w); background: currentColor; opacity: .0; }
.tiers em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--muted); }
.tiers div { animation: tierpick 5s var(--ease) infinite; animation-delay: calc(var(--i) * 1.25s); }
@keyframes tierpick { 0%, 4% { border-color: var(--line); transform: none; } 8%, 22% { border-color: var(--t3); transform: translateX(6px); box-shadow: 0 6px 18px -8px var(--t3); } 28%, 100% { border-color: var(--line); transform: none; box-shadow: none; } }

/* failover */
.c-fail .art { flex-direction: column; gap: 14px; }
.acct { display: grid; grid-template-columns: 96px 150px; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 500; }
.acct .bar { height: 8px; border-radius: 5px; background: var(--sunk); overflow: hidden; }
.acct .bar i { display: block; height: 100%; border-radius: 5px; }
.a0 .bar i { background: var(--t3); animation: drain 6s linear infinite; }
.a1 .bar i { background: var(--t1); animation: fill 6s linear infinite; }
@keyframes drain { 0% { width: 70%; } 45%, 100% { width: 100%; background: var(--bad); } }
@keyframes fill { 0%, 45% { width: 0%; } 100% { width: 64%; } }
.baton { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 14px var(--gold); left: calc(50% + 72px); animation: baton 6s var(--ease) infinite; }
@keyframes baton { 0%, 42% { top: 70px; opacity: 1; } 55%, 100% { top: 106px; opacity: 1; } }

/* checks */
.c-check .art { flex-direction: column; gap: 10px; }
.chk { display: flex; align-items: center; justify-content: space-between; width: 200px; font-size: 13.5px; font-weight: 500; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.chk i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); position: relative; }
.k0 i { animation: tick 5s infinite; }
.k1 i { animation: tick 5s infinite .6s; }
@keyframes tick { 0%, 18% { border-color: var(--line-2); background: transparent; } 26%, 90% { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 3px var(--surface); } 100% { border-color: var(--line-2); } }
.up { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.tier-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: #fff; }
.tier-pill.t1 { background: var(--t1); color: #1E3233; } .tier-pill.t2 { background: var(--t2); }
.arrow { width: 26px; height: 2px; background: var(--line-2); position: relative; }
.arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border-left: 7px solid var(--line-2); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.up .t2 { animation: lift 5s var(--ease) infinite; }
@keyframes lift { 0%, 60% { transform: none; } 66% { transform: translateY(-5px) scale(1.06); } 74%, 100% { transform: none; } }

/* parallel */
.c-par .art { justify-content: flex-start; padding-left: 28px; gap: 0; }
.par-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.par-list { position: relative; list-style: none; margin: 0 0 0 64px; padding: 0; display: grid; gap: 10px; }
.par-list li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; padding: 6px 14px 6px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); min-width: 210px; }
.par-list em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.par-list em::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--t2); margin-right: 7px; vertical-align: 1px; animation: breathe 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.4s); }
@keyframes breathe { 50% { opacity: .25; } }

/* approvals */
.ask { width: min(88%, 290px); padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ask code { display: block; font: 12.5px/1.4 var(--mono); padding: 8px 10px; border-radius: 7px; background: var(--sunk); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ask p { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.ask-btns { display: flex; justify-content: flex-end; gap: 6px; margin-top: 10px; }
.ask-btns span { font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 7px; border: 1px solid var(--line-2); }
.b-allow { background: var(--btn-ink); color: var(--btn-ink-text); border-color: transparent !important; animation: press 4s infinite; }
@keyframes press { 0%, 70% { transform: none; } 75% { transform: scale(.9); } 82%, 100% { transform: none; } }

/* memory */
.c-mem .art { gap: 14px; }
.mem { display: grid; gap: 6px; padding: 12px 14px; width: 92px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.mem i { height: 5px; border-radius: 3px; background: var(--line-2); }
.mem i:nth-child(3) { width: 70%; } .mem i:nth-child(4) { width: 85%; }
.links { display: grid; gap: 22px; }
.links span { display: block; width: 48px; height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.links span::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--t2); animation: flow 1.8s linear infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.models { display: grid; gap: 8px; }
.models span { font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

/* compaction */
.c-compact .art { flex-direction: column; gap: 12px; }
.lines { display: grid; gap: 6px; width: 180px; }
.lines i { height: 7px; border-radius: 4px; background: var(--line-2); animation: squash 5s var(--ease) infinite; animation-delay: calc(var(--i) * 70ms); }
@keyframes squash { 0%, 30% { transform: none; opacity: 1; } 50%, 85% { transform: translateY(calc(var(--i) * -13px)) scaleX(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.sum { font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--t2); color: var(--ink); animation: sumin 5s var(--ease) infinite; }
@keyframes sumin { 0%, 38% { transform: translateY(8px) scale(.9); opacity: 0; } 52%, 86% { transform: none; opacity: 1; } 100% { opacity: 0; } }

/* learning */
.c-learn .art { gap: 16px; }
.fixes { display: grid; gap: 8px; }
.fixes span { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); white-space: nowrap; }
.fx1 { animation: answer 5s infinite; }
@keyframes answer { 0%, 30% { opacity: .35; } 40%, 100% { opacity: 1; border-color: var(--t2); } }
.trust { display: grid; gap: 6px; padding: 10px 12px; width: 130px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.trust b { font-size: 13px; font-weight: 500; }
.trust .bar { height: 5px; border-radius: 3px; background: var(--sunk); overflow: hidden; }
.trust .bar i { display: block; height: 100%; width: 40%; background: var(--t3); border-radius: 3px; animation: grow 5s var(--ease) infinite; }
@keyframes grow { 0%, 40% { width: 40%; } 60%, 100% { width: 78%; } }
.trust em { font-style: normal; font-size: 11px; color: var(--muted); }

/* stop */
.stopcard { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.st-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; min-width: 128px; }
.st-time { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: auto; }
.stop-btn { font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 7px; border: 1px solid var(--line-2); }
.c-stop.stopped .spin { animation: none; border-color: var(--bad); background: var(--bad); box-shadow: inset 0 0 0 3px var(--surface); }
.c-stop.stopped .st-label { color: var(--bad); }
.c-stop.stopped .stop-btn { transform: scale(.92); opacity: .5; }

/* dev servers */
.c-dev .art { flex-direction: column; gap: 12px; }
.srv { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.srv code { font: 13px var(--mono); }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: ping 2s infinite; }
.srv .open { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 6px; background: var(--sunk); }
.ide { display: grid; padding: 4px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); width: 170px; }
.ide span { font-size: 12.5px; padding: 5px 9px; border-radius: 6px; animation: hl 4.5s infinite; }
.ide span:nth-child(2) { animation-delay: 1.5s; } .ide span:nth-child(3) { animation-delay: 3s; }
@keyframes hl { 0%, 30% { background: var(--sunk); } 34%, 100% { background: transparent; } }

/* queue */
.q { display: grid; gap: 6px; width: min(84%, 460px); }
.q-item { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); animation: qin 6s var(--ease) infinite; animation-delay: calc(var(--i) * .5s); }
@keyframes qin { 0% { transform: translateY(12px); opacity: 0; } 10%, 80% { transform: none; opacity: 1; } 92%, 100% { transform: translateY(-10px); opacity: 0; } }
.q-n { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--sunk); color: var(--ink-2); }
.q-bar { margin-top: 4px; font-size: 13.5px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }

/* ---------- builds ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.flow-line { position: absolute; left: 22px; right: calc((100% - 48px) / 4 - 22px); top: 22px; height: 2px; background: var(--line); }
.flow-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--t1), var(--t2), var(--t3), var(--t4)); transition: width 2.4s var(--ease); }
.flow.go .flow-line i { width: 100%; }
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-weight: 600; font-size: 16px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted);
  transition: background .5s, color .5s, border-color .5s, transform .5s var(--ease);
  transition-delay: calc(var(--i) * .55s);
}
.flow.go .step-n { color: #fff; border-color: transparent; transform: scale(1.06); }
.flow.go .step:nth-child(2) .step-n { background: var(--t1); color: #1E3233; }
.flow.go .step:nth-child(3) .step-n { background: var(--t2); }
.flow.go .step:nth-child(4) .step-n { background: var(--t3); }
.flow.go .step:nth-child(5) .step-n { background: var(--t4); }
.step h3 { font-size: 20px; letter-spacing: -.02em; margin-top: 8px; }
.step p { font-size: 15px; color: var(--ink-2); }
.mini { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.mini span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.mini span.ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); color: var(--ok); }
.mini.ms span { width: 30px; text-align: center; padding: 4px 0; }
.mini span.run { border-color: var(--t3); color: var(--t3); animation: breathe 1.4s ease-in-out infinite; }

/* ---------- tour: one focused screen per row, alternating sides ---------- */
.shows { display: grid; gap: 88px; }
.show { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.show.is-left { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.show.is-left .show-copy { order: 2; }
.show-copy { display: grid; gap: 14px; max-width: 30em; }
.show-copy h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; }
.show-copy p { font-size: 17px; color: var(--ink-2); }
.show-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.show-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.show-points li::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--muted); }
.show-stage {
  --tint: var(--t2);
  position: relative; display: grid; place-items: center; padding: clamp(20px, 4vw, 44px); border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--tint) 34%, transparent), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, color-mix(in srgb, var(--t1) 22%, transparent), transparent 60%),
    var(--paper-2);
  border: 1px solid var(--line);
}
.show-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(180deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); }
.tint-t1 { --tint: var(--t1); } .tint-t2 { --tint: var(--t2); } .tint-t3 { --tint: var(--t3); } .tint-t4 { --tint: var(--t4); }
.show-stage picture { position: relative; display: block; width: 100%; }
.show-stage img {
  width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper);
  box-shadow: var(--shadow-lg); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.show:hover .show-stage img { transform: translateY(-4px); }
.show-stage.is-tall picture { width: auto; }
.show-stage.is-tall img { width: auto; max-width: 100%; max-height: 520px; }

/* ---------- power ---------- */
.power-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-radius: 20px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.pw { padding: 28px; background: var(--surface); display: grid; gap: 8px; align-content: start; transition: background .3s; }
.pw:hover { background: color-mix(in srgb, var(--surface) 80%, var(--t2)); }
.pw b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pw p { font-size: 15px; color: var(--ink-2); }

/* ---------- faq ---------- */
.qa { display: grid; gap: 10px; max-width: 760px; }
.qa details { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; }
.qa details[open] { border-color: var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 500; font-size: 16.5px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.qa details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.qa details p { padding: 0 22px 20px; color: var(--ink-2); max-width: 62ch; }

/* ---------- final ---------- */
.final { position: relative; overflow: clip; display: grid; justify-items: center; gap: 22px; text-align: center; max-width: var(--col); margin: 96px auto 0; padding: 140px 24px 140px; }
.final-glow { position: absolute; left: 50%; top: 0; height: 100%; aspect-ratio: 1; max-width: 100vw; translate: -50% 0; z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, var(--t1), var(--t2), var(--t3), var(--t4), var(--t1)); mask-image: radial-gradient(circle closest-side, #000 15%, transparent 100%); -webkit-mask-image: radial-gradient(circle closest-side, #000 15%, transparent 100%); opacity: .45; animation: turn 16s linear infinite; pointer-events: none; }
@keyframes turn { to { transform: rotate(1turn); } }
.final-icon { border-radius: 22px; box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
.final h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.045em; line-height: 1.02; font-weight: 600; }
.final-meta { font-size: 14px; color: var(--muted); }

.foot { display: flex; gap: 20px; align-items: center; max-width: var(--col); margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot a { text-decoration: none; } .foot a:hover { color: var(--ink); }
/* the credit: a little wiggle, a highlight and a lift on hover */
.fish {
  display: inline-block; font-weight: 600; color: var(--ink-2); padding: 2px 6px; margin: 0 -3px; border-radius: 7px;
  transition: color .2s, background .25s, transform .3s var(--ease), box-shadow .3s;
}
.fish:hover, .fish:focus-visible {
  color: var(--ink); transform: scale(1.14);
  background: linear-gradient(100deg, color-mix(in srgb, var(--gold) 55%, transparent), color-mix(in srgb, var(--t1) 45%, transparent));
  box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--gold) 80%, transparent);
  animation: wiggle .55s ease-in-out;
}
@keyframes wiggle { 0% { rotate: 0deg; } 20% { rotate: -9deg; } 40% { rotate: 7deg; } 60% { rotate: -5deg; } 80% { rotate: 3deg; } 100% { rotate: 0deg; } }
.spacer { flex: 1; }

/* scroll reveal: content is visible at rest; JS only adds a small lift as it enters */
.rv { transition: transform .9s var(--ease); }
.rv.pre { transform: translateY(28px); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 48px; }
  .win { transform: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .flow-line { display: none; }
  .power-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .show, .show.is-left { grid-template-columns: 1fr; gap: 28px; }
  .show.is-left .show-copy { order: 0; }
  .shows { gap: 64px; }
  .f-route { left: 8px; top: -18px; } .f-check { right: 8px; bottom: -18px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .bento, .power-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .flow { grid-template-columns: 1fr; }
  .win-body { grid-template-columns: 1fr; height: 380px; }
  .d-side { display: none; }
  .art { transform-origin: center; }
  .r-wire { width: 28px; }
  .r-msg { font-size: 12.5px; white-space: normal; max-width: 120px; }
  .c-par .art { padding-left: 0; justify-content: center; }
  .par-list { margin-left: 0; }
  .par-canvas { display: none; }
  .acct { grid-template-columns: 90px 120px; }
  .baton { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv.pre { transform: none; }
}
