/* Framework27 — Custom styles
 * Loaded after Tailwind via CDN.
 * Brand colours: deep black #0A0A0A, off-white #FAFAFA, electric blue #0057FF, charcoal #1A1A1A
 * Fonts: Space Grotesk (headings), Inter (body), JetBrains Mono (numbers)
 */

:root {
  --black: #0A0A0A;
  --off-white: #FAFAFA;
  --electric: #0057FF;
  --electric-dark: #0041BD;
  --charcoal: #1A1A1A;
  --grey-100: #F4F4F4;
  --grey-200: #E5E5E5;
  --grey-400: #9A9A9A;
  --grey-600: #5A5A5A;
  --grey-800: #2A2A2A;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
  color: var(--charcoal);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  background: transparent;
  color: var(--charcoal);
  line-height: 1.55;
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--black);
}

h1 { letter-spacing: -0.03em; }

.font-mono, .mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: 'ss01', 'zero';
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--electric);
  color: white;
  font-weight: 600;
  padding: 0.95rem 1.6rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  border: 2px solid var(--electric);
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--electric-dark);
  border-color: var(--electric-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,87,255,0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--black);
  font-weight: 600;
  padding: 0.95rem 1.6rem;
  border-radius: 0.5rem;
  border: 2px solid var(--black);
  transition: background 0.15s ease, color 0.15s ease;
  font-family: 'Inter', sans-serif;
}
.btn-secondary:hover {
  background: var(--black);
  color: white;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--black);
  font-weight: 600;
  transition: color 0.15s ease;
}
.btn-ghost:hover { color: var(--electric); }

/* On dark backgrounds */
.dark-section .btn-secondary {
  color: white;
  border-color: white;
}
.dark-section .btn-secondary:hover {
  background: white;
  color: var(--black);
}
.dark-section .btn-ghost { color: white; }
.dark-section .btn-ghost:hover { color: var(--electric); }

/* Hero */
.hero-dark {
  background:
    radial-gradient(ellipse at 75% 15%, rgba(0,87,255,0.15) 0%, transparent 45%),
    radial-gradient(ellipse at 25% 85%, rgba(0,87,255,0.08) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(0,87,255,0.03) 0%, transparent 70%),
    rgba(10,10,10,0.82);
  color: white;
}

.hero-dark h1, .hero-dark h2, .hero-dark h3 { color: white; }

/* Hero glow accent line at top */
.hero-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,87,255,0.4), transparent);
}

/* Grid background utility */
.bg-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.bg-grid-light {
  background-image:
    linear-gradient(rgba(0,0,0,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Axis ring v8 — filled donut segments
 * Three concentric rings of solid wedge shapes. Real visual mass.
 * Foundation (8), Infrastructure (7), Growth (12) = 27 total.
 */
.axis-ring {
  width: 100%;
  max-width: 500px;
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  position: relative;
}
.axis-ring svg { width: 100%; height: 100%; overflow: visible; }

/* Filled donut segments — closed paths, fill-based */
.axis-ring .seg {
  fill: rgba(255,255,255,0.06);
  stroke: rgba(255,255,255,0.1);
  stroke-width: 0.8;
  transition: fill 0.35s ease-out, filter 0.35s ease-out, stroke 0.35s ease-out;
}
.axis-ring .seg.lit {
  fill: #0057FF;
  stroke: #4499FF;
  stroke-width: 1;
  filter: drop-shadow(0 0 4px rgba(0,87,255,0.7));
}
.axis-ring .seg.phase-1.lit { fill: #0062FF; }
.axis-ring .seg.phase-2.lit { fill: #0057FF; }
.axis-ring .seg.phase-3.lit { fill: #004AE6; }

/* Breathing pulse — staggered per phase */
@keyframes seg-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}
.axis-ring .seg.breathing { animation: seg-breathe 3s ease-in-out infinite; }
.axis-ring .seg.phase-2.breathing { animation-delay: 1s; }
.axis-ring .seg.phase-3.breathing { animation-delay: 2s; }

/* Pumping mode — intense breathing after hitting 270 */
@keyframes seg-pump {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(0,87,255,0.8)); }
  50% { opacity: 0.35; filter: drop-shadow(0 0 12px rgba(0,87,255,1)); }
}
@keyframes ring-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.012); }
}
.axis-ring.pumping .seg.breathing {
  animation: seg-pump 1.6s ease-in-out infinite;
}
.axis-ring.pumping .seg.phase-2.breathing {
  animation-delay: 0.35s;
}
.axis-ring.pumping .seg.phase-3.breathing {
  animation-delay: 0.7s;
}
.axis-ring.pumping svg {
  animation: ring-pulse 1.6s ease-in-out infinite;
}

