:root {
  --black: #000;
  --ink: #f5f5f7;
  --ink-dim: rgba(245, 245, 247, 0.62);
  --light: #f5f5f7;
  --light-alt: #ffffff;
  --text-on-light: #1d1d1f;
  --text-on-light-dim: #6e6e73;
  --accent: #3b7cff;
  --accent-on-light: #0a5cff;
  --display: "Inter Tight", -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { background: var(--black); color: var(--ink); scroll-behavior: auto; overflow-anchor: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Loader */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--black); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transition: opacity 0.6s ease, visibility 0.6s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-brand { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 1.1rem; }
.loader-track { width: 160px; height: 2px; background: rgba(255,255,255,0.12); overflow: hidden; }
#loader-bar { height: 100%; width: 0; background: var(--ink); transition: width 0.15s linear; }
#loader-percent { font-size: 0.75rem; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  font-size: 0.9rem;
  mix-blend-mode: difference;
  color: #fff;
}
.site-header .brand { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; }
.site-header nav { display: flex; align-items: center; gap: 22px; }
.site-header nav a { opacity: 0.8; }
.site-header nav a:hover { opacity: 1; }
.avail-pill { border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 5px 11px; font-size: 0.78rem; }

/* Hero */
.hero-standalone {
  position: relative; z-index: 5;
  min-height: 100vh; min-height: 100svh;
  background: var(--black);
  display: flex; align-items: center;
  padding: 0 clamp(20px, 6vw, 96px);
}
.hero-inner { max-width: 1240px; width: 100%; margin: 0 auto; }
.hero-heading { display: block; font-size: clamp(2.6rem, 8.2vw, 8rem); letter-spacing: -0.045em; line-height: 0.98; max-width: 14ch; }
.hero-heading .line { display: block; }
.hero-heading .line .w { display: inline-block; opacity: 0; transform: translateY(0.35em); }
.hero-heading .line-2 { color: var(--accent); margin-top: 0.12em; }
.hero-tagline { margin-top: clamp(20px, 3vw, 36px); max-width: 52ch; font-size: clamp(1rem, 1.35vw, 1.25rem); color: var(--ink-dim); opacity: 0; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.02em; color: var(--ink-dim); opacity: 0;
}
.scroll-cue span { width: 1px; height: 40px; background: linear-gradient(to bottom, transparent, var(--ink-dim)); }

/* Canvas */
.canvas-wrap {
  position: fixed; inset: 0; z-index: 1;
  clip-path: circle(0% at 50% 50%);
  background: var(--black);
}
#canvas { width: 100%; height: 100%; display: block; }
#dark-overlay { position: fixed; inset: 0; z-index: 2; background: #000; opacity: 0; pointer-events: none; }

/* Marquee */
.marquee-wrap {
  position: fixed; top: 50%; left: 0; right: 0; z-index: 2; transform: translateY(-50%);
  overflow: hidden; white-space: nowrap; pointer-events: none; opacity: 0;
}
.marquee-text {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 13vw; letter-spacing: -0.04em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.16);
  padding-left: 20vw;
}

/* Scroll container and overlay sections */
#scroll-container { position: relative; z-index: 3; height: 900vh; pointer-events: none; }
.scroll-section { position: absolute; left: 0; right: 0; transform: translateY(-50%); pointer-events: none; }
.section-content .section-inner { max-width: 40vw; position: relative; }
.section-content .section-inner::before {
  content: ""; position: absolute; inset: -26vh -14vw -24vh -14vw; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 42% 50%, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.62) 30%, rgba(0,0,0,0.34) 55%, rgba(0,0,0,0.10) 74%, rgba(0,0,0,0) 88%);
}
.section-heading, .section-body, .stat, .stats-title { text-shadow: 0 2px 28px rgba(0,0,0,0.55); }
.align-left { padding-left: 6vw; padding-right: 55vw; }
.align-right { padding-left: 55vw; padding-right: 6vw; }
.section-heading { font-size: clamp(2rem, 4.6vw, 4.6rem); color: var(--ink); }
.section-body { margin-top: 18px; font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--ink-dim); max-width: 34ch; }
.section-content .section-heading, .section-content .section-body { opacity: 0; }

