/* =========================
   ATROSA — Apple-inspired
   Clean. Spacious. Precise.
   ========================= */

:root {
  --black: #000000;
  --white: #f5f5f7;
  --gray-1: #86868b;
  --gray-2: #6e6e73;
  --gray-3: #1d1d1f;
  --gray-4: #0a0a0a;
  --accent: #2dd4bf;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--black); }

a { color: inherit; text-decoration: none; }

/* =========================
   TYPOGRAPHY
   ========================= */

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

em {
  font-style: normal;
  color: var(--accent);
}

.overline {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-1);
  margin-bottom: 20px;
}

.body-large {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: var(--gray-1);
  max-width: 520px;
  margin: 24px auto 0;
}

.narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

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

.btn-primary {
  display: inline-block;
  padding: 16px 36px;
  background: var(--white);
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 980px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent);
  transform: scale(1.03);
}

.btn-secondary {
  display: inline-block;
  padding: 16px 36px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 980px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-secondary:hover { opacity: 0.7; }

.btn-large { padding: 20px 48px; font-size: 1.05rem; }

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

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 2.5px;
  color: var(--white);
  transition: opacity 0.3s;
}
.logo:hover { opacity: 0.7; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.8rem;
  color: var(--gray-1);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  color: var(--white) !important;
  background: rgba(255,255,255,0.1);
  padding: 7px 18px;
  border-radius: 980px;
  font-weight: 500;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.18) !important; }

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}

.hero-content { max-width: 780px; }

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero h1 {
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
  color: var(--gray-1);
  max-width: 540px;
  margin: 28px auto 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

/* =========================
   TERMINAL
   ========================= */

.terminal-section {
  padding: 0 32px 140px;
}

.terminal-wrapper {
  max-width: 700px;
  margin: 0 auto;
}

.terminal {
  background: var(--gray-4);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.8;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.08),
    0 40px 100px -20px rgba(0,0,0,0.7);
}

.terminal-chrome {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
}

.terminal-chrome .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.terminal-body {
  padding: 24px 24px 28px;
}

.t-line { white-space: pre; }
.t-dim { color: var(--gray-2); }
.t-accent { color: var(--accent); }
.t-white { color: var(--white); font-weight: 500; }
.t-score {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* =========================
   STATS
   ========================= */

.stats {
  padding: 100px 32px;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
}

.stat {
  padding: 56px 40px;
  text-align: center;
  background: var(--black);
}

.stat-number {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: var(--font);
}
.stat-number span {
  font-size: 0.45em;
  color: var(--gray-1);
  font-weight: 500;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--gray-1);
  margin-top: 12px;
  line-height: 1.5;
}

/* =========================
   SECTIONS
   ========================= */

.section-dark, .section-light {
  padding: 140px 32px;
}

.section-dark { background: var(--black); }
.section-light { background: var(--gray-4); }

/* =========================
   PIPELINE (How It Works)
   ========================= */

.pipeline {
  max-width: 720px;
  margin: 72px auto 0;
  padding: 0 32px;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 36px;
  padding-bottom: 8px;
}

.pipeline-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pipeline-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.5s ease;
}

.pipeline-step:hover .pipeline-icon {
  background: rgba(45,212,191,0.08);
  transform: scale(1.08);
}

.pipeline-icon.pulse {
  animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); }
  50% { box-shadow: 0 0 0 8px rgba(45,212,191,0.06); }
}

.pipeline-connector {
  width: 1px;
  flex: 1;
  min-height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  margin: 8px 0;
}

.pipeline-content {
  padding-bottom: 48px;
  position: relative;
}

.pipeline-step:last-child .pipeline-content { padding-bottom: 0; }

.pipeline-num {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gray-2);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pipeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.pipeline-step:hover .pipeline-content h3 { color: var(--accent); }

.pipeline-content p {
  font-size: 0.92rem;
  color: var(--gray-1);
  line-height: 1.7;
  max-width: 480px;
}

.pipeline-detail {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pipeline-detail span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 980px;
  background: rgba(45,212,191,0.06);
  letter-spacing: 0.02em;
}

/* =========================
   CODE COMPARE
   ========================= */