/* Scanner sweep line */
.axis-ring .sweep-line {
  stroke: var(--electric);
  stroke-width: 1.5;
  opacity: 0.7;
  transition: opacity 0.8s ease-out;
}
.axis-ring .sweep-glow {
  stroke: var(--electric);
  stroke-width: 6;
  opacity: 0.15;
  transition: opacity 0.8s ease-out;
}

/* Orbit dot */
.axis-ring .orbit-dot {
  fill: white;
  filter: drop-shadow(0 0 6px rgba(0,87,255,0.9)) drop-shadow(0 0 14px rgba(0,87,255,0.4));
}
.axis-ring .orbit-trail {
  fill: none;
  stroke: url(#trailGrad);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Inner dashed ring */
.axis-ring .inner-dash {
  fill: none;
  stroke: rgba(255,255,255,0.04);
  stroke-width: 0.8;
  stroke-dasharray: 3 10;
}

/* Status text */
.axis-ring .status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  font-weight: 500;
  fill: rgba(0,87,255,0.5);
  text-anchor: middle;
  letter-spacing: 0.2em;
}

/* Score text */
.axis-ring .score-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  fill: white;
  text-anchor: middle;
  dominant-baseline: central;
}
.axis-ring .score-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  fill: rgba(255,255,255,0.35);
  text-anchor: middle;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Animations */
@keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes score-glow {
  0%, 100% { filter: drop-shadow(0 0 0px rgba(0,87,255,0)); }
  50% { filter: drop-shadow(0 0 16px rgba(0,87,255,0.2)); }
}
@keyframes status-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.axis-ring .orbit-ccw { animation: spin-reverse 90s linear infinite; transform-origin: center; }
.axis-ring .score-group { animation: score-glow 4s ease-in-out infinite; }
.axis-ring .status-blink { animation: status-blink 1s steps(1) infinite; }

/* Section framing */
section { position: relative; }
.container-main { max-width: 1200px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }

.section-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Cards */
.card {
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card:hover {
  border-color: var(--electric);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,87,255,0.08), 0 2px 8px rgba(0,0,0,0.06);
}

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 2rem;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card-dark h3, .card-dark h4 { color: white; }

/* 27 grid */
.section-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .section-grid { grid-template-columns: 1fr; }
}

.section-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.section-item:hover {
  border-color: var(--electric);
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0,87,255,0.08);
}
.section-item .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--electric);
  font-weight: 600;
  min-width: 2rem;
}
.section-item .name {
  font-weight: 500;
  color: var(--black);
  font-size: 0.95rem;
}

/* Phase header */
.phase-header {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin: 2rem 0 1rem;
  font-weight: 500;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--grey-200);
}

/* Tables */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 0.75rem;
  overflow: hidden;
}
.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.93rem;
}
.pricing-table th {
  background: var(--grey-100);
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--black);
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table td.center,
.pricing-table th.center { text-align: center; }
.pricing-table td.check { color: var(--electric); font-weight: 700; }
.pricing-table td.miss { color: var(--grey-400); }

/* Tier cards */
.tier-card {
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 0.75rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.tier-card.featured {
  border: 2px solid var(--electric);
  background: linear-gradient(180deg, white 0%, rgba(0,87,255,0.03) 100%);
  position: relative;
  box-shadow: 0 4px 16px rgba(0,87,255,0.1);
}
.tier-card.featured:hover {
  box-shadow: 0 8px 32px rgba(0,87,255,0.18);
}
.tier-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  background: var(--electric);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}
.tier-card .tier-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--black);
}
.tier-card .tier-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin: 1rem 0 0.5rem;
}
.tier-card .tier-price-note {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin-bottom: 1.5rem;
}
.tier-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex-grow: 1;
}
.tier-card ul li {
  padding: 0.55rem 0;
  font-size: 0.93rem;
  color: var(--grey-800);
  position: relative;
  padding-left: 1.5rem;
  border-bottom: 1px solid var(--grey-200);
}
.tier-card ul li:last-child { border-bottom: none; }
.tier-card ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--electric);
  font-weight: 700;
}
.tier-card ul li.miss { color: var(--grey-400); }
.tier-card ul li.miss::before { content: '–'; color: var(--grey-400); }

