/* ========================================
   PROSIMANT.AI — Design Tokens & Styles
   Palette: Deep indigo + amber accent
   Concept: Coordinated intelligence, ant colony
   ======================================== */

/* --- Type Scale --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* --- LIGHT MODE (default) --- */
:root, [data-theme="light"] {
  --color-bg:             #f8f9fc;
  --color-surface:        #ffffff;
  --color-surface-2:      #f1f3f8;
  --color-surface-offset: #eaecf4;
  --color-divider:        #d8dce8;
  --color-border:         #c8cdd9;

  --color-text:           #111827;
  --color-text-muted:     #6b7280;
  --color-text-faint:     #9ca3af;
  --color-text-inverse:   #ffffff;

  /* Primary — deep indigo */
  --color-primary:        #3730a3;
  --color-primary-hover:  #312e81;
  --color-primary-active: #1e1b4b;
  --color-primary-light:  #e0e7ff;
  --color-primary-surface: #eef2ff;

  /* Accent — warm amber */
  --color-accent:         #d97706;
  --color-accent-hover:   #b45309;
  --color-accent-light:   #fef3c7;

  /* Success */
  --color-success:        #059669;
  --color-success-light:  #d1fae5;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(17,24,39,0.05);
  --shadow-md: 0 4px 12px rgba(17,24,39,0.08);
  --shadow-lg: 0 12px 32px rgba(17,24,39,0.12);
  --shadow-xl: 0 20px 50px rgba(17,24,39,0.15);
}

/* --- DARK MODE --- */
[data-theme="dark"] {
  --color-bg:             #0f0f1a;
  --color-surface:        #161625;
  --color-surface-2:      #1c1c30;
  --color-surface-offset: #22223a;
  --color-divider:        #2d2d48;
  --color-border:         #3a3a58;

  --color-text:           #e5e7eb;
  --color-text-muted:     #9ca3af;
  --color-text-faint:     #6b7280;
  --color-text-inverse:   #111827;

  --color-primary:        #818cf8;
  --color-primary-hover:  #a5b4fc;
  --color-primary-active: #6366f1;
  --color-primary-light:  #1e1b4b;
  --color-primary-surface: #1e1b4b;

  --color-accent:         #fbbf24;
  --color-accent-hover:   #f59e0b;
  --color-accent-light:   #422006;

  --color-success:        #34d399;
  --color-success-light:  #064e3b;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0f0f1a;
    --color-surface:        #161625;
    --color-surface-2:      #1c1c30;
    --color-surface-offset: #22223a;
    --color-divider:        #2d2d48;
    --color-border:         #3a3a58;
    --color-text:           #e5e7eb;
    --color-text-muted:     #9ca3af;
    --color-text-faint:     #6b7280;
    --color-text-inverse:   #111827;
    --color-primary:        #818cf8;
    --color-primary-hover:  #a5b4fc;
    --color-primary-active: #6366f1;
    --color-primary-light:  #1e1b4b;
    --color-primary-surface: #1e1b4b;
    --color-accent:         #fbbf24;
    --color-accent-hover:   #f59e0b;
    --color-accent-light:   #422006;
    --color-success:        #34d399;
    --color-success-light:  #064e3b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.6);
  }
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--content-default);
}

section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ========================================
   HEADER / NAV
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

/* Wordmark logo — rounded lowercase matching brand identity */
.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
}

.logo-word {
  font-family: 'Nunito', var(--font-display), sans-serif;
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  line-height: 1;
}

.logo-i {
  position: relative;
  display: inline-block;
  color: transparent;
  /* We use text-shadow trick to render the letter body without the dot */
}

/* Render the "i" stem via text-stroke since the glyph is transparent */
.logo-i::after {
  content: 'i';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  /* Clip the top part where the dot sits */
  clip-path: inset(35% 0 0 0);
}

