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

:root {
  --ink: #0f1419;
  --ink-secondary: #536471;
  --ink-tertiary: #8899a6;
  --ink-faint: #c4cfd6;
  --surface: #ffffff;
  --surface-warm: #faf9f7;
  --surface-cool: #f5f7fa;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-glow: rgba(37, 99, 235, 0.08);
  --green: #059669;
  --green-soft: #d1fae5;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --purple: #7c3aed;
  --purple-soft: #ede9fe;
  --rose: #e11d48;
  --border: #e8ecf0;
  --border-subtle: #f0f2f5;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--ink); background: var(--surface); line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-mark {
  width: 32px; height: 32px; border-radius: 8px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 16px; color: white;
}
.nav-logo-text { font-family: var(--font-display); font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; color: var(--ink-secondary); font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px; background: var(--ink); color: white;
  font-size: 14px; font-weight: 500; transition: all 0.2s var(--ease-out);
}
.nav-cta:hover { background: #1a2735; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,20,25,0.15); }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 160px 0 80px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 600px;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--accent-glow), transparent),
    radial-gradient(ellipse 40% 30% at 20% 10%, rgba(5,150,105,0.03), transparent),
    radial-gradient(ellipse 40% 30% at 80% 10%, rgba(124,58,237,0.03), transparent);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 8px; background: var(--surface-cool);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 13px; color: var(--ink-secondary); margin-bottom: 32px;
  animation: fadeUp 0.6s var(--ease-out) both;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulseDot 2s ease-in-out infinite;
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.1; letter-spacing: -0.03em; color: var(--ink);
  max-width: 780px; margin: 0 auto;
  animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}
.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 19px; line-height: 1.7; color: var(--ink-secondary);
  max-width: 580px; margin: 24px auto 0;
  animation: fadeUp 0.6s var(--ease-out) 0.2s both;
}
.hero-form {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 40px; animation: fadeUp 0.6s var(--ease-out) 0.3s both;
}
.email-input {
  padding: 14px 20px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 15px; font-family: var(--font-body); color: var(--ink);
  width: 320px; outline: none; transition: all 0.2s ease;
}
.email-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.email-input::placeholder { color: var(--ink-faint); }
.submit-btn {
  padding: 14px 28px; border-radius: 100px; background: var(--accent); color: white;
  font-size: 15px; font-weight: 600; transition: all 0.2s var(--ease-out); white-space: nowrap;
}
.submit-btn:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.form-note {
  font-size: 13px; color: var(--ink-tertiary); margin-top: 14px;
  animation: fadeUp 0.6s var(--ease-out) 0.4s both;
}
.form-success {
  display: none; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 100px;
  background: var(--green-soft); border: 1px solid #a7f3d0;
  font-size: 15px; font-weight: 500; color: var(--green);
}
.submitted .email-input, .submitted .submit-btn { display: none; }
.submitted .form-success { display: inline-flex; }

/* Hero CTA button (replaces inline form) */
.hero-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: 100px; background: var(--accent); color: white;
  font-size: 16px; font-weight: 600; transition: all 0.2s var(--ease-out);
  margin-top: 40px; animation: fadeUp 0.6s var(--ease-out) 0.3s both;
}
.hero-cta-btn:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }

/* ============================================================
   SURVEY MODAL
   ============================================================ */
body.modal-open { overflow: hidden; }

.survey-modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 20, 25, 0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.25s ease;
}
.survey-modal-backdrop.open { display: flex; align-items: center; justify-content: center; }
.survey-modal-backdrop.visible { opacity: 1; }

.survey-modal {
  position: relative; width: 100%; max-width: 520px;
  background: var(--surface); border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.15), 0 0 0 1px var(--border-subtle);
  padding: 48px 40px 40px; text-align: center;
  transform: translateY(16px); opacity: 0;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}
.survey-modal-backdrop.visible .survey-modal { transform: translateY(0); opacity: 1; }

.survey-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink-tertiary);
  transition: all 0.2s ease;
}
.survey-modal-close:hover { background: var(--surface-cool); color: var(--ink); }

/* Progress dots */
.survey-progress {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-bottom: 32px;
}
.survey-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: all 0.3s var(--ease-out);
}
.survey-dot.active { background: var(--accent); transform: scale(1.3); }
.survey-dot.completed { background: var(--green); }

/* Step visibility + transitions */
.survey-step { display: none; }
.survey-step.active { display: block; animation: surveyStepIn 0.35s var(--ease-out) forwards; }