/* Founding badge */
.founding-badge {
  background: rgba(0,87,255,0.06);
  border: 1px solid rgba(0,87,255,0.15);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  letter-spacing: 0.1em;
  text-align: center;
}

/* FAQ accordion */
.faq-item {
  border-bottom: 1px solid var(--grey-200);
}
.faq-item summary {
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--black);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--electric);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  padding: 0 0 1.5rem;
  color: var(--grey-800);
  line-height: 1.6;
}

/* Navigation */
nav.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--grey-200);
}
nav.top-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
nav.top-nav.dark-nav {
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 24px rgba(0,87,255,0.06);
}
nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
nav .nav-logo-ring {
  flex-shrink: 0;
  border-radius: 6px;
}
nav .nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--black);
}
nav .nav-logo-accent {
  color: var(--electric);
}
nav.dark-nav .nav-logo-text { color: white; }
nav.dark-nav .nav-logo-accent { color: var(--electric); }
nav .nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 768px) {
  nav .nav-links { display: none !important; }
  nav .nav-cta:not(.nav-mobile .nav-cta) { display: none !important; }
}
nav .nav-links a {
  font-size: 0.9rem;
  color: var(--grey-600);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}
nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--electric);
  transition: width 0.2s ease;
  border-radius: 1px;
}
nav .nav-links a:hover { color: var(--black); }
nav .nav-links a:hover::after { width: 100%; }
nav.dark-nav .nav-links a { color: rgba(255,255,255,0.6); }
nav.dark-nav .nav-links a:hover { color: white; }
nav.dark-nav .nav-links a:hover::after { width: 100%; }
nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
@media (max-width: 768px) {
  nav .nav-actions { display: none !important; }
}
nav .nav-login {
  font-size: 0.85rem;
  color: var(--grey-600);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}
nav .nav-login:hover {
  color: var(--black);
  border-color: rgba(0,0,0,0.25);
}
nav.dark-nav .nav-login {
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.15);
}
nav.dark-nav .nav-login:hover {
  color: white;
  border-color: rgba(255,255,255,0.35);
}
nav .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--electric);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
nav .nav-cta:hover {
  background: var(--electric-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,87,255,0.25);
}
nav .nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--grey-200);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--black);
  transition: all 0.2s ease;
}
nav .nav-hamburger:hover {
  border-color: var(--electric);
  color: var(--electric);
}
nav.dark-nav .nav-hamburger {
  border-color: rgba(255,255,255,0.15);
  color: white;
}
nav.dark-nav .nav-hamburger:hover {
  border-color: var(--electric);
  color: var(--electric);
}
nav .nav-hamburger svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 768px) {
  nav .nav-hamburger { display: inline-flex; }
}
nav .nav-mobile {
  display: none;
  border-top: 1px solid var(--grey-200);
  padding: 1rem 1.5rem 1.5rem;
}
nav .nav-mobile.active { display: flex; flex-direction: column; gap: 0.25rem; }
nav.dark-nav .nav-mobile { border-top-color: rgba(255,255,255,0.08); }
nav .nav-mobile a {
  display: block;
  padding: 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--grey-600);
  transition: color 0.15s ease;
}
nav .nav-mobile a:hover { color: var(--electric); }
nav.dark-nav .nav-mobile a { color: rgba(255,255,255,0.6); }
nav.dark-nav .nav-mobile a:hover { color: white; }
nav .nav-mobile .nav-cta {
  margin-top: 0.75rem;
  text-align: center;
  justify-content: center;
}

