/* ============================================================
   BeaconNet — shared styles
   Theme: harbor-at-night / signal propagation
   ============================================================ */

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

:root {
  --deep:      #0B1B2B;
  --abyss:     #07131F;
  --panel:     #102A40;
  --panel-2:   #0E2335;
  --line:      #1E3A52;
  --beam:      #FFB454;
  --beam-deep: #E8923B;
  --signal:    #61D2E8;
  --mist:      #DCE6EF;
  --haze:      #7E96AC;
  --ok:        #5FD08A;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(97,210,232,0.08), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(255,180,84,0.06), transparent 55%),
    var(--deep);
  color: var(--mist);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

::selection { background: rgba(255,180,84,0.3); color: #fff; }

:focus-visible {
  outline: 2px solid var(--beam);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,19,31,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 19px;
  letter-spacing: 0.02em; color: var(--mist);
}
.brand:hover { text-decoration: none; }
.brand .glyph {
  width: 22px; height: 22px; flex: none;
  display: grid; place-items: center;
}
.brand b { color: var(--beam); font-weight: 700; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a {
  color: var(--haze); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.nav a:hover { color: var(--mist); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--beam);
  margin: 0 0 18px;
}
h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 6vw, 60px); line-height: 1.02;
  letter-spacing: -0.02em; margin: 0 0 20px; color: #fff;
}
h1 .em { color: var(--beam); }
.lede { font-size: 18px; color: var(--haze); max-width: 46ch; margin: 0 0 30px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--beam); color: #1a1205; }
.btn-primary:hover { background: var(--beam-deep); }
.btn-ghost { border-color: var(--line); color: var(--mist); }
.btn-ghost:hover { border-color: var(--signal); }

.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13px; color: var(--ok);
  padding: 7px 14px; border: 1px solid rgba(95,208,138,0.35);
  border-radius: 999px; background: rgba(95,208,138,0.06);
  margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dot.live { animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- beacon (signature) ---------- */
.beacon-stage {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 380px;
  margin-inline: auto; display: grid; place-items: center;
}
.ring {
  position: absolute; inset: 0; margin: auto;
  border: 1px solid rgba(97,210,232,0.55); border-radius: 50%;
  width: 70px; height: 70px;
  animation: pulse 3.6s ease-out infinite;
}
.ring:nth-child(2) { animation-delay: 1.2s; }
.ring:nth-child(3) { animation-delay: 2.4s; }
@keyframes pulse {
  0%   { width: 70px; height: 70px; opacity: 0.9; }
  100% { width: 360px; height: 360px; opacity: 0; }
}
.beacon-core {
  position: relative; z-index: 2;
  width: 70px; height: 70px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff, var(--beam) 45%, var(--beam-deep) 100%);
  box-shadow: 0 0 40px rgba(255,180,84,0.55), 0 0 90px rgba(255,180,84,0.25);
  display: grid; place-items: center;
}
.beacon-core span {
  font-family: var(--display); font-weight: 700; color: #2a1a05; font-size: 26px;
}
.sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(97,210,232,0.18), transparent 35%);
  animation: spin 6s linear infinite;
  mask: radial-gradient(circle, transparent 36px, #000 38px);
  -webkit-mask: radial-gradient(circle, transparent 36px, #000 38px);
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .ring, .sweep, .dot.live { animation: none; }
  .ring:nth-child(1) { width: 150px; height: 150px; opacity: .5; }
  .ring:nth-child(2) { width: 250px; height: 250px; opacity: .28; }
  .ring:nth-child(3) { width: 340px; height: 340px; opacity: .12; }
  html { scroll-behavior: auto; }
}

/* ---------- sections ---------- */
section.band { padding: 30px 0 60px; }
.section-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px;
  border-top: 1px solid var(--line); padding-top: 30px;
}
.section-head .idx {
  font-family: var(--mono); font-size: 13px; color: var(--beam); letter-spacing: 0.1em;
}
.section-head h2 {
  font-family: var(--display); font-weight: 600; font-size: 24px;
  margin: 0; letter-spacing: -0.01em;
}

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px;
}
.stat .num {
  font-family: var(--display); font-weight: 700; font-size: 30px; color: #fff;
  line-height: 1;
}
.stat .num .u { color: var(--beam); font-size: 18px; }
.stat .lbl {
  font-family: var(--mono); font-size: 12px; color: var(--haze);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 10px;
}

/* data table */
.tablecard {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--abyss);
}
.tablecard .caption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}
.tablecard .caption span {
  font-family: var(--mono); font-size: 12px; color: var(--haze);
  letter-spacing: 0.08em; text-transform: uppercase;
}
table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
thead th {
  text-align: left; padding: 12px 18px; color: var(--signal);
  font-weight: 500; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; border-bottom: 1px solid var(--line);
}
tbody td { padding: 12px 18px; border-bottom: 1px solid rgba(30,58,82,0.5); color: var(--mist); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(97,210,232,0.04); }
.tag { font-size: 11px; padding: 2px 9px; border-radius: 5px; letter-spacing: 0.04em; }
.tag.up { color: var(--ok); background: rgba(95,208,138,0.12); }
.tag.deg { color: var(--beam); background: rgba(255,180,84,0.12); }

.note {
  font-family: var(--mono); font-size: 12.5px; color: var(--haze);
  margin-top: 14px;
}

/* prose / generic card */
.cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.infocard {
  border: 1px solid var(--line); border-radius: 12px; padding: 22px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.infocard h3 {
  font-family: var(--display); font-size: 17px; margin: 0 0 8px; color: #fff;
}
.infocard p { color: var(--haze); font-size: 15px; margin: 0; }

/* restricted banner (NOC) */
.restricted {
  border: 1px solid var(--beam-deep); border-radius: 12px;
  background: rgba(255,180,84,0.06); padding: 18px 22px; margin: 28px 0;
  font-family: var(--mono); font-size: 13.5px; color: var(--beam);
  display: flex; gap: 12px; align-items: flex-start;
}
.codeblock {
  font-family: var(--mono); font-size: 14px; background: var(--abyss);
  border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px;
  color: var(--mist); overflow-x: auto; margin: 18px 0;
}
.flagchip {
  display: inline-block; font-family: var(--mono); font-size: 16px;
  color: var(--ok); background: rgba(95,208,138,0.08);
  border: 1px dashed rgba(95,208,138,0.5); border-radius: 8px;
  padding: 10px 16px; letter-spacing: 0.02em;
}

/* footer */
footer {
  border-top: 1px solid var(--line); padding: 40px 0 60px; margin-top: 30px;
  color: var(--haze);
}
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.foot-col h4 {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--mist); margin: 0 0 12px;
}
.foot-col a { display: block; color: var(--haze); font-size: 14px; margin-bottom: 7px; }
.foot-col a:hover { color: var(--signal); }
.fineprint {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--haze); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .beacon-stage { max-width: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cardgrid { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  table { font-size: 12.5px; }
  thead th, tbody td { padding: 10px 12px; }
}
