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

:root {
  --bg: #0D0D0F;
  --surface: #161618;
  --surface-2: #1E1E22;
  --border: #2A2A2F;
  --text: #F0F0F2;
  --text-muted: #8A8A95;
  --accent: #B8FF57;
  --accent-dim: rgba(184, 255, 87, 0.12);
  --red: #FF5F57;
  --yellow: #FFBD2E;
  --green: #28CA42;
  --font-head: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

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

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

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(184, 255, 87, 0.3);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.05em;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(184, 255, 87, 0.25);
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-lede {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.stat-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

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

/* === TERMINAL === */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.terminal-header {
  background: var(--surface-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

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

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

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

.t-line { display: flex; align-items: baseline; gap: 0; }
.t-comment { color: var(--text-muted); }
.t-keyword { color: #C792EA; }
.t-var { color: #82AAFF; }
.t-fn { color: var(--accent); }
.t-str { color: #C3E88D; }
.t-ok { color: var(--text); }
.t-active { color: var(--accent); font-weight: 500; }

.t-spacer { height: 12px; }

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--accent);
  animation: blink 1.1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

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

.terminal-status {
  padding: 10px 24px;
  background: var(--accent-dim);
  border-top: 1px solid rgba(184, 255, 87, 0.15);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pulse { animation: pulse 2s ease-in-out infinite; }

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

/* === SECTION SHARED === */
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}

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

.features-header {
  max-width: 1200px;
  margin: 0 auto 56px;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 40px 32px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--surface-2); }

.feature-icon {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* === PROCESS === */
.process {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.process-header {
  max-width: 1200px;
  margin: 0 auto 64px;
}

.process-steps {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}

.step { padding: 0 32px; }

.step-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.step-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

.step-connector {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--border), var(--accent), var(--border));
  margin-top: 40px;
}

.process-note {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 20px 24px;
  background: var(--accent-dim);
  border: 1px solid rgba(184, 255, 87, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.note-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-quote {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  font-style: normal;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
}

.manifesto-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.closing-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
}

.closing-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

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

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.footer-tagline {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content { order: 1; }
  .hero-terminal { order: 2; }

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

  .process-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .step-connector { display: none; }

  .step { padding: 0; }
}

@media (max-width: 600px) {
  .hero { padding: 80px 16px 60px; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }

  .stat-divider { display: none; }

  .features { padding: 60px 16px; }
  .features-grid { grid-template-columns: 1fr; }

  .process { padding: 60px 16px; }
  .manifesto { padding: 60px 16px; }
  .closing { padding: 60px 16px; }

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