:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-dim: #8888a0;
  --fg-muted: #555570;
  --accent: #6c5ce7;
  --accent-glow: rgba(108, 92, 231, 0.15);
  --accent-bright: #a29bfe;
  --green: #00d2a0;
  --green-dim: rgba(0, 210, 160, 0.15);
  --orange: #ffa94d;
  --red: #ff6b6b;
  --yellow: #ffd43b;
  --border: #1e1e2e;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* --- NAV --- */
.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--fg);
  letter-spacing: -0.02em;
}

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px 40px;
  position: relative;
  z-index: 1;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--fg-dim);
  max-width: 560px;
  line-height: 1.7;
}

/* --- CODE WINDOW --- */
.hero-visual {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  position: relative;
  z-index: 1;
}

.code-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(108,92,231,0.08);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: var(--red); }
.dot.yellow { background: var(--yellow); }
.dot.green { background: var(--green); }

.window-title {
  margin-left: 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.code-content {
  padding: 28px 24px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.9rem;
}

.prompt-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.prompt-icon {
  color: var(--accent-bright);
  font-weight: 600;
  flex-shrink: 0;
}

.prompt-text {
  color: var(--fg);
  line-height: 1.6;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent-bright);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  flex-shrink: 0;
}

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

.output-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.output-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg-dim);
  opacity: 0;
  animation: fadeIn 0.4s ease forwards;
}

.output-line .check {
  color: var(--green);
  font-size: 0.85rem;
}

.output-line .status {
  color: var(--orange);
  font-size: 0.6rem;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse { 50% { opacity: 0.4; } }

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.7s; }
.delay-3 { animation-delay: 1.1s; }
.delay-4 { animation-delay: 1.5s; }
.delay-5 { animation-delay: 1.9s; }

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

/* --- SECTIONS SHARED --- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- HOW IT WORKS --- */
.how {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.how h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--fg-dim);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- FEATURES --- */
.features {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.features h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
  line-height: 1.15;
}

.dim { color: var(--fg-muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 0 40px var(--accent-glow);
}

.feature-large {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(108, 92, 231, 0.05) 100%);
}

.feature-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--fg-dim);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* --- COMPARISON --- */
.comparison {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.comparison h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.comparison-table {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.comp-row {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}

.comp-row:last-child { border-bottom: none; }

.comp-header {
  background: var(--bg-elevated);
}

.comp-cell {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.comp-cell.label {
  justify-content: flex-start;
  color: var(--fg);
  font-weight: 500;
}

.comp-cell.highlight {
  color: var(--green);
  font-weight: 600;
  background: var(--green-dim);
}

.comp-header .comp-cell.highlight {
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.comp-header .comp-cell {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* --- CLOSING --- */
.closing {
  padding: 140px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(108,92,231,0.04) 100%);
}

.closing-content {
  max-width: 720px;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
}

.closing p {
  color: var(--fg-dim);
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg-muted);
}

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

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

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

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-content { padding: 60px 20px 30px; }
  .hero-visual { padding: 20px 20px 60px; }
  .section-container { padding: 0 20px; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .comp-row { grid-template-columns: 1.5fr repeat(4, 1fr); font-size: 0.75rem; }
  .comp-cell { padding: 12px 8px; font-size: 0.75rem; }
  .how, .features, .comparison { padding: 80px 0; }
  .closing { padding: 100px 0; }
  .code-content { padding: 20px 16px; font-size: 0.8rem; }
  .nav { padding: 20px; }
}

@media (max-width: 480px) {
  .comp-row { grid-template-columns: 1fr repeat(2, 1fr); }
  .comp-cell:nth-child(4),
  .comp-cell:nth-child(5) { display: none; }
  .hero h1 { font-size: 2.5rem; }
}