/* ── CSS Variables ── */
:root {
  --bg:      #07090f;
  --surface: #0b0f1a;
  --card:    #0f1520;
  --card-h:  #131c2a;
  --border:  #1c2638;
  --border-h:#283650;
  --accent:  #4e78e0;
  --accent2: #7c5ce8;
  --green:   #28c99a;
  --amber:   #e09d2e;
  --text:    #d8e0f0;
  --sub:     #8898b8;
  --muted:   #4a5a78;
  --r:       8px;
  --r-lg:    14px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Background layers ── */
#cvs { position: fixed; inset: 0; z-index: -10; pointer-events: none; }

#ambient-orbs { position: fixed; inset: 0; z-index: -9; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(160px); opacity: .07;
  animation: orb-float 14s ease-in-out infinite alternate;
}
.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #3b82f6; }
.orb-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: #7c5ce8; animation-delay: -6s; }
.orb-3 { top: 35%; left: 35%; width: 40vw; height: 40vw; background: #4e78e0; opacity: .04; animation-delay: -3s; }
@keyframes orb-float { 0% { transform: translate(0,0); } 100% { transform: translate(20px,-30px); } }

#dot-grid {
  position: fixed; inset: 0; z-index: -8; pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

#glow-cursor {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(450px circle at var(--x,50vw) var(--y,50vh), rgba(78,120,224,.07), transparent 40%),
    radial-gradient(900px circle at var(--x,50vw) var(--y,50vh), rgba(124,92,232,.03), transparent 40%);
}

/* ── Scroll progress bar ── */
#scroll-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), var(--green));
  z-index: 1000; transition: width .1s ease-out;
  box-shadow: 0 0 10px rgba(78,120,224,.8);
}

