/* Fallback fonts sized to match Montserrat and Roboto, so text doesn't reflow (and shift the page) when the web fonts arrive */
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 112.8%; ascent-override: 85.8%; descent-override: 22.3%; line-gap-override: 0%; }
@font-face { font-family: "Roboto Fallback"; src: local("Arial"), local("Helvetica Neue"); size-adjust: 100.3%; ascent-override: 92.5%; descent-override: 24.3%; line-gap-override: 0%; }
/* AgentOps AI — shared design system
   Brand: warm black + AgentOps orange, Montserrat display / Roboto body / JetBrains Mono labels. */

:root {
  --bg: #0c0a08;
  --bg-2: #13100d;
  --surface: #1a1612;
  --surface-2: #221d18;
  --line: rgba(255, 240, 225, 0.09);
  --line-2: rgba(255, 240, 225, 0.16);
  --text: #f2ede7;
  --muted: #a39a90;
  --dim: #8c8379;
  --accent: #ff6b00;
  --accent-hi: #ff8a33;
  --accent-ink: #140800;
  --accent-soft: rgba(255, 107, 0, 0.12);
  --ok: #3ddc97;
  --warn: #f5c451;
  --cool: #8fb4ff;

  --f-display: "Montserrat", "Montserrat Fallback", system-ui, sans-serif;
  --f-body: "Roboto", "Roboto Fallback", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --fs-display: clamp(2.5rem, 6vw, 5.4rem);
  --fs-h2: clamp(1.9rem, 3.8vw, 3.2rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.78rem;

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 0.18s;
  --t: 0.45s;
  --t-slow: 0.8s;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; }

h1, h2, h3, h4 { font-family: var(--f-display); color: var(--text); line-height: 1.02; letter-spacing: -0.02em; }
h1, h2 { font-weight: 900; text-transform: uppercase; }
h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
p { color: var(--muted); }
strong { color: var(--text); font-weight: 500; }
.text-accent { color: var(--accent); }

::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

.section { padding-block: clamp(72px, 10vw, 136px); position: relative; }
.section--tint { background: var(--bg-2); border-block: 1px solid var(--line); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 + p { margin-top: 18px; font-size: 1.12rem; max-width: 620px; }
.section-head--center h2 + p { margin-inline: auto; }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 var(--fs-small)/1.2 var(--f-mono);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft); flex: none;
}
.mono { font-family: var(--f-mono); font-size: var(--fs-small); letter-spacing: 0.06em; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--muted); max-width: 580px; }
.demo-tag {
  display: inline-block; font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim); border: 1px solid var(--line-2); border-radius: 99px; padding: 5px 9px;
}

/* ---------- Buttons ---------- */
.btn {
  --_bg: transparent; --_fg: var(--text); --_bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--_bg); color: var(--_fg); border: 1px solid var(--_bd);
  font: 700 0.82rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast), border-color var(--t-fast), box-shadow var(--t) var(--ease), color var(--t-fast);
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--primary { --_bg: var(--accent); --_fg: var(--accent-ink); --_bd: var(--accent); }
.btn--primary:hover { --_bg: var(--accent-hi); --_bd: var(--accent-hi); box-shadow: 0 10px 32px -8px rgba(255, 107, 0, 0.55); }
.btn--ghost:hover { --_bd: var(--text); background: rgba(255, 240, 225, 0.04); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.74rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none;
  font: 700 0.8rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase;
}
.link-arrow svg { width: 15px; height: 15px; color: var(--accent); transition: transform var(--t) var(--ease); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(4px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  view-transition-name: site-header;
  transition: background-color var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(12, 10, 8, 0.95); border-bottom-color: var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo {
  font: 900 1.2rem/1 var(--f-display); letter-spacing: -0.02em; text-transform: uppercase;
  text-decoration: none; color: var(--text); display: inline-flex; align-items: baseline; gap: 6px; flex: none;
}
.logo b { color: var(--accent); font-weight: 900; }
.logo small { font: 500 0.64rem/1 var(--f-mono); letter-spacing: 0.16em; color: var(--muted); }

.nav { display: none; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  font: 600 0.88rem/1 var(--f-body); color: var(--muted); text-decoration: none;
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav > a:hover, .nav-drop > button:hover, .nav-drop.is-open > button { color: var(--text); background: rgba(255, 240, 225, 0.05); }
.nav [aria-current="page"], .nav-drop.is-current > button { color: var(--text); }
.nav [aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 12px; height: 12px; transition: transform var(--t) var(--ease); }
.nav-drop.is-open > button svg { transform: rotate(180deg); }

.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 560px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px;
  background: rgba(26, 22, 18, 0.97); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px) scale(0.98); transform-origin: top center;
  transition: opacity var(--t-fast) var(--ease), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.nav-drop.is-open .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.nav-menu a {
  display: block; padding: 14px 16px; border-radius: 12px; text-decoration: none;
  transition: background-color var(--t-fast);
}
.nav-menu a:hover, .nav-menu a:focus-visible { background: rgba(255, 240, 225, 0.05); }
.nav-menu a strong { display: flex; align-items: center; gap: 8px; font: 700 0.92rem/1.2 var(--f-display); color: var(--text); }
.nav-menu a strong::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
.nav-menu a span { display: block; margin-top: 6px; font-size: 0.84rem; line-height: 1.45; color: var(--muted); }
.nav-menu a[aria-current="page"] { background: var(--accent-soft); }

.header-cta { display: none; }
.menu-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2);
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast);
}
.menu-btn span { position: relative; }
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.site-header.is-open .menu-btn span { background: transparent; }
.site-header.is-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99; overflow-y: auto;
  background: var(--bg); padding: 24px var(--gutter) 40px;
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t-fast), transform var(--t) var(--ease), visibility 0s linear var(--t);
}
.site-header.is-open + .mobile-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-panel a {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font: 800 1.35rem/1.1 var(--f-display); text-transform: uppercase; letter-spacing: -0.01em;
}
.mobile-panel a[aria-current="page"] { color: var(--accent); }
.mobile-panel .mobile-group { margin-top: 18px; font: 500 var(--fs-small)/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.mobile-panel .mobile-sub a { font-size: 1.05rem; padding: 13px 0; }
.mobile-panel .btn { margin-top: 28px; width: auto; align-self: flex-start; }
body.menu-open { overflow: hidden; }

@media (min-width: 1040px) {
  .nav, .header-cta { display: flex; }
  .menu-btn, .mobile-panel { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px)); padding-bottom: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(255, 107, 0, 0.13), transparent 70%); pointer-events: none;
}
.page-hero h1 { max-width: 14ch; font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.page-hero .lede { margin-top: 24px; }
.page-hero .cta-row { margin-top: 36px; }
.crumbs { display: flex; gap: 8px; margin-bottom: 22px; font: 500 var(--fs-small)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--text); }

/* ---------- Home hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 1100px; height: 900px; transform: translateX(-30%);
  background: radial-gradient(closest-side, rgba(255, 107, 0, 0.14), transparent 72%); pointer-events: none;
}
.hero-grid { display: grid; gap: 48px; align-items: center; position: relative; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.hero h1 { max-width: 11ch; }
.hero h1 .hl { display: block; }
.hero .lede { margin-top: 26px; }
.hero .cta-row { margin-top: 36px; }
.hero-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-note li { display: flex; align-items: center; gap: 8px; font: 500 var(--fs-small)/1.3 var(--f-mono); letter-spacing: 0.06em; color: var(--muted); }
.hero-note li::before { content: ""; width: 14px; height: 1px; background: var(--accent); }

/* Live lead console (hero visual) */
.console {
  position: relative; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 107, 0, 0.04);
  overflow: hidden;
}
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.console-bar .mono { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(61, 220, 151, 0.6); opacity: 0; }
.is-in .live-dot::after { animation: pulse 2.4s var(--ease) 3; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 70% { transform: scale(3); opacity: 0; } 100% { transform: scale(3); opacity: 0; } }

.lead-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-bottom: 1px solid var(--line); }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font: 800 0.95rem/1 var(--f-display);
}
.lead-card h3 { font-size: 1rem; }
.lead-card p { font-size: 0.86rem; }
.lead-card .score { margin-left: auto; text-align: right; }
.score b { display: block; font: 900 1.5rem/1 var(--f-display); color: var(--ok); }
.score span { font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.timeline { padding: 8px 18px 18px; }
.timeline li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 11px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 10px; top: 30px; bottom: -6px; width: 1px; background: var(--line-2); }
.timeline li:last-child::before { display: none; }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); }
.timeline .dot svg { width: 11px; height: 11px; color: var(--accent); }
.timeline li.is-done .dot { background: var(--accent); border-color: var(--accent); }
.timeline li.is-done .dot svg { color: var(--accent-ink); }
.timeline strong { display: block; font-size: 0.92rem; line-height: 1.35; }
.timeline small { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.timeline time { font: 500 0.7rem/1.6 var(--f-mono); color: var(--dim); }
.console-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.18); }