/* Footer */
footer.site-footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
  margin-top: 0;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) {
  footer.site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
footer h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  font-weight: 600;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { padding: 0.35rem 0; }
footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.93rem;
  transition: color 0.15s ease;
}
footer a:hover { color: var(--electric); }
footer .footer-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
footer .footer-tagline {
  font-size: 0.93rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 24rem;
}
footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* Waveform (Axis) */
.waveform {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  height: 24px;
}
.waveform span {
  display: block;
  width: 3px;
  background: var(--electric);
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}
.waveform span:nth-child(1) { animation-delay: 0s; height: 60%; }
.waveform span:nth-child(2) { animation-delay: 0.1s; height: 100%; }
.waveform span:nth-child(3) { animation-delay: 0.2s; height: 40%; }
.waveform span:nth-child(4) { animation-delay: 0.3s; height: 80%; }
.waveform span:nth-child(5) { animation-delay: 0.4s; height: 50%; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* Assessment styles */
.assess-card {
  background: white;
  border: 1px solid var(--grey-200);
  border-radius: 1rem;
  padding: 3rem 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.assess-progress {
  height: 4px;
  background: var(--grey-200);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.assess-progress-fill {
  height: 100%;
  background: var(--electric);
  transition: width 0.3s ease;
  width: 0;
}
.assess-phase {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--electric);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.assess-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: var(--grey-600);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.assess-question {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.assess-anchor {
  font-size: 0.9rem;
  color: var(--grey-600);
  background: var(--grey-100);
  padding: 0.85rem 1rem;
  border-radius: 0.4rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  border-left: 3px solid var(--electric);
}
.assess-scale {
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.assess-scale button {
  flex: 1 1 0;
  min-width: 48px;
  height: 52px;
  border: 2px solid var(--grey-200);
  background: white;
  border-radius: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-800);
  cursor: pointer;
  transition: all 0.15s ease;
}
.assess-scale button:hover,
.assess-scale button.selected {
  border-color: var(--electric);
  background: var(--electric);
  color: white;
  transform: translateY(-2px);
}
.assess-scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-top: -1.4rem;
  margin-bottom: 2rem;
}

.assess-result-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 5rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.assess-result-grade {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--electric);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  border-radius: 0.3rem;
  font-weight: 600;
}

/* Spacing helpers */
.sec-pad { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.sec-pad-sm { padding-top: 3rem; padding-bottom: 3rem; }

@media (max-width: 768px) {
  .sec-pad { padding-top: 3rem; padding-bottom: 3rem; }
  .sec-pad-sm { padding-top: 2rem; padding-bottom: 2rem; }
  .assess-card { padding: 2rem 1.25rem; }
  .assess-question { font-size: 1.25rem; }
  .assess-scale button { height: 44px; font-size: 0.9rem; }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Body spacing */
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === 3D SCROLL CANVAS === */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Ensure all page content sits above the canvas */
nav, section, footer, .social-proof-strip {
  position: relative;
  z-index: 1;
}

/* Light sections get opaque white bg (canvas fades itself on these) */
section.sec-pad:not(.hero-dark):not(.dark-section):not(.bg-grid-light) {
  background: var(--off-white);
}

/* Methodology grid section — slight transparency for 3D glow bleed */
section.bg-grid-light {
  background-color: rgba(250,250,250,0.92);
}

/* Social proof strip — opaque */
.social-proof-strip {
  background: var(--off-white);
}

/* Hide canvas when CSS fallback is active */
body[data-capability="css-only"] #webgl-canvas {
  display: none;
}

/* === CSS FALLBACK LAYER === */
.css-fallback-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.fallback-shape {
  position: absolute;
  border: 1px solid rgba(0, 87, 255, 0.12);
  border-radius: 50%;
  animation: fallbackFloat 8s ease-in-out infinite;
}
.fallback-shape:nth-child(2) { animation-duration: 10s; }
.fallback-shape:nth-child(3) { animation-duration: 7s; }
.fallback-shape:nth-child(4) { animation-duration: 9s; }

@keyframes fallbackFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
  50% { transform: translateY(-25px) rotate(180deg); opacity: 0.5; }
}

/* Show CSS fallback only when needed */
body[data-capability="css-only"] .css-fallback-layer {
  display: block !important;
}

.prose-body p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--grey-800);
}
.prose-body strong { color: var(--black); font-weight: 600; }
.prose-body a { color: var(--electric); text-decoration: underline; text-underline-offset: 3px; }

/* Legal pages */
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grey-200);
}
.legal-content h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.legal-content p, .legal-content li {
  font-size: 0.98rem;
  color: var(--grey-800);
  line-height: 1.7;
}
.legal-content ul { margin: 1rem 0 1.5rem 1.5rem; }
.legal-content ul li { padding: 0.25rem 0; list-style: disc; }

/* Section tag glow on dark */
.dark-section .section-tag {
  text-shadow: 0 0 20px rgba(0,87,255,0.3);
}

/* Social proof strip polish */
.social-proof-strip {
  background: white;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  padding: 2rem 0;
  position: relative;
}

/* FAQ item hover */
.faq-item summary:hover { color: var(--electric); }
.faq-item summary:hover::after { color: var(--electric); }

/* Subtle gradient fade between sections */
.section-fade-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, var(--off-white), transparent);
  pointer-events: none;
}

