/* === BASE === */
:root {
  --bg: #08080f;
  --surface: #0f0f1a;
  --surface2: #16162a;
  --accent: #00e5c8;
  --accent-dim: #00b3a0;
  --text: #e8e6df;
  --text-muted: #7a7885;
  --text-dim: #4a4858;
  --border: #1c1c2e;
  --warm: #f2f0eb;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--warm);
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--warm);
  letter-spacing: -0.03em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

/* === SECTION BASE === */
section {
  padding: 100px 32px;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: 'DM Sans', sans-serif;
}

/* === MANIFESTO === */
.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
  padding-bottom: 100px;
  overflow: hidden;
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.manifesto-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(0,229,200,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(0,229,200,0.05);
}

.manifesto-headline {
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--warm);
  margin-bottom: 28px;
  line-height: 1.05;
}

.headline-accent {
  color: var(--accent);
  display: block;
}

.manifesto-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
}

/* Terminal */
.manifesto-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,200,0.08) inset;
}

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

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-left: auto;
  font-family: 'DM Sans', monospace;
}

.terminal-body {
  padding: 20px 20px 24px;
  font-family: 'DM Sans', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
}

.terminal-line { color: var(--warm); }
.terminal-line.muted { color: var(--text-muted); }
.terminal-line.success { color: var(--accent); }

.t-prompt { color: var(--accent); }
.t-cmd { color: var(--warm); }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

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

/* Stats */
.manifesto-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 20px;
}

.stat {
  background: var(--surface);
  padding: 28px 32px;
  text-align: center;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

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

/* BG elements */
.manifesto-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,200,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,200,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(0,229,200,0.07);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(100, 80, 255, 0.04);
  bottom: 100px;
  left: -100px;
}

/* === PROBLEM === */
.problem {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.problem-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.new-label {
  margin-top: 60px;
  color: var(--accent);
}

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

.solution-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.3s;
}

.problem-card:hover { border-color: rgba(255,80,80,0.3); }

.broken-icon {
  color: #ff5f57;
  margin-bottom: 16px;
  opacity: 0.8;
}

.problem-card h3 {
  font-size: 1rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--warm);
  margin-bottom: 10px;
}

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

.divider-arrow {
  text-align: center;
  color: var(--accent);
  padding: 40px 0 20px;
}

.solution-card {
  background: rgba(0,229,200,0.03);
  border: 1px solid rgba(0,229,200,0.15);
  border-radius: 12px;
  padding: 28px;
}

.solution-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 1rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--warm);
  margin-bottom: 10px;
}

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

/* === PROCESS === */
.process { background: var(--bg); }

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

.process-header {
  margin-bottom: 72px;
}

.process-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--warm);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 64px;
}

.step { padding: 0 4px; }

.step-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.15rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--warm);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 36px;
}

.connector-line {
  width: 1px;
  height: 30px;
  background: var(--border);
}

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

.process-prompt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
}

.prompt-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.prompt-block {
  font-size: 0.875rem;
  line-height: 1.7;
}

.prompt-user {
  color: var(--text-muted);
  font-style: italic;
}

.prompt-response {
  margin-top: 10px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}

.prompt-ai {
  color: var(--accent);
  font-weight: 600;
}

/* === FEATURES === */
.features { background: var(--surface); border-top: 1px solid var(--border); }

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

.features-header { margin-bottom: 64px; }

.features-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--warm);
}

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

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(0,229,200,0.2);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,229,200,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--warm);
  margin-bottom: 10px;
}

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

/* === PIPELINE === */
.pipeline { background: var(--bg); }

.pipeline-inner { max-width: 1200px; margin: 0 auto; }

.pipeline-header { margin-bottom: 64px; }

.pipeline-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--warm);
}

.pipeline-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  margin-bottom: 40px;
  overflow-x: auto;
  padding: 20px 0;
}

.pipeline-stage {
  text-align: center;
  min-width: 120px;
}

.stage-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 1px solid var(--border);
}

.s1 { background: rgba(0,229,200,0.08); border-color: rgba(0,229,200,0.2); color: var(--accent); }
.s2 { background: rgba(100,80,255,0.08); border-color: rgba(100,80,255,0.2); color: #a78bfa; }
.s3 { background: rgba(251,146,60,0.08); border-color: rgba(251,146,60,0.2); color: #fb923c; }
.s4 { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); color: #22c55e; }
.s5 { background: rgba(168,85,247,0.08); border-color: rgba(168,85,247,0.2); color: #a855f7; }

.stage-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--warm);
  margin-bottom: 6px;
}

.stage-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.pipeline-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  padding: 0 8px;
}

.pipeline-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: 400px;
  margin: 0 auto;
}

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

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

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid rgba(0,229,200,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(0,229,200,0.05);
  margin-bottom: 36px;
}

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

.closing-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--warm);
  margin-bottom: 24px;
  line-height: 1.1;
}

.closing-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}

.closing-cta { }

.cta-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.6;
}

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

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

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--warm);
  display: block;
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.footer-meta a {
  color: var(--accent);
  text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .manifesto-stats {
    grid-template-columns: 1fr;
  }
  .problem-content,
  .solution-content {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .step-connector {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-visual {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
  }
  .pipeline-arrow { display: none; }
}

@media (max-width: 600px) {
  section { padding: 72px 20px; }
  .nav { padding: 0 20px; }
}