:root {
  /* Colors */
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-muted: #F1F5F9;
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --brand-600: #0B5FFF;
  --brand-700: #0847C7;
  --brand-050: #EAF1FF;
  --success-600: #15803D;
  
  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --fs-display: clamp(2.25rem, 4.8vw, 4.75rem);
  --fs-h2: clamp(1.75rem, 3vw, 3rem);
  --fs-h3: clamp(1.25rem, 1.9vw, 1.75rem);
  --fs-body: clamp(1rem, 1.2vw, 1.125rem);
  --fs-meta: 0.8125rem;
  --lh-tight: 1.08;
  --lh-heading: 1.18;
  --lh-body: 1.6;
  
  /* Spacing */
  --section-y: clamp(6rem, 9vw, 9rem);
  --container-max: 78rem;
  --container-pad: clamp(1rem, 3vw, 2rem);
  
  /* Motion */
  --dur-reveal: 250ms;
  --ease-standard: cubic-bezier(.2,.8,.2,1);
}

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

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--bg-canvas);
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(248,250,252,0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1rem var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-600);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text-primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brand-600);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-muted);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  padding: calc(var(--section-y) + 4rem) 0 var(--section-y);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-canvas) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.proof-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: var(--fs-meta);
  color: var(--text-muted);
  font-weight: 500;
}

