/* ─── Variables ─────────────────────────────────── */
:root {
  --bg: #080810;
  --surface: #0e0e1a;
  --surface-2: #14142a;
  --border: #1e1e3a;
  --green: #00ff88;
  --green-dim: #00cc6a;
  --green-glow: rgba(0, 255, 136, 0.15);
  --red: #ff4444;
  --yellow: #ffcc00;
  --text: #e0e0f0;
  --text-muted: #7a7a9a;
  --text-dim: #4a4a6a;
}

/* ─── Reset & Base ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ──────────────────────────────────── */
h1, h2, h3 { font-family: 'Syne', system-ui, sans-serif; font-weight: 700; line-height: 1.15; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ─── Hero ───────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--border);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  margin-bottom: 28px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-headline {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat { display: flex; flex-direction: column; }
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
}
.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

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

/* ─── Patrol Console ──────────────────────────────── */
.patrol-console {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 255, 136, 0.05), 0 20px 60px rgba(0,0,0,0.5);
}

.console-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.console-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

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

.console-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.live-label { font-weight: 500; }

.console-body {
  padding: 20px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-line {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
}

.log-ok { color: var(--green-dim); }
.log-warn { color: var(--yellow); }
.log-agent { color: var(--green); font-style: italic; }

.log-cursor {
  width: 8px;
  height: 16px;
  background: var(--green);
  display: inline-block;
  animation: blink 1s step-end infinite;
  margin-top: 4px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.console-footer {
  display: flex;
  gap: 24px;
  padding: 16px 20px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}

.metric { display: flex; flex-direction: column; }
.metric-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; }
.metric-value { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 500; color: var(--green); }

/* ─── Patrol Status ───────────────────────────────── */
.patrol-status {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

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

.patrol-header {
  text-align: center;
  margin-bottom: 64px;
}

.patrol-header h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: #ffffff;
  margin-bottom: 16px;
}

.patrol-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.patrol-cycles {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.patrol-cycles::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(to bottom, var(--green) 0%, var(--border) 100%);
}

.cycle-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  position: relative;
}

.cycle-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  position: relative;
}

.cycle-info { flex: 1; }
.cycle-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  margin-bottom: 4px;
}
.cycle-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.cycle-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  flex-shrink: 0;
}

.status-done {
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.status-active {
  background: rgba(0, 255, 136, 0.15);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.3);
  position: relative;
}

.pulse-ring {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
}
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--green);
  animation: pulse-ring 1.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ─── Features ────────────────────────────────────── */
.features {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

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

.features-headline {
  font-size: clamp(28px, 3vw, 42px);
  color: #ffffff;
  margin-bottom: 64px;
  max-width: 500px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-glow);
  border: 1px solid rgba(0, 255, 136, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

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

.feature-detail {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 4px;
}

/* ─── Threat Log ──────────────────────────────────── */
.threat-log {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.threat-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.threat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 40px;
}

.threat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--red);
  background: rgba(255, 68, 68, 0.1);
  border: 1px solid rgba(255, 68, 68, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 16px;
}

.threat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1s ease-in-out infinite;
}

.threat-header h2 {
  font-size: clamp(24px, 2.5vw, 36px);
  color: #ffffff;
  max-width: 400px;
}

.threat-stat { text-align: right; flex-shrink: 0; }
.threat-count {
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
}
.threat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.log-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.log-row-header {
  display: grid;
  grid-template-columns: 80px 160px 1fr 140px 120px;
  gap: 16px;
  padding: 12px 20px;
  background: var(--surface-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
}

.log-row {
  display: grid;
  grid-template-columns: 80px 160px 1fr 140px 120px;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.2s;
}

.log-row:last-child { border-bottom: none; }
.log-row:hover { background: var(--surface-2); }

.log-time {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  font-size: 12px;
}

.log-source {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  font-size: 12px;
}

.log-threat {
  color: var(--text-muted);
}

.log-action {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  width: fit-content;
}

.action-blocked {
  background: rgba(255, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(255, 68, 68, 0.2);
}

.action-patched {
  background: rgba(0, 255, 136, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.action-quarantined {
  background: rgba(255, 204, 0, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(255, 204, 0, 0.2);
}

.log-site {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-dim);
  font-size: 12px;
}

.threat-footer {
  margin-top: 24px;
  text-align: center;
}

.threat-footer p {
  font-size: 13px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* ─── Manifesto ───────────────────────────────────── */
.manifesto {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.manifesto-quote {
  margin-bottom: 80px;
  padding-left: 40px;
  border-left: 3px solid var(--green);
}

.manifesto-quote blockquote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 16px;
}

.manifesto-quote cite {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  font-style: normal;
}

.manifesto-body {
  max-width: 700px;
  margin-bottom: 80px;
}

.manifesto-body h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: #ffffff;
  margin-bottom: 28px;
}

.manifesto-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ─── Pricing Model Comparison ───────────────────── */
.manifesto-model {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.model-old, .model-new {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}

.model-new {
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.03);
}

.model-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.model-new .model-label { color: var(--green); }

.model-price {
  font-family: 'Syne', sans-serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.model-new .model-price { color: var(--green); }

.model-price span {
  font-size: 20px;
  font-weight: 400;
}

.model-desc {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 28px;
  line-height: 1.6;
}

.model-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.model-no, .model-yes {
  font-size: 14px;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.model-no::before { content: '✗'; position: absolute; left: 0; color: var(--red); }
.model-yes::before { content: '✓'; position: absolute; left: 0; color: var(--green); }
.model-no { color: var(--text-dim); }
.model-yes { color: var(--text-muted); }

/* ─── Closing ────────────────────────────────────── */
.closing {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

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

.closing h2 {
  font-size: clamp(28px, 3vw, 44px);
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.closing p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 60px;
}

.closing-cta { display: flex; justify-content: center; }

.cta-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 64px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
}

.cta-placeholder-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green-glow);
  border: 1px solid rgba(0,255,136,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-placeholder p {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
}

/* ─── Footer ───────────────────────────────────────── */
.site-footer {
  padding: 40px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { display: flex; flex-direction: column; gap: 8px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--green-glow);
  border: 1px solid rgba(0,255,136,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-meta p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .manifesto-model {
    grid-template-columns: 1fr;
  }
  .log-row-header,
  .log-row {
    grid-template-columns: 80px 1fr 120px;
  }
  .log-source,
  .log-threat { display: none; }
  .threat-header {
    flex-direction: column;
  }
  .threat-stat { text-align: left; }
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero { padding: 60px 0 60px; }
  .hero-inner { padding: 0 20px; }
  .hero-headline { font-size: 32px; }
  .patrol-inner { padding: 0 20px; }
  .features-inner { padding: 0 20px; }
  .threat-inner { padding: 0 20px; }
  .manifesto-inner { padding: 0 20px; }
  .closing-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { display: none; }
}