@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

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

:root {
  --navy:    #0A0F1E;
  --navy2:   #070C18;
  --card:    #111827;
  --surface: #162032;
  --border:  #1E3A52;
  --cyan:    #00D4FF;
  --cyan-dim:#0099BB;
  --white:   #E8F4F8;
  --muted:   #7A9BB5;
  --red:     #FF4444;
  --green:   #7AC200;
  --orange:  #FF9500;
  --radius:  10px;
  --radius-lg: 14px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
.navbar {
  background: var(--navy2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--cyan);
  letter-spacing: -0.5px;
  margin-right: auto;
  text-decoration: none;
}
.nav-logo span { color: var(--white); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--muted);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 7px;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: #1A2E42; }
.nav-links a.active { color: var(--cyan); background: #0D1E2E; }
.nav-burger { display: none; background: none; border: none; color: var(--muted); font-size: 22px; cursor: pointer; padding: 4px; }
.mobile-menu { display: none; background: var(--navy2); border-top: 1px solid var(--border); padding: .75rem 1.5rem; flex-direction: column; gap: 4px; }
.mobile-menu a { color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 7px; text-decoration: none; display: block; }
.mobile-menu a:hover, .mobile-menu a.active { color: var(--cyan); background: #0D1E2E; }
.mobile-menu.open { display: flex; }

/* ── LAYOUT ── */
main { flex: 1; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--cyan);
  color: #070C18;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: .85; text-decoration: none; color: #070C18; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); text-decoration: none; }

/* ── BADGES ── */
.badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 10px;
  letter-spacing: .3px;
}
.badge-critical { background: #2A0F0F; color: var(--red); }
.badge-high     { background: #2A1A00; color: var(--orange); }
.badge-medium   { background: #1A1A00; color: #FFD700; }
.badge-important{ background: #1A2200; color: var(--green); }
.badge-good     { background: #0D1E2E; color: var(--cyan); }

/* ── HOME HERO ── */
.hero {
  padding: 5rem 1.5rem 3.5rem;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.terminal-line {
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  color: var(--cyan);
  background: #0D1E2E;
  border: 1px solid var(--border);
  display: inline-block;
  padding: 7px 16px;
  border-radius: 6px;
  margin-bottom: 2rem;
  letter-spacing: .5px;
}
.cursor { animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1}50%{opacity:0} }
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
}
.hero-title em { color: var(--cyan); font-style: normal; }
.hero-sub {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 0 1.5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1rem;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
}
.stat-label { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.4; }

/* ── EXPOSURE METER ── */
.meter-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 580px;
  margin: 0 auto 3rem;
  text-align: left;
}
.meter-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}
.dot-pulse {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(1.3)} }
.quiz-q { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.quiz-options { display: flex; flex-direction: column; gap: 7px; }
.quiz-btn {
  background: #0D1E2E;
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-align: left;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
}
.quiz-btn:hover, .quiz-btn.selected { border-color: var(--cyan); color: var(--cyan); }
.gauge-bar { height: 8px; background: #1E3A52; border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.gauge-fill { height: 100%; border-radius: 99px; transition: width .8s ease, background .8s; }
.gauge-label { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; }
.exposure-score { font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700; margin-bottom: 4px; }
.quiz-result-area { display: none; }

/* ── PAGE HEADER ── */
.page-header {
  padding: 3rem 1.5rem 0;
  max-width: 1000px;
  margin: 0 auto;
}
.page-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-desc { font-size: 14px; color: var(--muted); margin-bottom: 2.5rem; }

/* ── GUIDE CARDS ── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 0 1.5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}
.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  transition: border-color .2s;
}
.guide-card:hover { border-color: #3D5A73; }
.guide-icon {
  width: 36px; height: 36px;
  background: #0D1E2E;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  font-size: 18px;
}
.guide-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.guide-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.tip-list { list-style: none; margin-top: 10px; }
.tip-list li { font-size: 12px; color: var(--muted); padding: 4px 0; display: flex; gap: 6px; }
.tip-list li::before { content: "›"; color: var(--cyan); font-weight: 700; flex-shrink: 0; }

/* ── THREATS ── */
.threat-list {
  padding: 0 1.5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.threat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.threat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  transition: background .2s;
}
.threat-header:hover { background: var(--surface); }
.threat-meta { flex: 1; }
.threat-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}
.threat-summary { font-size: 12px; color: var(--muted); }
.sev-badge {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 99px;
  font-weight: 600;
  flex-shrink: 0;
}
.sev-critical { background: #2A0F0F; color: var(--red); }
.sev-high     { background: #2A1A00; color: var(--orange); }
.sev-medium   { background: #1A1A00; color: #FFD700; }
.threat-chevron { color: var(--muted); font-size: 18px; transition: transform .25s; flex-shrink: 0; }
.threat-item.open .threat-chevron { transform: rotate(180deg); }
.threat-body {
  display: none;
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--border);
}
.threat-item.open .threat-body { display: block; padding-top: 1rem; }
.threat-body p { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.protect-steps { list-style: none; }
.protect-steps li { font-size: 12px; color: var(--muted); padding: 3px 0; display: flex; gap: 8px; }
.protect-steps li::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── TOOLS ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 0 1.5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s;
}
.tool-card:hover { border-color: #3D5A73; }
.tool-header { display: flex; align-items: center; gap: 10px; }
.tool-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tool-icon.cyan   { background: #0A1E2E; color: var(--cyan); }
.tool-icon.green  { background: #0A1E0A; color: var(--green); }
.tool-icon.orange { background: #1E150A; color: var(--orange); }
.tool-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; }
.tool-cat { font-size: 11px; color: var(--muted); }
.tool-desc { font-size: 12px; color: var(--muted); line-height: 1.65; flex: 1; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { font-size: 10px; padding: 3px 9px; border-radius: 99px; background: #0D1E2E; color: var(--cyan); border: 1px solid #1E3A52; }
.tag-free { background: #0A1E0A; color: var(--green); border-color: #1A3A1A; }

/* ── CONTACT PAGE ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0 1.5rem 3rem;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 680px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}
.contact-info p { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}
.ci-icon {
  width: 34px; height: 34px;
  background: #0D1E2E;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan);
  font-size: 16px;
  flex-shrink: 0;
}
.ci-label { font-size: 11px; color: var(--muted); }
.ci-value { font-size: 13px; color: var(--white); }
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #0D1E2E;
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 7px;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--cyan); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select option { background: #111827; }
.form-msg { font-size: 12px; margin-top: 10px; padding: 8px 12px; border-radius: 7px; display: none; }
.form-msg.success { background: #0A1E0A; color: var(--green); border: 1px solid #1A3A1A; display: block; }
.form-msg.error   { background: #2A0F0F; color: var(--red);   border: 1px solid #5A1A1A; display: block; }

/* ── FOOTER ── */
footer {
  background: var(--navy2);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; color: var(--cyan); }
.footer-logo span { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 12px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--cyan); }
.footer-copy { font-size: 11px; color: var(--muted); width: 100%; text-align: center; }

/* ── ALERT BANNERS ── */
.alert { padding: .8rem 1.2rem; border-radius: 8px; font-size: 13px; margin-bottom: 1rem; }
.alert-success { background: #0A1E0A; color: var(--green); border: 1px solid #1A3A1A; }
.alert-error   { background: #2A0F0F; color: var(--red);   border: 1px solid #5A1A1A; }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .hero { padding: 3rem 1.2rem 2.5rem; }
  .guide-grid, .tools-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-links { display: none; }
}
