:root{
  --bg: #0b0f14;
  --panel: #0f1720;
  --panel2: rgba(255,255,255,0.02);
  --text: #e8eef6;
  --muted: #a8b4c3;
  --line: #223044;
  --accent: #86c5ff;
  --shadow: rgba(0,0,0,0.45);
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  background: linear-gradient(180deg, #070b10 0%, #0b0f14 100%);
  color: var(--text);
}

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

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,15,20,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

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

.brand-mark{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 30%, #1e2f46, #0f1720);
}

.brand-name{
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-tag{
  font-size: 12px;
  color: var(--muted);
}

.top-nav{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a{
  font-size: 13px;
  opacity: 0.92;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.top-nav a:hover{
  border-color: var(--line);
  background: rgba(255,255,255,0.03);
}

/* Hero */
.hero{
  padding: 34px 0 14px;
}

h1{
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.2px;
  line-height: 1.15;
}

.subhead{
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 78ch;
  line-height: 1.5;
}

.hero-image{
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 18px 60px var(--shadow);
}

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

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

/* Router cards */
.routers{
  padding: 10px 0 26px;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.router-card{
  display:block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: var(--panel2);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.router-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.035);
  border-color: rgba(134,197,255,0.35);
}

.router-card h2{
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.1px;
}

.router-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13.5px;
}

/* PALS section */
.pals{
  padding: 8px 0 34px;
}

.pals h2{
  margin: 0 0 8px;
  font-size: 18px;
}

.pals p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 90ch;
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--line);
  padding: 16px 0;
  color: var(--muted);
  font-size: 12px;
}

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

.muted{ opacity: 0.85; }

/* Responsive */
@media (max-width: 820px){
  h1{ font-size: 26px; }
  .grid{ grid-template-columns: 1fr; }
  .top-nav{ display:none; } /* keep simple for phase 1; we can add a hamburger later */
}
/* Utility content blocks (reusable on L1 pages) */
.kv{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.02);
}

.kv h3{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: -0.1px;
}

.kv ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13.5px;
}

.pills{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-size: 13px;
  color: var(--text);
}

.pill:hover{
  border-color: rgba(134,197,255,0.35);
  background: rgba(255,255,255,0.035);
}
/* SVG overlay for shape-based hotspots */
.map-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index: 5; /* above image, below tooltip */
}

/* Hotspot shapes: invisible until hover */
.hs{
  fill: rgba(134,197,255,0.00);
  stroke: rgba(134,197,255,0.00);
  stroke-width: 2;
  cursor: pointer;
}
/* Hover/focus glow */
.hs:hover,
.hs:focus{
  fill: rgba(134,197,255,0.10);
  stroke: rgba(134,197,255,0.35);
  outline: none;
}