.section-stats { padding: 0 6vw; }
.stats-title { font-size: 0.85rem; color: var(--ink-dim); margin-bottom: 28px; opacity: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; max-width: 1100px; }
.stat { opacity: 0; }
.stat-number, .stat-suffix, .stat-prefix { font-family: var(--display); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.stat-number { font-size: clamp(2.8rem, 6vw, 6rem); font-variant-numeric: tabular-nums; }
.stat-suffix { font-size: clamp(1.4rem, 2.6vw, 2.6rem); margin-left: 4px; }
.stat-prefix { font-size: clamp(1rem, 1.6vw, 1.5rem); margin-right: 8px; color: var(--ink-dim); }
.stat-label { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--ink-dim); max-width: 22ch; }

/* Flow */
.flow { position: relative; z-index: 4; }
.flow-section { padding: clamp(96px, 14vh, 160px) clamp(20px, 5vw, 64px); }
.flow-section.light { background: var(--light); color: var(--text-on-light); }
.flow-section.light.alt { background: var(--light-alt); }
.flow-section.dark { background: var(--black); color: var(--ink); }
.flow-section.dark.alt { background: #0b0b0d; }
.container { max-width: var(--container); margin: 0 auto; }
.container.narrow { max-width: 760px; }
.kicker { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 16px; }
.light .kicker { color: var(--accent-on-light); }
.dark .kicker { color: var(--accent); }
.flow-heading { font-size: clamp(2.2rem, 5vw, 4.8rem); max-width: 18ch; }
.flow-lede { margin-top: 22px; font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.4; max-width: 52ch; }
.light .flow-lede { color: var(--text-on-light-dim); }
.dark .flow-lede { color: var(--ink-dim); }
.flow-body { margin-top: 22px; font-size: 1.1rem; line-height: 1.55; max-width: 60ch; }
.light .flow-body { color: var(--text-on-light-dim); }
.dark .flow-body { color: var(--ink-dim); }
.reveal { opacity: 0; transform: translateY(28px); }

/* Proof feature rows */
.feature-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  margin-top: clamp(64px, 9vw, 120px);
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy h3 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.feature-copy p { margin-top: 16px; font-size: 1.1rem; line-height: 1.5; color: var(--text-on-light-dim); max-width: 44ch; }
.phone-frame {
  margin: 0; justify-self: center; width: min(320px, 70vw);
  border-radius: 40px; overflow: hidden; background: #111;
  box-shadow: 0 30px 80px rgba(0,0,0,0.18), 0 0 0 10px #0d0d0f, 0 0 0 11px rgba(255,255,255,0.08);
}
.phone-frame img, .phone-frame video { width: 100%; }
.store-strip { margin-top: clamp(64px, 8vw, 100px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.store-link { display: inline-block; padding: 10px 18px; border-radius: 999px; background: var(--text-on-light); color: #fff; font-weight: 500; font-size: 0.95rem; }
.store-note { color: var(--text-on-light-dim); }
.reviews { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reviews blockquote { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; font-size: 1.25rem; line-height: 1.3; }
.reviews cite { display: block; margin-top: 12px; font-style: normal; font-size: 0.85rem; color: var(--text-on-light-dim); }

/* Services (what I do for you) */
.services { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.services li { padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.14); }
.services h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.services p { margin-top: 12px; color: var(--text-on-light-dim); line-height: 1.5; }

/* Decisions */
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.sticky-col { position: sticky; top: 120px; }
.decisions { display: grid; gap: 44px; }
.decisions h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.decisions p { margin-top: 12px; color: var(--text-on-light-dim); line-height: 1.55; max-width: 58ch; }

/* AI video */
.ai-video { margin: clamp(40px, 6vw, 72px) 0 0; max-width: 960px; border-radius: 24px; overflow: hidden; background: #0d0d0f; }
.ai-video video { width: 100%; }
.ai-video-placeholder { position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.ai-video-placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; filter: saturate(0.6); }
.ai-video-placeholder span { position: relative; font-size: 0.9rem; color: var(--ink-dim); border: 1px solid rgba(255,255,255,0.18); padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,0.4); }

/* Ventures */
.ventures { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 56px; }
.ventures h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.ventures p { margin-top: 14px; color: var(--text-on-light-dim); line-height: 1.55; }

/* Chat */
.chat { margin-top: clamp(36px, 5vw, 56px); max-width: 780px; border: 1px solid rgba(255,255,255,0.12); border-radius: 22px; background: #0b0b0d; overflow: hidden; }
.chat-log { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 180px; max-height: 420px; overflow-y: auto; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 16px; line-height: 1.45; font-size: 1rem; white-space: pre-wrap; }
.msg.assistant { background: rgba(255,255,255,0.07); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.pending { color: var(--ink-dim); }
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 14px; }
.chat-suggest button { background: transparent; color: var(--ink-dim); border: 1px solid rgba(255,255,255,0.16); border-radius: 999px; padding: 7px 12px; font-size: 0.85rem; cursor: pointer; }
.chat-suggest button:hover { color: var(--ink); border-color: rgba(255,255,255,0.4); }
.chat-form { display: flex; gap: 10px; padding: 14px 22px 18px; border-top: 1px solid rgba(255,255,255,0.08); }
.chat-form input { flex: 1; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 1rem; }
.chat-form input::placeholder { color: rgba(245,245,247,0.4); }
.chat-form button { background: var(--ink); color: #000; border: 0; border-radius: 12px; padding: 0 18px; font-weight: 600; cursor: pointer; }
.chat-form button:disabled { opacity: 0.5; cursor: default; }
.chat-meter { padding: 0 22px 18px; font-size: 0.8rem; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* Offer */
.days { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.days li { padding-top: 20px; border-top: 1px solid rgba(0,0,0,0.14); }
.days .day { display: block; font-size: 0.85rem; color: var(--accent-on-light); font-weight: 500; }
.days h3 { margin-top: 10px; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.days p { margin-top: 10px; color: var(--text-on-light-dim); line-height: 1.5; }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.cta-button { display: inline-block; background: var(--text-on-light); color: #fff; padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 1.05rem; transition: background 150ms ease; }
.cta-button:hover { background: var(--accent-on-light); }
.cta-secondary { color: var(--accent-on-light); font-weight: 500; }

/* Footer */
.site-footer { background: var(--light); color: var(--text-on-light-dim); padding: 40px clamp(20px, 5vw, 64px) 56px; font-size: 0.9rem; border-top: 1px solid rgba(0,0,0,0.08); }
.site-footer p + p { margin-top: 8px; }
.site-footer a { color: var(--text-on-light); margin-right: 18px; }

/* Responsive */
@media (max-width: 900px) {
  .feature-row, .two-col, .ventures, .services { grid-template-columns: 1fr; }
  .feature-row.reverse .feature-copy { order: 0; }
  .sticky-col { position: static; }
  .reviews { grid-template-columns: 1fr; }
  .days { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }
  .site-header nav a { display: none; }
  .hero-standalone { padding: 0 22px; align-items: flex-end; padding-bottom: 18vh; }
  .hero-heading { font-size: clamp(2.5rem, 11.5vw, 3.4rem); max-width: none; letter-spacing: -0.04em; }
  .hero-tagline { font-size: 1rem; margin-top: 18px; }
  .scroll-cue { bottom: 22px; }
  #scroll-container { height: 700vh; }
  /* Overlay text: lower third, full width, no card. A bottom gradient scrim carries legibility. */
  .align-left, .align-right { padding: 0 22px; }
  .section-content .section-inner { max-width: none; background: none; padding: 0; border-radius: 0; }
  .section-content .section-inner::before {
    inset: -24vh -22px -24vh -22px;
    background: radial-gradient(ellipse 120% 100% at 50% 50%, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.64) 32%, rgba(0,0,0,0.36) 58%, rgba(0,0,0,0.10) 78%, rgba(0,0,0,0) 92%);
    -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-mask-image: none; mask-image: none;
  }
  .scroll-section.section-content { transform: translateY(calc(-50% + 22vh)); }
  .section-heading { font-size: clamp(2rem, 9.6vw, 2.7rem); letter-spacing: -0.035em; }
  .section-body { font-size: 1rem; margin-top: 12px; max-width: none; }
  .section-stats { padding: 0 22px; transform: translateY(calc(-50% + 6vh)); }
  .stats-title { margin-bottom: 18px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 18px; }
  .stat-number { font-size: 2.8rem; }
  .stat-suffix { font-size: 1.3rem; }
  .stat-prefix { font-size: 0.95rem; margin-right: 6px; }
  .stat-label { font-size: 0.85rem; margin-top: 6px; }
  .marquee-wrap { display: none; }
  .flow-section { padding: 88px 22px; }
  .flow-heading { font-size: clamp(2rem, 9.6vw, 2.8rem); }
  .flow-lede { font-size: 1.1rem; }
  .phone-frame { width: min(280px, 78vw); border-radius: 34px; }
  .feature-row { gap: 32px; margin-top: 64px; }
  .feature-copy h3 { font-size: 1.8rem; }
  .chat-log { max-height: 340px; }
  .cta-button { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-heading .line .w, .hero-tagline, .scroll-cue, .section-content .section-heading, .section-content .section-body, .stat, .stats-title, .reveal { opacity: 1; transform: none; }
}
