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

:root {
  --bg: #050508;
  --bg-card: #0d0d14;
  --bg-card-hover: #111120;
  --fg: #e2e8f0;
  --fg-muted: #6b7a8f;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.12);
  --accent-line: rgba(0, 255, 136, 0.3);
  --border: rgba(255,255,255,0.07);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(5,5,8,0.85);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--fg);
}
.logo-bracket { color: var(--accent); }
.logo-name { color: var(--fg); }
.logo-ai { color: var(--accent); }
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity: 0.4; } }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 32px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.3), transparent);
  animation: scan 4s linear infinite;
}
@keyframes scan { 0% { top:0; } 100% { top:100%; } }

.hero-content {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.label-bracket { opacity: 0.5; }
.hero-headline {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  color: var(--fg);
}
.headline-accent {
  color: var(--accent);
  position: relative;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 520px;
  margin-bottom: 48px;
}

/* Terminal */
.hero-terminal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  max-width: 680px;
  margin-bottom: 40px;
  overflow: hidden;
}
.terminal-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.02);
}
.terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: 8px;
  letter-spacing: 0.05em;
}
.terminal-body { padding: 12px 0; }
.terminal-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 5px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.terminal-line:last-child { border-bottom: none; }
.t-time { color: var(--fg-muted); min-width: 72px; }
.t-ok { color: var(--accent); min-width: 130px; letter-spacing: 0.04em; font-weight: 500; }
.t-desc { color: var(--fg); flex: 1; }
.t-warn { color: #f59e0b; letter-spacing: 0.05em; }

/* Metrics */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 0;
}
.metric { padding: 0 32px 0 0; }
.metric:first-child { padding-left: 0; }
.metric-val {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.metric-label {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin-right: 32px;
}

/* === MANIFESTO === */
.manifesto {
  padding: 120px 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #08080f 100%);
}
.manifesto-inner { max-width: 800px; margin: 0 auto; }
.manifesto-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 28px;
}
.manifesto-headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.manifesto-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-muted);
}
.manifesto-line {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-top: 40px;
  box-shadow: 0 0 12px rgba(0,255,136,0.4);
}

/* === OPS === */
.ops {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.ops-inner { max-width: 1100px; margin: 0 auto; }
.ops-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 56px;
}
.ops-grid {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.ops-step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  position: relative;
}
.ops-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.ops-icon { margin-bottom: 20px; }
.ops-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.ops-step p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }
.ops-arrow {
  display: flex;
  align-items: center;
  padding-top: 48px;
  flex-shrink: 0;
}

/* === FEATURES === */
.features {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
  background: #07070c;
}
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg-card);
  padding: 32px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-card-hover); }
.feature-icon {
  width: 40px; height: 40px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  background: var(--accent-dim);
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }

/* === OUTCOMES === */
.outcomes {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.outcomes-inner { max-width: 1100px; margin: 0 auto; }
.outcomes-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 48px;
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.outcome {
  background: var(--bg-card);
  padding: 36px 32px;
  text-align: center;
}
.outcome-val {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}
.outcome-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* === CLOSING === */
.closing { padding: 120px 32px; border-top: 1px solid var(--border); }
.closing-inner { max-width: 800px; margin: 0 auto; }
.closing-border {
  width: 2px;
  height: 48px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(0,255,136,0.4);
  margin-bottom: 48px;
}
.closing-headline {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.closing-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-muted);
}

/* === FOOTER === */
.footer {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-logo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.footer-legal { font-size: 12px; color: var(--fg-muted); opacity: 0.5; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 100px 20px 60px; }
  .hero-headline { font-size: 36px; }
  .hero-metrics { flex-direction: column; gap: 24px; }
  .metric-divider { display: none; }
  .ops-grid { flex-direction: column; }
  .ops-arrow { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .outcomes-grid { grid-template-columns: repeat(2, 1fr); }
  .manifesto, .ops, .features, .outcomes, .closing { padding: 72px 20px; }
  .nav-inner { padding: 0 20px; }
}
@media (max-width: 480px) {
  .outcomes-grid { grid-template-columns: 1fr; }
  .hero-terminal { display: none; }
}