/* ============================================================
   RunIQ Labs AI — Site v2
   Dark-tech theme · Professional layout architecture
   ============================================================ */

/* --- Design Tokens --- */
:root {
  /* Backgrounds */
  --bg-deep:    #060a14;
  --bg-base:    #0a0f1a;

  /* Glass / cards */
  --glass:        rgba(15, 25, 50, 0.55);
  --glass-border: rgba(59, 130, 246, 0.15);
  --glass-hover:  rgba(59, 130, 246, 0.25);

  /* Accent */
  --accent:       #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow:  rgba(59, 130, 246, 0.35);

  /* Text */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --text-accent:    #60a5fa;

  /* Semantic */
  --success:  #10b981;
  --warning:  #f59e0b;
  --score:    #fbbf24;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 160px);
  --wrap-max:    1200px;
  --wrap-pad:    clamp(16px, 4vw, 32px);

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-sans:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2 {
  margin: 0;
  line-height: 1.15;
  font-family: var(--font-display);
}

h3, h4, h5, h6 { margin: 0; line-height: 1.15; }
p { margin: 0; }


/* --- Layout --- */
.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 0 var(--wrap-pad);
}

section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}


/* ============================================================
   BACKGROUNDS — CSS-only dark-tech treatments with parallax
   ============================================================ */

/* Parallax-ready backgrounds */
.bg-mesh, .bg-grid {
  position: relative;
  will-change: transform;
}

/* Subtle dot grid overlay — reusable on any section */
.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Perspective mesh floor — for hero and CTA sections */
.bg-mesh::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) perspective(500px) rotateX(60deg) translateY(var(--scroll-offset, 0));
  width: 200%;
  height: 60%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Center radial glow */
.bg-glow-center::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Faint horizontal lines — alternate to dot grid */
.bg-lines::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 79px,
    rgba(59, 130, 246, 0.04) 79px,
    rgba(59, 130, 246, 0.04) 80px
  );
  pointer-events: none;
  z-index: 0;
}

/* Horizontal line dividers between sections (border-image avoids ::before conflict) */
.bg-line-top {
  border-top: 1px solid;
  border-image: linear-gradient(90deg, transparent 5%, var(--glass-border) 50%, transparent 95%) 1;
}


/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 63px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.08);
}

.nav-cta {
  margin-left: 12px;
}


/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563eb);
  border-color: rgba(96, 165, 250, 0.3);
  color: #fff;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-hover);
  color: var(--text-primary);
}


/* ============================================================
   HERO — Full-width, atmosphere-driven
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/hero-circuit.jpg') center top / cover no-repeat;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 15%, var(--bg-base) 75%);
  z-index: 0;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 40%, rgba(6, 10, 20, 0.7) 0%, transparent 70%);
  padding: 48px 32px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero-sub {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 56ch;
  line-height: 1.7;
  margin: 0 auto 40px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Hero stat bar — replaces trust logos */
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

/* Shared stat styling */
.stat-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stats .stat-value {
  font-size: 32px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}


/* ============================================================
   SECTION TITLES — Reusable (centered pattern)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 64ch;
  margin: 0 auto;
  line-height: 1.7;
}


/* ============================================================
   GLASS CARDS — Reusable
   ============================================================ */
.card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.card:hover {
  border-color: var(--glass-hover);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.card-icon {
  width: 101px;
  height: 101px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ============================================================
   THE GAP — Asymmetric statement + stats
   ============================================================ */
.gap-section {
  background:
    radial-gradient(ellipse at 50% 20%, rgba(239, 68, 68, 0.06) 0%, transparent 50%),
    var(--bg-base);
}

.gap-section::before {
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%);
}

.gap-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.gap-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}

.gap-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gap-stat {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.gap-stat:hover {
  border-color: var(--glass-hover);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.1);
}

.gap-stat .stat-value {
  display: block;
  font-size: 36px;
  margin-bottom: 8px;
  color: #f87171;
}