@keyframes surveyStepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Question text */
.survey-question {
  font-family: var(--font-display); font-size: 24px;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px;
}
.survey-subtitle {
  font-size: 14px; color: var(--ink-secondary); margin-bottom: 24px;
}

/* Email step reuses existing input styles */
.survey-email-form { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.survey-email-form .email-input { width: 100%; max-width: 360px; }

/* Choice buttons */
.survey-choices {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 24px;
}
.survey-choice {
  padding: 12px 16px; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: all 0.15s var(--ease-out);
  text-align: left;
}
.survey-choice:hover { border-color: var(--accent); background: var(--accent-glow); }
.survey-choice.selected {
  border-color: var(--accent); background: var(--accent-soft);
  color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-glow);
}

/* Next button (multi-choice steps) */
.survey-next {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; padding: 12px 32px; border-radius: 100px;
  background: var(--accent); color: white;
  font-size: 15px; font-weight: 600; transition: all 0.2s var(--ease-out);
}
.survey-next:hover:not(:disabled) {
  background: var(--accent-deep); transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37,99,235,0.3);
}
.survey-next:disabled { opacity: 0.35; cursor: not-allowed; }

/* Back button */
.survey-back {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--ink-tertiary); margin-bottom: 20px;
  transition: color 0.2s;
}
.survey-back:hover { color: var(--ink-secondary); }

/* Done state */
.survey-done { padding: 16px 0; }
.survey-done-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green-soft); border: 2px solid #a7f3d0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.survey-done-title {
  font-family: var(--font-display); font-size: 28px;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 8px;
}
.survey-done-text {
  font-size: 15px; color: var(--ink-secondary); line-height: 1.6;
  max-width: 360px; margin: 0 auto;
}

/* ============================================================
   INTEGRATIONS BAR
   ============================================================ */
.integrations { padding: 56px 0; border-top: 1px solid var(--border-subtle); }
.integrations-label {
  text-align: center; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-tertiary); margin-bottom: 24px;
}
.integrations-grid {
  display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.int-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-tertiary);
}
.int-icon {
  width: 26px; height: 26px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; border: 1px solid var(--border);
}

/* ============================================================
   THE FLYWHEEL — core narrative section
   ============================================================ */
.flywheel-section { padding: 120px 0; background: var(--surface-warm); }

.section-eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display); font-size: clamp(30px, 3.5vw, 44px);
  line-height: 1.15; letter-spacing: -0.025em; color: var(--ink);
}
.section-subtitle {
  font-size: 17px; line-height: 1.65; color: var(--ink-secondary); max-width: 560px; margin-top: 16px;
}

/* Flywheel visual */
.flywheel-wrapper {
  margin-top: 64px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.flywheel-visual {
  position: relative; width: 100%; aspect-ratio: 1;
  max-width: 460px; margin: 0 auto;
}

/* The circular flywheel diagram */
.wheel {
  position: relative; width: 100%; height: 100%;
}
.wheel-ring {
  position: absolute; inset: 8%; border-radius: 50%;
  border: 2px dashed var(--border);
  animation: slowSpin 40s linear infinite;
}
.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent); display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px var(--accent-soft), 0 8px 32px rgba(37,99,235,0.15);
  z-index: 2;
}
.wheel-center-s {
  font-family: var(--font-display); font-size: 24px; color: white; line-height: 1;
}
.wheel-center-label {
  font-family: var(--font-mono); font-size: 6px; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 0.15em; margin-top: 2px;
}

/* Nodes around the wheel */
.wheel-node {
  position: absolute; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transform: translate(-50%, -50%);
}
.wheel-node-dot {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; border: 2px solid var(--border);
  background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s var(--ease-out);
}
.wheel-node:hover .wheel-node-dot { transform: scale(1.1); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.wheel-node-label {
  font-size: 11px; font-weight: 600; color: var(--ink);
  text-align: center; white-space: nowrap;
}
.wheel-node-desc {
  font-size: 10px; color: var(--ink-tertiary); text-align: center;
  max-width: 100px; line-height: 1.4;
}

/* Node positions (clock positions) */
.wheel-node--signals  { top: 4%;  left: 50%; }
.wheel-node--research { top: 30%; left: 96%; }
.wheel-node--brief    { top: 75%; left: 88%; }
.wheel-node--agents   { top: 95%; left: 50%; }
.wheel-node--ship     { top: 75%; left: 12%; }
.wheel-node--feedback { top: 30%; left: 4%; }

/* Animated arrows between nodes */
.wheel-arrows {
  position: absolute; inset: 0;
}
.wheel-arrow-path {
  fill: none; stroke: var(--accent); stroke-width: 1.5;
  stroke-dasharray: 6 4; opacity: 0.3;
}
.wheel-flow-dot {
  r: 3; fill: var(--accent);
}

/* Flywheel text content */
.flywheel-text { display: flex; flex-direction: column; gap: 32px; }
.flywheel-step {
  display: flex; gap: 16px; padding: 20px 24px;
  border-radius: var(--radius-lg); border: 1px solid transparent;
  transition: all 0.3s var(--ease-out);
}
.flywheel-step:hover { background: var(--surface); border-color: var(--border); box-shadow: 0 2px 12px rgba(0,0,0,0.03); }
.flywheel-step-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.flywheel-step-text h3 {
  font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; margin-bottom: 4px;
}
.flywheel-step-text p { font-size: 14px; line-height: 1.6; color: var(--ink-secondary); }
.flywheel-step-arrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
  padding-left: 76px; margin: -12px 0;
}

