:root {
  --bg: #07111f;
  --panel: rgba(12, 27, 45, .92);
  --panel-2: #10243a;
  --line: rgba(115, 196, 255, .18);
  --text: #eef8ff;
  --muted: #9db4c5;
  --blue: #27a7ff;
  --cyan: #20e3d0;
  --green: #5ce38a;
  --amber: #ffc857;
  --red: #ff667d;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 85% -10%, rgba(39,167,255,.20), transparent 34rem),
    radial-gradient(circle at -10% 15%, rgba(32,227,208,.10), transparent 28rem),
    var(--bg);
  min-height: 100vh;
}

a { color: inherit; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(18px);
  background: rgba(7,17,31,.82);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .04em;
}

.logo {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--cyan));
  color: #04101d;
  font-weight: 1000;
  box-shadow: 0 0 30px rgba(39,167,255,.25);
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.navlinks a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 13px;
  border-radius: 12px;
  font-weight: 700;
}

.navlinks a:hover,
.navlinks a.active {
  color: white;
  background: rgba(39,167,255,.12);
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
  font-size: .78rem;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  letter-spacing: -.065em;
  line-height: .94;
  margin: 0 0 22px;
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: -.035em;
  margin: 0 0 14px;
}

h3 { margin: 0 0 8px; }

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 760px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.035);
}

.btn.primary {
  background: linear-gradient(135deg, var(--blue), #3978ff);
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(39,167,255,.23);
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.signal-art {
  min-height: 390px;
  border-radius: 32px;
  border: 1px solid var(--line);
  position: relative;
  background:
    linear-gradient(rgba(39,167,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39,167,255,.06) 1px, transparent 1px),
    radial-gradient(circle, rgba(32,227,208,.13), transparent 55%);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tower {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 10px;
  height: 185px;
  background: linear-gradient(#e9f8ff, #5b7b91);
  transform: translateX(-50%);
  clip-path: polygon(45% 0,55% 0,100% 100%,73% 100%,50% 27%,27% 100%,0 100%);
}

.tower:after {
  content: "";
  position: absolute;
  width: 90px;
  height: 4px;
  background: #d9f4ff;
  top: 55px;
  left: -40px;
  box-shadow: 0 45px 0 #8fbed6, 0 90px 0 #638aa0;
}

.wave {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 270px;
  height: 270px;
  border: 3px solid rgba(32,227,208,.42);
  border-radius: 50%;
  transform: translateX(-50%);
  animation: pulse 3s infinite;
}

.wave.w2 {
  width: 190px;
  height: 190px;
  top: 80px;
  animation-delay: -1s;
}

.wave.w3 {
  width: 110px;
  height: 110px;
  top: 120px;
  animation-delay: -2s;
}

@keyframes pulse {
  0%,100% { opacity:.2; transform:translateX(-50%) scale(.9); }
  50% { opacity:1; transform:translateX(-50%) scale(1.05); }
}

.section { padding: 42px 0 76px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.card {
  background: linear-gradient(145deg, rgba(16,36,58,.94), rgba(8,22,38,.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat strong {
  display: block;
  font-size: 2.1rem;
  margin-bottom: 5px;
}

.muted {
  color: var(--muted);
  line-height: 1.65;
}

.player-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  align-items: center;
}

.player-wrap {
  display: flex;
  justify-content: center;
}

.player-frame {
  width: 100%;
  max-width: 340px;
  min-height: 220px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  background: #000;
}

.feed-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
}

.feed-status .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
}

.page-head {
  padding: 70px 0 30px;
}

.page-head h1 {
  font-size: clamp(2.4rem,6vw,4.5rem);
}

.full-player-card {
  max-width: 760px;
  margin: 0 auto;
}

.full-player-frame {
  width: 100%;
  max-width: 340px;
  min-height: 220px;
  margin: 24px auto 0;
  overflow: hidden;
  background: #000;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.full-player-frame iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
  background: #000;
}

.notice {
  padding: 14px 16px;
  border-left: 4px solid var(--amber);
  background: rgba(255,200,87,.08);
  color: #ffdda0;
  border-radius: 9px;
  line-height: 1.55;
}

.frame-shell {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: white;
  min-height: 75vh;
}

.frame-shell iframe {
  width: 100%;
  min-height: 75vh;
  border: 0;
  display: block;
}

.frame-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

#map {
  height: 620px;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #10243a;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  margin-top: 18px;
}

.site-list {
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
}

.site-item {
  padding: 17px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  cursor: pointer;
}

.site-item:hover {
  border-color: rgba(39,167,255,.55);
}

.site-item .freq {
  font-size: 1.18rem;
  font-weight: 950;
  color: var(--cyan);
}

.status-linked { color: var(--green); }
.status-planned { color: var(--amber); }
.status-proposed { color: #ff9aa9; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px 18px;
  margin-top: 12px;
}

.detail-grid div { color: var(--muted); }

.detail-grid strong {
  color: white;
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 2px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.small { font-size: .87rem; }

@media (max-width: 900px) {
  .hero-grid,
  .player-card,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2,1fr);
  }

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

  .signal-art {
    min-height: 300px;
  }

  .site-list {
    max-height: none;
  }
}

@media (max-width: 620px) {
  .nav {
    align-items: flex-start;
    padding: 14px 0;
  }

  .navlinks {
    gap: 2px;
  }

  .navlinks a {
    padding: 8px;
    font-size: .85rem;
  }

  .brand > span:last-child {
    display: none;
  }

  .hero {
    padding-top: 55px;
  }

  .grid-4,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  #map {
    height: 480px;
  }
}