.gap-stat p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Gap solution — hidden, expands in after problem is visible */
.gap-answer {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: opacity 0.72s cubic-bezier(0.2, 1, 0.3, 1),
              max-height 0.72s cubic-bezier(0.2, 1, 0.3, 1),
              transform 0.72s cubic-bezier(0.2, 1, 0.3, 1),
              margin 0.72s cubic-bezier(0.2, 1, 0.3, 1),
              padding 0.72s cubic-bezier(0.2, 1, 0.3, 1);
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
}

/* Revealed state — triggered by button toggle */
.gap-section.show-solutions .gap-answer {
  opacity: 1;
  max-height: 120px;
  transform: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.gap-answer .stat-value {
  font-size: 28px;
  color: #34d399;
}

/* Dim problems when solutions are showing */
.gap-stat > .stat-value,
.gap-stat > p {
  transition: opacity 0.4s ease;
}

.gap-section.show-solutions .gap-stat > .stat-value {
  opacity: 0.3;
}

.gap-section.show-solutions .gap-stat > p {
  opacity: 0.3;
}

/* Stagger solution reveals on toggle */
.gap-section.show-solutions .gap-stats > :nth-child(1) .gap-answer { transition-delay: 0s; }
.gap-section.show-solutions .gap-stats > :nth-child(2) .gap-answer { transition-delay: 0.12s; }
.gap-section.show-solutions .gap-stats > :nth-child(3) .gap-answer { transition-delay: 0.18s; }
.gap-section.show-solutions .gap-stats > :nth-child(4) .gap-answer { transition-delay: 0.24s; }

/* Toggle button */
.btn-gap-toggle {
  margin-top: 60px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 19px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  animation: glow-pulse 2.5s ease-in-out infinite;
}

.btn-gap-toggle:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
  animation: none;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0); }
  50% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.5), 0 0 80px rgba(16, 185, 129, 0.25); }
}


/* ============================================================
   DEPLOYMENT INTELLIGENCE — Bento grid
   ============================================================ */
.solution {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    var(--bg-deep);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Primary feature card — full-width with internal 2-col layout */
.bento-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 40px;
  border-color: rgba(59, 130, 246, 0.25);
  background:
    radial-gradient(ellipse at 80% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    var(--glass);
}

.bento-feature:hover {
  border-color: var(--glass-hover);
}

.bento-feature h3 {
  font-size: 22px;
}

.bento-feature p {
  font-size: 16px;
}

.bento-feature .card-icon {
  width: 101px;
  height: 101px;
  border-radius: 20px;
}

.bento-feature-visual {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 14px;
}


/* ============================================================
   SCREENSHOT THEATER — Styled terminal frame for tool screenshots
   ============================================================ */
.screenshot-theater {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  padding: 0;
  overflow: hidden;
  background: #080c18;
  border: 1px solid rgba(59, 130, 246, 0.3);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.08),
    0 0 80px rgba(59, 130, 246, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Terminal chrome bar */
.theater-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(15, 20, 35, 0.9);
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  flex-shrink: 0;
}

.theater-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.theater-dot:first-child { background: rgba(239, 68, 68, 0.5); border-color: rgba(239, 68, 68, 0.3); }
.theater-dot:nth-child(2) { background: rgba(251, 191, 36, 0.5); border-color: rgba(251, 191, 36, 0.3); }
.theater-dot:nth-child(3) { background: rgba(16, 185, 129, 0.5); border-color: rgba(16, 185, 129, 0.3); }

.theater-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Viewport — holds the screenshot */
.theater-viewport {
  position: relative;
  flex: 1;
  min-height: 200px;
  overflow: hidden;
}

.theater-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder shown before a screenshot is added */
.theater-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
  min-height: 200px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.theater-placeholder-icon {
  font-size: 28px;
  opacity: 0.3;
}

/* Scan-line overlay — subtle CRT effect */
.theater-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  z-index: 2;
}

/* Glow edge at top of viewport */
.theater-viewport::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(59, 130, 246, 0.4) 50%, transparent 90%);
  z-index: 3;
}


/* ============================================================
   OUR APPROACH — Comparison split
   ============================================================ */
.approach {
  background: var(--bg-base);
}

.approach-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.approach-body {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}

