/* ============================================================
   SceneCove AI — Website stylesheet
   Cinema, met by a calm shore. Built on Brand Guidelines v1.0.
   Tokens · components · layout · motion — all in one file.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Tokens: colour ---------- */
:root {
  --cove: #0047FF;
  --signal: #0A7CFF;
  --surf: #00E0D5;

  --ink: #0A0E17;
  --slate: #5B6675;
  --mist: #F2F6FB;
  --hairline: #E2E9F2;
  --white: #FFFFFF;

  --cove-10: #E6EDFF;
  --cove-20: #CCDAFF;
  --cove-900: #001A66;
  --surf-20: #CCF9F7;
  --surf-40: #99F3EE;

  --ink-80: #3B414C;
  --ink-60: #6C7079;
  --ink-40: #9DA0A6;
  --ink-20: #CED0D3;

  --tide: linear-gradient(118deg, #0047FF 0%, #0A7CFF 46%, #00E0D5 100%);
  --tide-soft: linear-gradient(118deg, #E6EDFF 0%, #E7F2FF 46%, #E6FCFB 100%);
  --tide-ink: linear-gradient(118deg, #001A66 0%, #0047FF 60%, #0A7CFF 100%);

  --success: #1FAE6B;
  --warning: #E8A12B;
  --danger: #E5484D;

  /* ---------- Tokens: type ---------- */
  --font-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --leading-body: 1.6;
  --leading-snug: 1.2;
  --leading-tight: 1.05;
  --tracking-heading: -0.01em;
  --tracking-eyebrow: 0.28em;

  /* ---------- Tokens: geometry ---------- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-pill: 999px;
  --radius-card: 20px;

  /* ---------- Tokens: elevation (cove-tinted) ---------- */
  --shadow-xs: 0 1px 2px rgba(10, 14, 23, 0.06);
  --shadow-sm: 0 2px 8px rgba(10, 14, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 30, 80, 0.08);
  --shadow-lg: 0 18px 48px rgba(10, 30, 80, 0.12);
  --shadow-xl: 0 32px 80px rgba(0, 26, 102, 0.18);
  --shadow-brand: 0 16px 40px rgba(0, 71, 255, 0.24);
  --shadow-focus: 0 0 0 3px rgba(10, 124, 255, 0.35);

  /* ---------- Tokens: motion (ease like water) ---------- */
  --ease-tide: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur-base: 240ms;
  --dur-slow: 420ms;
  --dur-scene: 720ms;

  --maxw: 1180px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-heading);
  color: var(--ink);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: var(--cove); text-decoration: none; }

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

:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm); }

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