/* Accent-colored dot replacing the default i-dot */
.logo-i::before {
  content: '';
  position: absolute;
  width: 0.35em;
  height: 0.35em;
  border-radius: 50%;
  background: var(--color-accent);
  top: 0.02em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.logo-dot-ai {
  font-family: 'Nunito', var(--font-display), sans-serif;
  font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-primary);
  opacity: 0.55;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-interactive);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-demo-link {
  color: var(--color-accent) !important;
  font-weight: 600 !important;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.nav-demo-link:hover {
  background: var(--color-accent) !important;
  color: #fff !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}

.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* Mobile nav */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-6);
    gap: var(--space-4);
  }
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--space-16), 10vw, var(--space-32));
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: var(--color-primary-surface);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-6);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 52ch;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  position: relative;
}

/* Animated network graphic */
.network-canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-2xl);
}

@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-graphic { max-width: 300px; }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-interactive);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-faint);
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-xl);
}

/* ========================================
   PROBLEM / PAIN SECTION
   ======================================== */

.problem-section {
  background: var(--color-surface);
}

.problem-section .container--narrow {
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
  color: var(--color-text);
}

.section-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  text-align: left;
}

.pain-card {
  padding: var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  transition: all 0.3s ease;
}

.pain-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pain-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-surface);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pain-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

/* ========================================
   HOW IT WORKS
   ======================================== */

.how-section {
  background: var(--color-bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  text-align: center;
  counter-increment: step;
}

.step-card::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  border-radius: var(--radius-full);
}

.step-card .step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  color: var(--color-primary);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.step-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-inline: auto;
}

/* Connector lines between steps */
.step-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 36px;
  right: -14px;
  width: 28px;
  height: 2px;
  background: var(--color-divider);
}

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card::after { display: none; }
}

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

/* ========================================
   FEATURES
   ======================================== */

.features-section {
  background: var(--color-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.feature-card {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  transition: all 0.3s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary-light);
}

.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-surface);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
}

.feature-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.feature-content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

/* ========================================
   WHY NOW / MARKET
   ======================================== */

.why-now-section {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.why-now-section .section-label {
  color: rgba(255,255,255,0.7);
}

.why-now-section .section-title {
  color: #fff;
}

.why-now-section .section-description {
  color: rgba(255,255,255,0.8);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.stat-item .stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  max-width: 28ch;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ========================================
   TEAM
   ======================================== */

.team-section {
  background: var(--color-bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8);
  max-width: 900px;
  margin-inline: auto;
}

.team-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
  background: var(--color-primary-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.team-card .team-role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.team-card .team-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-4);
}

.team-tag {
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-surface);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* ========================================
   TRACTION
   ======================================== */

.traction-section {
  background: var(--color-surface);
}

.traction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.traction-item {
  padding: var(--space-6);
}

.traction-item .traction-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.traction-item .traction-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .traction-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e1b4b 100%);
  color: #fff;
  text-align: center;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
}

.cta-section .section-title {
  color: #fff;
}

.cta-section .section-description {
  color: rgba(255,255,255,0.85);
}

.cta-section .btn-accent {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-10);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-8);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ========================================
   DELTA V BANNER
   ======================================== */

.dv-banner {
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
}

.dv-banner a {
  color: #fff;
  text-decoration: underline;
}

/* ========================================
   ICP SECTION (who it's for)
   ======================================== */

.icp-section {
  background: var(--color-bg);
}

.icp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.icp-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  text-align: center;
}

.icp-card .icp-icon {
  font-size: 2rem;
  margin-bottom: var(--space-3);
}

.icp-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.icp-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

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

/* ========================================
   MIT DELTA V SECTION
   ======================================== */

.deltav-section {
  background: var(--color-surface-2);
}

.deltav-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.deltav-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.deltav-text p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.deltav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.deltav-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.deltav-list li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-success);
  margin-top: 2px;
}

.deltav-badge {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
}