@media (max-width: 900px) {
  .flywheel-wrapper { grid-template-columns: 1fr; }
  .flywheel-visual { max-width: 340px; }
}
@media (max-width: 768px) {
  .flywheel-visual { display: none; }
  .flywheel-wrapper { gap: 32px; }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 120px 0; background: var(--surface); }
.features-header { text-align: center; margin-bottom: 64px; }
.features-header .section-title { max-width: 560px; margin: 0 auto; }
.features-header .section-subtitle { max-width: 520px; margin: 16px auto 0; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  padding: 36px 32px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface);
  transition: all 0.3s var(--ease-out);
}
.feature-card:hover { border-color: transparent; box-shadow: 0 8px 40px rgba(0,0,0,0.06); transform: translateY(-3px); }
.feature-card-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display); font-size: 20px;
  letter-spacing: -0.01em; margin-bottom: 8px;
}
.feature-card p { font-size: 14px; line-height: 1.65; color: var(--ink-secondary); }

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   THE COMPOUNDING INSIGHT — editorial callout
   ============================================================ */
.insight-section {
  padding: 100px 0;
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}
.insight-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(37,99,235,0.15), transparent),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(124,58,237,0.1), transparent);
  pointer-events: none;
}
.insight-inner {
  position: relative; text-align: center;
  max-width: 680px; margin: 0 auto;
}
.insight-quote {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 36px);
  line-height: 1.35; letter-spacing: -0.02em;
  font-style: italic;
}
.insight-quote em {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.insight-attribution {
  margin-top: 32px; font-size: 14px; color: rgba(255,255,255,0.5);
  font-family: var(--font-mono); letter-spacing: 0.03em;
}
.insight-loop {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 48px; flex-wrap: nowrap; white-space: nowrap;
}
.insight-loop-step {
  padding: 8px 16px; border-radius: 100px; font-size: 13px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7);
  transition: all 0.3s ease;
}
.insight-loop-step:hover { border-color: rgba(255,255,255,0.3); color: white; }
.insight-loop-arrow { color: rgba(255,255,255,0.25); font-size: 14px; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 120px 0; background: var(--surface-warm); text-align: center;
}
.cta-title {
  font-family: var(--font-display); font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.15; letter-spacing: -0.025em;
}
.cta-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cta-subtitle {
  font-size: 17px; color: var(--ink-secondary); margin-top: 16px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}
.cta-form {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 48px 0; border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-left {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-tertiary);
}
.footer-logo-mark {
  width: 24px; height: 24px; border-radius: 6px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; color: white;
}
.footer-right { display: flex; gap: 32px; font-size: 14px; color: var(--ink-tertiary); }
.footer-right a:hover { color: var(--ink-secondary); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
@keyframes slowSpin {
  to { transform: rotate(360deg); }
}
@keyframes flowPulse {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .container, .container--narrow { padding: 0 20px; }
  .hero { padding: 120px 0 60px; }
  .hero-form, .cta-form { flex-direction: column; align-items: stretch; }
  .email-input { width: 100%; }
  .integrations-grid { gap: 20px; }
  .insight-loop { gap: 6px; flex-wrap: wrap; white-space: normal; }
  .insight-loop-step { padding: 6px 10px; font-size: 11px; }
  .insight-loop-arrow { font-size: 11px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  /* Modal mobile */
  .survey-modal { margin: 16px; padding: 36px 24px 32px; max-width: none; border-radius: var(--radius-lg); }
  .survey-choices { grid-template-columns: 1fr; }
  .survey-question { font-size: 20px; }
  .survey-email-form .email-input { max-width: 100%; }
}
