:root {
  --bg: #0a0a0c;
  --bg-elevated: #111115;
  --bg-card: #16161a;
  --fg: #e8e6e3;
  --fg-dim: #8a8a8e;
  --fg-muted: #555559;
  --accent: #d4ff00;
  --accent-dim: #a3c700;
  --border: #2a2a2e;
  --green: #22c55e;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'DM Mono', monospace;
}

* { 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;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(212, 255, 0, 0.03) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(212, 255, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 860px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  margin-bottom: 40px;
}

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

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

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-dim);
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ========== PROBLEM ========== */
.problem {
  padding: 120px 24px;
  border-top: 1px solid var(--border);
}

.problem-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.problem-label,
.features-label,
.workflow-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.problem h2,
.features h2,
.workflow h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

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

.problem-card {
  background: var(--bg-card);
  padding: 40px 36px;
  position: relative;
}

.problem-card:first-child { border-radius: 12px 0 0 0; }
.problem-card:nth-child(2) { border-radius: 0 12px 0 0; }
.problem-card:nth-child(3) { border-radius: 0 0 0 12px; }
.problem-card:last-child { border-radius: 0 0 12px 0; }

.problem-icon {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-dim);
  margin-bottom: 16px;
  font-weight: 500;
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

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

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.feature-row {
  display: grid;
  grid-template-columns: 60px 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.feature-row.reverse {
  grid-template-columns: 60px 1fr 1fr;
}

.feature-number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding-top: 4px;
}

.feature-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}

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

.feature-visual {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.code-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.9;
  width: 100%;
  max-width: 340px;
}

.code-dim { color: var(--fg-muted); }
.code-accent { color: var(--accent); }
.code-highlight { color: var(--fg); font-weight: 500; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; display: inline-block; }
.code-green { color: var(--green); }

/* ========== WORKFLOW ========== */
.workflow {
  padding: 120px 24px;
  border-top: 1px solid var(--border);
}

.workflow-inner {
  max-width: 700px;
  margin: 0 auto;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  align-items: stretch;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  min-height: 20px;
}

.step-line.last {
  background: transparent;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--fg-muted);
  background: var(--bg);
  flex-shrink: 0;
}

.step-dot.active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(212, 255, 0, 0.3);
}

.step-content {
  padding: 12px 0 40px;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

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

/* ========== CLOSING ========== */
.closing {
  padding: 120px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-line {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 40px;
}

.closing-line:last-child {
  margin: 40px auto 0;
}

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

.closing-sub {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--fg-muted);
  margin-bottom: 8px;
}

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

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 20px 60px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

  .problem-card:first-child { border-radius: 12px 12px 0 0; }
  .problem-card:nth-child(2) { border-radius: 0; }
  .problem-card:nth-child(3) { border-radius: 0; }
  .problem-card:last-child { border-radius: 0 0 12px 12px; }

  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-number {
    order: -1;
  }

  .feature-visual {
    justify-content: flex-start;
  }

  .code-block {
    max-width: 100%;
  }

  .problem,
  .features,
  .workflow,
  .closing {
    padding: 80px 20px;
  }
}