.deltav-badge-logo {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  background: #a31f34;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  line-height: 1.2;
  text-align: center;
}

.deltav-badge-text h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-1);
}

.deltav-badge-text p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

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

/* ========================================
   USE CASE WALKTHROUGH
   ======================================== */

.usecase-section {
  background: var(--color-bg);
}

.usecase-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

.usecase-panel {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
}

.usecase-before {
  background: var(--color-surface);
}

.usecase-after {
  background: var(--color-primary-surface);
  border-color: color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.usecase-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.usecase-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.usecase-badge--before {
  background: color-mix(in srgb, var(--color-accent) 15%, transparent);
  color: var(--color-accent);
}

.usecase-badge--after {
  background: color-mix(in srgb, var(--color-success) 15%, transparent);
  color: var(--color-success);
}

.usecase-panel-header h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
}

.usecase-steps {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.usecase-steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.step-marker {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  margin-top: 5px;
}

.step-marker--manual {
  background: var(--color-text-faint);
}

.step-marker--bottleneck {
  background: var(--color-accent);
}

.usecase-agents {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.usecase-agent {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

[data-theme="dark"] .usecase-agent {
  background: var(--color-surface-2);
}

.usecase-agent strong {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.usecase-agent p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0;
}

.usecase-agent-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.usecase-agent-icon--intake {
  background: var(--color-primary-surface);
  color: var(--color-primary);
}

.usecase-agent-icon--exec {
  background: color-mix(in srgb, var(--color-primary) 10%, var(--color-accent-light));
  color: color-mix(in srgb, var(--color-primary) 60%, var(--color-accent));
}

.usecase-agent-icon--routing {
  background: var(--color-primary-surface);
  color: var(--color-primary);
}

.usecase-agent-icon--compliance {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.usecase-stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
}

.usecase-stat--bad {
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}

.usecase-stat--good {
  background: color-mix(in srgb, var(--color-success) 10%, transparent);
}

.usecase-stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
}

.usecase-stat--bad .usecase-stat-number {
  color: var(--color-accent);
}

.usecase-stat--good .usecase-stat-number {
  color: var(--color-success);
}

.usecase-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.usecase-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2);
}

.usecase-arrow span {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  writing-mode: horizontal-tb;
}

@media (max-width: 900px) {
  .usecase-flow {
    grid-template-columns: 1fr;
  }
  .usecase-arrow {
    flex-direction: row;
    padding: var(--space-2) 0;
  }
  .usecase-arrow svg {
    transform: rotate(90deg);
  }
}

/* ========================================
   SOCIAL PROOF
   ======================================== */

.proof-section {
  background: var(--color-surface);
  padding-block: clamp(var(--space-10), 6vw, var(--space-16));
}

.proof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: var(--space-6) var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  margin-bottom: var(--space-8);
}

.proof-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
}

.proof-logos {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.proof-logo-item {
  text-align: center;
}

.proof-logo-mark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.proof-logo-desc {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: 2px;
}

.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--color-divider);
}

.proof-quotes {
  max-width: 680px;
  margin-inline: auto;
}

.proof-quote {
  position: relative;
  padding: var(--space-6) var(--space-8);
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  text-align: center;
}

.proof-quote-icon {
  margin-bottom: var(--space-3);
  opacity: 0.5;
}

.proof-quote p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-3);
}

.proof-quote-attr {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
}

@media (max-width: 768px) {
  .proof-strip {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
  .proof-logos {
    gap: var(--space-6);
  }
}

/* ========================================
   FOUNDER-MARKET FIT
   ======================================== */

.founder-section {
  background: var(--color-bg);
}

.founder-content {
  max-width: 800px;
  margin-inline: auto;
}

.founder-narrative {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.founder-signals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.founder-signal {
  text-align: center;
}

.founder-signal-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.founder-signal-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 22ch;
  margin-inline: auto;
}

@media (max-width: 600px) {
  .founder-signals {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ========================================
   WAITLIST FORM
   ======================================== */

.waitlist-form {
  max-width: 520px;
  margin: var(--space-8) auto 0;
}

.waitlist-fields {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.waitlist-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition-interactive);
}

.waitlist-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.waitlist-input:focus {
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.15);
}

.waitlist-btn {
  width: 100%;
  justify-content: center;
}

.waitlist-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-6);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  margin-top: var(--space-6);
}

