/*
  style.css
  ------------------------------------------------------------------
  Purpose:
  Shared visual styling for the entire website.

  Includes:
  - navigation bar
  - homepage hero
  - card layout
  - dashboard page layout
  - placeholders for future maps and charts
*/

:root {
  --bg: #081120;
  --bg-soft: #0e1a2f;
  --panel: rgba(17, 28, 48, 0.82);
  --border: rgba(173, 196, 255, 0.12);
  --text: #eef4ff;
  --muted: #a8bad7;
  --accent: #8fb7ff;
  --accent-2: #92efd6;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(92, 126, 255, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(106, 236, 211, 0.10), transparent 20%),
    linear-gradient(180deg, #07101c 0%, #0a1424 100%);
}

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

p {
  color: var(--muted);
  line-height: 1.7;
}

h1, h2, h3 {
  margin-top: 0;
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7, 14, 27, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-wrapper {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(143, 183, 255, 0.15);
  border: 1px solid rgba(143, 183, 255, 0.15);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(143, 183, 255, 0.13);
  color: var(--text);
}

.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.eyebrow,
.section-tag,
.mini-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #c0d6ff);
  color: #06101d;
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.glass-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel {
  padding: 28px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
}

.stat-card h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.two-column {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.source-card {
  padding: 22px;
}

.page-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.page-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 31, 53, 0.96), rgba(9, 17, 31, 0.96));
  border: 1px solid rgba(173, 196, 255, 0.10);
  transition: 0.2s ease;
}

.page-card:hover {
  transform: translateY(-4px);
  border-color: rgba(143, 183, 255, 0.30);
}

.page-number {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.site-footer {
  padding: 24px 0 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.page-shell {
  padding-bottom: 56px;
}

.page-hero.compact {
  padding: 56px 0 24px;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1.75fr 0.85fr;
  gap: 22px;
}

.map-stage,
.side-panel {
  padding: 22px;
}

.map-stage-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.fake-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 0.9rem;
}

.map-placeholder-large {
  min-height: 520px;
  border-radius: var(--radius-md);
  border: 1.5px dashed rgba(173, 196, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02),
      rgba(255,255,255,0.02) 12px,
      transparent 12px,
      transparent 24px
    );
}

.placeholder-content {
  text-align: center;
  padding: 24px;
}

.side-section + .side-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.insight-list {
  padding-left: 18px;
  color: var(--muted);
}

.insight-list li {
  margin-bottom: 10px;
}

.chart-placeholder {
  min-height: 180px;
  border-radius: var(--radius-md);
  border: 1.5px dashed rgba(146, 239, 214, 0.20);
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  text-align: center;
  padding: 16px;
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-column,
  .source-grid,
  .page-card-grid,
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .nav-wrapper {
    flex-direction: column;
    align-items: start;
    padding: 14px 0;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .map-stage-top {
    flex-direction: column;
  }
}


.intensity-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dashboard-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(120,180,255,0.18);
  border-radius: 14px;
  padding: 16px;
}

.dashboard-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #dce9ff;
}

.dashboard-card-wide {
  grid-column: 1 / -1;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.metric-row:last-child {
  border-bottom: none;
}

.metric-row span {
  color: #b9c7de;
}

.metric-row strong {
  color: #ffffff;
}

.bar-item {
  margin-bottom: 14px;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.bar-label {
  color: #dbe7fb;
  max-width: 75%;
}

.bar-value {
  color: #8ec5ff;
  font-weight: 600;
}

.bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4da3ff, #7fd1ff);
}

@media (max-width: 900px) {
  .intensity-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card-wide {
    grid-column: auto;
  }
}