.container { max-width: var(--maxw); margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* The Tide as text fill */
.sc-tide-text {
  background: var(--tide);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

/* ============================================================
   Components — extracted faithfully from the design system
   ============================================================ */

/* Button */
.sc-btn {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.005em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-tide),
              box-shadow var(--dur-base) var(--ease-tide),
              background var(--dur-base) var(--ease-tide),
              filter var(--dur-base) var(--ease-tide);
  -webkit-user-select: none; user-select: none;
}
.sc-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.sc-btn:active { transform: translateY(1px) scale(0.99); }
.sc-btn svg { width: 1.15em; height: 1.15em; flex: none; }
.sc-btn--sm { font-size: 13px; padding: 8px 16px; }
.sc-btn--md { font-size: 15px; padding: 11px 22px; }
.sc-btn--lg { font-size: 17px; padding: 14px 30px; }
.sc-btn--primary { background: var(--tide); color: #fff; box-shadow: var(--shadow-brand); }
.sc-btn--primary:hover { filter: brightness(1.06); box-shadow: 0 18px 44px rgba(0,71,255,0.32); }
.sc-btn--secondary { background: #fff; color: var(--ink); border-color: var(--hairline); box-shadow: var(--shadow-xs); }
.sc-btn--secondary:hover { border-color: var(--cove); color: var(--cove); }
.sc-btn--ghost { background: transparent; color: var(--cove); }
.sc-btn--ghost:hover { background: var(--cove-10); }
.sc-btn--ink { background: var(--ink); color: #fff; }
.sc-btn--ink:hover { background: #161c2b; }
.sc-btn--block { width: 100%; }

/* Badge */
.sc-badge {
  font-family: var(--font-sans);
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 12px; line-height: 1;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  white-space: nowrap;
}
.sc-badge svg { width: 13px; height: 13px; }
.sc-badge--outline { background: transparent; border-color: var(--hairline); color: var(--slate); }
.sc-badge--tide { background: var(--tide); color: #fff; }

/* PlayButton */
.sc-play {
  font-family: var(--font-sans);
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; padding: 0;
  border-radius: 999px;
  background: var(--tide); color: #fff;
  box-shadow: var(--shadow-brand);
  position: relative;
  transition: transform var(--dur-base) var(--ease-tide), box-shadow var(--dur-base) var(--ease-tide), filter var(--dur-base) var(--ease-tide);
}
.sc-play:hover { transform: scale(1.06); filter: brightness(1.05); }
.sc-play:active { transform: scale(0.97); }
.sc-play:focus-visible { outline: none; box-shadow: var(--shadow-focus), var(--shadow-brand); }
.sc-play svg { width: 38%; height: 38%; margin-left: 8%; }
.sc-play--ghost { background: rgba(255,255,255,.16); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sc-play--ghost:hover { background: rgba(255,255,255,.26); }
.sc-play--pulse::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid var(--surf); opacity: .7;
  animation: sc-play-pulse 2.4s var(--ease-tide) infinite;
}
@keyframes sc-play-pulse { 0% { transform: scale(1); opacity: .6 } 70% { transform: scale(1.5); opacity: 0 } 100% { opacity: 0 } }

/* Avatar */
.sc-avatar { font-family: var(--font-sans); position: relative; display: inline-flex; flex: none; }
.sc-avatar__fallback {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 999px;
  background: var(--tide); color: #fff; font-weight: 600;
}
.sc-avatar--ring::after {
  content: ''; position: absolute; inset: -3px; border-radius: 999px;
  padding: 3px; background: var(--tide);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ============================================================
   Header / nav
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: padding var(--dur-base) var(--ease-tide), box-shadow var(--dur-base) var(--ease-tide), background var(--dur-base) var(--ease-tide);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.9); }
.header__inner { display: flex; align-items: center; gap: 16px; padding: 13px 40px; max-width: var(--maxw); margin: 0 auto; transition: padding var(--dur-base) var(--ease-tide); }
.header.is-scrolled .header__inner { padding-top: 9px; padding-bottom: 9px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 32px; }
.brand__word { font-weight: 600; font-size: 18px; letter-spacing: -.01em; color: var(--ink); }
.nav-links { margin-left: 24px; display: flex; gap: 26px; }
.nav-links a {
  position: relative; font-size: 14.5px; font-weight: 500; color: var(--slate);
  text-decoration: none; padding: 4px 0; transition: color var(--dur-base) var(--ease-tide);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--tide); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-tide);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--cove); }
.header__cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* scroll progress tide bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--tide); transform: scaleX(0); transform-origin: left;
  z-index: 60; will-change: transform;
}