.waitlist-success p {
  font-size: var(--text-base);
  color: #fff;
  margin: 0;
}

.waitlist-note {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-align: center;
  margin-top: var(--space-3);
}

/* Stat source links */
.stat-source {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85em;
  transition: color var(--transition-interactive);
}

.stat-source:hover {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

/* ========================================
   ANT TRAIL CANVAS (full-page background)
   ======================================== */

.ant-trail-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* Ensure all content sits above the canvas */
.header,
section,
footer {
  position: relative;
  z-index: 1;
}

/* ========================================
   THE COLONY SECTION
   ======================================== */

.colony-section {
  background: var(--color-surface);
  overflow: hidden;
}

.colony-visual {
  margin-top: var(--space-8);
}

.colony-diagram {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* --- Colony Layers --- */

.colony-layer {
  padding: var(--space-6) var(--space-8);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-divider);
  position: relative;
}

.colony-layer--surface {
  background: linear-gradient(180deg, var(--color-primary-surface) 0%, var(--color-bg) 100%);
  border-color: color-mix(in srgb, var(--color-primary) 15%, transparent);
}

.colony-layer--mid {
  background: var(--color-bg);
  border-color: color-mix(in srgb, var(--color-primary) 12%, transparent);
}

.colony-layer--deep {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-primary-surface) 100%);
  border-color: color-mix(in srgb, var(--color-accent) 20%, transparent);
}

[data-theme="dark"] .colony-layer--surface {
  background: linear-gradient(180deg, rgba(129,140,248,0.06) 0%, var(--color-surface) 100%);
}

[data-theme="dark"] .colony-layer--mid {
  background: var(--color-surface-2);
}

[data-theme="dark"] .colony-layer--deep {
  background: linear-gradient(180deg, var(--color-surface-2) 0%, rgba(251,191,36,0.06) 100%);
}

.colony-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}

/* --- Colony Agents Grid --- */

.colony-agents {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.colony-ant {
  flex: 1;
  min-width: 140px;
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
  transition: all 0.3s ease;
}

.colony-ant:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.colony-ant--scout {
  border-left: 3px solid var(--color-primary);
}

.colony-ant--worker {
  border-left: 3px solid color-mix(in srgb, var(--color-primary) 70%, var(--color-accent));
}

.colony-ant--queen {
  border-left: 3px solid var(--color-accent);
}

[data-theme="dark"] .colony-ant {
  background: var(--color-surface-offset);
}

/* --- Ant Icon, Label, Description --- */

.ant-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-surface);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
}

.ant-icon--queen {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.ant-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.ant-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Tunnel Connectors --- */

.colony-tunnel {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  position: relative;
}

.tunnel-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-divider), color-mix(in srgb, var(--color-primary) 25%, var(--color-divider)));
  transform: translateX(-50%);
}

.tunnel-ants {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tunnel-ant {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  opacity: 0.5;
  animation: tunnel-crawl 2.4s ease-in-out infinite;
}

@keyframes tunnel-crawl {
  0%, 100% {
    transform: translateY(-8px);
    opacity: 0.2;
  }
  50% {
    transform: translateY(8px);
    opacity: 0.7;
  }
}

/* --- Colony Section Mobile --- */

@media (max-width: 768px) {
  .colony-layer {
    padding: var(--space-4) var(--space-4);
  }
  .colony-agents {
    flex-direction: column;
  }
  .colony-ant {
    min-width: auto;
  }
}
