:root {
  --bg-deep: #06060b;
  --bg-surface: #0d0d14;
  --bg-card: #111119;
  --bg-elevated: #181822;
  --border: #1e1e2e;
  --border-active: #2a2a40;
  --text-primary: #eaeaf0;
  --text-secondary: #9090a8;
  --text-muted: #5a5a72;
  --accent-cyan: #00e5ff;
  --accent-purple: #a855f7;
  --accent-green: #22c55e;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Particle canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* Scanline overlay */
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.015) 3px,
    rgba(0, 0, 0, 0.015) 4px
  );
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(6, 6, 11, 0.8);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bg-deep);
  background: var(--accent-cyan);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--text-primary);
}

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

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

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

.nav-gh {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-nav {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--accent-cyan);
  border-radius: 4px;
  color: var(--accent-cyan) !important;
  font-weight: 600;
  font-size: 0.8rem !important;
  letter-spacing: 0.03em;
  transition: all 0.2s var(--ease-out);
}

.btn-nav:hover {
  background: var(--accent-cyan);
  color: var(--bg-deep) !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.25);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  padding: 7rem 4rem 4rem;
  gap: 4rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.35s forwards;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.5s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.65s forwards;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-out) 0.8s forwards;
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-item strong {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent-cyan);
}

.proof-item span {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.proof-divider {
  width: 1px;
  height: 2rem;
  background: var(--border);
}

/* ─── TERMINAL ─── */
.terminal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(0, 229, 255, 0.03);
  opacity: 0;
  animation: fadeScale 0.8s var(--ease-out) 0.4s forwards;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.t-dot.r { background: #ff5f57; }
.t-dot.y { background: #febc2e; }
.t-dot.g { background: #28c840; }

.t-title {
  margin-left: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 2;
  max-height: 420px;
  overflow: hidden;
}

.terminal-body p {
  opacity: 0;
  transform: translateY(4px);
  animation: termLine 0.3s var(--ease-out) forwards;
}

.terminal-body p:nth-child(1) { animation-delay: 0.8s; }
.terminal-body p:nth-child(2) { animation-delay: 1.1s; }
.terminal-body p:nth-child(3) { animation-delay: 1.4s; }
.terminal-body p:nth-child(4) { animation-delay: 1.7s; }
.terminal-body p:nth-child(5) { animation-delay: 2.0s; }
.terminal-body p:nth-child(6) { animation-delay: 2.3s; }
.terminal-body p:nth-child(7) { animation-delay: 2.6s; }
.terminal-body p:nth-child(8) { animation-delay: 2.9s; }
.terminal-body p:nth-child(9) { animation-delay: 3.2s; }
.terminal-body p:nth-child(10) { animation-delay: 3.5s; }
.terminal-body p:nth-child(11) { animation-delay: 3.8s; }
.terminal-body p:nth-child(12) { animation-delay: 4.1s; }
.terminal-body p:nth-child(13) { animation-delay: 4.4s; }

.t-green { color: var(--accent-green); }
.t-yellow { color: var(--accent-amber); }
.t-dim { color: var(--text-muted); }
.t-cursor {
  color: var(--accent-cyan);
  animation: blink 1s step-end infinite;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 5px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease-out);
}

.btn-primary {
  background: var(--accent-cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}
.btn-primary:hover {
  box-shadow: 0 0 36px rgba(0, 229, 255, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border-active);
  color: var(--text-primary);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-empire {
  border: 1px solid var(--accent-purple);
  color: var(--accent-purple);
  background: transparent;
}
.btn-empire:hover {
  background: var(--accent-purple);
  color: #fff;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.3);
}

.btn-full { width: 100%; }

/* ─── SECTIONS ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 4rem;
}

.section-dark {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 700px;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.section-sub {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ─── PIPELINE FLOW ─── */
.pipeline-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1100px;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.pipe-step {
  flex: 1;
  min-width: 200px;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.3s var(--ease-out);
}

.pipe-step:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.06);
}

.pipe-step[data-step]::before {
  content: attr(data-step);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.75rem;
}

.pipe-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.pipe-step h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.5rem; }
.pipe-step p { font-size: 0.85rem; color: var(--text-secondary); }

.pipe-arrow {
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding-top: 3rem;
}

/* ─── COMPARISON ─── */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin-bottom: 3rem;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: all 0.3s var(--ease-out);
}

.compare-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.compare-card.managed {
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.04);
}

.compare-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

.compare-badge.highlight {
  color: var(--accent-cyan);
  border-color: rgba(0, 229, 255, 0.3);
}

.compare-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.compare-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.compare-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.compare-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.compare-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.compare-list li {
  padding: 0.45rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-left: 1.5rem;
  position: relative;
}

.compare-list li::before {
  position: absolute;
  left: 0;
  font-size: 0.75rem;
}

.compare-list li.yes::before { content: '✓'; color: var(--accent-green); }
.compare-list li.no::before { content: '✗'; color: var(--accent-red); opacity: 0.6; }

.compare-verdict {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border-left: 2px solid var(--border-active);
}

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

/* ─── MATH GRID ─── */
.compare-math {
  max-width: 1000px;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.compare-math h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.math-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.math-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.math-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.math-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.math-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.math-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ─── PRICING ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  align-items: start;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.3s var(--ease-out);
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
}

.price-card.featured {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.08);
  transform: scale(1.03);
}

.price-card.featured:hover { transform: scale(1.03) translateY(-3px); }

.price-card.empire { border-color: rgba(168, 85, 247, 0.3); }
.price-card.empire:hover { box-shadow: 0 0 40px rgba(168, 85, 247, 0.1); }

.price-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-cyan);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.8rem;
  border-radius: 3px;
}

.price-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.price-tagline {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
}

.price-features {
  list-style: none;
  margin-bottom: 2rem;
}

.price-features li {
  padding: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-left: 1.2rem;
  position: relative;
}

.price-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

/* ─── MARQUEE ─── */
.section-features {
  padding: 2rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.marquee-track .sep { color: var(--accent-cyan); opacity: 0.4; }

/* ─── FOOTER ─── */
.footer {
  position: relative;
  z-index: 1;
  padding: 4rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-brand a { color: var(--accent-cyan); text-decoration: none; }

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

.footer-cols h4 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.footer-cols a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-cols a:hover { color: var(--accent-cyan); }

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-secondary); text-decoration: none; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes termLine {
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3rem;
    gap: 2.5rem;
  }

  .hero-title { font-size: 2.4rem; }

  .section { padding: 4rem 1.5rem; }

  .pipeline-flow { flex-direction: column; }
  .pipe-arrow { transform: rotate(90deg); padding: 0.5rem 0; justify-content: center; }

  .compare-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-3px); }

  .math-grid { grid-template-columns: repeat(2, 1fr); }

  .nav-links a:not(.btn-nav):not(.nav-gh) { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
