:root {
  --blue: #0B2C8C;
  --blue-deep: #071F66;
  --blue-night: #05164A;
  --blue-light: #4C7BEA;
  --red: #E30A2F;
  --yellow: #FDBC05;
  --white: #FFFFFF;
  --text: #E8EEFF;
  --muted: #9FB2E6;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--blue);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--white);
  margin: 0;
  line-height: 0.95;
}

h1 {
  font-size: clamp(56px, 8vw, 104px);
}

h1 span {
  color: var(--yellow);
}

h2 {
  font-size: clamp(42px, 6vw, 72px);
}

h3 {
  font-size: 30px;
  margin-bottom: 8px;
}

a {
  color: inherit;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--yellow);
}

.lead {
  font-size: 18px;
  color: var(--text);
  max-width: 560px;
}

.lead.narrow {
  margin: 14px auto 0;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(5, 22, 74, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.brand-word {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  line-height: 0.9;
  color: var(--white);
  letter-spacing: 0.5px;
}

.brand-word span {
  color: var(--yellow);
}

.brand-word.small {
  font-size: 26px;
}

.flag {
  display: flex;
  gap: 3px;
}

.flag i {
  flex: 1;
  height: 4px;
}

.flag i:nth-child(1) {
  background: var(--red);
}

.flag i:nth-child(2) {
  background: var(--yellow);
}

.flag i:nth-child(3) {
  background: var(--blue-light);
}

nav {
  display: flex;
  gap: clamp(10px, 2.4vw, 28px);
  font-size: 15px;
  font-weight: 600;
}

nav a {
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

nav a:hover {
  color: var(--yellow);
}

.nav-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
}

.dot.on, .nav-live .dot {
  background: #3BE08A;
  box-shadow: 0 0 0 0 rgba(59, 224, 138, 0.7);
  animation: pulse 2s infinite;
}

.dot.off {
  background: var(--red);
  animation: none;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 9px rgba(59, 224, 138, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 224, 138, 0);
  }
}

section {
  padding: clamp(56px, 9vw, 110px) clamp(16px, 5vw, 64px);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 66px);
  background: radial-gradient(ellipse at 70% 40%, rgba(76, 123, 234, 0.35), transparent 60%), var(--blue);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--yellow);
  color: var(--blue-night);
}

.button.ghost {
  border: 1.5px solid var(--line);
  color: var(--white);
}

.hero-art {
  margin: 0;
}

.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}

.live {
  background: var(--blue-deep);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-night);
  font-size: 12px;
  font-weight: 700;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.count {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 128px;
  line-height: 0.9;
  color: var(--white);
}

.count small {
  font-size: 40px;
  color: var(--muted);
  margin-left: 8px;
}

.range {
  margin: 6px 0 16px;
  font-size: 16px;
}

.meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.meter div {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-light), var(--yellow), var(--red));
  background-size: 300% 100%;
  transition: width 0.8s ease;
}

.state {
  margin: 12px 0 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: var(--yellow);
}

.trust-value {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 72px;
  line-height: 1;
  color: var(--white);
}

.sources {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sources li {
  display: grid;
  grid-template-columns: 110px 1fr 46px;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.sources .bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.sources .bar span {
  display: block;
  height: 100%;
  background: var(--blue-light);
}

.room {
  position: relative;
  aspect-ratio: 3 / 2;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

#live-heatmap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  filter: blur(6px);
  transform: scale(1.06);
}

.room.with-heat #live-heatmap {
  display: block;
}

.zones {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 6px;
  padding: 6px;
}

.zone {
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
  font-weight: 700;
  color: var(--blue-night);
  font-size: 15px;
  transition: background 0.8s ease;
}

.room.with-heat .zone {
  background: transparent !important;
  color: var(--white);
  border: 1px dashed rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.c1 {
  top: 6px;
  left: 6px;
}

.c2 {
  top: 6px;
  right: 6px;
}

.c3 {
  bottom: 6px;
  left: 6px;
}

.c4 {
  bottom: 6px;
  right: 6px;
}

.history-card {
  grid-column: 1 / -1;
}

#live-history {
  width: 100%;
  height: 180px;
  display: block;
  margin-top: 8px;
}

.sessions {
  background: var(--blue);
}

.session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.session-card h3 {
  font-size: 34px;
}

.session-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 14px;
}

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
}

.session-chart {
  width: 100%;
  height: 120px;
  display: block;
}

.pending {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  border-radius: 10px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 0 16px;
}

.how {
  background: var(--blue-deep);
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
  max-width: 1180px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-night);
  font-weight: 800;
  margin-bottom: 14px;
}

.steps li:nth-child(1) .step-number {
  background: var(--red);
  color: var(--white);
}

.steps li:nth-child(3) .step-number {
  background: var(--blue-light);
  color: var(--white);
}

.privacy {
  max-width: 1180px;
  margin: 18px auto 0;
  border-left: 6px solid var(--yellow);
}

.team {
  background: var(--blue);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 24px clamp(16px, 5vw, 64px);
  background: var(--blue-night);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: left;
  }

  .hero-art {
    order: -1;
  }
}

@media (max-width: 640px) {
  nav a:not(.nav-live) {
    display: none;
  }

  .count {
    font-size: 104px;
  }

  .sources li {
    grid-template-columns: 96px 1fr 42px;
  }
}

.history-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 16px;
}

.legend {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.key-line {
  display: inline-block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}

.key-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.chart-wrap {
  position: relative;
  margin-top: 8px;
}

#live-history {
  height: 200px;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 18px auto 0;
}

.summary-item {
  border-top: 3px solid var(--yellow);
  padding-top: 12px;
}

.summary-item:nth-child(2) {
  border-top-color: var(--red);
}

.summary-item:nth-child(3) {
  border-top-color: var(--blue-light);
}

.summary-item:nth-child(4) {
  border-top-color: var(--white);
}

.summary-value {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  line-height: 1;
  color: var(--white);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

.explainer {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 18px auto 0;
}

.explainer h3 {
  font-size: 44px;
}

.control {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-weight: 600;
}

.control strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--yellow);
}

.control input {
  width: 100%;
  accent-color: var(--yellow);
}

.toggle-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  font: inherit;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.chip.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--blue-night);
}

#ex-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: rgba(5, 22, 74, 0.6);
}

.ex-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

#ex-signal {
  width: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow), #3BE08A);
  background-size: 100% 100%;
}

#ex-doppler {
  width: 100%;
  height: 60px;
  display: block;
}

.sensors {
  background: var(--blue-deep);
}

.sensor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.sensor-card {
  scroll-margin-top: 90px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sensor-card h3 {
  font-size: 40px;
}

.sensor-card:target {
  border-color: var(--yellow);
  box-shadow: 0 0 0 4px rgba(253, 188, 5, 0.35);
}

.sensor-card .here {
  display: none;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--blue-night);
  font-size: 12px;
  font-weight: 800;
  width: fit-content;
}

.sensor-card:target .here {
  display: block;
}

.sensor-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin: 8px 0;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.team-copy p {
  font-size: 18px;
}

.team-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

@media (max-width: 860px) {
  .explainer, .team-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ex-meters {
    grid-template-columns: 1fr;
  }
}

.chart-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
  cursor: help;
}

.chart-dot::after {
  content: attr(data-label);
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}
