:root {
  --bg: #fafafa;
  --bg-alt: #f2f3f5;
  --ink: #0b0b0c;
  --ink-soft: #55565b;
  --line: #e4e5e8;
  --accent: #3538cd;
  --accent-soft: #eef0ff;
  --lane: #12b76a;
  --lane-soft: #e8f8f0;
  --radius: 16px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 760px; }

/* offset in-page anchors below the sticky nav */
section[id], a[id] { scroll-margin-top: 84px; }
#solution { scroll-margin-top: 110px; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.08; font-weight: 700; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 600; color: var(--accent); margin-bottom: 18px;
}

.lede { font-size: clamp(1.1rem, 1.6vw, 1.32rem); color: var(--ink-soft); margin-top: 22px; max-width: 34ch; }
.body-lg { font-size: 1.2rem; color: var(--ink-soft); margin-top: 20px; }
.fine { font-size: 0.9rem; color: var(--ink-soft); margin-top: 32px; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 250, 250, 0.75);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-color: var(--line); }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; gap: 28px;
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; text-decoration: none; color: var(--ink); }
.wordmark-text { display: inline; }
.wm-q { color: var(--accent); }
.wordmark-mark { height: 30px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 13px 24px; border-radius: 999px; transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(53, 56, 205, 0.22); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(53, 56, 205, 0.3); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 34px; font-size: 1.1rem; margin-top: 30px; }

.cta-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* HERO */
.hero { padding: clamp(64px, 10vw, 128px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

/* Product frames */
.frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 30px 70px -30px rgba(11, 11, 12, 0.28); overflow: hidden;
}
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fbfbfc; }
.frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: #e0e1e5; }
.frame-bar em { margin-left: auto; font-style: normal; font-size: 0.78rem; color: var(--ink-soft); }
.stream { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 210px; }
.stream .row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; background: #fbfbfc; font-size: 0.86rem;
  opacity: 0; transform: translateY(6px); animation: rowin 0.4s var(--ease) forwards;
}
.stream .row span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.stream .row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.stream .row em { font-style: normal; font-size: 0.72rem; color: var(--ink-soft); }
@keyframes rowin { to { opacity: 1; transform: none; } }
.s-hi { color: var(--lane); }
.s-mid { color: var(--accent); }
.s-lo { color: var(--ink-soft); }
.lane { padding: 14px 16px 18px; border-top: 1px solid var(--line); background: var(--lane-soft); }
.lane-label { font-size: 0.78rem; font-weight: 600; color: var(--lane); text-transform: uppercase; letter-spacing: 0.08em; }
.lane-bar { height: 10px; border-radius: 999px; background: #d6efe2; margin: 10px 0 8px; overflow: hidden; }
.lane-bar i { display: block; height: 100%; background: var(--lane); border-radius: 999px; transition: width 1.4s var(--ease); }
.lane-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-soft); }
.lane-meta .ok { color: var(--lane); font-weight: 600; }