/* Page header for inner pages */
.page-header {
  background: var(--black);
  color: white;
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,87,255,0.4), transparent);
}
.page-header h1 { color: white; }
.page-header .section-tag { margin-bottom: 0.75rem; }

/* Animate-on-scroll (subtle) */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Electric underline utility */
.electric-underline {
  background-image: linear-gradient(var(--electric), var(--electric));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.3s ease;
  padding-bottom: 2px;
}
.electric-underline:hover {
  background-size: 100% 2px;
}

/* Mono number highlight */
.mono-highlight {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--black);
}

/* Better text color on light sections */
.text-electric { color: var(--electric) !important; }
.text-charcoal { color: var(--charcoal) !important; }
.text-grey-800 { color: var(--grey-800) !important; }

/* Mobile nav menu */
@media (max-width: 768px) {
  .tier-card { margin-bottom: 0; }
  .section-grid { gap: 0.5rem; }
  .section-item { padding: 1rem 1.25rem; }
  .section-item .name { font-size: 0.88rem; }
  .phase-header { margin-top: 1.5rem; }
}

/* ================================================
   DARK PAGE (page-dark) — Full 3D immersive theme
   ================================================ */

/* Base body overrides for dark page */
body.page-dark {
  background: var(--black);
  color: rgba(255,255,255,0.85);
}
body.page-dark h1,
body.page-dark h2,
body.page-dark h3,
body.page-dark h4,
body.page-dark h5,
body.page-dark h6 {
  color: white;
}

/* Sections on dark page: semi-transparent dark so 3D bleeds through but text stays readable */
body.page-dark section {
  background: rgba(10,10,10,0.82);
}
body.page-dark .hero-dark {
  background: rgba(10,10,10,0.35);
}

/* Section tags — bigger and glowier on dark page */
body.page-dark .section-tag {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-shadow: 0 0 20px rgba(0,87,255,0.4);
}

/* Hero tag — even bigger, with waveform */
.hero-tag {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 1.25rem;
  font-weight: 500;
  text-shadow: 0 0 24px rgba(0,87,255,0.5);
}

/* Self-audit badge — compact link below hero CTAs */
.self-audit-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease;
  text-decoration: none;
}
.self-audit-badge:hover {
  color: var(--electric);
  border-color: rgba(0,87,255,0.3);
  background: rgba(0,87,255,0.06);
}

/* Waveform size variants */
.waveform-sm {
  height: 16px;
  gap: 2px;
}
.waveform-sm span {
  width: 2px;
}
.waveform-lg {
  height: 36px;
  gap: 4px;
}
.waveform-lg span {
  width: 4px;
  border-radius: 3px;
}

/* Dark strip — thin social proof / stat sections */
body.page-dark section.dark-strip {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Dark border-y — section with subtle top/bottom borders */
.dark-border-y {
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* === Glass Cards === */
.glass-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 2rem;
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}
.glass-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(0,87,255,0.3);
  box-shadow: 0 0 30px rgba(0,87,255,0.08), 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}
.glass-card h3,
.glass-card h4 {
  color: white;
}
.glass-card p {
  color: rgba(255,255,255,0.65);
}

.glass-card-sm {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.glass-card-sm:hover {
  background: rgba(0,87,255,0.08);
  border-color: rgba(0,87,255,0.25);
}

/* === Glow Text === */
.glow-text {
  color: var(--electric);
  text-shadow:
    0 0 10px rgba(0,87,255,0.6),
    0 0 30px rgba(0,87,255,0.3),
    0 0 60px rgba(0,87,255,0.15);
}

/* === Dark Buttons === */
.btn-secondary-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: white;
  font-weight: 600;
  padding: 0.95rem 1.6rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255,255,255,0.25);
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
}
.btn-secondary-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,87,255,0.15);
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.65);
  font-weight: 600;
  transition: color 0.15s ease;
  text-decoration: none;
}
.btn-ghost-dark:hover {
  color: var(--electric);
}

/* === Mono Highlight Dark === */
.mono-highlight-dark {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--electric);
  text-shadow: 0 0 12px rgba(0,87,255,0.4);
}

