/* a2a website: landing, sign-in, join, link and docs.
   Night gallery: a true black canvas, neutral graphite surfaces with no color cast, white type,
   white pill actions and one signal blue for links, focus and live state. No glows, no gradients
   for decoration; depth comes from value steps and hairlines. */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #000;
  --bg-2: #0a0a0b;
  --card: #111112;
  --card-2: #18181a;
  --raised: #222225;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #8e8e93;
  --hair: rgb(255 255 255 / 0.08);
  --hair-2: rgb(255 255 255 / 0.14);
  --signal: #2997ff;
  --signal-2: #0a84ff;
  --signal-soft: rgb(41 151 255 / 0.14);
  --ok: #30d158;
  --held: #ff9f0a;
  --danger: #ff453a;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --page: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  /* Older names still used by page-level styles. */
  --ash: var(--ink-2); --dim: var(--ink-3); --canvas: var(--bg); --text: var(--sans); --display: var(--sans); --cobalt: var(--signal);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--sans); letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: rgb(41 151 255 / 0.4); color: #fff; }
a { color: inherit; text-underline-offset: 3px; }
img, svg { display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.028em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code, pre, kbd { font-family: var(--mono); font-feature-settings: "liga" 0; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--page), calc(100% - 40px)); margin: 0 auto; }
html { scrollbar-color: #333 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a2d; border-radius: 10px; border: 2px solid var(--bg); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px;
  border: 0; border-radius: 999px; background: var(--ink); color: #000; font: 500 16px var(--sans); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.16s var(--ease);
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.96); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn.ghost:hover { background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.btn.small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.link { color: var(--signal); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; font-size: 19px; letter-spacing: -0.04em; }
.logo svg { width: 26px; height: 26px; }

/* ---------------------------------------------------------------- nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgb(0 0 0 / 0.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 transparent; transition: box-shadow 0.3s; }
.nav.scrolled { box-shadow: 0 1px 0 var(--hair); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.nav-links { display: flex; gap: 2px; margin-left: 16px; }
.nav-links a { padding: 7px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-right .signin { padding: 7px 12px; color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-right .signin:hover { color: var(--ink); }
@media (prefers-reduced-transparency: reduce) { .nav { background: #000; backdrop-filter: none; } }

/* ---------------------------------------------------------------- hero */
.hero { padding: 88px 0 0; text-align: center; overflow: clip; }
.hero h1 { margin: 0 auto; max-width: 12ch; font-size: clamp(50px, 8.2vw, 104px); line-height: 1; letter-spacing: -0.04em; font-weight: 650; }
.hero h1 .w { display: inline-block; }
.hero .lede { margin: 26px auto 0; max-width: 34ch; color: var(--ink-2); font-size: clamp(19px, 2.1vw, 23px); line-height: 1.4; letter-spacing: -0.016em; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Load sequence: words lift out of a soft blur, then the stage settles in. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 .w { opacity: 0; filter: blur(12px); transform: translateY(0.18em); animation: lift 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
  .js .hero .lede, .js .hero .hero-cta { opacity: 0; transform: translateY(12px); animation: lift 0.9s var(--ease) forwards; }
  .js .hero .lede { animation-delay: 420ms; }
  .js .hero .hero-cta { animation-delay: 520ms; }
  .js .stage-wrap { opacity: 0; transform: translateY(40px) scale(0.97); animation: lift 1.4s var(--ease) 650ms forwards; }
}
@keyframes lift { to { opacity: 1; filter: blur(0); transform: none; } }

/* The live demo: two machines and the relay between them. */
.stage-wrap { margin: 72px auto 0; max-width: 1120px; padding: 0 0 8px; }
.stage { position: relative; display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; text-align: left; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stage { animation: stage-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  }
}
@keyframes stage-in { from { transform: scale(0.94); opacity: 0.55; } to { transform: none; opacity: 1; } }
.win { border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair), 0 40px 80px -30px rgb(0 0 0 / 0.9); min-height: 340px; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.win-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.av { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--sans); letter-spacing: 0; }
.av.you { background: #f5f5f7; color: #000; }
.av.them { background: #2c2c2e; color: #f5f5f7; }
.win-title { font-weight: 550; font-size: 14px; letter-spacing: -0.01em; }
.win-sub { margin-left: auto; color: var(--ink-3); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.win-sub i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.win-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px 16px; }
.line { max-width: 90%; padding: 10px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.42; opacity: 0; transform: translateY(8px) scale(0.98); filter: blur(4px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), filter 0.5s var(--ease); }
.line.show { opacity: 1; transform: none; filter: none; }
.line.user { align-self: flex-end; background: #2c2c2e; color: var(--ink); border-bottom-right-radius: 6px; }
.line.agent { align-self: flex-start; padding-left: 0; color: var(--ink); }
.line.tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink-2); font: 450 12.5px var(--mono); }
.line.tool::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.relay { position: relative; height: 1px; margin: 0 -2px; background: var(--hair-2); }
.relay-label { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.packet { position: absolute; top: 50%; left: 0; width: 34px; height: 3px; margin-top: -1.5px; border-radius: 3px; background: var(--signal); opacity: 0; }
.packet.go-right { animation: travel 0.95s var(--ease-in-out) forwards; }
.packet.go-left { animation: travel-back 0.95s var(--ease-in-out) forwards; background: var(--ink); }
@keyframes travel { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: calc(100% - 34px); opacity: 0; } }
@keyframes travel-back { 0% { left: calc(100% - 34px); opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: 0; opacity: 0; } }

/* ---------------------------------------------------------------- sections */
.section { padding: 160px 0 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section h2, .h2 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; letter-spacing: -0.038em; }
.section-head p { margin-top: 20px; color: var(--ink-2); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.45; }
.section-head.center p { margin-inline: auto; max-width: 40ch; }

/* How it works: a pinned stage that changes as the steps scroll past. */
.story { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 72px; }
.story-stage { position: sticky; top: 104px; height: min(560px, calc(100vh - 140px)); border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; padding: 40px; opacity: 0; transform: scale(0.97); filter: blur(10px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease); pointer-events: none; }
.story[data-step="1"] .scene[data-scene="1"], .story[data-step="2"] .scene[data-scene="2"], .story[data-step="3"] .scene[data-scene="3"] { opacity: 1; transform: none; filter: none; }
.story-steps { display: grid; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; color: var(--ink-3); transition: color 0.6s var(--ease); }
.story-step.on { color: var(--ink); }
.story-step h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.034em; }
.story-step p { margin-top: 16px; max-width: 34ch; font-size: 19px; line-height: 1.45; color: var(--ink-3); transition: color 0.6s var(--ease); }
.story-step.on p { color: var(--ink-2); }
.story-step .scene-inline { display: none; }

/* Scene parts */
.panel-ui { width: min(420px, 100%); border-radius: 20px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -24px rgb(0 0 0 / 0.8); padding: 22px; display: grid; gap: 14px; text-align: left; }
.panel-ui h4 { font-size: 17px; letter-spacing: -0.02em; }
.ui-label { color: var(--ink-3); font-size: 13px; }
.ui-input { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 15px; }
.ui-input .caret { width: 1.5px; height: 18px; margin-left: 2px; background: var(--signal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ui-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px var(--hair); font: 450 13px var(--mono); color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.ui-link span { overflow: hidden; text-overflow: ellipsis; }
.ui-link b { margin-left: auto; flex: none; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #000; font: 500 12px var(--sans); }
.ui-btn { justify-self: start; display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #000; font-size: 14px; font-weight: 500; }
.term { width: min(460px, 100%); border-radius: 18px; background: #050505; box-shadow: inset 0 0 0 1px var(--hair), 0 30px 60px -24px rgb(0 0 0 / 0.8); padding: 20px 22px; font: 450 13.5px/1.75 var(--mono); color: var(--ink-2); text-align: left; }
.term .p { color: var(--ink-3); }
.term .ok { color: var(--ok); }
.term .hi { color: var(--ink); }
.chat-ui { width: min(440px, 100%); display: grid; gap: 12px; text-align: left; }
.bubble-r { justify-self: end; max-width: 85%; padding: 11px 15px; border-radius: 20px 20px 6px 20px; background: #2c2c2e; font-size: 15px; }
.bubble-l { justify-self: start; max-width: 92%; font-size: 15px; line-height: 1.5; }
.bubble-l small { display: block; margin-bottom: 4px; color: var(--ink-3); font-size: 12.5px; }

/* ---------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(300px, auto); gap: 16px; }
.tile { position: relative; overflow: hidden; padding: 34px; border-radius: 28px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); display: flex; flex-direction: column; gap: 10px; }
.tile.w4 { grid-column: span 4; }
.tile.w3 { grid-column: span 3; }
.tile.w2 { grid-column: span 2; }
.tile.tall { grid-row: span 2; }
.tile h3 { font-size: 26px; line-height: 1.12; letter-spacing: -0.03em; }
.tile p { color: var(--ink-2); max-width: 40ch; font-size: 16px; }
.tile .art { margin-top: auto; padding-top: 28px; }
.tile.light { background: #f5f5f7; color: #1d1d1f; box-shadow: none; }
.tile.light p { color: #515154; }
.tile.signal { background: #0a2540; box-shadow: none; }
.tile.signal p { color: #b6cdf0; }

.sessions-art { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 28px; }
.hub { width: 76px; height: 76px; border-radius: 50%; background: var(--ink); color: #000; display: grid; place-items: center; font-weight: 650; font-size: 15px; }
.lanes { display: grid; gap: 10px; }
.lane { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; }
.lane::before { content: ""; position: absolute; right: 100%; top: 50%; width: 28px; height: 1px; background: var(--hair-2); }
.lane .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.lane .dot.off { background: var(--ink-3); }
.lane .meta { margin-left: auto; color: var(--ink-3); font-size: 13px; }
.lane .wall { margin-left: 8px; color: var(--ink-3); font-size: 12px; padding: 3px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); }

.verdicts { display: grid; gap: 10px; }
.verdict { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 24px -12px rgb(0 0 0 / 0.18); font-size: 15px; color: #1d1d1f; }
.verdict .tag { margin-left: auto; flex: none; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 550; }
.tag.ok { background: #e3f6e8; color: #1a7f37; }
.tag.held { background: #fff1dc; color: #a35200; }

.wave { display: flex; align-items: center; gap: 5px; height: 72px; }
.wave span { flex: 1; max-width: 7px; border-radius: 4px; background: #fff; height: calc(var(--h) * 1%); transform-origin: center; }
.tile.live .wave span { animation: bob 1.2s var(--ease-in-out) infinite alternate; animation-delay: calc(var(--i) * -110ms); }
@keyframes bob { to { transform: scaleY(0.38); } }

.capsule-art { display: flex; align-items: flex-end; gap: 16px; }
.doc-stack { position: relative; width: 74px; height: 92px; flex: none; }
.doc-stack span { position: absolute; inset: 0; border-radius: 12px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hair); }
.doc-stack span:nth-child(1) { transform: translate(-10px, 8px) rotate(-7deg); opacity: 0.45; }
.doc-stack span:nth-child(2) { transform: translate(-5px, 4px) rotate(-3.5deg); opacity: 0.7; }
.capsule-file { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); font-size: 13px; }
.capsule-file b { color: var(--ink); font: 500 13px var(--mono); }

.people-art { display: grid; gap: 2px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.person:last-child { border-bottom: 0; }
.person .meta { margin-left: auto; color: var(--ink-3); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.person .meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ---------------------------------------------------------------- desktop app */
.desk { text-align: center; }
.desk .hero-cta { margin-top: 30px; }
.desk-note { margin-top: 16px; color: var(--ink-3); font-size: 14px; }
.appwin { margin: 64px auto 0; max-width: 1080px; aspect-ratio: 16 / 10; border-radius: 22px; background: #000; box-shadow: inset 0 0 0 1px var(--hair-2), 0 60px 120px -40px rgb(0 0 0 / 1); overflow: hidden; display: grid; grid-template-columns: 250px 1fr; text-align: left; }
.appwin-side { background: #0b0b0c; border-right: 1px solid var(--hair); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.appwin-side .logo { font-size: 16px; padding: 4px 8px 14px; }
.appwin-side .logo svg { width: 22px; height: 22px; }
.aw-new { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 500; }
.aw-new svg { width: 16px; height: 16px; }
.aw-h { margin: 14px 10px 6px; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.aw-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.aw-item.on { background: #1c1c1e; color: var(--ink); }
.aw-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: none; }
.aw-item i.off { background: #48484a; }
.aw-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 8px 2px; border-top: 1px solid var(--hair); color: var(--ink-2); font-size: 12.5px; }
.aw-foot .av { width: 26px; height: 26px; font-size: 11px; }
.appwin-main { display: grid; place-items: center; padding: 40px; }
.aw-hello { width: min(560px, 100%); text-align: center; }
.aw-hello h4 { font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -0.035em; font-weight: 550; }
.aw-composer { margin-top: 26px; text-align: left; border-radius: 22px; background: #141415; box-shadow: inset 0 0 0 1px var(--hair-2); padding: 16px 16px 12px; }
.aw-composer .ph { color: var(--ink-3); font-size: 15px; min-height: 44px; }
.aw-row { display: flex; align-items: center; gap: 8px; }
.aw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink-2); font-size: 12.5px; }
.aw-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.aw-send { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #000; display: grid; place-items: center; }
.aw-send svg { width: 16px; height: 16px; }
.aw-sugg { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.aw-sugg span { padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); font-size: 12.5px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .appwin { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}
@keyframes rise-in { from { transform: translateY(60px) scale(0.95); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- code */
.dev { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: center; }
.dev-copy p { margin-top: 20px; color: var(--ink-2); font-size: 19px; }
.dev-copy .hero-cta { justify-content: flex-start; }
.code-card { border-radius: 22px; background: #0b0b0c; box-shadow: inset 0 0 0 1px var(--hair); overflow: hidden; }
.code-tabs { position: relative; display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--hair); }
.code-tabs button { position: relative; z-index: 1; padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: var(--ink-3); font: 500 13.5px var(--sans); cursor: pointer; transition: color 0.25s; }
.code-tabs button:hover { color: var(--ink-2); }
.code-tabs button[aria-selected="true"] { color: var(--ink); }
.code-tabs .pill-bg { position: absolute; top: 8px; left: 0; height: calc(100% - 16px); border-radius: 999px; background: #1f1f22; transition: transform 0.45s var(--ease), width 0.45s var(--ease); }
.code-card pre { margin: 0; padding: 24px 26px; overflow-x: auto; font-size: 13.5px; line-height: 1.75; color: #d1d1d6; tab-size: 2; }
.code-card pre.swap { animation: fade-up 0.4s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tok-k { color: #ff7ab2; } .tok-s { color: #a8e6a3; } .tok-c { color: #7c7c82; } .tok-f { color: #6bc1ff; }

/* ---------------------------------------------------------------- security */
.secure h2 { max-width: 15ch; }
.facts { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); }
.fact { padding: 30px 32px 0 0; }
.fact + .fact { padding-left: 32px; border-left: 1px solid var(--hair); }
.fact h3 { font-size: 20px; letter-spacing: -0.022em; }
.fact p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.fact b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- close */
.close { padding: 200px 0 40px; text-align: center; }
.close h2 { font-size: clamp(44px, 7vw, 88px); line-height: 1; letter-spacing: -0.042em; }
.close p { margin: 22px auto 0; max-width: 36ch; color: var(--ink-2); font-size: 20px; }

.footer { padding: 72px 0 56px; color: var(--ink-3); font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; padding-top: 32px; border-top: 1px solid var(--hair); }
.footer h4 { margin: 0 0 12px; color: var(--ink); font: 550 13px var(--sans); letter-spacing: -0.01em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--ink-3); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--ink); }
.footer .fine { margin-top: 14px; max-width: 34ch; line-height: 1.55; }

/* Reveal for the bento: a rise from an already-visible state, so nothing is lost without JS. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- auth, link, join */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(400px, 100%); display: grid; gap: 20px; }
.auth-card > .logo { justify-self: center; margin-bottom: 18px; }
.auth-card > .logo svg { width: 40px; height: 40px; }
.auth-card > .logo span { display: none; }
.auth-card h1 { font-size: 32px; letter-spacing: -0.035em; text-align: center; }
.auth-card .sub { color: var(--ink-2); text-align: center; font-size: 16px; }
.google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 0; border-radius: 999px; background: #fff; color: #1f1f1f; font: 500 16px var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: transform 0.16s var(--ease), opacity 0.2s; }
.google:active { transform: scale(0.97); }
.google[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.field { display: grid; gap: 8px; }
.field > span { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.input { width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink); font: 400 16px var(--sans); transition: box-shadow 0.2s, background-color 0.2s; }
.input::placeholder { color: var(--ink-3); }
.input:hover { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.input:focus { outline: none; background: #000; box-shadow: inset 0 0 0 1.5px var(--signal), 0 0 0 4px var(--signal-soft); }
.auth form { display: grid; gap: 16px; }
.auth form .btn { margin-top: 4px; min-height: 48px; }
.auth .switch { color: var(--ink-3); font-size: 14px; text-align: center; }
.auth .switch a { color: var(--signal); text-decoration: none; }
.auth .switch a:hover { text-decoration: underline; }
.error { min-height: 20px; color: #ff6961; font-size: 14px; }
.error:empty { min-height: 0; }
.notice { padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.code-big { display: block; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); text-align: center; font: 600 34px var(--mono); letter-spacing: 0.12em; }
.auth .row { display: flex; gap: 10px; }
.auth .row .btn { flex: 1; }
.select { appearance: none; width: 100%; min-height: 48px; padding: 0 40px 0 16px; border: 0; border-radius: 14px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a1a1a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E") no-repeat right 16px center; box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink); font: 400 16px var(--sans); }
.done-mark { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; background: var(--ok); color: #000; display: grid; place-items: center; }
.done-mark svg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { display: none; }
  .story-step { min-height: 0; padding: 36px 0; color: var(--ink); }
  .story-step p { color: var(--ink-2); }
  .story-step .scene-inline { display: grid; place-items: center; margin-top: 28px; padding: 36px 20px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.w4, .tile.w3 { grid-column: span 2; }
  .tile.w2 { grid-column: span 1; }
  .tile.tall { grid-row: auto; }
  .dev { grid-template-columns: 1fr; gap: 40px; }
  .appwin { grid-template-columns: 1fr; aspect-ratio: auto; }
  .appwin-side { display: none; }
  .appwin-main { padding: 48px 20px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding-top: 112px; }
  .stage { grid-template-columns: 1fr; gap: 0; }
  .relay { height: 56px; width: 1px; margin: 0 auto; }
  .relay-label { left: 14px; top: 50%; transform: translateY(-50%); }
  .packet { width: 3px; height: 24px; left: -1px; margin-top: 0; }
  .packet.go-right { animation-name: travel-v; }
  .packet.go-left { animation-name: travel-v-back; }
  .win { min-height: 0; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .tile.w4, .tile.w3, .tile.w2 { grid-column: auto; }
  .tile { padding: 28px; min-height: 280px; }
  .sessions-art { grid-template-columns: 1fr; gap: 18px; }
  .hub { width: 56px; height: 56px; font-size: 13px; }
  .lane::before { display: none; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 26px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--hair); }
  .close { padding-top: 140px; }
}
@keyframes travel-v { 0% { top: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: calc(100% - 24px); opacity: 0; } }
@keyframes travel-v-back { 0% { top: calc(100% - 24px); opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 0; opacity: 0; } }
@media (max-width: 560px) {
  .nav-right .signin { display: none; }
  .hero { padding-top: 64px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .line, .scene { filter: none; }
}

/* Sign-in extras and the newsletter */
.auth .forgot { justify-self: end; margin-top: -6px; color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.auth .forgot:hover { color: var(--ink); }
.auth .check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 14px; line-height: 1.45; cursor: pointer; }
.auth .check input { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: var(--signal); }
.auth-card section { display: grid; gap: 20px; }
.auth-card > .logo img { display: block; }
.news { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 24px 48px; align-items: center; margin: 0 auto 96px; padding: 36px 40px; border-radius: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--hair); }
.news h3 { font-size: 24px; letter-spacing: -0.02em; }
.news p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 44ch; }
.news-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.news-form .btn { min-height: 48px; }
.news-msg { grid-column: 1 / -1; min-height: 1.4em; margin: 0; font-size: 14px; color: var(--ink-2); }
.news-msg.ok { color: var(--ok, #5ccf96); }
.news-msg.bad { color: #ff9a8d; }
@media (max-width: 760px) {
  .news { grid-template-columns: 1fr; padding: 28px 22px; margin-bottom: 64px; }
  .news-form { grid-template-columns: 1fr; }
}
