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

:root {
  --bg: #070b07;
  --surface: #0c130c;
  --surface-2: #111a11;
  --fg: #e8f0e4;
  --fg-muted: #8a9e85;
  --accent: #4CAF50;
  --accent-dim: #2d6b2f;
  --accent-glow: rgba(76, 175, 80, 0.15);
  --gold: #c9a84c;
  --border: rgba(76, 175, 80, 0.18);
  --code-bg: #0a120a;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Fira Code', monospace;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Nav */
.nav { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.nav-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); }
.nav-logo-accent { color: var(--accent); }
.nav-tagline { font-size: 0.8rem; color: var(--fg-muted); font-family: var(--font-mono); }

/* Sections */
section { padding: 6rem 2rem; }
.section-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent); letter-spacing: 0.1em; display: block; margin-bottom: 1rem; }
.section-title { font-family: var(--font-mono); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; color: var(--fg); line-height: 1.3; max-width: 700px; }

/* Hero */
.hero { padding: 8rem 2rem 7rem; background: var(--bg); position: relative; }
.hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(76,175,80,0.06) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-label { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); border: 1px solid var(--border); border-radius: 2rem; padding: 0.35rem 1rem; margin-bottom: 2.5rem; }
.hero-label-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.hero-title { font-family: var(--font-mono); font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.75rem; }
.hero-title-line2 { color: var(--accent); }
.hero-sub { font-size: 1.05rem; color: var(--fg-muted); max-width: 560px; line-height: 1.75; margin-bottom: 2.5rem; }
.hero-codeblock {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}
.code-line { font-family: var(--font-mono); font-size: 0.9rem; color: var(--fg); }
.code-prompt { color: var(--accent); margin-right: 0.5rem; }
.code-cmd { color: var(--gold); }
.code-pipe { color: var(--fg-muted); margin: 0 0.25rem; }
.code-meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--fg-muted); margin-top: 0.5rem; }
.hero-stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-val { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 500; color: var(--fg); }
.stat-label { font-size: 0.75rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-sep { width: 1px; height: 36px; background: var(--border); }

/* Primitives */
.primitives { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.primitives-inner { max-width: 1100px; margin: 0 auto; }
.primitives-header { margin-bottom: 3rem; }
.primitives-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px; }
.primitive { background: var(--surface-2); padding: 2rem; border: 1px solid var(--border); }
.primitive-icon { color: var(--accent); margin-bottom: 1rem; }
.primitive-name { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.75rem; }
.primitive-desc { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.7; }

/* Pipeline */
.pipeline { background: var(--bg); }
.pipeline-inner { max-width: 1100px; margin: 0 auto; }
.pipeline-steps { display: flex; flex-direction: column; gap: 0; }
.pipe-step { display: flex; gap: 2rem; align-items: flex-start; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.pipe-step-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.1em; min-width: 2rem; padding-top: 0.2rem; }
.pipe-step-body { flex: 1; }
.pipe-step-title { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 500; color: var(--fg); margin-bottom: 0.4rem; }
.pipe-step-desc { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; margin-bottom: 0.75rem; }
.pipe-code { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); background: var(--code-bg); border: 1px solid var(--border); border-radius: 4px; padding: 0.5rem 0.75rem; display: inline-block; }

/* Roles */
.roles { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.roles-inner { max-width: 1100px; margin: 0 auto; }
.roles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.role { background: var(--surface-2); border: 1px solid var(--border); padding: 1.75rem; }
.role-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.role-label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg); font-weight: 500; }
.role-tag { font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent); border: 1px solid var(--accent-dim); border-radius: 2rem; padding: 0.15rem 0.6rem; }
.role-primary .role-tag { background: var(--accent-glow); }
.role-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.role-list li { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.5; padding-left: 1rem; position: relative; }
.role-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-family: var(--font-mono); font-size: 0.75rem; }

/* Security */
.security { background: var(--bg); }
.security-inner { max-width: 1100px; margin: 0 auto; }
.security-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); margin-bottom: 1.5rem; }
.sec-card { background: var(--surface); padding: 1.75rem; display: flex; gap: 1.25rem; }
.sec-card-num { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.1em; min-width: 2.5rem; padding-top: 0.1rem; }
.sec-card-title { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; color: var(--fg); margin-bottom: 0.5rem; }
.sec-card-desc { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.6; }
.security-badge { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--fg-muted); }
.badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }

/* Closing */
.closing { background: var(--surface); border-top: 1px solid var(--border); text-align: center; padding: 8rem 2rem; }
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-code-block { font-family: var(--font-mono); font-size: 1rem; color: var(--fg); background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem 2rem; margin-bottom: 2rem; display: inline-block; }
.closing-cta { font-family: var(--font-mono); font-size: clamp(1rem, 2.5vw, 1.3rem); color: var(--fg-muted); line-height: 1.6; font-weight: 400; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: var(--font-mono); font-size: 0.9rem; color: var(--fg); }
.footer-logo-accent { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link { color: var(--fg-muted); text-decoration: none; font-size: 0.82rem; font-family: var(--font-mono); transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-muted); flex-wrap: wrap; gap: 0.5rem; }

/* Responsive */
@media (max-width: 640px) {
  section { padding: 4rem 1.25rem; }
  .hero { padding: 5rem 1.25rem 4rem; }
  .hero-stats { gap: 1.25rem; }
  .pipe-code { font-size: 0.7rem; }
  .roles-grid { grid-template-columns: 1fr; }
  .security-cards { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}