/* mobile menu toggle */
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; background: #fff; overflow: hidden; }
.hero__glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 920px; height: 460px; background: var(--tide-soft); opacity: .6;
  filter: blur(20px); border-radius: 50%; will-change: transform;
}
.hero__grid {
  max-width: var(--maxw); margin: 0 auto; padding: 62px 40px 78px;
  position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center;
}
.hero h1 { font-size: 60px; font-weight: 700; line-height: 1.02; letter-spacing: -.03em; margin: 22px 0 0; }
.hero__lede { font-size: 19px; color: var(--slate); line-height: 1.6; margin: 22px 0 0; max-width: 500px; }
.hero__lede strong { color: var(--ink); }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__assure { font-size: 13.5px; color: var(--slate); margin-top: 16px; display: flex; align-items: center; gap: 7px; }
.hero__frames { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.frame {
  position: relative; aspect-ratio: 9/16; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: translateZ(0); backface-visibility: hidden;
}
.frame__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #04060c; border-radius: inherit; transform: translateZ(0); }
.frame__sheen { position: absolute; inset: 0; z-index: 1; opacity: .55; background: radial-gradient(120% 80% at 28% 0%, rgba(255,255,255,.16), transparent 58%); }
.frame__wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; opacity: .85; }
.frame__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; }
/* Hero frames sit still — the playing videos provide the motion (moving a
   decoded video layer jitters, so we don't animate the frame position). */
.float { }

.hero__stats { border-top: 1px solid var(--hairline); background: var(--mist); }
.hero__stats-row {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 40px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: 15.5px; color: var(--slate);
}
.hero__stats-row strong { color: var(--ink); }
.dot-sep { color: var(--ink-20); }

/* ============================================================
   Logos marquee
   ============================================================ */