/* Comparison card */
.approach-comparison {
  padding: 0;
  overflow: hidden;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-col {
  padding: 32px 28px;
}

.compare-col:first-child {
  border-right: 1px solid var(--glass-border);
}

.compare-col h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.compare-accent h4 {
  color: var(--accent-light);
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-list li {
  font-size: 14px;
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
}

.compare-con {
  color: var(--text-muted);
}

.compare-con::before {
  content: '\00d7';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: rgba(239, 68, 68, 0.6);
}

.compare-pro {
  color: var(--text-secondary);
}

.compare-pro::before {
  content: '\2713';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--success);
}


/* ============================================================
   RUNIQSCORE — Sticky track layout
   ============================================================ */
.score-section {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(251, 191, 36, 0.06) 0%, transparent 50%),
    var(--bg-deep);
  overflow: visible;
}

.score-sticky-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.score-visual-track {
  position: sticky;
  top: 15vh;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.score-content-track {
  padding-bottom: 20vh;
}

.score-intro h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.score-intro p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.score-pillar-block {
  margin-bottom: 25vh;
}

.score-intro {
  margin-bottom: 40vh;
}

.pillar-graphic {
  display: block;
  width: 264px;
  height: 264px;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.15));
}

.score-pillar-block h4 {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--accent-light);
  margin-bottom: 12px;
  text-align: center;
}

.score-pillar-block p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
}

.score-dial-placeholder {
  position: relative;
  width: 547px;
  height: 547px;
}

.dial-housing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transition: filter 0.8s ease;
}

.dial-overlay {
  position: absolute;
  inset: 9%;
  width: 82%;
  height: 82%;
  z-index: 1;
}

.score-dial-placeholder.glow .dial-housing {
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.4)) drop-shadow(0 0 50px rgba(59, 130, 246, 0.15));
}


/* ============================================================
   PLATFORMS / INFRASTRUCTURE — Bento grid
   ============================================================ */
.platforms {
  background:
    radial-gradient(ellipse at 70% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    var(--bg-base);
}

.platforms-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Intro text — tall left cell spanning 2 rows */
.platforms-intro {
  grid-row: 1 / 3;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(15, 25, 50, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.platforms-intro .section-title {
  text-align: left;
}

.platforms-intro p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}

/* Platform cards */
.platform-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.platform-card-logo {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  opacity: 0.85;
}

.platform-card-logo svg,
.platform-card-logo img {
  height: 100%;
  width: auto;
  display: block;
}

.platform-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.platform-card p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Feature bar — full-width bottom row */
.platforms-features {
  grid-column: 1 / -1;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
}

/* Shared feature list (used by platforms bar + services) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text-secondary);
}

.feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--success);
  font-size: 11px;
}

/* Horizontal layout inside platforms bar */
.platforms-features .feature-list {
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}


/* ============================================================
   SERVICES — Stacked full-width phase cards
   ============================================================ */
.services {
  background: var(--bg-deep);
}

.services-intro {
  margin-bottom: 48px;
  max-width: 56ch;
  position: relative;
  z-index: 1;
}

.services-intro p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
}

.services-phases {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.services-phase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 40px;
}

.phase-text {
  display: flex;
  flex-direction: column;
}

.phase-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.services-phase-next .phase-label {
  color: var(--accent-light);
}

.services-phase-next {
  border-color: rgba(59, 130, 246, 0.25);
}

/* Stacked phase card — text, full-width image, bullets */
.services-phase-stacked {
  grid-template-columns: 1fr;
  gap: 24px;
}

.services-phase-stacked .phase-visual-wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  border: none;
  background: none;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.services-list-bottom {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.services-list-bottom li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}

/* Full-width phase cards shouldn't lift on hover */
.services-phase:hover {
  transform: none;
}

.phase-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 8px;
}

.phase-visual {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    var(--glass);
  border: 1px solid var(--glass-border);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
}

.phase-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.services-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.services-list strong {
  color: var(--text-primary);
}


/* ============================================================
   CTA — Final call to action
   ============================================================ */