/* === Prose Dark === */
.prose-dark {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}
.prose-dark strong {
  color: white;
  font-weight: 600;
}
.prose-dark a {
  color: var(--electric);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === Phase Header Dark === */
.phase-header-dark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
  font-weight: 600;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.phase-header-dark.phase-1 {
  color: #4D9FFF;
  border-bottom-color: rgba(77,159,255,0.2);
}
.phase-header-dark.phase-2 {
  color: var(--electric);
  border-bottom-color: rgba(0,87,255,0.2);
}
.phase-header-dark.phase-3 {
  color: #003399;
  border-bottom-color: rgba(0,51,153,0.3);
}
.phase-header-dark:first-of-type {
  margin-top: 0;
}

/* === Section Grid Dark (27 items) === */
.section-grid-dark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 768px) {
  .section-grid-dark { grid-template-columns: 1fr; }
}

.section-item-dark {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.5rem;
  transition: all 0.25s ease;
}
.section-item-dark:hover {
  background: rgba(0,87,255,0.06);
  border-color: rgba(0,87,255,0.25);
  transform: translateX(3px);
  box-shadow: 0 0 20px rgba(0,87,255,0.06);
}
.section-item-dark .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--electric);
  font-weight: 600;
  min-width: 2rem;
  text-shadow: 0 0 8px rgba(0,87,255,0.3);
}
.section-item-dark .name {
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
}

/* === FAQ Dark === */
.faq-item-dark {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.faq-item-dark summary {
  padding: 1.5rem 0;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.15s ease;
}
.faq-item-dark summary::-webkit-details-marker { display: none; }
.faq-item-dark summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--electric);
  transition: transform 0.2s ease;
}
.faq-item-dark[open] summary::after { content: '−'; }
.faq-item-dark summary:hover { color: var(--electric); }

.faq-body-dark {
  padding: 0 0 1.5rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* === Tier Cards Dark === */
.tier-dark {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier-dark .tier-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}
.tier-dark .tier-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin: 1rem 0 0.5rem;
}
.tier-dark .tier-price-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.tier-dark ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  flex-grow: 1;
}
.tier-dark ul li {
  padding: 0.55rem 0;
  font-size: 0.93rem;
  color: rgba(255,255,255,0.7);
  position: relative;
  padding-left: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tier-dark ul li:last-child { border-bottom: none; }
.tier-dark ul li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--electric);
  font-weight: 700;
}

/* Featured tier — blue glow border */
.tier-featured {
  border-color: rgba(0,87,255,0.5) !important;
  background: rgba(0,87,255,0.06) !important;
  position: relative;
  box-shadow: 0 0 40px rgba(0,87,255,0.1), inset 0 1px 0 rgba(0,87,255,0.2);
}
.tier-featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  background: var(--electric);
  color: white;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  box-shadow: 0 0 20px rgba(0,87,255,0.4);
}

/* === Dark page overrides for existing components === */
body.page-dark .social-proof-strip {
  background: rgba(10,10,10,0.7);
  border-top-color: rgba(255,255,255,0.06);
  border-bottom-color: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.page-dark footer.site-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
}

body.page-dark .section-tag {
  text-shadow: 0 0 20px rgba(0,87,255,0.3);
}

body.page-dark .founding-badge {
  background: rgba(0,87,255,0.08);
  border-color: rgba(0,87,255,0.2);
  color: rgba(255,255,255,0.7);
}

/* Dark page nav overrides — force dark nav */
body.page-dark nav.top-nav {
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 1px 24px rgba(0,87,255,0.06);
}
body.page-dark nav .nav-logo-text { color: white; }
body.page-dark nav .nav-links a { color: rgba(255,255,255,0.6); }
body.page-dark nav .nav-links a:hover { color: white; }
body.page-dark nav .nav-login {
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.15);
}
body.page-dark nav .nav-login:hover {
  color: white;
  border-color: rgba(255,255,255,0.35);
}
body.page-dark nav .nav-hamburger {
  border-color: rgba(255,255,255,0.15);
  color: white;
}
body.page-dark nav .nav-mobile {
  border-top-color: rgba(255,255,255,0.08);
  background: rgba(10,10,10,0.96);
}
body.page-dark nav .nav-mobile a { color: rgba(255,255,255,0.6); }
body.page-dark nav .nav-mobile a:hover { color: white; }

/* === Mobile adjustments for dark theme === */
@media (max-width: 768px) {
  .section-grid-dark { gap: 0.5rem; }
  .section-item-dark { padding: 0.85rem 1rem; }
  .section-item-dark .name { font-size: 0.88rem; }
  .phase-header-dark { margin-top: 1.5rem; }
  .glass-card { padding: 1.5rem; }
  .tier-dark .tier-price { font-size: 1.75rem; }
}