.logos { background: #fff; border-bottom: 1px solid var(--hairline); }
.logos__inner { max-width: var(--maxw); margin: 0 auto; padding: 40px; }
.logos__label { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-40); margin-bottom: 26px; }
.logos__track-wrap { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.logos__track:hover { animation-play-state: paused; }
.logo-item { display: flex; align-items: center; justify-content: center; flex: none; }
.logo-item img {
  height: 34px; width: auto; max-width: 170px; object-fit: contain;
  filter: grayscale(100%); opacity: .55;
  transition: filter var(--dur-base) var(--ease-tide), opacity var(--dur-base) var(--ease-tide);
}
.logo-item:hover img { filter: grayscale(0); opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   Generic section bits
   ============================================================ */
.section { position: relative; }
.section__pad { max-width: var(--maxw); margin: 0 auto; padding: 96px 40px; }
.section-head-c { text-align: center; max-width: 680px; margin: 0 auto; }
.h2 { font-size: 40px; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 14px 0 0; }
.lede { font-size: 18px; color: var(--slate); line-height: 1.6; margin: 18px 0 0; }

/* grids */
.g4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.g3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.g2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }

/* problem cards */
.prob-card { padding: 26px 22px; border-radius: var(--radius-card); background: var(--mist); border: 1px solid var(--hairline); transition: transform var(--dur-base) var(--ease-tide), box-shadow var(--dur-base) var(--ease-tide); }
.prob-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prob-card h3 { font-size: 18px; font-weight: 600; margin: 18px 0 8px; }
.prob-card p { font-size: 14px; color: var(--slate); line-height: 1.55; margin: 0; }
.icon-chip { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; }
.icon-chip svg { width: 22px; height: 22px; }
.icon-chip--danger { background: #fff; color: var(--danger); box-shadow: var(--shadow-xs); }
.icon-chip--tide { background: var(--tide); color: #fff; box-shadow: var(--shadow-brand); }

.better-way { display: flex; align-items: center; gap: 10px; margin-top: 32px; color: var(--cove); font-weight: 600; font-size: 16px; }
.better-way svg { width: 18px; height: 18px; animation: nudge-down 2s var(--ease-tide) infinite; }
@keyframes nudge-down { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* solution (dark) */
.solution { background: var(--ink); position: relative; overflow: hidden; }
.solution__orb { position: absolute; top: -120px; right: -80px; width: 480px; height: 480px; border-radius: 50%; background: var(--tide); opacity: .14; filter: blur(40px); }
.sol-card { padding: 26px 22px; border-radius: var(--radius-card); background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-md); transition: transform var(--dur-base) var(--ease-tide), box-shadow var(--dur-base) var(--ease-tide); }
.sol-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.sol-card h3 { font-size: 18px; font-weight: 600; margin: 18px 0 8px; color: var(--ink); }
.sol-card p { font-size: 14px; color: var(--slate); line-height: 1.55; margin: 0; }

/* animated wave fill band */
.wave-band { position: absolute; left: 0; right: 0; bottom: -2px; height: 280px; overflow: hidden; z-index: 0; pointer-events: none; }
.wave-layer { position: absolute; left: 0; right: 0; bottom: 0; background: url('../assets/wave-fill.svg') repeat-x; background-size: 1440px 100%; background-position: left bottom; }
.wave-layer--back { top: 26px; opacity: .35; animation: scWave 28s linear infinite; }
.wave-layer--front { inset: 0; opacity: .7; animation: scWave 18s linear infinite; }
@keyframes scWave { from { background-position-x: 0; } to { background-position-x: -1440px; } }

/* how it works */
.how { background: var(--mist); }
.step { position: relative; }
.step__card { background: #fff; border-radius: var(--radius-card); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); padding: 30px 26px; height: 100%; box-sizing: border-box; transition: transform var(--dur-base) var(--ease-tide), box-shadow var(--dur-base) var(--ease-tide); }
.step__card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num { font-family: var(--font-mono); font-size: 34px; font-weight: 600; letter-spacing: -.02em; }
.step__card h3 { font-size: 22px; font-weight: 600; margin: 12px 0 10px; letter-spacing: -.01em; }
.step__card p { font-size: 15px; color: var(--slate); line-height: 1.6; margin: 0; }
.step__arrow { position: absolute; top: 50%; right: -16px; transform: translateY(-50%); z-index: 2; color: var(--cove); background: #fff; border-radius: 999px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-xs); }
.step__arrow svg { width: 16px; height: 16px; }

/* work grid */
.work { background: var(--ink); position: relative; overflow: hidden; }
.work__filters { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin: 30px 0 36px; }
.filter-pill {
  font-family: var(--font-sans); font-size: 14px; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; font-weight: 500;
  transition: all .25s var(--ease-tide);
}
.filter-pill:hover { border-color: rgba(255,255,255,.4); }
.filter-pill.is-active { background: var(--tide); border-color: transparent; font-weight: 600; }
.work__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.work-card {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform var(--dur-base) var(--ease-tide), box-shadow var(--dur-base) var(--ease-tide), opacity var(--dur-slow) var(--ease-tide);
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work-card:hover .sc-play { transform: scale(1.12); }
.work-card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; background: #04060c; }
.work-card__sheen { position: absolute; inset: 0; z-index: 1; opacity: .55; background: radial-gradient(120% 80% at 28% 0%, rgba(255,255,255,.16), transparent 58%); transition: opacity var(--dur-base) var(--ease-tide); }
.work-card .frame__play { transition: opacity var(--dur-base) var(--ease-tide); }
.work-card.is-playing .work-card__sheen,
.work-card.is-playing .frame__play { opacity: 0; pointer-events: none; }
.work-card.is-playing .work-card__wave { opacity: .45; }
.work-card__wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; opacity: .8; }
.work-card__meta { position: absolute; left: 16px; bottom: 14px; color: #fff; z-index: 2; }
.work-card__meta .t { font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.work-card__meta .s { font-size: 12.5px; opacity: .82; margin-top: 2px; font-family: var(--font-mono); }
.work-card.is-hidden { display: none; }

/* who it's for */
.who-card { display: flex; gap: 18px; padding: 26px 24px; border-radius: var(--radius-card); border: 1px solid var(--hairline); background: #fff; box-shadow: var(--shadow-xs); transition: transform var(--dur-base) var(--ease-tide), box-shadow var(--dur-base) var(--ease-tide), border-color var(--dur-base) var(--ease-tide); }
.who-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cove-20); }
.who-card__icon { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--cove-10); color: var(--cove); display: flex; align-items: center; justify-content: center; }
.who-card__icon svg { width: 24px; height: 24px; }
.who-card h3 { font-size: 19px; font-weight: 600; margin: 2px 0 7px; }
.who-card p { font-size: 14.5px; color: var(--slate); line-height: 1.55; margin: 0; }

/* ============================================================
   AI agents
   ============================================================ */
.agents { background: var(--mist); position: relative; overflow: hidden; }
.agents__glow { position: absolute; top: -140px; left: 50%; transform: translateX(-50%); width: 880px; height: 420px; background: var(--tide-soft); opacity: .5; filter: blur(30px); border-radius: 50%; pointer-events: none; }
.agents__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 48px; }
.agent-card {
  position: relative; background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
  padding: 32px 30px; display: flex; flex-direction: column; overflow: hidden;
  transition: transform var(--dur-base) var(--ease-tide), box-shadow var(--dur-base) var(--ease-tide);
}
.agent-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.agent-card__head { display: flex; align-items: center; gap: 14px; }
.agent-card__head h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.agent-card__tag { font-size: 13px; font-weight: 500; color: var(--cove); margin-top: 2px; }
.agent-card > p { font-size: 15px; color: var(--slate); line-height: 1.6; margin: 18px 0 0; }
.agent-caps { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.agent-caps li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink); line-height: 1.45; }
.agent-caps li svg { flex: none; width: 18px; height: 18px; color: var(--cove); margin-top: 1px; }

.agent-viz { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--hairline); }
.agent-viz__status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--surf); position: relative; box-shadow: 0 0 0 0 rgba(0,224,213,.6); animation: live-pulse 2s var(--ease-tide) infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,224,213,.55); } 70% { box-shadow: 0 0 0 8px rgba(0,224,213,0); } 100% { box-shadow: 0 0 0 0 rgba(0,224,213,0); } }

