:root {
  --bg: #0B1121;
  --bg-2: #111827;
  --bg-card: #151D2E;
  --fg: #E8EDF5;
  --fg-muted: #8896B0;
  --accent: #00E5A0;
  --accent-dim: rgba(0,229,160,0.12);
  --warning: #F59E0B;
  --border: rgba(255,255,255,0.07);
  --code-bg: #0D1520;
  --code-window-bg: #0F1929;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Dot grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11,17,33,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  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: 17px;
  letter-spacing: -0.01em;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 32px 80px;
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,229,160,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}

.hero-title {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--fg);
}

.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 24px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

.proof-label {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Code window */
.hero-visual { position: relative; }

.code-window {
  background: var(--code-window-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,229,160,0.08);
}

.code-window-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28CA41; }

.window-title {
  font-size: 12px;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
  flex: 1;
  text-align: center;
}

.window-badge {
  font-size: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.code-window-body { padding: 16px; }

.code-block {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre;
  overflow-x: auto;
  color: var(--fg-muted);
}

.code-line { display: block; }
.code-comment { color: #4A5568; }
.code-added { color: #4A5568; margin-right: 6px; }
.code-green { color: #68D391; }

.ai-review {
  margin-top: 12px;
  background: rgba(0,229,160,0.05);
  border: 1px solid rgba(0,229,160,0.2);
  border-radius: 8px;
  padding: 12px;
}

.ai-review-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 8px;
  font-weight: 600;
}

.ai-review-text {
  font-size: 12px;
  color: var(--fg);
  line-height: 1.55;
}

.highlight {
  background: rgba(0,229,160,0.2);
  color: var(--accent);
  padding: 1px 4px;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
}

.ai-review-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.tag-security { background: rgba(239,68,68,0.15); color: #FC8181; }
.tag-high { background: rgba(245,158,11,0.15); color: var(--warning); }

.patrol-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}

.patrol-ring {
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  animation: spin 4s linear infinite;
}

.patrol-ring::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Patrol Section */
.patrol-section {
  position: relative;
  z-index: 1;
  padding: 100px 32px;
  background: linear-gradient(180deg, transparent, var(--bg-2), transparent);
}

.patrol-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.patrol-headline {
  margin-bottom: 60px;
}

.patrol-headline h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--fg);
}

.patrol-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 14px;
  color: var(--fg-muted);
}

.patrol-subtext {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 680px;
  line-height: 1.7;
}

/* Features */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 32px 100px;
}

.features-header {
  max-width: 1200px;
  margin: 0 auto 60px;
}

.features-header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--fg);
}

.features-header p {
  font-size: 17px;
  color: var(--fg-muted);
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(0,229,160,0.3);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--fg);
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Terminal Section */
.terminal-section {
  position: relative;
  z-index: 1;
  padding: 80px 32px 100px;
  background: var(--bg-2);
}

.terminal-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.terminal-text h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--fg);
}

.terminal-text p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.integration-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.integration-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
}

.terminal-window {
  background: #0A0F1A;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.terminal-header {
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}

.terminal-prompt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

.terminal-body {
  padding: 16px 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

.terminal-line { margin-bottom: 4px; }
.t-prompt { color: var(--accent); margin-right: 8px; }
.t-command { color: var(--fg); }
.t-output { color: #8896B0; }
.t-success { color: var(--accent); }
.t-info { color: var(--fg-muted); margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); }

/* Closing */
.closing {
  position: relative;
  z-index: 1;
  padding: 100px 32px 120px;
}

.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.closing h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--fg);
}

.closing > .closing-inner > p {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 56px;
  line-height: 1.65;
}

.closing-vision {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.vision-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}

.vision-text {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
  font-style: italic;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-left: auto;
}

.footer-copy {
  font-size: 12px;
  color: #4A5568;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .terminal-inner { grid-template-columns: 1fr; }
  .patrol-stats { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding: 100px 20px 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 20px; }
  .hero-proof { flex-wrap: wrap; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-tagline { margin-left: 0; }
}