.code-compare {
  max-width: 780px;
  margin: 56px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.code-panel {
  border-radius: 14px;
  overflow: hidden;
  background: var(--gray-4);
}

.code-label {
  padding: 14px 24px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.code-label.bad { color: var(--gray-2); background: rgba(255,255,255,0.03); }
.code-label.good { color: var(--accent); background: rgba(45,212,191,0.05); }

.code-panel pre {
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.9;
  padding: 20px 24px 28px;
  overflow-x: auto;
}

.c-dim { color: var(--gray-2); }
.c-kw { color: #c084fc; }
.c-num { color: #fb923c; }
.c-green { color: var(--accent); }

/* =========================
   RESULTS
   ========================= */

.results-grid {
  max-width: 900px;
  margin: 64px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.result-card {
  padding: 40px 36px;
  background: var(--black);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.result-card:hover { transform: translateY(-4px); }

.result-dataset {
  font-size: 0.85rem;
  color: var(--gray-1);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 980px;
}
.tag.real { background: rgba(45,212,191,0.12); color: var(--accent); }

.result-score {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.result-score span {
  font-size: 0.4em;
  color: var(--gray-2);
  font-weight: 500;
}

.result-detail {
  font-size: 0.88rem;
  color: var(--gray-1);
  margin-top: 8px;
  line-height: 1.5;
}

/* =========================
   JURISDICTIONS
   ========================= */

.jurisdictions-row {
  max-width: 780px;
  margin: 56px auto 0;
  padding: 0 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.jur {
  padding: 28px 24px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  min-width: 130px;
  flex: 1;
  transition: transform 0.4s ease;
}
.jur:hover { transform: translateY(-3px); }
.jur-more { border: 1px dashed rgba(255,255,255,0.1); background: transparent; }

.jur-code {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.jur-name { font-size: 0.82rem; font-weight: 600; }
.jur-detail { font-size: 0.72rem; color: var(--gray-2); margin-top: 4px; }

.compliance-note {
  font-size: 0.9rem;
  color: var(--gray-2);
  line-height: 1.7;
  padding: 24px 28px;
  background: rgba(45,212,191,0.04);
  border-radius: 14px;
  border: 1px solid rgba(45,212,191,0.1);
}

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

.cta-section {
  padding: 180px 32px;
  text-align: center;
}

.cta-section h2 { margin-bottom: 0; }

.cta-section .body-large {
  margin: 24px auto 48px;
  text-align: center;
}

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

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

.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 32px 40px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 64px;
}

.footer-left p { color: var(--gray-2); font-size: 0.82rem; margin-top: 12px; line-height: 1.6; }

.footer-links { display: flex; gap: 64px; }
.footer-links h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-2);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-links a {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-2);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  max-width: 900px;
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.footer-bottom p { font-size: 0.75rem; color: var(--gray-2); }

/* =========================
   SCROLL REVEAL
   ========================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger children */
.stats-grid .stat:nth-child(2) { transition-delay: 0.1s; }
.stats-grid .stat:nth-child(3) { transition-delay: 0.2s; }

.pipeline .pipeline-step:nth-child(2) { transition-delay: 0.12s; }
.pipeline .pipeline-step:nth-child(3) { transition-delay: 0.24s; }
.pipeline .pipeline-step:nth-child(4) { transition-delay: 0.36s; }
.pipeline .pipeline-step:nth-child(5) { transition-delay: 0.48s; }

.results-grid .result-card:nth-child(2) { transition-delay: 0.1s; }
.results-grid .result-card:nth-child(3) { transition-delay: 0.2s; }
.results-grid .result-card:nth-child(4) { transition-delay: 0.3s; }

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

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

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 900px) {
  .code-compare { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; }
  .nav-links { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 24px 60px; }
  .section-dark, .section-light { padding: 100px 24px; }
  .cta-section { padding: 120px 24px; }
  .jurisdictions-row { flex-direction: column; }
  .jur { min-width: 100%; }
  .footer-links { flex-direction: column; gap: 28px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .sim-grid { grid-template-columns: 1fr; }
  .sim-controls { flex-direction: column; gap: 12px; }
  .sim-metrics { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { order: -1; }
}

/* =========================
   PRICING
   ========================= */

.pricing-grid {
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
  overflow: hidden;
}

.pricing-card {
  background: var(--gray-4);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  background: var(--black);
  box-shadow: 0 0 0 1px rgba(45,212,191,0.2);
}

.pricing-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(45,212,191,0.1);
  padding: 4px 10px;
  border-radius: 980px;
}

.pricing-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-1);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-period {
  font-size: 0.82rem;
  color: var(--gray-2);
  margin-top: 6px;
  min-height: 1.2em;
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--gray-1);
  line-height: 1.5;
  margin-top: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.pricing-features {
  list-style: none;
  margin-top: 20px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.82rem;
  color: var(--gray-1);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.pricing-card.featured .pricing-features li::before {
  background: var(--accent);
  opacity: 0.5;
}

.pricing-cta {
  display: block;
  text-align: center;
  margin-top: 28px;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s;
}

.pricing-cta:hover {
  background: rgba(255,255,255,0.12);
}

.pricing-cta-primary {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}

.pricing-cta-primary:hover {
  opacity: 0.9;
  background: var(--accent);
}

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

/* =========================
   HUNT SIMULATION
   ========================= */

.sim-section {
  padding: 0 32px 140px;
}

.sim-section .narrow {
  margin-bottom: 48px;
}

.sim-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: var(--gray-4);
  border-radius: 16px;
  padding: 28px;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.08),
    0 40px 100px -20px rgba(0,0,0,0.7);
}

.sim-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.sim-control-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-control-right {
  display: flex;
  gap: 10px;
}

.sim-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sim-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}
.sim-select:focus { border-color: var(--accent); }
.sim-select option { background: #1a1a1a; }

.sim-btn-run {
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 9px 24px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.sim-btn-run:hover { transform: scale(1.03); }
.sim-btn-run:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.sim-btn-reset {
  background: rgba(255,255,255,0.08);
  color: var(--gray-1);
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.sim-btn-reset:hover { background: rgba(255,255,255,0.14); }

.sim-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.sim-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-1);
  margin-bottom: 14px;
}

.sim-heading-dim {
  color: var(--gray-2);
  font-family: var(--mono);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.sim-source-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sim-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-2);
  transition: all 0.3s ease;
}

.sim-source.active {
  color: var(--accent);
  border-color: rgba(45,212,191,0.25);
  background: rgba(45,212,191,0.06);
}

.sim-source-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.3s;
}

.sim-source.active .sim-source-dot {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(45,212,191,0.5);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.sim-code-wrap {
  background: #0d1117;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 20px;
  min-height: 200px;
  overflow-x: auto;
}

.sim-code {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--accent);
  white-space: pre;
}

.sim-code.typing::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.6s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.sim-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: all 0.3s;
}

.sim-metric-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-2);
  margin-bottom: 6px;
}