.waveform { display: flex; align-items: center; gap: 3px; height: 48px; }
.waveform span { width: 4px; border-radius: 999px; background: var(--tide); transform-origin: center; animation: wave-bounce 1.2s var(--ease-tide) infinite; }
@keyframes wave-bounce { 0%, 100% { transform: scaleY(.32); } 50% { transform: scaleY(1); } }

.chat { display: flex; flex-direction: column; gap: 8px; }
.chat__bubble { max-width: 82%; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; }
.chat__bubble--in { align-self: flex-start; background: var(--mist); color: var(--ink); border-radius: 14px 14px 14px 4px; }
.chat__bubble--out { align-self: flex-end; background: var(--tide); color: #fff; border-radius: 14px 14px 4px 14px; }

/* Live conversation playback: messages arrive one at a time, bottom-aligned,
   inside a reserved-height box so the card never reflows. */
.chat.is-demo { justify-content: flex-end; overflow: hidden; }
.chat.is-demo .chat__bubble { display: none; }
.chat.is-demo .chat__bubble.is-shown { display: block; animation: chat-in .42s var(--ease-tide) both; }
@keyframes chat-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.chat__typing { align-self: flex-start; display: inline-flex; gap: 5px; align-items: center; padding: 13px 15px; background: var(--mist); border-radius: 14px 14px 14px 4px; animation: chat-in .3s var(--ease-tide) both; }
.chat__typing--out { align-self: flex-end; border-radius: 14px 14px 4px 14px; }
.chat__typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--ink-40); animation: typing-dot 1.3s var(--ease-tide) infinite; }
.chat__typing span:nth-child(2) { animation-delay: .16s; }
.chat__typing span:nth-child(3) { animation-delay: .32s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }

