:root {
  --bg: #0a0c10;
  --bg-surface: #111318;
  --bg-elevated: #181b22;
  --amber: #f59e0b;
  --amber-dim: #f59e0b22;
  --green: #22c55e;
  --green-dim: #22c55e22;
  --text-primary: #f0f2f5;
  --text-secondary: #8a9099;
  --text-muted: #4a5060;
  --border: #1e2230;
  --border-bright: #2d3344;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

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

/* ── HERO ── */
.hero {
  padding: 100px 40px 80px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0f1218 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, #f59e0b06 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  opacity: 0.3;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.hero-sub {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 480px;
}

/* Hero Flow */
.hero-flow {
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 28px;
  position: relative;
}
.hero-flow::before {
  content: 'REMEDIATION PIPELINE';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  background: var(--bg-elevated);
  padding: 0 8px;
}
.flow-line {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 16px;
}
.flow-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stage-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
}
.dot-drift { background: #ef444433; border-color: #ef4444; }
.dot-generate { background: #f59e0b22; border-color: var(--amber); }
.dot-sandbox { background: #3b82f622; border-color: #3b82f6; }
.dot-deploy { background: var(--green-dim); border-color: var(--green); }
.stage-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.stage-name {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.stage-desc {
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}
.flow-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: 4px;
}
.flow-status {
  display: flex;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.03em;
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 48px;
}
.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  max-width: 640px;
}

/* ── DRIFT SECTION ── */
.drift {
  padding: 100px 40px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.drift-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.drift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}
.drift-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}
.drift-icon {
  color: var(--amber);
  margin-bottom: 16px;
}
.drift-card h3 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.drift-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.drift-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 36px;
}
.stat { flex: 1; }
.stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── REMEDIATION SECTION ── */
.remediation {
  padding: 100px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.remediation-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.remediation-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.remediation-lede {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.remediation-text p:last-child {
  font-size: 14px;
  color: var(--text-muted);
}
.remediation-features {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.remediation-feature {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.remediation-feature:first-child { border-top: 1px solid var(--border); }
.ref-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--amber);
  opacity: 0.5;
  flex-shrink: 0;
  padding-top: 2px;
  width: 24px;
}
.remediation-feature h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.remediation-feature p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ── ARCHITECTURE SECTION ── */
.architecture {
  padding: 100px 40px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.architecture-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 48px;
}
.arch-layer {
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 20px 24px;
}
.arch-layer-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.arch-layer-label span:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.arch-layer-desc {
  font-size: 11px;
  color: var(--text-muted);
}
.arch-components {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.arch-comp {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
}
.arch-comp.accent {
  background: var(--amber-dim);
  border-color: var(--amber);
  color: var(--amber);
}
.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}
.connector-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.arch-properties {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}
.arch-prop {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
  min-width: 240px;
}

/* ── CLOSING ── */
.closing {
  padding: 100px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.closing-inner {
  max-width: 860px;
  margin: 0 auto;
}
.closing-statement p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.closing-statement p:last-child { margin-bottom: 0; }

/* ── FOOTER ── */
footer {
  padding: 40px;
  background: var(--bg-surface);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--amber);
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 12px;
  color: var(--text-muted);
}
.footer-links span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .remediation-layout { grid-template-columns: 1fr; }
  .drift-grid { grid-template-columns: 1fr; }
  .drift-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 100%; height: 1px; }
  .arch-properties { flex-direction: column; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 20px 50px; }
  .drift, .remediation, .architecture, .closing { padding: 60px 20px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
  .flow-line { flex-wrap: wrap; justify-content: center; }
  .flow-arrow { display: none; }
  .stage-desc { display: none; }
}