/* =============================================
   VIGIGUARD — Dark SOC Theme
   ============================================= */

:root {
  --bg: #040812;
  --bg-2: #070d1a;
  --surface: #0b1426;
  --surface-2: #0f1a30;
  --border: rgba(0, 229, 255, 0.12);
  --border-bright: rgba(0, 229, 255, 0.25);
  --cyan: #00E5FF;
  --cyan-dim: rgba(0, 229, 255, 0.15);
  --orange: #FF6B35;
  --orange-dim: rgba(255, 107, 53, 0.15);
  --green: #00E887;
  --red: #FF4444;
  --text: #e2e8f0;
  --text-dim: #8896ab;
  --text-muted: #4a5568;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

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

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

.nav-logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

.status-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 70%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

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

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-headline br { display: block; }

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

/* === MONITOR FRAME === */
.monitor-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.05),
    0 24px 64px rgba(0,0,0,0.6),
    0 0 80px rgba(0,229,255,0.04);
}

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

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

.monitor-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-bright);
}

.monitor-dots span:first-child { background: #FF5F57; }
.monitor-dots span:nth-child(2) { background: #FFBD2E; }
.monitor-dots span:nth-child(3) { background: #28CA41; }

.monitor-title {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}

.monitor-body {
  position: relative;
  padding: 20px;
  min-height: 280px;
}

.monitor-grid {
  position: absolute;
  inset: 20px;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  background: var(--border);
}

.grid-line.h { left: 0; right: 0; height: 1px; }
.grid-line.v { top: 0; bottom: 0; width: 1px; }

/* Agent rows */
.agent-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.agent-row.agent-secure { background: rgba(0, 232, 135, 0.05); border-color: rgba(0, 232, 135, 0.1); }
.agent-row.agent-warning { background: rgba(255, 107, 53, 0.07); border-color: rgba(255, 107, 53, 0.2); }
.agent-row.agent-critical { background: rgba(255, 68, 68, 0.08); border-color: rgba(255, 68, 68, 0.2); animation: alertPulse 2s ease-in-out infinite; }

@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,68,0.3); }
  50% { box-shadow: 0 0 12px 2px rgba(255,68,68,0.15); }
}

.agent-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agent-indicator.secure { background: var(--green); box-shadow: 0 0 6px var(--green); }
.agent-indicator.warning { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.agent-indicator.critical { background: var(--red); box-shadow: 0 0 6px var(--red); animation: pulse 1s ease-in-out infinite; }

.agent-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.agent-status {
  font-size: 11px;
  color: var(--text-dim);
  padding: 2px 8px;
  background: var(--surface-2);
  border-radius: 4px;
}

.agent-secure .agent-status { color: var(--green); }
.agent-warning .agent-status { color: var(--orange); }
.agent-critical .agent-status { color: var(--red); }

.agent-score {
  font-size: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text-dim);
  min-width: 44px;
  text-align: right;
}

/* Alert banner */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--orange-dim);
  border: 1px solid rgba(255,107,53,0.3);
  border-radius: 6px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 500;
}

/* === STATS === */
.stats-row {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 24px;
}

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

.stat { text-align: center; }

.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -1px;
  margin-bottom: 4px;
}

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

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

/* === HOW === */
.how {
  padding: 96px 24px;
  background: var(--bg);
}

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

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -1px;
  margin-bottom: 56px;
  line-height: 1.15;
}

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

.how-card {
  background: var(--bg);
  padding: 40px 32px;
}

.how-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--cyan-dim);
}

.how-card h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.how-card p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* === RISKS === */
.risks {
  padding: 96px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.risks-desc {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 20px 0 32px;
}

.risk-fact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.risk-stat {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -1px;
  line-height: 1;
  flex-shrink: 0;
}

.risk-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  padding-top: 6px;
}

.risk-list { display: flex; flex-direction: column; gap: 12px; }

.risk-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.risk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.risk-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.risk-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
}

.risk-badge.critical { background: rgba(255,68,68,0.15); color: var(--red); border: 1px solid rgba(255,68,68,0.3); }
.risk-badge.high { background: rgba(255,107,53,0.15); color: var(--orange); border: 1px solid rgba(255,107,53,0.3); }
.risk-badge.medium { background: rgba(0,229,255,0.1); color: var(--cyan); border: 1px solid rgba(0,229,255,0.2); }

.risk-item p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* === MANIFESTO === */
.manifesto {
  padding: 96px 24px;
  background: var(--bg);
}

.manifesto-inner { max-width: 800px; margin: 0 auto; }

.manifesto-quote-mark {
  font-family: var(--font-head);
  font-size: 80px;
  line-height: 0.5;
  color: var(--cyan);
  opacity: 0.3;
  margin-bottom: 24px;
}

.manifesto-content blockquote {
  font-family: var(--font-head);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.manifesto-divider {
  width: 64px;
  height: 2px;
  background: var(--cyan);
  margin-bottom: 40px;
  opacity: 0.6;
}

.manifesto-facts { display: flex; flex-direction: column; gap: 20px; }

.manifesto-fact {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
}

.manifesto-fact strong { color: var(--cyan); font-weight: 600; }

/* === CLOSING === */
.closing {
  padding: 96px 24px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-inner { max-width: 640px; margin: 0 auto; }

.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  line-height: 1.1;
}

.closing-sub {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 40px;
}

.closing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.closing-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
}

/* === FOOTER === */
.footer {
  padding: 40px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dim);
}

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

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-left { order: 1; }
  .hero-right { order: 2; }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .risks-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-inner {
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
  }

  .stat-divider { display: none; }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero { padding: 80px 20px 60px; }
  .monitor-body { padding: 16px; }
  .closing-stats { flex-direction: column; gap: 16px; }
}