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

:root {
  --bg:         #080910;
  --bg-2:       #0d0f17;
  --bg-3:       #12141f;
  --surface:    #181a27;
  --border:     rgba(255,255,255,0.07);
  --border-hi:  rgba(255,255,255,0.14);

  --text:       #f0f0f8;
  --text-muted: #6b7080;
  --text-dim:   #3d4154;

  --accent:     #7c5cfc;
  --accent-2:   #4af7c4;
  --accent-3:   #f75c8d;

  --radius:     12px;
  --radius-lg:  20px;
  --font:       'Inter', system-ui, sans-serif;
  --mono:       'JetBrains Mono', monospace;

  --max-w:      1120px;
}

html { scroll-behavior: smooth; }

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

/* ─── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 3px; }

/* ─── Typography helpers ─────────────────────────────────────────── */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Nav ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(8, 9, 16, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--accent));
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(124, 92, 252, 0);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 92, 252, 0.4);
}

.btn-lg { padding: 16px 36px; font-size: 17px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-ghost:hover { color: var(--text); }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 32px 80px;
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  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;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.glow-1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -200px; left: -100px;
  animation: float 8s ease-in-out infinite;
}

.glow-2 {
  width: 400px; height: 400px;
  background: var(--accent-2);
  top: 100px; right: -50px;
  opacity: 0.12;
  animation: float 12s ease-in-out infinite reverse;
}

.glow-3 {
  width: 300px; height: 300px;
  background: var(--accent-3);
  bottom: 0; left: 40%;
  opacity: 0.08;
  animation: float 10s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 247, 196, 0.08);
  border: 1px solid rgba(74, 247, 196, 0.2);
  color: var(--accent-2);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 32px;
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: normal;
  color: var(--text-muted);
  position: relative;
}

.hero-headline em::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0; right: 0;
  height: 3px;
  background: var(--text-muted);
  opacity: 0.4;
}

