/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0b;
  --bg-elevated: #111113;
  --bg-card: #161618;
  --border: #222225;
  --text: #ededef;
  --text-muted: #8a8a8e;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --gradient: linear-gradient(135deg, #6c5ce7, #00cec9, #6c5ce7);
  --gradient-text: linear-gradient(135deg, #a29bfe, #00cec9);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }

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

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 11, 0.8);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  color: var(--accent-light);
  font-size: 1.1rem;
}

.nav-cta {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 20px;
  background: var(--accent);
  border-radius: 999px;
  transition: all 0.2s;
}
.nav-cta:hover { background: #5b4bd5; transform: translateY(-1px); }

/* === HERO === */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 32px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #5b4bd5; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.03); }

.btn-large { font-size: 1.125rem; padding: 18px 40px; }

/* === CODE BLOCK === */
.hero-code {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

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

.code-label {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--mono);
}

.hero-code pre {
  padding: 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1.8;
}

.code-keyword { color: #c792ea; }
.code-string { color: #c3e88d; }
.code-fn { color: #82aaff; }
.code-number { color: #f78c6c; }

/* === SECTIONS === */
.section {
  padding: 100px 0;
}

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

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

/* === FEATURES GRID === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === STEPS === */
.steps-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.step-card {
  flex: 1;
  max-width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}

.step-number {
  font-family: var(--mono);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.step-arrow {
  font-size: 2rem;
  color: var(--text-muted);
  padding-top: 60px;
  flex-shrink: 0;
}

/* === STATS === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

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

/* === WAITLIST FORM === */
.waitlist-container { text-align: center; }

.waitlist-form { max-width: 640px; margin: 0 auto; }

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-input {
  flex: 1;
  min-width: 160px;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-muted); }

.btn-submit {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
}

.form-message {
  margin-top: 16px;
  font-size: 0.95rem;
  min-height: 24px;
}
.form-message.success { color: #27c93f; }
.form-message.error { color: #ff5f56; }

.waitlist-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === TWO COL === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.two-col h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27c93f;
  font-weight: 700;
}

/* === CTA SECTION === */
.section-cta {
  padding: 120px 0;
  text-align: center;
  position: relative;
}

.section-cta::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }

  .features-grid { grid-template-columns: 1fr; }

  .steps-grid { flex-direction: column; align-items: center; }

  .step-arrow { transform: rotate(90deg); padding: 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .two-col { grid-template-columns: 1fr; gap: 32px; }

  .form-row { flex-direction: column; }

  .form-input { min-width: unset; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }

  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.75rem; }
  .stat-value { font-size: 1.75rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
