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

:root {
  --bg: #0A0A0A;
  --bg-surface: #111111;
  --bg-elevated: #1A1A1A;
  --accent: #FF8C00;
  --accent-dim: rgba(255,140,0,0.12);
  --fg: #F2EDE8;
  --fg-muted: rgba(242,237,232,0.55);
  --fg-dim: rgba(242,237,232,0.28);
  --border: rgba(255,140,0,0.15);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

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

/* === TYPOGRAPHY === */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(255,140,0,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(255,140,0,0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

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

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 2rem;
}

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

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* === PIPELINE === */
.pipeline {
  padding: 7rem 2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pipeline-header {
  text-align: center;
  margin-bottom: 5rem;
}

.pipeline-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 600px;
  margin: 0 auto;
}

.stages { max-width: 1100px; margin: 0 auto; }

.stage-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
}

.stage {
  padding: 2.5rem;
  border: 1px solid var(--border);
  position: relative;
}

.stage-light { background: var(--bg-surface); }
.stage-dark { background: var(--bg-elevated); }

.stage-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.stage h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 0.8rem;
  color: var(--fg);
}

.stage p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.stage-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  flex-shrink: 0;
}

/* === QUALITY GATE === */
.qualitygate {
  padding: 7rem 2rem;
  background: var(--bg);
}

.qualitygate-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.qualitygate-text .section-label { margin-bottom: 1.2rem; }

.qualitygate-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.qualitygate-text p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.qualitygate-scores {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.score-card {
  display: grid;
  grid-template-columns: 1fr 200px 40px;
  align-items: center;
  gap: 0.8rem;
}

.score-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.score-bar {
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}

.score-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 1s ease;
}

.score-val {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

/* === MANIFESTO === */
.manifesto {
  padding: 7rem 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.manifesto blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--fg);
  max-width: 800px;
  margin: 0 auto 5rem;
}

.manifesto-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.stat { text-align: center; }

.stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-desc {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* === CLOSING === */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  background: var(--bg);
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === FOOTER === */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

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

.footer-tagline {
  font-size: 0.75rem;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 6rem 1.5rem 4rem; }
  .hero-headline { font-size: clamp(2.8rem, 14vw, 4rem); }

  .stage-row {
    grid-template-columns: 1fr;
    margin-bottom: 1.5rem;
  }
  .stage-connector { display: none; }
  .stage { padding: 1.75rem; }

  .qualitygate-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .score-card {
    grid-template-columns: 1fr 120px 36px;
  }

  .manifesto-stats {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .pipeline, .qualitygate, .manifesto, .closing { padding: 5rem 1.5rem; }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

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