.cta-section {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    var(--bg-base);
  text-align: center;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 52ch;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--glass-border);
  background: var(--bg-deep);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .logo-img {
  height: 54px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 30ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-link svg {
  display: block;
}

.social-link:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--glass-border);
  color: var(--text-accent);
}


/* ============================================================
   NEURAL PULSE SWEEP — section divider transition
   ============================================================ */
.swipe-transition {
  position: relative;
  height: 2px;
  width: 100%;
  background: rgba(59, 130, 246, 0.1);
  margin: 0;
  overflow: visible;
}

.swipe-transition::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -100%;
  width: 100%;
  height: 80px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--accent-glow), var(--accent-light), var(--accent-glow), transparent);
  filter: blur(20px);
}

@keyframes neural-sweep {
  from { left: -100%; }
  to   { left: 100%; }
}

.swipe-transition.active::before {
  animation: neural-sweep 1.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

/* Sweep variants — warm gold (after Score section) */
.sweep-warm::before {
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.5), rgba(251, 191, 36, 0.2), transparent);
}

.sweep-warm.active::before {
  animation-duration: 1.0s;
}

/* Sweep variants — wide violet (lower page) */
.sweep-wide::before {
  height: 120px;
  filter: blur(32px);
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), var(--accent-light), rgba(139, 92, 246, 0.2), transparent);
}

.sweep-wide.active::before {
  animation-duration: 1.5s;
}


/* ============================================================
   MARKET TIMING — Bento grid with integrated text
   ============================================================ */
.urgency {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    var(--bg-deep);
}

.urgency-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

/* Text block occupies 2 cols of first row */
.urgency-intro {
  grid-column: 1 / 3;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: rgba(15, 25, 50, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.urgency-intro .section-title {
  text-align: left;
}

.urgency-intro p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 52ch;
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1), transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1), transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1), transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.9s cubic-bezier(0.2, 1, 0.3, 1), transform 0.9s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.stagger > :nth-child(1) { transition-delay: 0ms; }
.stagger > :nth-child(2) { transition-delay: 80ms; }
.stagger > :nth-child(3) { transition-delay: 160ms; }
.stagger > :nth-child(4) { transition-delay: 240ms; }
.stagger > :nth-child(5) { transition-delay: 320ms; }
.stagger > :nth-child(6) { transition-delay: 400ms; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  /* Hero */
  .hero-stats { flex-wrap: wrap; gap: 32px; }

  /* Gap — stack to single column */
  .gap-layout { grid-template-columns: 1fr; gap: 48px; }
  .gap-text { text-align: center; }

  /* Solution bento — feature card stacks internally */
  .bento-feature { grid-template-columns: 1fr; gap: 24px; }

  /* Approach — stack */
  .approach-layout { grid-template-columns: 1fr; gap: 48px; }
  .approach-text { text-align: center; }

  /* Score — collapse sticky */
  .score-sticky-container { grid-template-columns: 1fr; gap: 48px; }
  .score-visual-track { position: static; height: auto; }
  .score-pillar-block { margin-bottom: 48px; }
  .score-content-track { padding-bottom: 0; }

  /* Platforms bento — 2 cols on tablet, intro spans full */
  .platforms-bento { grid-template-columns: repeat(2, 1fr); }
  .platforms-intro { grid-row: auto; grid-column: 1 / -1; text-align: center; }

  /* Services — stack internal cols, normalize reading order */
  .services-phase { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
  .services-phase-next .phase-visual { order: 2; }
  .services-phase-next .phase-text { order: 1; }
  .services-intro { text-align: center; max-width: none; }
  .services-list-bottom { flex-direction: column; gap: 10px; }

  /* Urgency bento — 2 cols on tablet */
  .urgency-bento { grid-template-columns: repeat(2, 1fr); }
  .urgency-intro { grid-column: 1 / -1; text-align: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero-stats { gap: 24px; }
  .hero-stats .stat-value { font-size: 24px; }
  .bento-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-col:first-child { border-right: none; border-bottom: 1px solid var(--glass-border); }
  .platforms-bento { grid-template-columns: 1fr; }
  .platforms-features .feature-list { flex-direction: column; }
  .urgency-bento { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