/* BANDS */
.band { padding: clamp(72px, 9vw, 128px) 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 { max-width: 22ch; margin: 0 auto; }
.section-head .fine { margin-top: 14px; }
.section-head .body-lg { max-width: 640px; margin-left: auto; margin-right: auto; }

/* JOURNEY */
.journey { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step-num { font-size: 0.85rem; font-weight: 700; color: var(--accent); letter-spacing: 0.1em; }
.step h3 { margin: 14px 0 10px; }
.step-desc { flex: 1; }
.step-desc p { color: var(--ink-soft); font-size: 1rem; margin: 0 0 0.45em; line-height: 1.45; }
.step-desc p:last-child { margin-bottom: 0; }
.mini { margin-top: auto; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fbfbfc; }
.mini-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 6px; font-size: 0.82rem; border-bottom: 1px solid var(--line); }
.mini-row:last-child { border-bottom: none; }
.mini-row span { color: var(--ink-soft); }
.mini-row b { font-weight: 700; }
.mini-row em { font-style: normal; font-size: 0.72rem; color: var(--ink-soft); }
.mini-row em.ok, .mini-row .ok { color: var(--lane); }
.band-chart { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; width: 100%; justify-content: center; }
.bars i { width: 22px; background: #d9dbe4; border-radius: 5px 5px 0 0; display: block; }
.bars i.in { background: var(--lane); }
.band-tag { font-size: 0.78rem; font-weight: 600; color: var(--lane); }

/* SPLIT */
.split { margin-top: 34px; }
.split-bar { position: relative; display: flex; height: 52px; border-radius: 12px; overflow: hidden; font-size: 0.85rem; font-weight: 600; color: #fff; }
.split-bar i { display: block; height: 100%; font-style: normal; transition: width 1.4s var(--ease); }
.split-bar .human { background: var(--accent); }
.split-bar .agent { background: var(--lane); }
.split-label { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 2; }
.lbl-human { left: 14px; }
.lbl-agent { right: 14px; }
@media (max-width: 760px) { .split-label { font-size: 0.78rem; } }
.split-cap { margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft); }

/* FLOW DIAGRAM */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 44px; }
.flow-node { flex: 1 1 180px; max-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.flow-node .flow-k { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.flow-node b { display: block; font-weight: 700; font-size: 1rem; line-height: 1.3; }
.flow-node em { display: block; font-style: normal; margin-top: 6px; font-size: 0.84rem; color: var(--ink-soft); }
.flow-node.accent { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.flow-node.ok b { color: var(--lane); }
.flow-arrow { align-self: center; color: var(--ink-soft); font-size: 1.3rem; }
@media (max-width: 760px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-node { flex: none; width: 100%; max-width: none; }
  .flow-arrow { width: 100%; text-align: center; align-self: center; transform: rotate(90deg); }
}

/* TRUST STRIP */
.trust { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; margin-top: 44px; }
.trust span { position: relative; padding: 8px 16px 8px 34px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.trust span::before { content: "✓"; position: absolute; left: 15px; color: var(--lane); font-weight: 800; }

/* DESIGN PARTNERS SLOT */
.proof-partners { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); text-align: center; }
.proof-partners-cap { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--ink-soft); }
.logo-slots { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 18px; }
.logo-slot { width: 128px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line); border-radius: 10px; color: #b9bcc4; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; background: #fff; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.stat .num { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat p { margin-top: 12px; color: var(--ink-soft); font-size: 0.95rem; }

/* LOGOS */
.logos { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.logos span, .logos a {
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-weight: 600; font-size: 0.92rem; color: var(--ink-soft);
}
.logos a { text-decoration: none; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.logos a:hover { border-color: var(--ink); color: var(--ink); }

/* GCP GRID */
.gcp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gcp-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.gcp-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -24px rgba(11, 11, 12, 0.3); }
.gcp-cap { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--accent); }
.gcp-card h3 { margin: 12px 0 10px; }
.gcp-card p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.55; }
.gcp-partner { margin-top: 36px; text-align: center; font-size: 0.92rem; color: var(--ink-soft); }
.gcp-partner a { color: var(--ink); font-weight: 600; text-decoration: none; }
.gcp-partner a:hover { color: var(--accent); }
@media (max-width: 900px) { .gcp-grid { grid-template-columns: 1fr; } }

/* PARTNER LOCKUP */
.partner-lockup { display: inline-flex; align-items: flex-start; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.partner { display: flex; flex-direction: column; gap: 8px; }
.partner-cap { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; color: var(--ink-soft); }
.partner-brand, .partner-media { display: inline-flex; align-items: center; height: 46px; text-decoration: none; color: inherit; transition: opacity 0.2s var(--ease); }
a.partner-brand:hover, a.partner-media:hover { opacity: 0.7; }
.partner-brand { gap: 9px; }
.partner-brand img { height: 34px; width: auto; }
.partner-name { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); }
.partner-name b { color: var(--accent); font-weight: 800; }
.partner-logo { display: block; }
.partner-logo-zazmic { height: 32px; width: auto; }
.partner-x { align-self: flex-end; height: 46px; display: flex; align-items: center; font-size: 1.15rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .partner-lockup { flex-direction: column; align-items: center; gap: 14px; }
  .partner { align-items: center; text-align: center; }
  .partner-x { align-self: center; height: auto; }
}

/* FOUNDER */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 40px; align-items: start; }
.founder-card { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.founder-avatar { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; flex-shrink: 0; }
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; }
.founder-avatar span { display: none; }
.founder-avatar.noimg span { display: block; }
.founder-id h3 { font-size: 1.4rem; }
.founder-link { color: inherit; text-decoration: none; cursor: pointer; }
.founder-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.founder-role { color: var(--ink-soft); font-size: 0.98rem; margin-top: 4px; }
.founder-bio p { font-size: 1.12rem; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chips span { padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.advisory { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.advisory .chips { margin-top: 12px; }
.advisory-cap { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--ink-soft); }

/* DOORS */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.door { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-decoration: none; color: var(--ink); transition: transform 0.2s var(--ease), box-shadow 0.2s; }
.door:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -24px rgba(11, 11, 12, 0.3); }
.door p { flex: 1; color: var(--ink-soft); margin: 12px 0 0; font-size: 1rem; }
.door .link { margin-top: auto; padding-top: 20px; color: var(--accent); font-weight: 600; }

/* CLOSE */
.close { padding: clamp(88px, 12vw, 160px) 0; text-align: center; background: var(--ink); color: #fff; }
.close h2 { max-width: 20ch; margin: 0 auto; }
.close .body-lg { color: rgba(255, 255, 255, 0.72); }

/* FOOTER */
.footer { padding: 56px 0 40px; background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-promise { color: var(--ink-soft); margin-top: 10px; font-size: 0.95rem; }
.footer-loc { color: var(--ink-soft); margin-top: 6px; font-size: 0.85rem; }
.footer-loc a { color: var(--ink-soft); text-decoration: none; }
.footer-loc a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin-top: 30px; font-size: 0.82rem; color: var(--ink-soft); }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .journey, .stats, .doors { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .founder { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
  .nav-inner > .btn-primary { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav.open .nav-links { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 18px; background: var(--bg); padding: 22px 32px 26px; border-bottom: 1px solid var(--line); }
  .nav.open .nav-inner { position: relative; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .container { padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
