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

:root {
  --bg: #08090c;
  --bg-2: #0d0e13;
  --bg-3: #12131a;
  --orange: #ff4d00;
  --cyan: #00e5c8;
  --orange-dim: rgba(255, 77, 0, 0.12);
  --cyan-dim: rgba(0, 229,  200, 0.08);
  --text: #e8e8ec;
  --text-muted: #6a6b7a;
  --text-dim: #3a3b48;
  --border: rgba(255, 255, 255, 0.07);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

/* === TYPOGRAPHY === */
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 9, 12, 0.85);
  backdrop-filter: blur(12px);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* === HERO === */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero__rule {
  height: 1px;
  background: linear-gradient(90deg, var(--orange), transparent 70%);
  margin-bottom: 2rem;
  opacity: 0.5;
}
.hero__metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.metric__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}
.metric__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  letter-spacing: 0.03em;
}

/* === SCAN PANEL (HERO VISUAL) === */
.scan-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.8rem;
}
.scan-panel__header {
  background: var(--bg-3);
  padding: 0.9rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.scan-panel__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
  font-weight: 600;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 229, 200, 0.4);
  animation: pulse-ring 1.5s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 200, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(0, 229, 200, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 200, 0); }
}
.scan-panel__target {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.72rem;
}
.scan-panel__attacks {
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.attack-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  background: var(--bg);
  font-size: 0.72rem;
}
.attack-row--critical { border-left: 2px solid #ff3b3b; }
.attack-row--high { border-left: 2px solid var(--orange); }
.attack-row--medium { border-left: 2px solid #ffb800; }
.attack-row--low { border-left: 2px solid #4a9eff; }
.attack-sev {
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  text-align: center;
}
.sev-critical { background: rgba(255, 59, 59, 0.15); color: #ff3b3b; }
.sev-high { background: rgba(255, 77, 0, 0.15); color: var(--orange); }
.sev-medium { background: rgba(255, 184, 0, 0.15); color: #ffb800; }
.sev-low { background: rgba(74, 158, 255, 0.15); color: #4a9eff; }
.attack-name {
  color: var(--text);
  font-size: 0.75rem;
}
.attack-status {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.triggered { background: rgba(255, 59, 59, 0.1); color: #ff3b3b; }
.blocked { background: rgba(0, 229, 200, 0.1); color: var(--cyan); }
.scan-panel__footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.scan-progress { color: var(--cyan); }

/* === PROOF STATS === */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
}
.stats__inner { max-width: 1200px; margin: 0 auto; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.stat-card__number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.stat-card__context {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.stats__callout {
  max-width: 700px;
}
.stats__callout p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-style: italic;
}

/* === THREAT MODEL === */
.threat-model { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.threat-model__inner { }
.threat-layers {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.threat-layer {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  transition: background 0.2s;
}
.threat-layer:hover { background: var(--bg-3); }
.threat-layer__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}
.layer-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.5;
  line-height: 1;
}
.threat-layer__attacks {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.attack-tag {
  font-size: 0.72rem;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  background: var(--orange-dim);
  color: var(--orange);
  font-weight: 500;
}

/* === METHODOLOGY === */
.methodology {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem;
}
.methodology__inner { max-width: 1200px; margin: 0 auto; }
.methodology__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.method-steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step__number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.4;
  line-height: 1;
  padding-top: 0.1rem;
}
.step__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.step__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === OBSERVATORY === */
.observatory { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.finding-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.finding-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.finding-card--critical { border-top: 2px solid #ff3b3b; }
.finding-card--high { border-top: 2px solid var(--orange); }
.finding-card--medium { border-top: 2px solid #ffb800; }
.finding-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.finding-id {
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}
.finding-severity {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.finding-card--critical .finding-severity { background: rgba(255,59,59,0.15); color: #ff3b3b; }
.finding-card--high .finding-severity { background: rgba(255,77,0,0.15); color: var(--orange); }
.finding-card--medium .finding-severity { background: rgba(255,184,0,0.15); color: #ffb800; }
.finding-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.finding-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.finding-card__meta {
  margin-top: auto;
}
.finding-framework {
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.finding-card__rec {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  background: var(--bg);
  border-radius: 6px;
  padding: 0.75rem;
  border: 1px solid var(--border);
}

/* === CLOSING === */
.closing {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 6rem 2rem;
}
.closing__inner { max-width: 1200px; margin: 0 auto; }
.closing__headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.closing__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.closing__compliance {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.comp-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 500;
  background: var(--cyan-dim);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.footer__copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .methodology__grid { grid-template-columns: 1fr; gap: 3rem; }
  .finding-cards { grid-template-columns: 1fr; }
  .threat-layer { grid-template-columns: 1fr; gap: 1rem; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
  .stats__grid { grid-template-columns: 1fr; }
  .hero__metrics { gap: 1.5rem; }
  .closing__compliance { flex-direction: column; }
}