/* Sequenced reveal inside a container: children get --i */
.js [data-sequence] > * { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 420ms + 300ms); }
.js [data-sequence].is-in > * { opacity: 1; transform: none; }

/* ---------- Reveal system ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }

/* Hero choreography (runs on load, no observer) */
.js .hero [data-hero] { opacity: 0; transform: translateY(26px); animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 80ms); }
.js .hero .console[data-hero] { transform: translateY(30px) scale(0.97); animation-duration: 1.1s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Inside AgentOps: video showcase (the page's one big moment) ---------- */
.showcase { padding-block: clamp(24px, 4vw, 48px) clamp(72px, 10vw, 136px); position: relative; }
.showcase-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.showcase-head h2 { max-width: 12ch; }
.showcase-head p { max-width: 420px; }
.showcase-stage { perspective: 1800px; position: relative; }
.showcase-stage::before {
  content: ""; position: absolute; inset: 12% 8% -6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 0, 0.2), transparent 80%); pointer-events: none;
}
.frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #070605;
  border: 1px solid var(--line-2); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9);
  transform-origin: 50% 0%;
}
.js .frame[data-tilt] { transform: rotateX(14deg) scale(0.94); transition: transform 1.2s var(--ease); }
.js .frame[data-tilt].is-in { transform: none; }
.frame-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); display: inline-block; }
.frame-bar .url { flex: 1; text-align: center; font: 500 0.72rem/1 var(--f-mono); color: var(--dim); letter-spacing: 0.04em; }
.frame-bar .url::before { content: "●"; color: var(--ok); margin-right: 8px; font-size: 0.6rem; vertical-align: 1px; }
.video-box { position: relative; aspect-ratio: 16 / 9; background: #070605 center / cover no-repeat; }
.video-box video { width: 100%; height: 100%; object-fit: contain; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center; width: 100%;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 6, 5, 0.55));
  transition: background-color var(--t);
}
.play-btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 999px;
  background: rgba(12, 10, 8, 0.78); border: 1px solid var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 700 0.8rem/1 var(--f-display); letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform var(--t) var(--ease), border-color var(--t-fast);
}
.play-btn .ring { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); }
.play-btn .ring svg { width: 18px; height: 18px; margin-left: 3px; }
.play:hover .play-btn, .play:focus-visible .play-btn { transform: scale(1.04); border-color: var(--accent); }
.play:focus-visible { outline-offset: -4px; }
.showcase-chapters { display: grid; gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 720px) { .showcase-chapters { grid-template-columns: repeat(4, 1fr); } }
.showcase-chapters button {
  text-align: left; padding: 18px 20px; background: var(--bg); transition: background-color var(--t-fast);
}
.showcase-chapters button:hover { background: var(--bg-2); }
.showcase-chapters time { font: 500 0.7rem/1 var(--f-mono); color: var(--accent); letter-spacing: 0.08em; }
.showcase-chapters strong { display: block; margin-top: 8px; font: 700 0.95rem/1.3 var(--f-display); }
.showcase-chapters span { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* Video modal */
.video-modal {
  width: min(1200px, calc(100vw - 2 * var(--gutter))); max-width: none; max-height: calc(100vh - 32px);
  margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: #070605; color: var(--text); overflow: hidden;
}
.video-modal::backdrop { background: rgba(5, 4, 3, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.video-modal[open] { animation: modal-in 0.4s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: scale(0.97); } }
.video-modal .modal-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.video-modal video { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 100px); background: #000; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: border-color var(--t-fast), background-color var(--t-fast); }
.icon-btn:hover { border-color: var(--text); background: rgba(255, 240, 225, 0.05); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Problem block ---------- */
.problem { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 860px) { .problem { grid-template-columns: 1.3fr 1fr 1fr; } }
.problem > div { background: var(--bg-2); padding: clamp(24px, 3vw, 40px); }
.problem .big { background: var(--bg); }
.problem .big h3 { font: 900 clamp(1.6rem, 3vw, 2.4rem)/1 var(--f-display); text-transform: uppercase; }
.problem .big p { margin-top: 16px; }
.problem .num { font: 500 var(--fs-small)/1 var(--f-mono); color: var(--accent); letter-spacing: 0.1em; }
.problem h4 { margin-top: 18px; }
.problem p { margin-top: 10px; font-size: 0.96rem; }

/* ---------- Capability bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento > :nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .bento > :nth-child(2) { grid-column: span 2; }
  .bento > :nth-child(3) { grid-column: span 2; }
  .bento > :nth-child(4) { grid-column: span 3; }
  .bento > :nth-child(5) { grid-column: span 3; }
}
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; overflow: hidden; isolation: isolate;
  transition: border-color var(--t), transform var(--t) var(--ease), background-color var(--t);
}
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--t);
  background: radial-gradient(500px circle at var(--mx, 70%) var(--my, 0%), rgba(255, 107, 0, 0.1), transparent 60%);
}
a.tile:hover { border-color: rgba(255, 107, 0, 0.45); transform: translateY(-4px); }
a.tile:hover::after { opacity: 1; }
.tile .idx { font: 500 var(--fs-small)/1 var(--f-mono); color: var(--accent); letter-spacing: 0.1em; }
.tile p { font-size: 0.96rem; }
.tile .link-arrow { margin-top: auto; padding-top: 8px; }
.tile--feature { justify-content: space-between; min-height: 420px; background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%); }
.tile--feature h3 { font: 900 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--f-display); text-transform: uppercase; max-width: 15ch; }
.tile-media { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 7; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
a.tile:hover .tile-media img { transform: scale(1.04); }

/* ---------- Lead journey ---------- */
.journey { position: relative; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 980px) { .journey { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.journey::before, .journey::after { content: ""; position: absolute; background: var(--line-2); }
.journey::before { left: 21px; top: 0; bottom: 0; width: 1px; }
.journey::after { left: 21px; top: 0; width: 1px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(1); }
@media (min-width: 980px) {
  .journey::before { left: 0; right: 0; top: 21px; bottom: auto; width: auto; height: 1px; }
  .journey::after { left: 0; right: 0; top: 21px; width: auto; height: 1px; transform-origin: left; transform: scaleX(1); }
}
.js .journey::after { transform: scaleY(0); transition: transform 2.4s var(--ease-in-out) 0.2s; }
.js .journey.is-in::after { transform: scaleY(1); }
@media (min-width: 980px) {
  .js .journey::after { transform: scaleX(0); }
  .js .journey.is-in::after { transform: scaleX(1); }
}
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
@media (min-width: 980px) { .step { grid-template-columns: 1fr; gap: 18px; } }
.step-node {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--bg);
  border: 1px solid var(--line-2); font: 500 0.74rem/1 var(--f-mono); color: var(--muted);
  transition: background-color 0.4s, border-color 0.4s, color 0.4s; transition-delay: calc(var(--i, 0) * 380ms + 300ms);
}
.journey.is-in .step-node, html:not(.js) .step-node { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step h3 { font-size: 1.02rem; }
.step p { font-size: 0.9rem; margin-top: 6px; line-height: 1.55; }

/* ---------- Product showcase tabs ---------- */
.tabs { display: grid; gap: 28px; }
@media (min-width: 980px) { .tabs { grid-template-columns: 300px 1fr; gap: 40px; align-items: start; } }
.tablist { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tablist::-webkit-scrollbar { display: none; }
@media (min-width: 980px) { .tablist { flex-direction: column; margin: 0; padding: 0; overflow: visible; } }
.tab {
  flex: none; text-align: left; padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-2); transition: border-color var(--t-fast), background-color var(--t-fast);
}
.tab strong { display: block; font: 700 0.95rem/1.2 var(--f-display); color: var(--muted); transition: color var(--t-fast); }
.tab span { display: none; font-size: 0.86rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
@media (min-width: 980px) { .tab { padding: 18px 20px; } .tab span { display: block; } }
.tab:hover strong { color: var(--text); }
.tab[aria-selected="true"] { border-color: rgba(255, 107, 0, 0.5); background: var(--surface); }
.tab[aria-selected="true"] strong { color: var(--text); }
.tabpanel { min-height: 420px; }
.tabpanel[hidden] { display: none; }
.tabpanel:not([hidden]) { animation: panel-in 0.5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }

/* Mock app window */
.app { border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8); }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.app-head h3 { font-size: 0.98rem; }
.app-body { padding: 18px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 600px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.kpi span { font: 500 0.66rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; margin-top: 8px; font: 900 1.6rem/1 var(--f-display); }
.rows { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
@media (min-width: 600px) { .row { grid-template-columns: 1.3fr 1fr 1fr auto; } }
.row:last-child { border-bottom: 0; }
.row.head { font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); background: var(--bg-2); }
.row .hide-sm { display: none; color: var(--muted); }
@media (min-width: 600px) { .row .hide-sm { display: block; } }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font: 500 0.68rem/1 var(--f-mono); letter-spacing: 0.04em; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--hot { color: var(--ok); background: rgba(61, 220, 151, 0.1); }
.pill--warm { color: var(--warn); background: rgba(245, 196, 81, 0.1); }
.pill--cold { color: var(--muted); background: rgba(255, 240, 225, 0.05); }
.pill--accent { color: var(--accent); background: var(--accent-soft); }
.bars { display: grid; gap: 12px; margin-top: 14px; }
.bar { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; font-size: 0.86rem; color: var(--muted); }
.bar i { height: 8px; border-radius: 99px; background: var(--bg-2); position: relative; overflow: hidden; display: block; }
.bar i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--c, var(--accent)); transform-origin: left; transition: transform 1.2s var(--ease) 0.2s; }
.js .bars:not(.is-in) .bar i::after { transform: scaleX(0); }
.bar b { font: 500 0.78rem/1 var(--f-mono); color: var(--text); }

/* Phone + chat */
.phone {
  width: min(320px, 100%); margin-inline: auto; border-radius: 40px; padding: 10px; background: #050404;
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.phone-screen { border-radius: 31px; overflow: hidden; background: #0e1512; min-height: 520px; display: flex; flex-direction: column; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; background: #16201b; }
.phone-top .avatar { width: 34px; height: 34px; font-size: 0.8rem; }
.phone-top strong { display: block; font-size: 0.9rem; }
.phone-top small { display: block; font-size: 0.72rem; color: var(--muted); }
.chat { padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bubble { max-width: 86%; padding: 9px 12px 7px; border-radius: 12px; font-size: 0.86rem; line-height: 1.45; color: var(--text); background: #1d2a24; }
.bubble small { display: block; text-align: right; font: 400 0.64rem/1 var(--f-mono); color: var(--dim); margin-top: 5px; }
.bubble--me { align-self: flex-end; background: #0b4a3a; }
.bubble--sys { align-self: center; background: transparent; color: var(--dim); font: 500 0.68rem/1.3 var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 4px; }
.quick { display: grid; gap: 6px; margin-top: 8px; }
.quick span { display: block; text-align: center; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); color: #6fd8ff; font-size: 0.82rem; }

/* Call screen */
.call { background: linear-gradient(180deg, #1c120b, #0c0a08); min-height: 520px; padding: 28px 18px 22px; display: flex; flex-direction: column; }
.call-who { text-align: center; }
.call-who .avatar { width: 72px; height: 72px; margin: 0 auto 12px; font-size: 1.4rem; background: var(--accent); color: var(--accent-ink); }
.call-who small { font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wave { display: flex; gap: 3px; justify-content: center; align-items: center; height: 28px; margin: 14px 0 6px; }
.wave i { width: 3px; border-radius: 3px; background: var(--accent); height: calc(var(--h) * 1px); }
.is-in .wave i { animation: wave 1.1s var(--ease-in-out) 6 alternate; animation-delay: calc(var(--h) * 13ms); }
@keyframes wave { to { transform: scaleY(0.35); } }
.transcript { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.line { font-size: 0.84rem; line-height: 1.45; padding: 9px 11px; border-radius: 10px; background: rgba(255, 240, 225, 0.05); }
.line b { display: block; font: 500 0.62rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.line--lead { background: rgba(143, 180, 255, 0.08); }
.line--lead b { color: var(--cool); }
.line--sys { background: transparent; border: 1px dashed var(--line-2); font: 500 0.72rem/1.4 var(--f-mono); color: var(--ok); text-align: center; }

/* ---------- Outcome list ---------- */
.outcomes { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 760px) { .outcomes { grid-template-columns: 1fr 1fr; } }
.outcome { background: var(--bg); padding: clamp(24px, 3vw, 36px) clamp(0px, 2vw, 32px) clamp(24px, 3vw, 36px) 0; display: grid; grid-template-columns: 56px 1fr; gap: 18px; }
@media (min-width: 760px) { .outcome:nth-child(even) { padding-left: clamp(24px, 3vw, 40px); } }
.outcome .n { font: 900 1.6rem/1 var(--f-display); color: var(--accent); }
.outcome p { margin-top: 8px; font-size: 0.96rem; }

/* ---------- Feature list (solution pages) ---------- */
.features { display: grid; gap: 16px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features--3 { grid-template-columns: 1.2fr 1fr 1fr; } }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); transition: border-color var(--t), transform var(--t) var(--ease); }
.feature:hover { border-color: var(--line-2); transform: translateY(-3px); }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.feature .ico svg { width: 20px; height: 20px; }
.feature p { margin-top: 8px; font-size: 0.95rem; }
.feature--wide { grid-column: 1 / -1; }

.checklist { display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text); }
.checklist li::before {
  content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .checklist--2 { grid-template-columns: 1fr 1fr; gap: 14px 28px; } }

/* Numbered roadmap */
.roadmap { position: relative; display: grid; gap: 0; }
.roadmap li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); position: relative; }
@media (min-width: 860px) { .roadmap li { grid-template-columns: 96px 1fr 1.1fr; gap: 32px; align-items: baseline; } }
.roadmap li:last-child { border-bottom: 1px solid var(--line); }
.roadmap .n { font: 900 clamp(1.6rem, 3vw, 2.4rem)/1 var(--f-display); color: var(--dim); transition: color var(--t); }
.roadmap li:hover .n, .roadmap li.is-in .n { color: var(--accent); }
.roadmap li > div { grid-column: 2; }
.roadmap p { font-size: 0.96rem; }
@media (min-width: 860px) { .roadmap li > div { display: contents; } .roadmap h3 { grid-column: 2; } .roadmap p { grid-column: 3; } }
@media (max-width: 859px) { .roadmap p { margin-top: 8px; } }

/* ---------- Platform system diagram ---------- */
.system { display: grid; gap: 0; align-items: stretch; }
@media (min-width: 980px) { .system { grid-template-columns: 1fr 72px 1.25fr 72px 1fr; } }
.sys-col { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; background: var(--bg-2); }
.sys-col--core { background: linear-gradient(180deg, rgba(255, 107, 0, 0.08), var(--bg-2) 60%); border-color: rgba(255, 107, 0, 0.35); }
.sys-col > .mono { color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; display: block; margin-bottom: 14px; }
.sys-col h3 { margin-bottom: 4px; }
.node { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); margin-top: 10px; font-size: 0.92rem; color: var(--text); transition: border-color var(--t-fast), transform var(--t) var(--ease); }
.node:hover { border-color: rgba(255, 107, 0, 0.5); transform: translateX(3px); }
.node svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.node small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.pipe { position: relative; min-height: 56px; overflow: hidden; }
.pipe::before {
  content: ""; position: absolute; left: 50%; top: -16px; bottom: 0; width: 2px; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); opacity: 0.7;
}
.pipe::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--accent); border-bottom: 0;
}
@media (min-width: 980px) {
  .pipe::before { left: -16px; right: 0; top: 50%; bottom: auto; width: auto; height: 2px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); }
  .pipe::after { left: auto; right: 0; top: 50%; bottom: auto; transform: translateY(-50%); border: 7px solid transparent; border-left-color: var(--accent); border-right: 0; }
}
.is-in .pipe::before { animation: flow-y 1s linear 8; }
@media (min-width: 980px) { .is-in .pipe::before { animation-name: flow-x; } }
@keyframes flow-y { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 16px); } }
@keyframes flow-x { from { transform: translate(0, -50%); } to { transform: translate(16px, -50%); } }

/* ---------- Founder / editorial ---------- */
.portrait { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 720 / 620; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait figcaption { position: absolute; left: 14px; bottom: 14px; }
blockquote.pull { font: 800 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--f-display); color: var(--text); letter-spacing: -0.01em; border-left: 3px solid var(--accent); padding-left: 22px; }
blockquote.pull cite { display: block; margin-top: 14px; font: 500 var(--fs-small)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.prose p { margin-top: 18px; font-size: 1.06rem; }
.prose p:first-child { margin-top: 0; }
.prose h2 { margin-top: 48px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.prose h3 { margin-top: 32px; }
.prose ul { margin-top: 14px; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.prose a { color: var(--accent); }

/* Media figure */
.media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 700 clamp(1rem, 1.5vw, 1.15rem)/1.35 var(--f-display); color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--accent), var(--accent)) center / 10px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 10px no-repeat;
  transition: transform var(--t) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent-hi); }
.faq details > p { padding: 0 48px 24px 0; max-width: 720px; }
.faq details[open] > p { animation: panel-in 0.4s var(--ease); }

/* ---------- Final CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 80px);
  background: var(--surface); border: 1px solid rgba(255, 107, 0, 0.35);
}
.cta-band::before {
  content: ""; position: absolute; right: -15%; top: -60%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 107, 0, 0.25), transparent 70%); pointer-events: none;
}
.cta-band h2 { max-width: 16ch; position: relative; }
.cta-band p { position: relative; margin-top: 18px; max-width: 520px; }
.cta-band .cta-row { position: relative; margin-top: 32px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 8px; font: 600 0.86rem/1.2 var(--f-body); color: var(--text); }
.field label .opt { color: var(--dim); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg);
  color: var(--text); font: 400 1rem/1.5 var(--f-body); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-color: #ff6b6b; }
.field .err { display: none; margin-top: 7px; font-size: 0.84rem; color: #ff8f8f; }
.field.has-error .err { display: block; }
.form-status { padding: 14px 16px; border-radius: 12px; font-size: 0.94rem; }
.form-status:empty { display: none; }
.form-status.is-ok { background: rgba(61, 220, 151, 0.1); color: var(--ok); border: 1px solid rgba(61, 220, 151, 0.3); }
.form-status.is-err { background: rgba(255, 107, 107, 0.08); color: #ff9b9b; border: 1px solid rgba(255, 107, 107, 0.3); }
.form-note { font-size: 0.84rem; color: var(--dim); }
.form-note a { color: var(--muted); }
.form-card { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line-2); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(56px, 8vw, 96px) 32px; background: var(--bg); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-grid p { margin-top: 16px; font-size: 0.94rem; max-width: 320px; }
.footer-grid h2 { font: 500 var(--fs-small)/1 var(--f-mono); letter-spacing: 0.14em; color: var(--dim); margin-bottom: 18px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 0.94rem; transition: color var(--t-fast); }
.footer-grid a:hover { color: var(--text); }
.contact-item { display: block; margin-bottom: 16px; }
.contact-item span { display: block; font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.contact-item a { color: var(--text); font-weight: 500; }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.84rem; color: var(--dim); }
.footer-base a { color: var(--muted); }

/* ---------- Misc ---------- */
.stack-sm > * + * { margin-top: 12px; }
.mt-l { margin-top: clamp(40px, 6vw, 72px); }
.center { text-align: center; }
.note { font-size: 0.86rem; color: var(--dim); }

/* ---------- Cross-page transitions (progressive) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.22s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.4s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Touch + reduced motion ---------- */
@media (hover: none) {
  a.tile:hover, .feature:hover, .node:hover { transform: none; }
}
@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; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-sequence] > *, .js .hero [data-hero] { opacity: 1 !important; transform: none !important; }
  .js .frame[data-tilt] { transform: none !important; animation: none !important; }
  @view-transition { navigation: none; }
}