.agents__benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 24px; }
.benefit { display: flex; align-items: center; gap: 13px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-xs); transition: transform var(--dur-base) var(--ease-tide), box-shadow var(--dur-base) var(--ease-tide); }
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit__icon { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--cove-10); color: var(--cove); display: flex; align-items: center; justify-content: center; }
.benefit__icon svg { width: 19px; height: 19px; }
.benefit__n { font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.benefit__s { font-size: 12.5px; color: var(--slate); margin-top: 2px; }

@media (max-width: 980px) {
  .agents__grid { grid-template-columns: 1fr; }
  .agents__benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .agents__benefits { grid-template-columns: 1fr; }
}

/* results */
.results { background: var(--mist); }
.results__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: stretch; }
.quote-card { background: #fff; border-radius: var(--radius-card); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); padding: 36px 38px; display: flex; flex-direction: column; }
.quote-card__stars { display: flex; gap: 4px; color: #E8A12B; margin-bottom: 18px; }
.quote-card__stars svg { width: 20px; height: 20px; }
.quote-card blockquote { font-size: 22px; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; margin: 0; color: var(--ink); }
.quote-card__by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 28px; }
.quote-card__by .n { font-weight: 600; font-size: 15px; }
.quote-card__by .r { font-size: 13px; color: var(--slate); }
.stat-card { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--tide); color: #fff; padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; }
.stat-card__num { font-size: 72px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat-card__label { font-size: 16px; opacity: .9; margin-top: 10px; font-weight: 500; max-width: 200px; }
.stat-card .wave-layer { height: 130px; top: auto; bottom: -2px; opacity: .4; animation: scWave 22s linear infinite; }

/* mid CTA */
.midcta { background: #fff; }
.midcta__panel { position: relative; overflow: hidden; border-radius: var(--radius-2xl); background: var(--tide); color: #fff; padding: 64px 56px; text-align: center; }
.midcta__panel::before { content: ''; position: absolute; inset: 0; opacity: .5; background: radial-gradient(100% 120% at 50% 0%, rgba(255,255,255,.2), transparent 60%); }
.midcta h2 { font-size: 42px; font-weight: 700; letter-spacing: -.025em; line-height: 1.06; margin: 0 auto; max-width: 720px; color: #fff; position: relative; }
.midcta p { font-size: 18px; opacity: .9; line-height: 1.6; margin: 18px auto 30px; max-width: 560px; position: relative; }
.midcta .sc-btn { position: relative; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.faq__intro h2 { font-size: 38px; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; margin: 14px 0 0; }
.faq__intro p { font-size: 16px; color: var(--slate); line-height: 1.6; margin-top: 16px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--font-sans); }
.faq-item__btn span.q { font-size: 17px; font-weight: 600; color: var(--ink); transition: color var(--dur-base) var(--ease-tide); }
.faq-item:hover .q { color: var(--cove); }
.faq-item__icon { flex: none; width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: background var(--dur-base) var(--ease-tide), color var(--dur-base) var(--ease-tide), transform var(--dur-base) var(--ease-tide); background: var(--mist); color: var(--cove); }
.faq-item__icon svg { width: 17px; height: 17px; }
.faq-item.is-open .faq-item__icon { background: var(--tide); color: #fff; }
.faq-item.is-open .faq-item__icon .plus-v { opacity: 0; }
.faq-item__icon .plus-v { transition: opacity var(--dur-base) var(--ease-tide); }
.faq-item__panel { overflow: hidden; height: 0; transition: height var(--dur-slow) var(--ease-tide); }
.faq-item__panel p { font-size: 15px; color: var(--slate); line-height: 1.6; margin: 0 0 22px; max-width: 560px; }

/* apply */
.apply { background: var(--ink); position: relative; overflow: hidden; }
.apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.apply h2 { font-size: 44px; font-weight: 700; letter-spacing: -.03em; line-height: 1.04; margin: 14px 0 0; color: #fff; }
.apply__lede { font-size: 18px; color: #fff; line-height: 1.6; margin: 18px 0 28px; max-width: 460px; }
.apply__list { display: flex; flex-direction: column; gap: 12px; }
.apply__list-item { display: flex; align-items: center; gap: 11px; color: #fff; font-size: 15px; }
.apply__check { flex: none; width: 22px; height: 22px; border-radius: 999px; background: rgba(0,224,213,.16); color: var(--surf); display: flex; align-items: center; justify-content: center; }
.apply__check svg { width: 13px; height: 13px; }
.form { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-xl); }
.form label { display: block; }
.form label > span { font-size: 13px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 7px; }
.form input {
  width: 100%; box-sizing: border-box; font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: var(--mist); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 12px 14px; outline: none;
  transition: border-color var(--dur-base) var(--ease-tide), box-shadow var(--dur-base) var(--ease-tide), background var(--dur-base) var(--ease-tide);
}
.form input:focus { border-color: var(--signal); box-shadow: var(--shadow-focus); background: #fff; }
.budget-row { display: flex; gap: 8px; flex-wrap: wrap; }
.budget-pill {
  font-family: var(--font-sans); font-size: 14px; cursor: pointer; flex: 1;
  padding: 11px 10px; border-radius: var(--radius-md); font-weight: 500;
  border: 1px solid var(--hairline); background: var(--mist); color: var(--slate);
  transition: all .2s var(--ease-tide);
}
.budget-pill:hover { border-color: var(--cove-20); }
.budget-pill.is-active { background: var(--tide); border-color: transparent; color: #fff; font-weight: 600; }
.form__note { text-align: center; font-size: 12.5px; color: var(--ink-40); margin-top: 14px; }
.form__success { display: none; text-align: center; padding: 16px; color: var(--success); font-weight: 600; font-size: 15px; }

/* footer */
.footer { background: #06090f; color: #fff; }
.footer__grid { max-width: var(--maxw); margin: 0 auto; padding: 64px 40px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer p { font-size: 14.5px; color: #fff; line-height: 1.6; margin: 0; }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__brand img { height: 30px; }
.footer__brand span { font-weight: 600; font-size: 18px; }
.footer__social { display: flex; gap: 10px; margin-top: 20px; color: #fff; }
.footer__social span, .footer__social a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; transition: background var(--dur-base) var(--ease-tide), transform var(--dur-base) var(--ease-tide), border-color var(--dur-base) var(--ease-tide); cursor: pointer; color: inherit; }
.footer__social span:hover, .footer__social a:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); border-color: rgba(255,255,255,.3); }
.footer__social svg { width: 17px; height: 17px; }
.footer__col-label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__col-links { display: flex; flex-direction: column; gap: 10px; }
.footer__col-links a { font-size: 14.5px; color: #fff; text-decoration: none; opacity: .85; transition: opacity var(--dur-base) var(--ease-tide); }
.footer__col-links a:hover { opacity: 1; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { max-width: var(--maxw); margin: 0 auto; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: #fff; }

/* ============================================================
   Scroll reveal system
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-scene) var(--ease-tide), transform var(--dur-scene) var(--ease-tide);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .40s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .g3 { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr 1fr; }
  .faq__grid { grid-template-columns: 1fr; }
  .apply__grid { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .step__arrow { display: none; }
  .section__pad { padding: 64px 24px; }
  .container, .header__inner, .hero__grid, .hero__stats-row, .logos__inner, .footer__grid, .footer__bar-inner { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 36px; }
  .h2 { font-size: 30px; }
  .work__grid { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .midcta__panel { padding: 44px 26px; }
  .midcta h2 { font-size: 30px; }
  .apply h2 { font-size: 32px; }
}

/* ---------- Mobile drawer ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; padding: 24px;
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity var(--dur-base) var(--ease-tide), transform var(--dur-base) var(--ease-tide);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__links { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.mobile-menu__links a { font-size: 26px; font-weight: 600; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.mobile-menu__close { background: none; border: 0; cursor: pointer; color: var(--ink); padding: 8px; }
.mobile-menu__close svg { width: 28px; height: 28px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .float { animation: none; }
}