.hero-headline strong.zero {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-sub {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -10px;
  object-fit: cover;
}

.avatar:first-child { margin-left: 0; }

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

.proof-text strong { color: var(--text); }

/* ─── Terminal ───────────────────────────────────────────────────── */
.terminal-wrap {
  position: relative;
  z-index: 1;
}

.terminal {
  background: #0a0b10;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 80px rgba(124,92,252,0.08);
}

.terminal-bar {
  background: #111219;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-right: auto;
}

.terminal-body {
  padding: 24px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 2;
}

.t-line {
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

.t-prompt { color: var(--accent); }
.t-cmd { color: var(--text); }
.t-dim { color: var(--text-muted); }

.t-delay-1 { animation-delay: 0.8s; }
.t-delay-2 { animation-delay: 1.6s; }
.t-delay-3 { animation-delay: 2.3s; }
.t-delay-4 { animation-delay: 3.1s; }
.t-delay-5 { animation-delay: 3.8s; }

.t-success {
  color: var(--accent-2);
  font-weight: 700;
}

.t-cursor {
  color: var(--accent);
  animation: blink 1s steps(1) infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.typed {
  overflow: hidden;
  white-space: nowrap;
  display: inline-block;
  width: 0;
  animation: typeCmd 0.6s steps(14) 0.1s forwards;
}

@keyframes typeCmd {
  to { width: 14ch; }
}

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

/* ─── Logos ──────────────────────────────────────────────────────── */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.logos-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.logos-track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.logos-inner {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: scroll 20s linear infinite;
}

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

.logo-item {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dim);
  white-space: nowrap;
  transition: color 0.2s;
}

.logo-item:hover { color: var(--text-muted); }

/* ─── How ────────────────────────────────────────────────────────── */
.how {
  padding: 120px 0;
  background: var(--bg);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 64px 0;
}

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

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.step h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

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

.step-connector {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-top: 52px;
  flex-shrink: 0;
}

/* Compare */
.compare {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 80px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.compare-col {
  flex: 1;
  padding: 40px;
}

.compare-them { background: var(--bg-2); }
.compare-us   {
  background: linear-gradient(135deg, rgba(124,92,252,0.08), rgba(74,247,196,0.04));
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  background: var(--bg-3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  flex-shrink: 0;
}

.compare-header { margin-bottom: 24px; }

.compare-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}

.compare-label.them {
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.compare-label.us {
  background: rgba(124,92,252,0.2);
  color: var(--accent);
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.compare-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.compare-list li:last-child { border-bottom: none; }

.compare-list li.bad::before  {
  content: '✗';
  color: var(--accent-3);
  font-weight: 700;
  flex-shrink: 0;
}

.compare-list li.good::before {
  content: '✓';
  color: var(--accent-2);
  font-weight: 700;
  flex-shrink: 0;
}

.compare-list li.good {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-2);
}

.compare-stat {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.compare-them .compare-stat { color: var(--text-dim); text-decoration: line-through; }
.compare-us   .compare-stat { color: var(--accent-2); }

/* ─── Proof ──────────────────────────────────────────────────────── */
.proof {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 64px 0;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}

.stat-num {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.stat-num span {
  font-size: 36px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.testimonial:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
}

.quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  flex: 1;
}

.quote::before { content: '\201C'; }
.quote::after  { content: '\201D'; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.t-name  { font-size: 14px; font-weight: 700; }
.t-role  { font-size: 12px; color: var(--text-muted); }

/* ─── Pricing ────────────────────────────────────────────────────── */
.pricing {
  padding: 120px 0;
  background: var(--bg);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  align-items: stretch;
}

.plan {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s;
}

.plan:hover { border-color: var(--border-hi); }

.plan-featured {
  background: linear-gradient(135deg, rgba(124,92,252,0.1), rgba(74,247,196,0.05));
  border-color: rgba(124,92,252,0.4);
  transform: scale(1.02);
}

.plan-featured:hover { border-color: rgba(124,92,252,0.7); }

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.plan-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.plan-price {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  line-height: 1;
}

.plan-price span {
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.plan-features li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.plan-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-weight: 700;
}

.btn-plan {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-hi);
  transition: background 0.2s, transform 0.2s;
  margin-top: auto;
}

.btn-plan:hover { background: var(--bg-3); transform: translateY(-2px); }

.btn-plan-featured {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-plan-featured:hover { background: #6b4de8; }

/* ─── Waitlist ───────────────────────────────────────────────────── */
.waitlist {
  padding: 140px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--border);
}

.wl-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow-wl-1 {
  position: absolute;
  width: 800px; height: 800px;
  background: var(--accent);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.07;
}

.glow-wl-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: var(--accent-2);
  top: 50%; left: 30%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.05;
}

.wl-inner {
  position: relative;
  z-index: 1;
}

.wl-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.wl-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 48px;
}

.wl-sub em {
  font-style: italic;
  color: var(--accent-2);
}

.wl-form { max-width: 560px; margin: 0 auto; }

.wl-fields {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.wl-input {
  flex: 1;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}

.wl-input::placeholder { color: var(--text-dim); }
.wl-input:focus { border-color: var(--accent); }

.wl-fine {
  font-size: 13px;
  color: var(--text-dim);
}

.wl-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(74, 247, 196, 0.08);
  border: 1px solid rgba(74, 247, 196, 0.2);
  padding: 20px 32px;
  border-radius: var(--radius);
  max-width: 520px;
  margin: 0 auto;
}

.success-icon {
  font-size: 22px;
}

.hidden { display: none !important; }

/* ─── Footer ─────────────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 28px;
}

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

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

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ─── Scroll animations ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
  }

  .hero-actions, .hero-proof {
    justify-content: center;
  }

  .terminal-wrap { max-width: 500px; margin: 0 auto; }

  .steps { flex-direction: column; gap: 32px; }
  .step-connector { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .plan-featured { transform: none; }

  .compare { flex-direction: column; }
  .compare-vs { height: 40px; width: 100%; }
  .compare-us { border-left: none; border-top: 1px solid var(--border); }

  .wl-fields { flex-direction: column; }

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

@media (max-width: 600px) {
  .section-inner { padding: 0 20px; }
  .stats-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
}