.outcomes.outcomes--1 { grid-template-columns: 1fr; }
.outcomes--1 .outcome { padding-left: 0 !important; }

/* Phones & tablets: buttons hug their label and line up with the content edge */
@media (max-width: 1040px) {
  .btn { min-height: 44px; padding: 0 20px; font-size: 0.76rem; }
  .cta-row { gap: 10px; }
  .cta-row .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-block: 10px; }
}
@media (max-width: 520px) {
  .btn { padding: 0 16px; font-size: 0.72rem; letter-spacing: 0.04em; }
  .btn svg { width: 14px; height: 14px; }
}
.mobile-panel a.btn { justify-content: center; padding: 0 24px; border-bottom: 1px solid var(--accent); font: 700 0.82rem/1 var(--f-display); letter-spacing: 0.06em; color: var(--accent-ink); }

/* =========================================================
   Agents system: per-agent markers, client journey, product mockups
   ========================================================= */
:root { --a-vlms: var(--accent); --a-crm: var(--ok); --a-page: var(--cool); --a-roop: var(--warn); }
.ag { --c: var(--accent); }
.ag--vlms { --c: var(--a-vlms); } .ag--crm { --c: var(--a-crm); } .ag--page { --c: var(--a-page); } .ag--roop { --c: var(--a-roop); }
.agent-tag {
  display: inline-flex; align-items: center; gap: 8px; font: 500 0.7rem/1 var(--f-mono); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.agent-tag::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }

