:root {
  --bg: #05070a;
  --bg-alt: #090c11;
  --surface: #10141b;
  --border: #1e2530;
  --text: #e7ecf2;
  --text-dim: #93a1b3;
  --text-faint: #5b6678;
  --accent: #2bff88;
  --accent-dim: #1fae5f;
  --accent-soft: rgba(43, 255, 136, 0.1);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

code {
  font-family: var(--mono);
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.15em 0.5em;
  border-radius: 5px;
  font-size: 0.95em;
}

#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 10, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark {
  color: var(--accent);
  text-shadow: 0 0 12px var(--accent-dim);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: var(--sans);
}

.btn-primary {
  background: var(--accent);
  color: #04140a;
  box-shadow: 0 0 24px rgba(43, 255, 136, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(43, 255, 136, 0.4);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* HERO */
.hero {
  padding: 120px 0 90px;
  text-align: center;
}

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 600;
  margin: 0 0 18px;
}

.eyebrow.center { text-align: center; }

.hero-inner h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 24px;
  background: linear-gradient(180deg, #ffffff 0%, #b9c3d1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--text-dim);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

/* TERMINAL */
.terminal {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #0c1017;
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  margin-left: 8px;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.terminal-body {
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: 0.88rem;
  overflow-x: auto;
}

.terminal-body pre { margin: 0; white-space: pre-wrap; }
.t-comment { color: var(--text-faint); }
.t-prompt { color: var(--accent); }
.t-dim { color: var(--text-dim); }
.t-ok { color: var(--accent); font-weight: 700; }
.t-blink { animation: blink 1s step-start infinite; }

@keyframes blink { 50% { opacity: 0; } }

/* SECTIONS */
.section {
  padding: 96px 0;
  position: relative;
}

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

.section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 700px;
  margin: 0 0 20px;
}

.section h2.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-lead {
  font-family: var(--mono);
  font-size: 2rem;
  margin: 12px 0;
}

.section-lead code {
  font-size: 1em;
  padding: 0.1em 0.4em;
}

.section-lead-sub {
  color: var(--text-dim);
  max-width: 620px;
  font-size: 1.05rem;
}

.section-note {
  color: var(--text-dim);
  margin-top: 28px;
}

/* CARDS / GRIDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.card-num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.7;
}

.card h3 {
  margin: 14px 0 10px;
  font-size: 1.15rem;
}

.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0;
}

.grid-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 40px 0 48px;
}

.grid-tags span {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  background: var(--surface);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.setup-card h3 { margin: 0 0 16px; font-size: 1.1rem; }

.setup-card pre {
  margin: 0 0 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}

.setup-card pre code {
  display: block;
  background: none;
  padding: 0;
  font-size: 0.82rem;
  white-space: pre;
}

.setup-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}

.setup-card p:last-child { margin-top: 0; }

/* FLOW DIAGRAM */
.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 48px 0 8px;
}

.flow-inline {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.flow-step {
  font-family: var(--mono);
  font-size: 0.95rem;
  padding: 14px 26px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
}

.flow-step span {
  display: block;
  color: var(--text-faint);
  font-size: 0.75rem;
  margin-top: 4px;
  font-family: var(--sans);
}

.flow-step.highlight {
  border-color: var(--accent-dim);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(43,255,136,0.12);
}

.flow-arrow {
  color: var(--text-faint);
  font-family: var(--mono);
}

.flow-inline .flow-arrow { align-self: center; }

/* QUOTES */
.quote-section { text-align: center; }

.quotes {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0 40px;
}

.quote {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--text-dim);
  margin: 0;
}

.quote-lead {
  color: var(--text);
  font-size: 1.1rem;
  margin: 40px 0 8px;
}

.quotes-future .quote.future {
  color: var(--accent);
}

/* TABLE */
.compare {
  margin-top: 40px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

th {
  font-family: var(--mono);
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: none; }

.row-highlight td { background: var(--accent-soft); font-weight: 600; }

.yes { color: var(--accent); }
.no { color: var(--text-faint); }
.partial { color: #e0b34d; }

/* TIER BADGES */
.tier-badge {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-dim);
}

/* PRICING */
.pricing-grid { align-items: stretch; }

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent-dim);
  box-shadow: 0 0 32px rgba(43,255,136,0.12);
}

.badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: #04140a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.price-card h3 { margin: 6px 0 0; font-size: 1.2rem; }

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-card li::before {
  content: "— ";
  color: var(--text-faint);
}

/* STATS */
.stat {
  text-align: center;
  padding: 24px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* TIMELINE */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.timeline-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
}

.timeline-q {
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.timeline-item ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* CTA */
.cta-section { text-align: center; }
.cta-inner { max-width: 640px; }
.cta-sub { color: var(--text-dim); margin-bottom: 36px; }

.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.waitlist-form input {
  flex: 1;
  min-width: 240px;
  max-width: 320px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent-dim);
}

.form-note {
  margin-top: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  min-height: 1.2em;
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-alt);
}

.footer-inner {
  text-align: center;
  color: var(--text-faint);
}

.footer-inner .brand { justify-content: center; margin-bottom: 12px; }
.footer-copy { font-size: 0.8rem; margin-top: 12px; }

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .grid-3, .grid-4, .timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .btn-sm { display: none; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2, .timeline { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 60px; }
  .section { padding: 64px 0; }
}