/* ── Side nav dots ── */
#side-nav {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 500; display: flex; flex-direction: column; gap: 18px;
}
.nav-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.15); text-decoration: none;
  transition: all .25s; position: relative; display: block;
}
.nav-dot:hover, .nav-dot.active {
  background: rgba(255,255,255,.85);
  transform: scale(1.6);
  box-shadow: 0 0 8px rgba(255,255,255,.5);
}
.nav-dot .dot-label {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  padding: 3px 8px; border-radius: 5px;
  background: rgba(0,0,0,.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .68rem; color: #fff; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .18s;
  font-family: 'Space Grotesk', sans-serif;
}
.nav-dot:hover .dot-label { opacity: 1; }
@media (max-width: 1080px) { #side-nav { display: none; } }

/* ── Top nav ── */
nav#topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(7,9,15,.88);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.ni {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
}
.nb { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nb img { height: 28px; width: auto; filter: drop-shadow(0 0 6px rgba(255,255,255,.15)); }
.nb-sep { width: 1px; height: 16px; background: var(--border); }
.nb-asn { font-family: 'JetBrains Mono', monospace; font-size: .73rem; color: var(--muted); }
.nl { display: flex; gap: 26px; list-style: none; }
.nl a { color: var(--sub); text-decoration: none; font-size: .83rem; font-weight: 500; transition: color .18s; }
.nl a:hover { color: var(--text); }
.np {
  font-size: .8rem; font-weight: 600; padding: 6px 15px; border-radius: 6px;
  border: 1px solid var(--border-h); color: var(--text); text-decoration: none;
  transition: border-color .18s, color .18s;
}
.np:hover { border-color: var(--accent); color: var(--accent); }

/* ── Page layout ── */
main { position: relative; z-index: 1; }
.wrap { padding: 88px 24px; }
.w { max-width: 1100px; margin: 0 auto; }
.alt { background: rgba(11,15,26,.9); }

/* ── Hero ── */
#hero { min-height: 100vh; display: flex; align-items: center; padding-top: 60px; }
.hg { display: grid; grid-template-columns: 1fr 400px; gap: 72px; align-items: center; }
.h-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'JetBrains Mono', monospace; font-size: .72rem;
  color: var(--sub); border: 1px solid var(--border);
  padding: 4px 11px; border-radius: 5px; margin-bottom: 22px;
  background: rgba(255,255,255,.02);
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .18; } }
h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -.035em;
  color: var(--text); margin-bottom: 18px;
}
h1 .gr {
  background: linear-gradient(110deg, var(--accent) 10%, var(--accent2) 90%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hdesc { color: var(--sub); font-size: .97rem; line-height: 1.8; margin-bottom: 32px; max-width: 520px; }
.hbtns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  padding: 9px 20px; border-radius: 6px; font-size: .84rem; font-weight: 600;
  text-decoration: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Space Grotesk', sans-serif; transition: all .18s;
}
.bp { background: var(--accent); color: #fff; }
.bp:hover { background: #6390ee; transform: translateY(-1px); }
.bo { background: transparent; color: var(--text); border: 1px solid var(--border-h); }
.bo:hover { border-color: var(--accent); color: var(--accent); }
.hm { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; transition: border-color .2s; }
.mc:hover { border-color: var(--border-h); }
.mv { font-family: 'Outfit', sans-serif; font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; }
.mv .gr { background: linear-gradient(110deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ml { color: var(--muted); font-size: .75rem; margin-top: 2px; }

/* ── Section headings ── */
.sh { margin-bottom: 44px; }
.se { font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.st { font-family: 'Outfit', sans-serif; font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; letter-spacing: -.025em; color: var(--text); margin-bottom: 8px; }
.ss { color: var(--sub); font-size: .9rem; max-width: 540px; }

/* ── About feature grid ── */
.fg { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.fc {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px 20px; transition: border-color .2s, background .2s, transform .2s;
}
.fc:hover { border-color: var(--border-h); background: var(--card-h); transform: translateY(-2px); }
.fi {
  width: 34px; height: 34px; border-radius: 7px;
  background: rgba(78,120,224,.1); border: 1px solid rgba(78,120,224,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; margin-bottom: 14px;
}
.ft { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.fd { color: var(--sub); font-size: .82rem; line-height: 1.7; }

/* ── Network map ── */
#map-container {
  width: 100%; height: 480px; background: #040810;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; position: relative; cursor: grab;
}
#map-container:active { cursor: grabbing; }
#map-svg-land, #map-canvas-edges, #map-svg-top {
  position: absolute; top: 0; left: 0; display: block;
}
#map-canvas-edges { pointer-events: none; }
.land { fill: #0e1a2e; stroke: #1e3050; stroke-width: .4; }

#map-controls {
  position: absolute; bottom: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 4px; z-index: 10;
}
#map-controls button {
  width: 28px; height: 28px; border-radius: 5px;
  background: rgba(15,21,32,.92); border: 1px solid var(--border-h);
  color: var(--sub); font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
#map-controls button:hover { background: var(--border-h); color: var(--text); }

#map-tip {
  position: absolute; pointer-events: none;
  background: #0f1520; border: 1px solid #283650; border-radius: 7px;
  padding: 10px 13px; font-family: 'Space Grotesk', sans-serif;
  font-size: .78rem; color: #d8e0f0; white-space: nowrap;
  display: none; box-shadow: 0 6px 24px rgba(0,0,0,.75); z-index: 20;
}
#map-tip strong { display: block; margin-bottom: 3px; font-family: 'Outfit', sans-serif; font-size: .85rem; }
#map-tip span { color: #8898b8; font-size: .74rem; }

.mleg { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.mli { display: flex; align-items: center; gap: 6px; font-size: .79rem; color: var(--sub); }
.mld { width: 9px; height: 9px; border-radius: 50%; }

/* ── Peering / IX ── */
.ixg { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; }
.ixc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; transition: border-color .2s, transform .2s; }
.ixc:hover { border-color: var(--border-h); transform: translateY(-2px); }
.ixh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ixn { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .88rem; }
.pill { font-family: 'JetBrains Mono', monospace; font-size: .64rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; }
.pg { background: rgba(40,201,154,.08); color: var(--green); border: 1px solid rgba(40,201,154,.2); }
.ixm { color: var(--sub); font-size: .78rem; line-height: 1.8; }
.pr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.pb { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; }
.ph { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .87rem; margin-bottom: 12px; }
.pl { list-style: none; }
.pl li { color: var(--sub); font-size: .8rem; padding: 5px 0; border-bottom: 1px solid var(--border); display: flex; gap: 7px; }
.pl li:last-child { border-bottom: none; }
.pl .a { color: var(--accent); flex-shrink: 0; }
.plinks { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Sponsors ── */
.spg { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; }
.spc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 9px; transition: border-color .2s, transform .2s; }
.spc:hover { border-color: var(--border-h); transform: translateY(-2px); }
.spt { font-family: 'JetBrains Mono', monospace; font-size: .64rem; font-weight: 600; padding: 2px 7px; border-radius: 4px; width: fit-content; }
.tg { background: rgba(224,157,46,.08); color: var(--amber); border: 1px solid rgba(224,157,46,.2); }
.ts { background: rgba(148,163,184,.08); color: #94a3b8; border: 1px solid rgba(148,163,184,.2); }
.tb { background: rgba(180,120,60,.08); color: #b87840; border: 1px solid rgba(180,120,60,.2); }
.tc { background: rgba(40,201,154,.08); color: var(--green); border: 1px solid rgba(40,201,154,.2); }
.spn { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: .95rem; }
.spd { color: var(--sub); font-size: .8rem; line-height: 1.7; flex: 1; }
.spl { color: var(--accent); font-size: .78rem; text-decoration: none; font-weight: 500; width: fit-content; }
.spl:hover { text-decoration: underline; }
.spcta { margin-top: 36px; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; text-align: center; background: rgba(78,120,224,.03); }
.spcta h3 { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 7px; }
.spcta p { color: var(--sub); font-size: .86rem; margin-bottom: 20px; }

/* ── Security ── */
.scg { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 12px; }
.scc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; transition: border-color .2s, transform .2s; }
.scc:hover { border-color: var(--green); transform: translateY(-2px); }
.sci { font-size: 1.4rem; margin-bottom: 10px; }
.scn { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .84rem; margin-bottom: 5px; }
.scd { color: var(--sub); font-size: .78rem; line-height: 1.6; margin-bottom: 10px; }
.bon { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: .62rem; font-weight: 700; padding: 2px 6px; border-radius: 3px; background: rgba(40,201,154,.08); color: var(--green); border: 1px solid rgba(40,201,154,.2); }
.mono-inline { font-family: 'JetBrains Mono', monospace; font-size: .75em; color: var(--accent); }

/* ── Contact ── */
#contact { text-align: center; }
.ccs { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 36px auto 0; max-width: 680px; }
.cc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; transition: border-color .2s; }
.cc:hover { border-color: var(--border-h); }
.cci { font-size: 1.2rem; margin-bottom: 7px; }
.ccl { color: var(--muted); font-size: .72rem; margin-bottom: 4px; }
.ccv { font-family: 'JetBrains Mono', monospace; font-size: .76rem; color: var(--accent); font-weight: 500; word-break: break-all; }
.ccv a { color: inherit; text-decoration: none; }

/* ── Footer ── */
footer { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--border); padding: 28px 24px; }
.fi2 { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.fl { display: flex; align-items: center; gap: 9px; }
.fl img { height: 20px; width: auto; opacity: .55; }
.fl span { color: var(--muted); font-size: .77rem; }
.flinks { display: flex; gap: 18px; }
.flinks a { color: var(--muted); text-decoration: none; font-size: .77rem; transition: color .18s; }
.flinks a:hover { color: var(--sub); }

/* ── Back to top ── */
#btt {
  position: fixed; bottom: 28px; right: 52px; z-index: 500;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.07); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; opacity: 0; pointer-events: none;
}
#btt.show { opacity: 1; pointer-events: auto; }
#btt:hover { background: rgba(255,255,255,.14); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hg { grid-template-columns: 1fr; gap: 40px; }
  .fg { grid-template-columns: repeat(2,1fr); }
  .pr { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nl, .nb-sep, .nb-asn { display: none; }
  .fg { grid-template-columns: 1fr; }
  .ccs { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}