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

:root {
  --bg: #0d0d12;
  --bg-2: #111119;
  --fg: #e8e8e8;
  --fg-dim: #888899;
  --accent: #00e5c8;
  --accent-dim: rgba(0, 229, 200, 0.12);
  --red: #ff4d6a;
  --yellow: #ffd60a;
  --green: #4ade80;
  --border: rgba(255,255,255,0.08);
  --code-bg: #0a0a0f;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.nav-tagline {
  font-size: 0.75rem;
  color: var(--fg-dim);
  font-family: 'JetBrains Mono', monospace;
  text-transform: lowercase;
  letter-spacing: 0.05em;
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,229,200,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,200,0.2);
  border-radius: 4px;
  padding: 5px 12px;
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}

.hero-headline {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-dim);
  max-width: 540px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* Demo panel */
.hero-demo {
  width: 100%;
  max-width: 820px;
  margin-bottom: 40px;
}

.demo-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg-dim);
  margin-bottom: 12px;
  text-align: left;
}

.demo-panels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
}

.demo-panel {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.demo-panel--input {
  border-right: none;
  border-radius: 8px 0 0 8px;
}

.demo-panel--output {
  border-left: none;
  border-radius: 0 8px 8px 0;
}

.demo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--code-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}

.demo-panel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--fg-dim);
  padding: 10px 16px 0;
  letter-spacing: 0.04em;
}

.demo-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--fg);
  padding: 12px 16px 16px;
  line-height: 1.7;
  text-align: left;
  white-space: pre;
}

.demo-code--output {
  color: var(--accent);
}

/* Mode tags */
.hero-modes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.mode-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  border: 1px solid rgba(0,229,200,0.25);
  border-radius: 4px;
  padding: 4px 10px;
  background: var(--accent-dim);
}

/* === SECTION LABEL === */
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-bottom: 48px;
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 40px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.manifesto-headline {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 28px;
  color: var(--fg);
}

.manifesto-body {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.8;
  margin-bottom: 20px;
}

.manifesto-body:last-child { margin-bottom: 0; }

/* === HOW IT WORKS === */
.how {
  padding: 100px 40px;
  max-width: 900px;
  margin: 0 auto;
}

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

.how-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.how-step:last-child { border-bottom: none; }

.how-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
}

.how-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

.how-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 1px 6px;
  border-radius: 3px;
}

/* === MODES === */
.modes {
  padding: 100px 40px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.modes-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mode-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s;
}

.mode-card:hover { border-color: rgba(0,229,200,0.25); }

.mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mode-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.04em;
}

.mode-badge {
  font-size: 0.65rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,200,0.15);
  border-radius: 3px;
  padding: 2px 8px;
}

.mode-desc {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.7;
  flex: 1;
}

.mode-output {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 14px 16px;
}

.mode-output-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: var(--fg-dim);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.mode-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  line-height: 1.6;
}

/* === SPECS === */
.specs {
  padding: 100px 40px;
  max-width: 900px;
  margin: 0 auto;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.spec-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.spec-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,200,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spec-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.spec-desc {
  font-size: 0.85rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* === CLOSING === */
.closing {
  padding: 120px 40px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(0,229,200,0.05) 0%, transparent 70%);
}

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

.closing-statement {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 36px;
  color: var(--fg);
}

.closing-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-label {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
}

.cta-sub {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

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

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

.footer-logo {
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-headline { font-size: 2rem; }

  .demo-panels {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .demo-panel--input {
    border-right: 1px solid var(--border);
    border-radius: 8px;
  }
  .demo-panel--output {
    border-left: 1px solid var(--border);
    border-radius: 8px;
  }
  .demo-arrow {
    border-top: none;
    border-bottom: none;
    padding: 8px 0;
    transform: rotate(90deg);
  }

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

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .how-step {
    grid-template-columns: 48px 1fr;
    gap: 20px;
  }

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

  .manifesto, .how, .specs, .modes { padding: 80px 20px; }
  .closing { padding: 80px 20px; }
}

@media (max-width: 480px) {
  .hero-modes { flex-direction: column; align-items: center; }
  .mode-tag { font-size: 0.68rem; }
}