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

:root {
  --bg: #080b11;
  --bg-2: #0d1119;
  --bg-card: #111827;
  --fg: #f0f4f8;
  --fg-muted: #8899aa;
  --fg-dim: #4a5568;
  --accent: #00d4ff;
  --accent-dim: rgba(0,212,255,0.12);
  --amber: #e8a317;
  --amber-dim: rgba(232,163,23,0.12);
  --high: #ef4444;
  --high-dim: rgba(239,68,68,0.12);
  --med: #e8a317;
  --low: #22c55e;
  --border: rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.12);
}

html { font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: 'Sora', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,11,17,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  letter-spacing: -0.03em;
}
.logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.navbar-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--low);
  box-shadow: 0 0 8px var(--low);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.status-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-grid-bg {
  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: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.eyebrow-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.65rem;
  border-radius: 3px;
  border: 1px solid rgba(0,212,255,0.2);
}
.eyebrow-sep {
  color: var(--fg-dim);
  font-size: 0.75rem;
}
.hero-headline {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.05;
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.metric { display: flex; flex-direction: column; gap: 0.2rem; }
.metric-val {
  font-family: 'Sora', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.metric-label { font-size: 0.7rem; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.metric-divider { width: 1px; height: 32px; background: var(--border-strong); }

/* Signal Feed */
.signal-feed {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.feed-title { font-size: 0.75rem; font-weight: 600; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.feed-live {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--low);
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  letter-spacing: 0.1em;
}
.feed-items { padding: 0.5rem 0; }
.feed-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.feed-item:last-child { border-bottom: none; }
.feed-item--alert { background: rgba(239,68,68,0.04); }
.feed-time { color: var(--fg-dim); font-size: 0.68rem; font-family: 'DM Mono', monospace; }
.feed-text { color: var(--fg-muted); line-height: 1.4; }
.highlight { color: var(--fg); font-weight: 500; }
.feed-score {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 2px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.score-high { color: var(--high); background: var(--high-dim); border: 1px solid rgba(239,68,68,0.2); }
.score-med { color: var(--med); background: var(--amber-dim); border: 1px solid rgba(232,163,23,0.2); }
.score-low { color: var(--low); background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); }

/* === SHARED SECTION STYLES === */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem;
}
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-headline {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.section-body {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.75;
}

/* === THREAT SURVEILLANCE === */
.threat-surveillance {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.surveillance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.surv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.2s;
}
.surv-card:hover { border-color: rgba(0,212,255,0.3); }
.surv-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.surv-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.surv-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === DAILY BRIEFING === */
.daily-briefing { background: var(--bg); }
.briefing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.briefing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.tag {
  font-size: 0.72rem;
  color: var(--fg-muted);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
}
.briefing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  overflow: hidden;
}
.briefing-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.briefing-date { font-size: 0.8rem; font-weight: 600; color: var(--fg); }
.briefing-time { font-size: 0.72rem; color: var(--fg-dim); }
.briefing-summary {
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  color: var(--amber);
  background: var(--amber-dim);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.briefing-sections { padding: 0.5rem 0; }
.brief-sec { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); }
.brief-sec:last-child { border-bottom: none; }
.brief-sec-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}
.brief-sec--critical .brief-sec-label { color: var(--high); }
.brief-sec--high .brief-sec-label { color: var(--amber); }
.brief-sec--watch .brief-sec-label { color: var(--fg-muted); }
.brief-sec-title { font-size: 0.85rem; font-weight: 500; color: var(--fg); line-height: 1.5; margin-bottom: 0.3rem; }
.brief-sec-meta { font-size: 0.68rem; color: var(--fg-dim); }

/* === SIGNAL ENGINE === */
.signal-engine { background: var(--bg-2); border-top: 1px solid var(--border); }
.engine-header { margin-bottom: 3rem; }
.engine-stages {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.stage { padding: 0 1.5rem; }
.stage-num {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0,212,255,0.15);
  margin-bottom: 1rem;
  line-height: 1;
}
.stage h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.6rem;
}
.stage p { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.7; }
.stage-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  color: var(--fg-dim);
}
.stage-connector::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--border-strong);
}

/* === MANIFESTO === */
.manifesto {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 7rem 2rem;
  text-align: center;
}
.manifesto-headline {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 2rem;
  line-height: 1.15;
}
.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: left;
}
.manifesto-principles {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 3rem;
  text-align: left;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.principle {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
}
.principle-num {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,0.2);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* === FOOTER === */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner { max-width: 1280px; margin: 0 auto; text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.footer-logo-mark {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,255,0.3);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.footer-name {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
}
.footer-tagline { font-size: 0.8rem; color: var(--fg-dim); margin-bottom: 0.5rem; }
.footer-meta { font-size: 0.72rem; color: var(--fg-dim); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.footer-sep { color: var(--fg-dim); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: none; }
  .briefing-layout { grid-template-columns: 1fr; }
  .engine-stages { grid-template-columns: 1fr; }
  .stage-connector { display: none; }
  .surveillance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section-inner { padding: 4rem 1.25rem; }
  .hero-content { padding: 3rem 1.25rem; }
  .manifesto-inner { padding: 4rem 1.25rem; }
  .hero-metrics { flex-wrap: wrap; gap: 1rem; }
}