/* Agent cards */
.agents { display: grid; gap: 16px; }
@media (min-width: 760px) { .agents { grid-template-columns: repeat(2, 1fr); } }
.agent-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 34px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); text-decoration: none; overflow: hidden; transition: border-color var(--t), transform var(--t) var(--ease); }
.agent-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); transform: scaleX(0.16); transform-origin: left; transition: transform var(--t) var(--ease); }
.agent-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.agent-card:hover::before { transform: scaleX(1); }
.agent-card h3 { font: 900 clamp(1.5rem, 2.4vw, 2rem)/1 var(--f-display); text-transform: uppercase; }
.agent-card .job { font: 700 1.02rem/1.35 var(--f-display); color: var(--text); }
.agent-card p { font-size: 0.95rem; }
.agent-card ul { list-style: none; display: grid; gap: 8px; font-size: 0.9rem; color: var(--muted); }
.agent-card li { display: flex; gap: 10px; }
.agent-card li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--c); }
.agent-card .link-arrow { margin-top: auto; padding-top: 10px; }
.agent-card--lead { background: linear-gradient(165deg, rgba(255, 107, 0, 0.1), var(--surface) 55%); border-color: rgba(255, 107, 0, 0.3); }
@media (min-width: 760px) { .agent-card--lead { grid-row: span 1; } }

/* Client journey (who handles each step) */
.loop { display: grid; gap: 12px; }
@media (min-width: 900px) { .loop { grid-template-columns: repeat(3, 1fr); } }
.loop-step { position: relative; padding: 22px 22px 20px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: grid; gap: 8px; align-content: start; overflow: hidden; }
.loop-step .n { font: 500 0.72rem/1 var(--f-mono); color: var(--dim); letter-spacing: 0.1em; }
.loop-step h3 { font-size: 1.12rem; }
.loop-step p { font-size: 0.9rem; }
.loop-step .agent-tag { margin-top: 4px; }
.loop-step::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); transform: scaleY(1); transform-origin: top; }
.js .loop-step::after { transform: scaleY(0); transition: transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 160ms + 200ms); }
.js .loop.is-in .loop-step::after { transform: scaleY(1); }
.loop-return { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius); border: 1px dashed rgba(255, 107, 0, 0.45); color: var(--text); font-size: 0.96rem; }
.loop-return svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* Funnel (VLMS) */
.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; font-size: 0.86rem; color: var(--muted); }
.funnel-row i { height: 24px; border-radius: 7px; background: var(--bg-2); position: relative; overflow: hidden; display: block; }
.funnel-row i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-hi)); transform-origin: left; transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + 150ms); }
.js .funnel:not(.is-in) .funnel-row i::after { transform: scaleX(0); }
.funnel-row b { font: 500 0.82rem/1 var(--f-mono); color: var(--text); text-align: right; }

/* Payment verification (Agent CRM) */
.verify { list-style: none; display: grid; gap: 8px; }
.verify li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: 0.88rem; color: var(--text); }
.verify li svg { width: 16px; height: 16px; color: var(--ok); }
.verify li small { font: 500 0.7rem/1 var(--f-mono); color: var(--muted); }
.stamp { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(61, 220, 151, 0.35); background: rgba(61, 220, 151, 0.08); }
.stamp strong { font: 800 1rem/1.2 var(--f-display); color: var(--ok); }
.stamp small { display: block; font: 500 0.7rem/1.4 var(--f-mono); color: var(--muted); }