.proof-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-headline {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-qualifier {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Dashboard Preview */
.hero-visual {
  display: flex;
  justify-content: center;
}

.dashboard-preview {
  background: var(--bg-surface);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.dashboard-header {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.dashboard-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dashboard-dot.red { background: #ef4444; }
.dashboard-dot.yellow { background: #f59e0b; }
.dashboard-dot.green { background: #22c55e; }

.dashboard-body {
  padding: 1.5rem;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.dash-label {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.dash-value {
  font-weight: 600;
  font-size: 1.125rem;
}

.dash-value.highlight {
  color: var(--success-600);
  font-size: 1.5rem;
}

.dash-progress {
  height: 8px;
  background: var(--bg-muted);
  border-radius: 4px;
  margin: 1.5rem 0 0.5rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-700));
  border-radius: 4px;
}

.dash-status {
  text-align: center;
  font-size: var(--fs-meta);
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Trust Rail */
.trust-rail {
  padding: var(--section-y) 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.logo-strip {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.logo-item {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.125rem;
  opacity: 0.6;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.kpi-card {
  text-align: center;
  padding: 2rem;
  background: var(--bg-canvas);
  border-radius: 1rem;
}

.kpi-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-600);
  margin-bottom: 0.5rem;
}

.kpi-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.kpi-qualifier {
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

/* Steps Section */
.steps-section {
  padding: var(--section-y) 0;
  background: var(--bg-canvas);
}

.steps-container {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
}

.step-rail {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.rail-label {
  font-size: var(--fs-meta);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s;
}

.rail-item:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.rail-item.active {
  background: var(--brand-050);
  color: var(--brand-600);
}

.rail-num {
  font-size: var(--fs-meta);
  font-weight: 600;
  width: 24px;
}

.rail-text {
  font-weight: 500;
  font-size: 0.875rem;
}

/* Step Module */
.step-module {
  margin-bottom: 6rem;
  scroll-margin-top: 100px;
}

.step-badge {
  display: inline-block;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--brand-600);
  background: var(--brand-050);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.step-headline {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: var(--lh-heading);
  margin-bottom: 1rem;
}

.step-mechanism {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 80%;
}

.step-proofs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.proof-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-surface);
  border-radius: 0.75rem;
  border: 1px solid var(--border-subtle);
}

.proof-icon {
  color: var(--brand-600);
  font-weight: 700;
}

.proof-text strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.proof-text span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.step-evidence {
  margin: 2rem 0;
}

.evidence-frame {
  background: var(--bg-surface);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border-subtle);
}

/* Network Viz */
.network-viz {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.node {
  position: absolute;
  padding: 0.75rem 1.5rem;
  background: var(--brand-600);
  color: white;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
}

.node.central {
  background: var(--text-primary);
  z-index: 10;
}

.connections {
  position: absolute;
  width: 100%;
  height: 100%;
}

/* Score Demo */
.score-demo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.investor-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.inv-name {
  width: 100px;
  font-weight: 600;
}

.score-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-muted);
  border-radius: 4px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-700));
  border-radius: 4px;
}

.score-val {
  width: 40px;
  text-align: right;
  font-weight: 700;
  color: var(--brand-600);
}

/* Sequence Preview */
.sequence-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.seq-msg {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-muted);
  border-radius: 0.5rem;
}

.seq-num {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-600);
  color: white;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.875rem;
}

.seq-content strong {
  display: block;
  margin-bottom: 0.25rem;
}

.seq-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Timeline Preview */
.timeline-preview {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timeline-item {
  display: flex;
  gap: 1rem;
}

.tl-dot {
  width: 12px;
  height: 12px;
  background: var(--brand-600);
  border-radius: 50%;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.tl-time {
  font-size: var(--fs-meta);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.tl-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tl-note {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Pipeline Kanban */
.pipeline-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.kanban-col {
  background: var(--bg-muted);
  border-radius: 0.75rem;
  padding: 1rem;
}

.col-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.col-count {
  background: var(--bg-surface);
  padding: 0.25rem 0.5rem;
  border-radius: 1rem;
  font-size: var(--fs-meta);
}

.col-card {
  background: var(--bg-surface);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.col-card.hot {
  border-left: 3px solid var(--brand-600);
}

.col-card.won {
  border-left: 3px solid var(--success-600);
  color: var(--success-600);
}

/* Copilot Bubble */
.copilot-bubble {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.copilot-avatar {
  width: 48px;
  height: 48px;
  background: var(--brand-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.copilot-message {
  background: var(--brand-050);
  padding: 1.5rem;
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
}

.copilot-message strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.copilot-message p {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.copilot-message ol {
  margin-left: 1rem;
  color: var(--text-secondary);
}

.copilot-message li {
  margin-bottom: 0.25rem;
}

/* Newsletter Hub */
.newsletter-hub {
  padding: var(--section-y) 0;
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

.featured-newsletter {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--brand-050) 0%, var(--bg-surface) 100%);
  border-radius: 1rem;
  border: 1px solid var(--brand-050);
}

.newsletter-badge {
  display: inline-block;
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--brand-600);
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.newsletter-date {
  font-size: var(--fs-meta);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.newsletter-headline {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.archive-section {
  margin-bottom: 4rem;
}

.archive-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.archive-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-canvas);
  border-radius: 0.75rem;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}

.archive-card:hover {
  border-color: var(--brand-600);
  transform: translateY(-2px);
}

.archive-date {
  display: block;
  font-size: var(--fs-meta);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.archive-headline {
  color: var(--text-primary);
  font-weight: 600;
}

.subscribe-box {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 2rem;
  background: var(--bg-canvas);
  border-radius: 1rem;
}

.subscribe-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subscribe-subtitle {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.subscribe-form {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.subscribe-input {
  flex: 1;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.5rem;
  font-size: 1rem;
}

.subscribe-input:focus {
  outline: none;
  border-color: var(--brand-600);
}

.subscribe-note {
  font-size: var(--fs-meta);
  color: var(--text-muted);
}

/* Founder Stories */
.founder-stories {
  padding: var(--section-y) 0;
  background: var(--bg-canvas);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.story-card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-subtle);
}

.story-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.story-author {
  margin-bottom: 1rem;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
}

.author-role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.story-metric {
  display: inline-block;
  background: var(--brand-050);
  color: var(--brand-600);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: var(--fs-meta);
  font-weight: 600;
}

/* FAQ Section */
.faq-section {
  padding: var(--section-y) 0;
  background: var(--bg-surface);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  padding: 1.5rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--text-muted);
}

.faq-item[open] .faq-question::after {
  content: '−';
}

.faq-answer {
  padding-bottom: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Final CTA */
.final-cta {
  padding: var(--section-y) 0;
  background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-700) 100%);
  color: white;
  text-align: center;
}

.cta-headline {
  font-size: var(--fs-h2);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-subhead {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-micro {
  margin-top: 1.5rem;
  opacity: 0.8;
  font-size: var(--fs-meta);
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background: var(--text-primary);
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  color: var(--text-muted);
  margin-top: 1rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-meta);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
}

.modal-content {
  position: relative;
  background: var(--bg-surface);
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  z-index: 2001;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-qualifier {
    max-width: 100%;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  .step-rail {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }
  
  .rail-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 0.5rem;
  }
  
  .rail-item {
    white-space: nowrap;
  }
  
  .kpi-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }
  
  .pipeline-kanban {
    grid-template-columns: 1fr;
  }
  
  .archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .logo-strip {
    gap: 1.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
}
