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

:root {
  --bg: #070d1a;
  --bg-2: #0a1628;
  --bg-3: #0f1e35;
  --fg: #e8f4ff;
  --fg-dim: #7a9bbf;
  --fg-muted: #4a6a8a;
  --accent: #00d4ff;
  --accent-2: #0099cc;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --warn: #ff9f43;
  --err: #ff6b6b;
  --ok: #2ed573;
  --border: rgba(0, 212, 255, 0.12);
  --border-bright: rgba(0, 212, 255, 0.25);
  --font-main: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

.mono-text { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; }
.text-dim { color: var(--fg-dim); }

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 13, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg);
  font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em;
}
.nav-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: var(--fg-dim);
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 6px var(--ok);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.status-label { font-family: var(--font-mono); font-size: 0.72rem; }

/* --- HERO --- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.glow-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px);
}
.glow-1 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
}
.glow-2 {
  width: 400px; height: 400px;
  bottom: 0; left: -80px;
  background: radial-gradient(circle, rgba(0, 153, 204, 0.08) 0%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 20px; color: var(--fg-dim);
}
.separator { color: var(--fg-muted); }
.hero-headline {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.headline-accent { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem; color: var(--fg-dim);
  line-height: 1.65; margin-bottom: 40px;
  max-width: 480px;
}

/* Terminal */
.hero-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.05), 0 20px 60px rgba(0,0,0,0.4);
}
.terminal-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg-3);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 11px; height: 11px; border-radius: 50%; }
.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }
.terminal-title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-dim); }
.terminal-body { padding: 20px; }
.t-line { font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.9; }
.t-ts { color: var(--fg-muted); }
.t-ok { color: var(--ok); font-weight: 600; margin: 0 10px; }
.t-warn { color: var(--warn); font-weight: 600; margin: 0 10px; }
.t-err { color: var(--err); font-weight: 600; margin: 0 10px; }
.t-active { background: rgba(255, 107, 107, 0.06); border-radius: 4px; padding: 2px 8px; display: inline-block; }
.prompt { color: var(--accent); }
.cursor-blink { color: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Pipeline visual */
.hero-pipeline {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; width: 100%;
  padding-top: 60px;
  border-top: 1px solid var(--border);
  grid-column: 1 / -1;
}
.pipeline-stages {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap;
}
.stage {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 24px; border: 1px solid var(--border);
  border-radius: 10px; min-width: 120px;
  background: var(--bg-2);
  position: relative; flex-shrink: 0;
}
.stage span { font-size: 0.78rem; font-weight: 500; color: var(--fg-dim); }
.stage-icon { color: var(--fg-dim); }
.stage-connector {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  flex-shrink: 0;
}
.connector-active { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.stage-prism.active {
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
}
.stage-prism.active span { color: var(--accent); }
.stage-prism.active .prism-icon { color: var(--accent); }
.stage-badge {
  position: absolute; top: -10px; right: -10px;
  background: var(--accent); color: var(--bg);
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* --- THREATS --- */
.threats { padding: 100px 24px; }
.threats-inner { max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 56px; }
.section-tag {
  display: inline-block; color: var(--accent);
  border: 1px solid var(--border-bright);
  padding: 4px 12px; border-radius: 20px;
  margin-bottom: 16px; font-size: 0.72rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.025em;
  max-width: 600px; line-height: 1.15;
}
.threat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.threat-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.threat-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-2px);
}
.threat-icon { margin-bottom: 18px; }
.threat-name { font-size: 1rem; font-weight: 600; margin-bottom: 10px; }
.threat-desc { font-size: 0.875rem; color: var(--fg-dim); line-height: 1.65; margin-bottom: 16px; }
.threat-tag {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--fg-dim); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 12px;
}

/* --- MANIFESTO --- */
.manifesto { padding: 80px 24px; border-top: 1px solid var(--border); }
.manifesto-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.manifesto-quote {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-style: italic; color: var(--fg);
  line-height: 1.55; margin-bottom: 28px;
  border-left: 3px solid var(--accent); padding-left: 20px;
}
.manifesto-body { font-size: 0.95rem; color: var(--fg-dim); line-height: 1.75; margin-bottom: 20px; }
.manifesto-principles { display: flex; flex-direction: column; gap: 0; }
.principle {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 20px; align-items: start;
  padding: 24px 0; border-bottom: 1px solid var(--border);
}
.principle:first-child { padding-top: 0; }
.principle-num { color: var(--accent); font-size: 0.75rem; padding-top: 4px; }
.principle-text { font-size: 0.95rem; color: var(--fg); line-height: 1.55; }

/* --- CLOSING --- */
.closing { padding: 100px 24px; }
.closing-inner { max-width: 700px; margin: 0 auto; text-align: center; }
.closing-headline h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em;
  margin-bottom: 20px; line-height: 1.1;
}
.closing-headline p { font-size: 1rem; color: var(--fg-dim); line-height: 1.65; margin-bottom: 48px; }
.closing-vision { display: flex; justify-content: center; }
.vision-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 40px 60px;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,212,255,0.03), transparent);
}
.vision-text { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.03em; }
.vision-tagline { font-size: 0.9rem; color: var(--accent); font-weight: 500; }

/* --- FOOTER --- */
.footer { padding: 40px 24px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-tagline { font-size: 0.8rem; color: var(--fg-dim); }
.footer-meta { display: flex; align-items: center; gap: 12px; }
.footer-separator { color: var(--fg-muted); }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-pipeline { display: none; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 48px; }
  .threat-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 480px) {
  .threat-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 16px 60px; }
}