/* PageCraft build mock */
.build { display: grid; gap: 14px; }
@media (min-width: 640px) { .build { grid-template-columns: 0.8fr 1.2fr; } }
.stages { list-style: none; display: grid; gap: 6px; align-content: start; }
.stages li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px; font-size: 0.84rem; color: var(--text); border: 1px solid var(--line); background: var(--bg-2); }
.stages li::before { content: ""; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--a-page); box-shadow: inset 0 0 0 3px var(--bg-2); border: 2px solid var(--a-page); }
.site-mock { border-radius: 12px; border: 1px solid var(--line-2); background: #f4efe9; overflow: hidden; }
.site-mock .bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #e6dfd7; }
.site-mock .bar i { width: 7px; height: 7px; border-radius: 50%; background: #c8bfb5; }
.site-body { padding: 16px; display: grid; gap: 10px; }
.blk { border-radius: 6px; background: #ddd4ca; }
.blk--nav { height: 10px; background: linear-gradient(90deg, #2a2420 18%, transparent 18% 60%, #cfc5ba 60%); }
.blk--h { height: 20px; width: 72%; background: #2a2420; }
.blk--h2 { height: 20px; width: 46%; background: #2a2420; }
.blk--p { height: 8px; width: 85%; }
.blk--btn { height: 18px; width: 32%; border-radius: 99px; background: #e0691a; }
.blk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.blk--card { height: 52px; }
.blk--form { height: 40px; border: 1px dashed #b8ada1; background: transparent; display: grid; place-items: center; font: 500 0.6rem/1 var(--f-mono); color: #6f645a; letter-spacing: 0.1em; }
.js .site-body[data-sequence] > * { transition-delay: calc(var(--i, 0) * 200ms + 200ms); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 99px; font: 500 0.68rem/1 var(--f-mono); color: var(--a-page); background: rgba(143, 180, 255, 0.1); }
.checks span::before { content: "✓"; }

/* RoopCraft plan mock */
.plan-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-col { padding: 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.plan-col b { display: block; font: 900 1.1rem/1 var(--f-display); color: var(--a-roop); }
.plan-col span { display: block; margin-top: 6px; font-size: 0.78rem; line-height: 1.4; color: var(--muted); }
.reel { padding: 14px; border-radius: 12px; border: 1px solid rgba(245, 196, 81, 0.3); background: rgba(245, 196, 81, 0.06); }
.reel .mono { color: var(--a-roop); }
.reel strong { display: block; margin-top: 8px; font: 700 0.98rem/1.35 var(--f-display); }
.reel p { margin-top: 6px; font-size: 0.86rem; }
.metric-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.metric { padding: 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.metric span { display: block; font: 500 0.62rem/1.25 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.metric b { display: block; margin-top: 7px; font: 900 1.2rem/1 var(--f-display); }
.metric small { display: block; margin-top: 4px; font-size: 0.74rem; color: var(--ok); }
.stack-md { display: grid; gap: 12px; }

/* Differentiators */
.diff { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 760px) { .diff { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .diff { grid-template-columns: repeat(3, 1fr); } }
.diff > div { background: var(--bg); padding: clamp(22px, 2.6vw, 32px); display: grid; gap: 10px; align-content: start; }
.diff h3 { font-size: 1.08rem; }
.diff p { font-size: 0.93rem; }
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 4px 18px; background: var(--bg-2); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.compare th, .compare td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font: 500 var(--fs-small)/1.2 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.compare td:first-child { color: var(--text); font-weight: 500; width: 22%; }
.compare td:nth-child(2) { color: var(--muted); }
.compare td:nth-child(3) { color: var(--text); }
@media (max-width: 700px) {
  .compare thead { display: none; }
  .compare tr { display: grid; padding: 14px 0; gap: 6px; border-bottom: 1px solid var(--line); }
  .compare tr:last-child { border-bottom: 0; }
  .compare td { border: 0; padding: 0; width: auto !important; }
  .compare td:nth-child(2)::before { content: "Usually: "; color: var(--dim); }
  .compare td:nth-child(3)::before { content: "AgentOps: "; color: var(--accent); }
}

/* Hero console rows */
.agent-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.agent-row p { font-size: 0.84rem; margin-top: 4px; }
.agent-row b { font: 900 1.3rem/1 var(--f-display); color: var(--text); text-align: right; }
.agent-row b small { display: block; margin-top: 4px; font: 500 0.6rem/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.console-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: rgba(61, 220, 151, 0.06); }
.console-total span { font: 500 0.7rem/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.console-total b { font: 900 1.6rem/1 var(--f-display); color: var(--ok); }

/* =========================================================
   Signature motion: headline mask, constellation hub, overwhelm stage
   (adapted from the hyperframes-animation blueprints: constellation-hub,
   overwhelm-surround, clip-path reveal, dataviz count-up)
   ========================================================= */
:root { --spring: cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Headline mask reveal */
.hero h1 .hl { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hl-i { display: block; }
.js .hero .hl-i { transform: translateY(108%); animation: mask-up 1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 120ms + 120ms); }
@keyframes mask-up { to { transform: none; } }

/* Constellation hub */
.hub { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.hub svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-orbit { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 7; }
.hub.is-live .hub-ring { animation: spin 60s linear infinite; }
.hub-flow { position: absolute; pointer-events: none; }
.hub-flow i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.hub-flow i::before { content: ""; position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--c, var(--accent)); }
.hub-flow.up i::before { top: 100%; }
.hub.is-live .hub-flow i { animation: hub-x var(--dur) linear infinite; }
.hub.is-live .hub-flow.up i { animation-name: hub-up; }
@keyframes hub-x { from { transform: translateX(0); } to { transform: translateX(100%); } }
@keyframes hub-up { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hub-line { fill: none; stroke: var(--c, var(--accent)); stroke-width: 1.5; stroke-opacity: 0.55; stroke-dasharray: 150; stroke-dashoffset: 0; }
.js .hub-line { stroke-dashoffset: 150; transition: stroke-dashoffset 1s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + 700ms); }
.js .hub.is-in .hub-line { stroke-dashoffset: 0; }
.js .hub:not(.is-in) .hub-flow { opacity: 0; }
.hub-glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 107, 0, 0.28), transparent 75%); pointer-events: none; }
.hub-core {
  position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 4px;
  background: radial-gradient(circle at 35% 30%, #ff8a33, var(--accent) 45%, #c24f00);
  color: var(--accent-ink); box-shadow: 0 0 0 10px rgba(255, 107, 0, 0.1), 0 0 0 22px rgba(255, 107, 0, 0.05), 0 30px 60px -20px rgba(255, 107, 0, 0.6);
}
.hub-core b { font: 900 clamp(0.8rem, 2.2vw, 1.05rem)/1.05 var(--f-display); text-transform: uppercase; }
.hub-core small { font: 500 clamp(0.52rem, 1.4vw, 0.62rem)/1.2 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }
.js .hub-core { transform: translate(-50%, -50%) scale(0.4); opacity: 0; transition: transform 0.9s var(--spring) 0.2s, opacity 0.4s 0.2s; }
.js .hub.is-in .hub-core { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.hub-node {
  --c: var(--accent);
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  min-width: 128px; padding: 10px 14px; border-radius: 14px; text-align: left; text-decoration: none;
  background: rgba(26, 22, 18, 0.92); border: 1px solid var(--line-2);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, 0.8);
  transition: border-color var(--t-fast), box-shadow var(--t);
}
.hub-node::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.hub-node b { display: block; font: 900 0.95rem/1.1 var(--f-display); text-transform: uppercase; color: var(--text); }
.hub-node span { display: block; margin-top: 3px; font: 500 0.64rem/1.2 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hub-node:hover, .hub-node:focus-visible { border-color: var(--c); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8), 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.js .hub-node { transform: translate(-50%, -50%) scale(0); transition: transform 0.75s var(--spring), border-color var(--t-fast), box-shadow var(--t); transition-delay: calc(var(--i, 0) * 130ms + 450ms), 0s, 0s; }
.js .hub.is-in .hub-node { transform: translate(-50%, -50%) scale(1); }
.hub.is-in .hub-node:hover { transition-delay: 0s; }
@media (max-width: 520px) {
  .hub-node { min-width: 0; padding: 8px 10px; }
  .hub-node b { font-size: 0.78rem; }
  .hub-node span { font-size: 0.56rem; }
}

/* Overwhelm stage (problem section) */
.swamp { display: grid; gap: 20px; justify-items: center; }
.swamp-stage { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; border-radius: 50%; }
.swamp-stage::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; border: 1px dashed var(--line-2); }
.swamp-you { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; text-align: center; z-index: 2; }
.swamp-you .avatar { width: 84px; height: 84px; font-size: 1rem; background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); transition: background-color 0.5s, color 0.5s, box-shadow 0.5s; }
.swamp-you strong { font: 500 0.7rem/1.3 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); max-width: 150px; }
.swamp-stage.is-handled .swamp-you .avatar { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px rgba(255, 107, 0, 0.12); }
.task {
  --hw: 112px; position: absolute; left: clamp(var(--hw), var(--x), calc(100% - var(--hw))); top: var(--y); z-index: 1;
  transform: translate(-50%, -50%); white-space: nowrap;
  padding: 8px 12px; border-radius: 99px; font: 500 0.76rem/1 var(--f-body); color: var(--text);
  background: var(--surface); border: 1px solid rgba(255, 107, 107, 0.35); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9);
  transition: transform 0.7s var(--spring), opacity 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 70ms);
}
.task::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 7px; border-radius: 50%; background: rgba(255, 107, 107, 0.16); color: #ff8f8f; font: 800 0.66rem/1 var(--f-display); vertical-align: 1px; }
.js .swamp-stage:not(.is-in) .task { opacity: 0; transform: translate(calc(-50% + var(--dx) * 170px), calc(-50% + var(--dy) * 170px)) scale(0.6); }
.swamp-stage.is-handled .task { opacity: 0; transform: translate(calc(-50% + var(--dx) * 110px), calc(-50% + var(--dy) * 110px)) scale(0.7); transition-duration: 0.6s; }
.helper {
  --c: var(--accent);
  position: absolute; left: var(--x); top: var(--y); z-index: 1; transform: translate(-50%, -50%) scale(0); opacity: 0;
  padding: 8px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--c);
  font: 800 0.74rem/1 var(--f-display); text-transform: uppercase; white-space: nowrap; color: var(--text);
  transition: transform 0.7s var(--spring), opacity 0.3s; transition-delay: 0s;
}
.helper small { display: block; margin-top: 4px; font: 500 0.56rem/1 var(--f-mono); letter-spacing: 0.1em; color: var(--muted); }
.swamp-stage.is-handled .helper { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: calc(var(--i, 0) * 110ms + 350ms); }
.swamp-caption { font: 500 var(--fs-small)/1.4 var(--f-mono); letter-spacing: 0.06em; color: var(--muted); text-align: center; min-height: 2.8em; }
@media (max-width: 520px) { .task { font-size: 0.66rem; padding: 6px 9px; } .task::before { width: 13px; height: 13px; margin-right: 5px; } .swamp-you .avatar { width: 64px; height: 64px; } }

@media (prefers-reduced-motion: reduce) {
  .js .hero .hl-i { transform: none !important; animation: none !important; }
  .js .hub-node, .js .hub-core { transform: translate(-50%, -50%) !important; opacity: 1 !important; }
  .js .hub-line { stroke-dashoffset: 0 !important; }
  .js .swamp-stage:not(.is-in) .task { opacity: 1; transform: translate(-50%, -50%); }
}
.node.ag svg { color: var(--c); }
.swamp { width: 100%; }
.clip-x { overflow-x: hidden; overflow-x: clip; }
.stamp svg { width: 26px; height: 26px; color: var(--ok); flex: none; }
.diff .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.diff .ico svg { width: 20px; height: 20px; }

/* ---------- Layout fixes for longer agent names ---------- */
@media (max-width: 520px) {
  .hub-core { width: 25%; }
  .hub-core b { font-size: 0.72rem; }
}
.helper { white-space: normal; text-align: center; max-width: 132px; line-height: 1.15; }
@media (max-width: 520px) { .helper { max-width: 96px; padding: 6px 8px; font-size: 0.6rem; } .helper small { font-size: 0.5rem; } }

/* ---------- Customer Intelligence System dashboard (motion mockup) ---------- */
.cis {
  display: grid; grid-template-columns: 210px 1fr; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2); background: #08070a; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9); text-align: left;
}
.cis-side { border-right: 1px solid var(--line); padding: 14px 10px; background: #0a090b; }
.cis-brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.cis-brand > span { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 900 0.74rem/1 var(--f-display); }
.cis-brand b { display: block; font: 800 0.82rem/1.1 var(--f-display); color: var(--text); }
.cis-brand small { display: block; font: 500 0.6rem/1.2 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
.cis-side ul { list-style: none; display: grid; gap: 2px; }
.cis-side li { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 8px; font-size: 0.78rem; color: var(--muted); }
.cis-side li svg { width: 14px; height: 14px; flex: none; }
.cis-side li em { margin-left: auto; font: 500 0.62rem/1 var(--f-mono); font-style: normal; padding: 3px 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
.cis-side li.on { background: rgba(255, 107, 0, 0.14); color: var(--accent); }
.js .cis-side li { opacity: 0; transform: translateX(-8px); transition: opacity 0.4s, transform 0.5s var(--ease); transition-delay: calc(var(--i) * 40ms + 100ms); }
.js .cis.is-in .cis-side li { opacity: 1; transform: none; }
.cis-main { position: relative; padding: 18px; display: grid; gap: 14px; min-width: 0; }
.cis-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.cis-top b { display: block; font: 800 1.1rem/1.2 var(--f-display); }
.cis-top small { font-size: 0.78rem; color: var(--muted); }
.cis-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cis-kpi { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #0e0d10; min-width: 0; }
.cis-kpi > span { display: block; font-size: 0.72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cis-kpi > b { display: block; margin-top: 8px; font: 800 1.45rem/1 var(--f-display); color: var(--text); }
.cis-kpi small { display: block; margin-top: 6px; font-size: 0.68rem; color: var(--muted); }
.cis-kpi small.up { color: var(--ok); }
.cis-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.cis-card { border-radius: 12px; border: 1px solid var(--line); background: #0e0d10; padding: 12px; min-width: 0; }
.cis-card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.cis-card-h b { font: 700 0.82rem/1.2 var(--f-display); }
.cis-seg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--bg-2); }
.cis-seg i { font: 500 0.62rem/1 var(--f-mono); font-style: normal; padding: 4px 7px; border-radius: 6px; color: var(--muted); }
.cis-seg i.on { background: var(--surface-2); color: var(--text); }
.cis-chart svg { width: 100%; height: 150px; display: block; }
.cis-grid line { stroke: rgba(255, 240, 225, 0.06); stroke-width: 1; }
.cis-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.cis-in { stroke: #5b8cff; }
.cis-out { stroke: #9b6bff; }
.js .cis-line { stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-in-out) 0.6s; }
.js .cis-out { transition-delay: 0.9s; }
.js .cis.is-in .cis-line { stroke-dashoffset: 0; }
.js .cis-area { opacity: 0; transition: opacity 1s 1.6s; }
.js .cis.is-in .cis-area { opacity: 1; }
.cis-legend { display: flex; gap: 16px; margin-top: 6px; font-size: 0.7rem; color: var(--muted); }
.cis-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.cis-legend .li::before { background: #5b8cff; } .cis-legend .lo::before { background: #9b6bff; }
.cis-donut-body { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; }
.cis-donut svg { width: 110px; height: 110px; transform: rotate(-90deg); }
.cis-donut .track { fill: none; stroke: var(--bg-2); stroke-width: 14; }
.seg { fill: none; stroke: var(--c); stroke-width: 14; stroke-dasharray: var(--len) var(--gap); stroke-dashoffset: var(--off); }
.js .seg { stroke-dasharray: 0 var(--gap); transition: stroke-dasharray 0.9s var(--ease); transition-delay: calc(var(--i) * 220ms + 900ms); }
.js .cis.is-in .seg { stroke-dasharray: var(--len) var(--gap); }
.cis-donut ul { list-style: none; display: grid; gap: 7px; }
.cis-donut li { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; color: var(--muted); }
.cis-donut li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.cis-donut li b { margin-left: auto; font: 500 0.72rem/1 var(--f-mono); color: var(--text); }
.cis-toast {
  position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: rgba(26, 22, 18, 0.96); border: 1px solid rgba(61, 220, 151, 0.35);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.9);
}
.cis-toast .avatar { width: 30px; height: 30px; font-size: 0.72rem; }
.cis-toast b { display: block; font: 700 0.78rem/1.2 var(--f-display); }
.cis-toast small { display: block; font-size: 0.7rem; color: var(--muted); }
.js .cis-toast { opacity: 0; transform: translateY(14px) scale(0.96); transition: opacity 0.4s, transform 0.6s var(--spring); transition-delay: 2.6s; }
.js .cis.is-in .cis-toast { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .cis { grid-template-columns: 1fr; }
  .cis-side { display: none; }
  .cis-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cis-row { grid-template-columns: 1fr; }
  .cis-toast { position: static; }
}

/* ---------- Website Builder: live example previews ---------- */
.examples-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ex-tab { padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line-2); font: 700 0.78rem/1 var(--f-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast); }
.ex-tab[aria-selected="true"] { color: var(--accent-ink); background: var(--a-page); border-color: var(--a-page); }
.ex-tab:not([aria-selected="true"]):hover { color: var(--text); border-color: var(--text); }
.live-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #f4efe9; }
.live-view iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 900px; border: 0; transform-origin: 0 0; transform: scale(var(--s, 0.5)); background: #fff; }
.live-view .hint { position: absolute; right: 14px; bottom: 14px; z-index: 2; pointer-events: none; }
@media (max-width: 640px) { .live-view { aspect-ratio: 3 / 4; } .live-view iframe { width: 390px; height: 520px; } }
.reduce-motion-note { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .js .cis-line { stroke-dashoffset: 0 !important; } .js .seg { stroke-dasharray: var(--len) var(--gap) !important; }
  .js .cis-toast, .js .cis-area, .js .cis-side li { opacity: 1 !important; transform: none !important; }
}
.live-view { background: #110f0d; }
.live-view::before { content: "Loading example site…"; position: absolute; inset: 0; display: grid; place-items: center; font: 500 var(--fs-small)/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.live-view iframe { opacity: 0; transition: opacity 0.6s var(--ease); }
.live-view.is-loaded iframe { opacity: 1; }
@media (max-width: 520px) {
  .swamp-stage .helper[style*="--i:1"], .swamp-stage .helper[style*="--i:3"] { top: 43%; }
  .swamp-you strong { max-width: 120px; font-size: 0.62rem; }
}

/* ---------- Audit form: sending + success celebration ---------- */
.form-card { position: relative; }
.btn.is-loading { pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.form.is-leaving { animation: form-out 0.45s var(--ease) forwards; }
@keyframes form-out { to { opacity: 0; transform: translateY(-12px) scale(0.98); } }
.form-success { text-align: center; padding: 12px 0 4px; outline: none; }
.form-success:not([hidden]) { animation: panel-in 0.6s var(--ease) both; }
.form-success h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 22px; }
.form-success > p { margin: 10px auto 0; max-width: 380px; }
.tick-wrap { position: relative; width: 96px; height: 96px; margin: 8px auto 0; display: grid; place-items: center; }
.tick { width: 96px; height: 96px; position: relative; z-index: 1; }
.tick-c { fill: rgba(61, 220, 151, 0.08); stroke: var(--ok); stroke-width: 2; stroke-dasharray: 151; stroke-dashoffset: 151; transform: rotate(-90deg); transform-origin: center; animation: draw 0.7s var(--ease) 0.15s forwards; }
.tick-p { fill: none; stroke: var(--ok); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw 0.45s var(--ease) 0.75s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.tick-wrap { animation: tick-pop 0.6s var(--spring) 0.7s both; }
@keyframes tick-pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
.tick-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ripple 1.4s var(--ease) 0.8s; }
.tick-ring + .tick-ring { animation-delay: 1.05s; }
@keyframes ripple { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(2.1); opacity: 0; } }
.next-steps { list-style: none; display: grid; gap: 8px; margin: 26px auto 22px; max-width: 360px; text-align: left; }
.next-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 0.92rem; animation: panel-in 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms + 1.1s); }
.next-steps li:nth-child(2) { --i: 1; } .next-steps li:nth-child(3) { --i: 2; }
.next-steps span { font: 500 0.7rem/1 var(--f-mono); color: var(--muted); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); flex: none; }
.next-steps li.is-done span { background: var(--ok); border-color: var(--ok); color: var(--accent-ink); font-size: 0; }
.next-steps li.is-done span::after { content: "✓"; font-size: 0.72rem; }
.confetti { position: fixed; z-index: 300; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .tick-c, .tick-p { stroke-dashoffset: 0; animation: none; }
  .tick-ring { display: none; }
}
.form[hidden], .form-success[hidden] { display: none; }
.form-card.is-success > h2, .form-card.is-success > p { display: none; }
@media (max-width: 520px) { .task { --hw: 78px; } }

/* ---------- Performance: smooth on old and low-power phones ---------- */
a, button, summary, .tab, .ex-tab { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* Let the browser skip rendering sections that are far off-screen */
main > .section { content-visibility: auto; contain-intrinsic-size: auto 900px; }
@media (max-width: 768px) {
  /* Backdrop blur is the most expensive effect on old mobile GPUs: use solid surfaces */
  .site-header.is-scrolled, .site-header.is-open { background: rgba(12, 10, 8, 0.97); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .play-btn { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 10, 8, 0.9); }
  .video-modal::backdrop { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .js .frame[data-tilt] { transform: none; transition: none; }
  .showcase-stage { perspective: none; }
}
/* Lite mode: set by a tiny check in <head> on low-memory / low-core / data-saver devices */
.lite .hub-ring { animation: none !important; }
.lite .hub-flow, .lite .hub-glow, .lite .page-hero::before, .lite .hero::before, .lite .showcase-stage::before { display: none; }
.lite .site-header.is-scrolled, .lite .site-header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 10, 8, 0.97); }
.lite .wave i, .lite .live-dot::after { animation: none !important; }
.lite .js [data-reveal], .lite [data-reveal] { transition-duration: 0.45s; }
/* Narrow stages (small phones, and the two-column layout at ~1000px): chips in tidy rows above and below "You" */
@media (max-width: 520px), (min-width: 960px) and (max-width: 1180px) {
  .task[style*="--i:0"] { left: clamp(var(--hw), 25%, calc(100% - var(--hw))); top: 8%; }
  .task[style*="--i:1"] { left: clamp(var(--hw), 75%, calc(100% - var(--hw))); top: 8%; }
  .task[style*="--i:7"] { left: clamp(var(--hw), 25%, calc(100% - var(--hw))); top: 22%; }
  .task[style*="--i:2"] { left: clamp(var(--hw), 75%, calc(100% - var(--hw))); top: 22%; }
  .task[style*="--i:6"] { left: clamp(var(--hw), 25%, calc(100% - var(--hw))); top: 78%; }
  .task[style*="--i:3"] { left: clamp(var(--hw), 75%, calc(100% - var(--hw))); top: 78%; }
  .task[style*="--i:5"] { left: clamp(var(--hw), 25%, calc(100% - var(--hw))); top: 92%; }
  .task[style*="--i:4"] { left: clamp(var(--hw), 75%, calc(100% - var(--hw))); top: 92%; }
}
@media (min-width: 960px) and (max-width: 1180px) { .task { --hw: 100px; font-size: 0.72rem; } }
@media (max-width: 380px) {
  .task { --hw: 66px; font-size: 0.6rem; padding: 5px 7px; }
  .task::before { width: 11px; height: 11px; margin-right: 4px; font-size: 0.55rem; }
}
@media (max-width: 520px) {
  .swamp-stage .helper[style*="--i:0"] { top: 15%; }
  .swamp-stage .helper[style*="--i:2"] { top: 86%; }
}
/* Narrow hero ring (very small phones, and the two-column hero around 1000-1180px) */
@media (max-width: 380px), (min-width: 1000px) and (max-width: 1180px) {
  .hub-core { width: 23%; }
  .hub-core b { font-size: 0.7rem; }
  .hub-core small { font-size: 0.5rem; }
  .hub-node { padding: 7px 9px; min-width: 0; }
  .hub-node b { font-size: 0.74rem; }
  .hub-node span { font-size: 0.52rem; }
  .hub-node[style*="--i:1"] { left: 85%; }
  .hub-node[style*="--i:3"] { left: 15%; }
}

/* =========================================================
   Mobile "cube" layout: compact 2-column tiles instead of long stacks
   ========================================================= */
@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .section--tight { padding-block: 40px; }
  .section-head { margin-bottom: 26px; }
  .section-head h2 + p { font-size: 0.98rem; margin-top: 12px; }
  .page-hero { padding-bottom: 40px; }
  .mt-l { margin-top: 28px; }

  /* Clamp helper for tile text */
  .agent-card p, .feature p, .diff p, .outcome p, .loop-step p, .step p, .problem > div:not(.big) p, .showcase-chapters span {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  }

  /* Agent cards -> 2 x 2 tiles */
  .agents { grid-template-columns: 1fr 1fr; gap: 10px; }
  .agent-card { padding: 16px 14px; gap: 8px; border-radius: 16px; }
  .agent-card::before { height: 2px; }
  .agent-card .agent-tag { display: block; font-size: 0.54rem; letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .agent-card .agent-tag::before { display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: 1px; }
  .agent-card h3 { font-size: 0.98rem; line-height: 1.05; }
  .agent-card .job { font-size: 0.8rem; line-height: 1.3; font-weight: 600; }
  .agent-card p { font-size: 0.8rem; line-height: 1.45; }
  .agent-card ul { display: none; }
  .agent-card .link-arrow { font-size: 0.62rem; letter-spacing: 0.04em; padding-top: 6px; }
  .agent-card .link-arrow svg { width: 12px; height: 12px; }

  /* Feature / differentiator / outcome tiles */
  .features, .features--3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { padding: 14px; border-radius: 14px; }
  .feature .ico, .diff .ico { width: 32px; height: 32px; margin-bottom: 10px; border-radius: 9px; }
  .feature .ico svg, .diff .ico svg { width: 16px; height: 16px; }
  .feature h3, .diff h3, .outcome h3 { font-size: 0.88rem; line-height: 1.25; }
  .feature p, .diff p, .outcome p { font-size: 0.78rem; line-height: 1.45; margin-top: 6px; }
  .feature--wide { grid-column: 1 / -1; }
  .feature--wide .split { gap: 16px !important; }
  .diff { grid-template-columns: 1fr 1fr; }
  .diff > div { padding: 14px; gap: 6px; }
  .outcomes { grid-template-columns: 1fr 1fr; gap: 1px; }
  .outcome { grid-template-columns: 1fr; gap: 6px; padding: 14px 12px !important; }
  .outcome .n { font-size: 1.1rem; }
  .outcomes--1 { grid-template-columns: 1fr 1fr; }

  /* Journey and loop steps -> tiles */
  .loop { grid-template-columns: 1fr 1fr; gap: 10px; }
  .loop-step { padding: 14px 12px 14px 15px; gap: 5px; }
  .loop-step h3 { font-size: 0.88rem; line-height: 1.25; }
  .loop-step p { font-size: 0.76rem; line-height: 1.4; }
  .loop-step .agent-tag { font-size: 0.52rem; letter-spacing: 0.06em; }
  .loop-return { font-size: 0.84rem; padding: 12px 14px; }
  .journey { grid-template-columns: 1fr 1fr; gap: 10px; }
  .journey::before, .journey::after { display: none; }
  .step { grid-template-columns: 1fr; gap: 8px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
  .step-node { width: 30px; height: 30px; font-size: 0.64rem; }
  .step h3 { font-size: 0.88rem; }
  .step p { font-size: 0.76rem; line-height: 1.4; margin-top: 4px; }

  /* Problem block: big statement on top, two side cards next to each other */
  .problem { grid-template-columns: 1fr 1fr; }
  .problem .big { grid-column: 1 / -1; }
  .problem > div { padding: 16px 14px; }
  .problem h4 { font-size: 0.88rem; margin-top: 8px; }
  .problem > div:not(.big) p { font-size: 0.78rem; }

  /* Video chapters -> 2 x 2 */
  .showcase-chapters { grid-template-columns: 1fr 1fr; }
  .showcase-chapters button { padding: 12px; }
  .showcase-chapters strong { font-size: 0.82rem; margin-top: 6px; }
  .showcase-chapters span { font-size: 0.74rem; }

  /* Roadmap rows: tighter */
  .roadmap li { grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; }
  .roadmap .n { font-size: 1.15rem; }
  .roadmap h3 { font-size: 0.95rem; }
  .roadmap p { font-size: 0.82rem; margin-top: 4px; }

  /* Platform diagram nodes: two per row */
  .sys-col { padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
  .sys-col > .mono, .sys-col > h3 { width: 100%; margin: 0; }
  .sys-col > .node { width: calc(50% - 4px); margin: 0; padding: 10px; font-size: 0.8rem; gap: 8px; align-items: flex-start; }
  .sys-col > .node svg { margin-top: 2px; }
  .node small { font-size: 0.7rem; }
  .pipe { min-height: 36px; }

  /* Checklists: smaller text */
  .checklist { gap: 9px; font-size: 0.9rem; }

  /* Compact form fields */
  .form { gap: 12px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .field label { font-size: 0.78rem; margin-bottom: 5px; }
  .field input, .field textarea { padding: 10px 12px; border-radius: 10px; font-size: 16px; }
  .field textarea { min-height: 88px; }
  .form-card { padding: 18px 16px; }
  .form-note { font-size: 0.74rem; }
  .form-card .btn[type=submit] { min-height: 46px; }

  /* CTA band and FAQ: tighter */
  .cta-band { padding: 26px 18px; }
  .faq summary { padding: 16px 0; font-size: 0.95rem; }
  .faq details > p { padding: 0 0 16px; font-size: 0.9rem; }
}
@media (max-width: 340px) {
  .agents, .features, .features--3, .diff, .loop, .journey, .outcomes { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .node { overflow-wrap: anywhere; } .node > div { min-width: 0; } }

/* Header actions: Book (desktop), Home icon + Menu (phones/tablets) */
.header-actions { display: flex; align-items: center; gap: 8px; }
.home-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; transition: border-color var(--t-fast), background-color var(--t-fast); }
.home-btn svg { width: 18px; height: 18px; }
.home-btn:hover { border-color: var(--text); background: rgba(255, 240, 225, 0.05); }
.home-btn[aria-current="page"] { border-color: rgba(255, 107, 0, 0.5); color: var(--accent); }
@media (min-width: 1040px) { .home-btn { display: none; } }

/* Video: compact play pill on phones so the playing preview stays visible */
@media (max-width: 640px) {
  .play { place-items: end start; padding: 12px; background: linear-gradient(180deg, transparent 60%, rgba(7, 6, 5, 0.5)); }
  .play-btn { gap: 8px; padding: 5px 12px 5px 5px; font-size: 0.6rem; letter-spacing: 0.05em; }
  .play-btn .ring { width: 30px; height: 30px; }
  .play-btn .ring svg { width: 11px; height: 11px; margin-left: 2px; }
}
@media (min-width: 641px) and (max-width: 1040px) {
  .play-btn { gap: 10px; padding: 7px 16px 7px 7px; font-size: 0.7rem; }
  .play-btn .ring { width: 40px; height: 40px; }
  .play-btn .ring svg { width: 14px; height: 14px; }
}

/* ---------- Why AgentOps teaser (home) ---------- */
.why-mini { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.why-mini li { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); font: 700 0.95rem/1.3 var(--f-display); color: var(--text); }
.why-mini svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
@media (max-width: 900px) { .why-mini { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .why-mini li { padding: 12px; font-size: 0.8rem; gap: 9px; } .why-mini svg { width: 15px; height: 15px; } }

/* Phone-only vs larger-screen content blocks */
.show-mobile { display: none; }
@media (max-width: 640px) { .show-mobile { display: block; } .hide-mobile { display: none; } }

/* Laptops & desktops: render the whole site at 90%, like browser zoom 90%, so it feels balanced at 100% */
@media (min-width: 1100px) {
  html { zoom: 0.9; }
}

/* ---------- Revenue report: live document viewer ---------- */
.report-view { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .report-view { grid-template-columns: 1.55fr 1fr; gap: 36px; align-items: center; } }
.doc-frame { position: relative; }
.doc-scroll {
  position: relative; height: clamp(420px, 62vh, 620px); overflow-y: auto;
  padding: 18px; display: grid; gap: 16px; background: #2b2723;
  scrollbar-width: thin; scrollbar-color: #5a514a transparent;
}
.doc-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.doc-page { width: 100%; height: auto; border-radius: 3px; background: #fff; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.8); }
.doc-hint {
  position: absolute; right: 14px; bottom: 14px; padding: 6px 11px; border-radius: 99px;
  background: rgba(12, 10, 8, 0.82); border: 1px solid var(--line-2); color: var(--muted);
  font: 500 0.66rem/1 var(--f-mono); letter-spacing: 0.06em; pointer-events: none; transition: opacity 0.4s;
}
.report-view.is-manual .doc-hint { opacity: 0; }
.doc-points { display: grid; gap: 16px; }
.doc-list { list-style: none; display: grid; gap: 10px; }
.doc-list button {
  width: 100%; text-align: left; display: grid; gap: 4px; padding: 14px 16px 14px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg-2); position: relative; overflow: hidden;
  transition: border-color var(--t-fast), background-color var(--t-fast), transform var(--t) var(--ease);
}
.doc-list button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 0.4s var(--ease); }
.doc-list b { font: 800 1.05rem/1.2 var(--f-display); color: var(--muted); transition: color var(--t-fast); }
.doc-list span { font-size: 0.86rem; color: var(--dim); line-height: 1.4; }
.doc-list button:hover { border-color: var(--line-2); }
.doc-list button.is-on { border-color: rgba(255, 107, 0, 0.45); background: var(--surface); transform: translateX(4px); }
.doc-list button.is-on::before { transform: scaleY(1); }
.doc-list button.is-on b { color: var(--text); }
.doc-list button.is-on span { color: var(--muted); }
@media (max-width: 899px) {
  .doc-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .doc-list button { padding: 11px 12px 11px 14px; }
  .doc-list button.is-on { transform: none; }
  .doc-list b { font-size: 0.86rem; }
  .doc-list span { font-size: 0.72rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
}
@media (max-width: 640px) {
  .doc-scroll { height: 440px; padding: 10px; gap: 10px; }
  .doc-hint { font-size: 0.58rem; right: 10px; bottom: 10px; }
}