.sim-metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sim-metric.warn .sim-metric-value { color: #f59e0b; }
.sim-metric.good .sim-metric-value { color: var(--accent); }

.sim-metric.success {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.04);
}
.sim-metric.success .sim-metric-label { color: rgba(0,0,0,0.5); }
.sim-metric.success .sim-metric-value { color: var(--black); }

.sim-banner {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(45,212,191,0.08);
  border-left: 3px solid var(--accent);
  animation: fadeUp 0.4s ease;
}

.sim-banner strong {
  color: var(--accent);
  font-size: 0.9rem;
}

.sim-banner p {
  color: var(--gray-1);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-top: 6px;
}

/* ============================================================
   WAITLIST FORM
   Lives in the .section-light early-access section.
   POSTs to /api/waitlist (Cloudflare Pages Function + D1).
   ============================================================ */

.waitlist-form {
  max-width: 560px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.waitlist-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .waitlist-row {
    grid-template-columns: 1fr;
  }
}

.waitlist-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.waitlist-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.75);
  letter-spacing: 0.01em;
}

.waitlist-optional {
  color: rgba(15, 23, 42, 0.45);
  font-weight: 400;
}

.waitlist-form input[type="email"],
.waitlist-form input[type="text"],
.waitlist-form select,
.waitlist-form textarea {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.4;
  color: rgba(15, 23, 42, 0.95);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.waitlist-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230f172a' stroke-opacity='0.5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.waitlist-form textarea {
  resize: vertical;
  min-height: 76px;
  font-family: 'Inter', sans-serif;
}

.waitlist-form input:focus,
.waitlist-form select:focus,
.waitlist-form textarea:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
  background: #ffffff;
}

.waitlist-form input::placeholder,
.waitlist-form textarea::placeholder {
  color: rgba(15, 23, 42, 0.4);
}

.waitlist-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-status {
  min-height: 1.5em;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.waitlist-status.error {
  color: #dc2626;
}

.waitlist-status.success {
  color: #0d9488;
  font-weight: 500;
}

.waitlist-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.waitlist-form button[type="submit"] {
  border: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.waitlist-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}

.waitlist-form.is-submitted .waitlist-field,
.waitlist-form.is-submitted .waitlist-row,
.waitlist-form.is-submitted .waitlist-actions,
.waitlist-form.is-submitted .waitlist-note {
  display: none;
}

.waitlist-form.is-submitted .waitlist-status {
  font-size: 18px;
  padding: 24px 0;
}

.waitlist-note {
  text-align: center;
  margin-top: 16px;
  opacity: 0.55;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.75);
}
