:root {
  --bg: #06111d;
  --bg-soft: #0c1c2f;
  --panel: rgba(12, 25, 42, 0.82);
  --panel-soft: rgba(255, 255, 255, 0.03);
  --line: rgba(148, 176, 214, 0.16);
  --text: #edf7ff;
  --muted: #9ab0c7;
  --accent: #7ee2c3;
  --accent-warm: #ffd36e;
  --danger: #ff7a7a;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --max-width: 1180px;
  --font-base: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126, 226, 195, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(255, 211, 110, 0.08), transparent 24%),
    linear-gradient(180deg, #030a13 0%, #07121f 36%, #08131f 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(3, 10, 19, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__inner,
.section__inner,
.hero__grid,
.ticker__inner,
.footer,
.page-hero {
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav__inner {
  min-height: 74px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__logo span,
.text-link,
.card__link {
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero,
.section,
.ticker,
.footer-wrap {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.hero {
  padding-top: 5.2rem;
  padding-bottom: 4.4rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
  gap: 1.6rem;
  align-items: center;
  padding: 0 1.5rem;
}

.hero--portal {
  position: relative;
}

.eyebrow,
.section__label,
.signal-card__label,
.ticker__label,
.card__kicker,
.modal__label,
.campaign-card__label,
.vendor-card__label {
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero__title,
.page-hero__title {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.1rem, 4.8vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero__subtitle,
.page-hero__sub,
.section__lead,
.signal-card p,
.card p,
.campaign-card p,
.vendor-card p,
.modal__panel p,
.footer {
  color: var(--muted);
}

.hero__subtitle {
  max-width: 640px;
  margin: 1.15rem 0 0;
  font-size: 0.98rem;
  line-height: 1.72;
}

.hero__actions,
.filter-bar,
.search-bar,
.entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__actions {
  margin-top: 1.8rem;
}

.btn,
.filter-chip,
.entry-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
}

.btn--primary {
  color: #04111c;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-warm) 100%);
}

.btn--ghost,
.filter-chip,
.entry-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.filter-chip.is-active {
  color: var(--accent);
  border-color: rgba(126, 226, 195, 0.3);
  background: rgba(126, 226, 195, 0.08);
}

.hero__stats {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero__stats li,
.signal-card,
.panel,
.entry-card,
.campaign-card,
.vendor-card,
.glossary-card,
.terminal,
.stack > * {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__stats li {
  border-radius: var(--radius-md);
  padding: 1rem;
}

.hero__stats strong {
  display: block;
  font-size: 1.15rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.terminal,
.signal-card,
.entry-card,
.campaign-card,
.vendor-card,
.glossary-card,
.panel {
  border-radius: var(--radius-lg);
}

.terminal__header {
  display: flex;
  gap: 0.4rem;
  padding: 1rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal__header span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.terminal__body {
  padding: 1.2rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
}

.terminal__body p {
  margin: 0 0 0.4rem;
}

.prompt {
  color: var(--accent);
}

.signal-card {
  padding: 1.2rem 1.3rem;
}

.signal-card h3,
.entry-card h3,
.campaign-card h3,
.vendor-card h3,
.glossary-card h3 {
  margin: 0.35rem 0 0.55rem;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 650;
}

.ticker {
  padding-bottom: 1rem;
}

.ticker__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 0 1.5rem;
}

.ticker__label {
  margin: 0;
}

.ticker__viewport {
  position: relative;
  min-height: 1.7rem;
}

.ticker__item {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  color: var(--muted);
}

.ticker__item.is-active {
  opacity: 1;
  transform: translateY(0);
}

.section {
  padding-top: 4.6rem;
  padding-bottom: 4.6rem;
}

.section--alt {
  background: linear-gradient(180deg, rgba(11, 24, 40, 0.8), rgba(7, 17, 29, 0.94));
}

.section--dark {
  background: linear-gradient(180deg, rgba(8, 17, 30, 0.9), rgba(4, 10, 19, 0.96));
}

.section__inner {
  padding: 0 1.5rem;
}

.section__split {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
  align-items: end;
  margin-bottom: 1.35rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 680;
}

.text-link {
  font-weight: 700;
}

.page-hero {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.page-hero__title {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(1.95rem, 4vw, 3.1rem);
}

.page-hero__sub {
  margin: 1rem auto 0;
  max-width: 740px;
  font-size: 0.97rem;
  line-height: 1.72;
}

.threat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
  gap: 1.2rem;
  align-items: start;
}

.threat-layout--full {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
}

.map-panel {
  display: grid;
  gap: 0.9rem;
}

.map-stage {
  position: relative;
  min-height: 430px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 20%, rgba(126, 226, 195, 0.05), transparent 26%),
    linear-gradient(180deg, rgba(7, 18, 30, 0.96), rgba(4, 10, 19, 0.99));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.map-stage--large {
  min-height: 560px;
}

.map-shell,
.map-base,
.map-svg,
.map-markers {
  position: absolute;
}

.map-shell,
.map-base,
.map-svg,
.map-markers {
  inset: 0;
}

.map-shell {
  background:
    linear-gradient(rgba(126, 226, 195, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 226, 195, 0.04) 1px, transparent 1px);
  background-size: 52px 52px, 52px 52px;
}

.map-base {
  width: calc(100% - 2.5rem);
  height: calc(100% - 3rem);
  margin: 1.3rem 1.25rem 1.7rem;
  object-fit: contain;
  opacity: 0.2;
  filter: brightness(0) saturate(100%) invert(86%) sepia(14%) saturate(674%) hue-rotate(105deg) brightness(87%) contrast(90%);
  pointer-events: none;
}

.map-svg {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-svg .map-path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.2;
  stroke: rgba(126, 226, 195, 0.8);
  filter: drop-shadow(0 0 8px rgba(126, 226, 195, 0.3));
}

.map-svg .map-path--hot {
  stroke: rgba(255, 122, 122, 0.9);
  filter: drop-shadow(0 0 10px rgba(255, 122, 122, 0.36));
}

.map-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(126, 226, 195, 0.08), 0 0 16px rgba(126, 226, 195, 0.42);
  transform: translate(-50%, -50%);
}

.map-marker--hot {
  background: var(--danger);
  box-shadow: 0 0 0 10px rgba(255, 122, 122, 0.08), 0 0 18px rgba(255, 122, 122, 0.46);
}

.map-pulse {
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(126, 226, 195, 0.35);
  border-radius: 999px;
  animation: map-pulse 2.6s ease-out infinite;
}

.map-marker--hot .map-pulse {
  border-color: rgba(255, 122, 122, 0.35);
}

.map-overview__card,
.region-panel,
.map-footer {
  background: rgba(4, 10, 19, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 1rem;
}

.campaign-card,
.vendor-card,
.entry-card,
.glossary-card {
  padding: 1.2rem;
}

.campaign-card {
  position: relative;
  overflow: hidden;
}

.campaign-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(126, 226, 195, 0.12), transparent 70%);
  pointer-events: none;
}

.card-grid,
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1rem;
}

.vendor-grid--full {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.entry-meta,
.vendor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.pill--hot {
  color: #ffdcdc;
  background: rgba(255, 122, 122, 0.16);
}

.pill--warm {
  color: #ffe8b4;
  background: rgba(255, 211, 110, 0.15);
}

.entry-actions {
  margin-top: 0.95rem;
}

.search-bar {
  margin-bottom: 1rem;
}

.search-bar--intel input {
  min-height: 56px;
}

.search-bar input {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.search-meta {
  margin: -0.15rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.filter-bar {
  margin-bottom: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 34px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid rgba(126, 226, 195, 0.22);
  background: rgba(126, 226, 195, 0.1);
  font-size: 0.84rem;
  font-weight: 700;
}

.map-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.map-overview__card {
  border-radius: 20px;
  padding: 0.95rem 1rem;
}

.map-overview__card strong {
  display: block;
  font-size: 1.25rem;
  color: var(--text);
}

.map-overview__card span {
  color: var(--muted);
  font-size: 0.85rem;
}

.region-panel,
.map-footer {
  border-radius: 20px;
  padding: 1rem 1.1rem;
}

.region-panel__title,
.map-footer__title {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 650;
}

.region-panel__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.region-panel__chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-footer {
  display: grid;
  gap: 0.8rem;
}

.map-footer__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.map-footer__item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.map-footer__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(126, 226, 195, 0.45);
}

.map-footer__dot--hot {
  background: var(--danger);
  box-shadow: 0 0 10px rgba(255, 122, 122, 0.45);
}

.map-footer__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.risk-card {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.risk-card strong {
  display: block;
  color: var(--text);
  font-size: 1.2rem;
  margin-top: 0.15rem;
}

.risk-card span,
.risk-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.88rem;
}

.modal__grid--stacked {
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.related-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.75rem;
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}

.related-link--warm {
  color: #ffe8b4;
  border-color: rgba(255, 211, 110, 0.18);
  background: rgba(255, 211, 110, 0.1);
}

.related-link--hot {
  color: #ffdcdc;
  border-color: rgba(255, 122, 122, 0.2);
  background: rgba(255, 122, 122, 0.1);
}

.footer {
  padding: 1.8rem 1.5rem 2.4rem;
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.78);
}

.modal__panel {
  position: relative;
  max-width: 760px;
  margin: 8vh auto 0;
  padding: 1.5rem;
  border-radius: 24px;
  background: #0a1624;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.modal__close {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

.modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

@media (max-width: 980px) {
  .hero__grid,
  .threat-layout,
  .threat-layout--full,
  .modal__grid,
  .map-overview {
    grid-template-columns: 1fr;
  }

  .hero__title,
  .page-hero__title {
    max-width: none;
  }

  .section__split {
    flex-direction: column;
    align-items: start;
  }
}

@media (max-width: 760px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.8rem 1.5rem 1.2rem;
    background: rgba(3, 10, 19, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    display: block;
    padding: 0.75rem 0;
  }

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

  .ticker__inner {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }

  .map-stage {
    min-height: 360px;
  }

  .map-base {
    width: calc(100% - 1.2rem);
    height: calc(100% - 2rem);
    margin: 0.9rem 0.6rem 1.1rem;
  }
}

@keyframes map-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}
