/* Orbit — single-viewport video hero, fused with the fleet sections below. */
:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Geist Pixel Circle", monospace;
  --ok: #5df0a8;
  --alert: #ff5c8a;
  --line: rgba(255, 255, 255, 0.12);
}
@font-face {
  font-family: "Geist Pixel Circle";
  src: url("/orbit/fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* macOS rubber-band overscroll shows the html canvas above the video hero;
     paint it black and stop the bounce/chain at the page root. Inner
     scrollables (the Leaflet map, the packs table) are unaffected. */
  background: var(--bg);
  overscroll-behavior-y: none;
}
body {
  background: var(--bg);
  overscroll-behavior-y: none;
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: #fff; color: #000; }

/* ---------- first viewport ---------- */
.viewport {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.bg { position: absolute; inset: 0; background: #000; overflow: hidden; }
.bg-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
/* legibility scrim over the video */
.bg::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.1) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.06) 30%, rgba(0, 0, 0, 0.05) 62%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}
.page {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  height: 100%;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}

/* ---------- header ---------- */
.header {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%; max-width: 720px;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}
.nav-pill {
  background: #fff;
  height: clamp(44px, 5.2vw, 48px);
  max-width: 430px; flex: 1;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  display: flex; align-items: center; justify-content: space-around;
}
.nav-pill a {
  position: relative;
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.5;
  padding: 8px 10px;
  transition: opacity 0.2s;
}
.nav-pill a:hover { opacity: 0.75; }
.nav-pill a.active { opacity: 1; }
.nav-pill a.active::after {
  content: "";
  position: absolute; left: 50%; bottom: 5px;
  width: 3px; height: 3px; background: #000;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}
.signin {
  background: var(--pill-dark);
  color: var(--sign-in-text);
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(16px, 2vw, 22px);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  display: inline-flex; align-items: center;
  font-weight: 500; font-size: clamp(13px, 1.4vw, 15px);
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.signin:hover { background: #323234; color: #fff; transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  width: 100%; max-width: 900px;
}
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
/* trust row */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex; align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}
.avatar {
  width: var(--trust-size); height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  position: relative;
  transition: transform 0.35s;
}
.avatar .inner {
  width: 100%; height: 100%;
  border-radius: 50%; background: #fff;
  display: grid; place-items: center;
}
.avatar i { color: #111; font-size: calc(var(--trust-size) * 0.34); }
.avatar + .avatar { margin-left: calc(var(--trust-size) * -0.42); }
.a1 { z-index: 1; } .a2 { z-index: 2; } .a3 { z-index: 4; }
.a1:hover { transform: translateY(-2px); }
.a2:hover { transform: translateY(-4px); }
.a3:hover { transform: translateY(-2px); }
.trust-pill {
  height: var(--trust-size);
  display: inline-flex; align-items: center;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: 16px;
  z-index: 3; position: relative;
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  color: var(--trust-text);
  white-space: nowrap;
}
/* headline */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  overflow: hidden;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65), 0 0 3px rgba(0, 0, 0, 0.5);
}
.headline span {
  display: block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.headline .l1 { animation-delay: 0.12s; }
.headline .l2 { animation-delay: 0.3s; }
@keyframes headlineFade {
  to { opacity: 1; transform: translateY(0); }
}
/* subhead */
.subhead {
  max-width: min(500px, 92%);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: #ececec;
  opacity: 0.92;
  line-height: 1.55;
  font-weight: 400;
  margin-top: clamp(12px, 2vh, 18px);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7);
}
.subhead.anim { animation-name: revealSub; }
@keyframes revealSub {
  to { opacity: 0.92; transform: translateY(0) scale(1); filter: blur(0); }
}
/* cta */
.cta {
  margin-top: clamp(18px, 3vh, 28px);
  display: inline-block;
  background: #fff; color: #000;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 22px rgba(255,255,255,0.32), 0 0 44px rgba(255,255,255,0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}
.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 0 30px rgba(255,255,255,0.45), 0 0 60px rgba(255,255,255,0.2);
}
.cta.anim { animation-name: revealPulse; }
@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.03); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ---------- stats footer ---------- */
.stats {
  flex-shrink: 0;
  width: 100%; max-width: 920px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 24px);
  padding-top: clamp(10px, 2vh, 18px);
}
.stat { text-align: center; }
.stat .glyph {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  color: #fff;
  display: block;
  margin-bottom: 4px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.stat { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.stat .label { color: #b9b9b9; }
.stat .value {
  font-family: var(--font-sans);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.stat .label {
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
  margin-top: 2px;
}

/* ---------- mobile menu ---------- */
.burger { display: none; }
.overlay { display: none; }
@media (max-width: 720px) {
  .nav-pill, .signin { display: none; }
  .header { justify-content: space-between; max-width: none; }
  .wordmark { font-size: 16px; }
  .burger {
    display: grid; place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--pill-dark);
    border: none; cursor: pointer;
    box-shadow: var(--nav-shadow);
    position: relative; z-index: 30;
  }
  .burger .bars { display: block; width: 18px; height: 14px; position: relative; }
  .burger .bars span {
    position: absolute; left: 0;
    width: 18px; height: 1.5px; background: #fff;
    transition: transform 0.3s, background 0.3s, top 0.3s;
  }
  .burger .bars span:nth-child(1) { top: 0; }
  .burger .bars span:nth-child(2) { top: 6.25px; }
  .burger .bars span:nth-child(3) { top: 12.5px; }
  .burger[aria-expanded="true"] { background: #fff; }
  .burger[aria-expanded="true"] .bars span { background: #000; }
  .burger[aria-expanded="true"] .bars span:nth-child(1) { top: 6.25px; transform: rotate(45deg); }
  .burger[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] .bars span:nth-child(3) { top: 6.25px; transform: rotate(-45deg); }
  .overlay {
    display: block;
    position: fixed; inset: 0; z-index: 20;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(6px);
    animation: overlayIn 0.28s both;
  }
  .overlay[hidden] { display: none; }
  @keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
  .sheet {
    position: fixed; z-index: 25;
    left: 14px; right: 14px; top: 84px;
    background: #fff; border-radius: 28px;
    padding: 22px 18px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  @keyframes menuIn {
    from { opacity: 0; transform: translateY(-14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .sheet a {
    position: relative;
    display: block; text-align: center;
    padding: 13px 0;
    color: var(--nav-text);
    font-weight: 500; font-size: 16px;
    opacity: 0;
    animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .sheet a:nth-child(1) { animation-delay: 0.06s; }
  .sheet a:nth-child(2) { animation-delay: 0.12s; }
  .sheet a:nth-child(3) { animation-delay: 0.18s; }
  .sheet a:nth-child(4) { animation-delay: 0.24s; }
  .sheet a:nth-child(5) { animation-delay: 0.3s; }
  @keyframes linkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  .sheet a.active::after {
    content: "";
    position: absolute; left: 50%; bottom: 8px;
    width: 3px; height: 3px; background: #000;
    transform: translateX(-50%);
    box-shadow: -5px 0 0 #000, 5px 0 0 #000;
  }
  .sheet .m-console {
    margin-top: 10px;
    background: var(--pill-dark); color: #fff;
    border-radius: 999px; opacity: 0;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .trust { --trust-size: 34px; }
  .trust-pill { font-size: 12px; }
  .headline { letter-spacing: -0.09em; line-height: 1.04; }
}
@media (max-width: 720px) {
  .headline { letter-spacing: -0.08em; line-height: 1.05; }
}
@media (max-height: 700px) {
  .trust { margin-bottom: 10px; }
  .subhead { margin-top: 8px; }
  .cta { margin-top: 14px; }
}

/* ---------- sections below the fold ---------- */
.below { position: relative; background: #000; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.section { padding: clamp(56px, 9vh, 96px) 0; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: clamp(24px, 4vh, 40px); }
.sec-head .idx { font-family: var(--font-display); color: var(--muted); font-size: 15px; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 38px);
  letter-spacing: -0.03em;
  color: #fff;
}
.sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cardgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .cardgrid { grid-template-columns: 1fr; } }
.pcard {
  background: #0b0b0d;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 26px 22px;
}
.pcard h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; letter-spacing: -0.02em; margin-bottom: 4px; }
.pcard .pd { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.pmode { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.pmode .mh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pmode .mh b { font-weight: 600; font-size: 14px; letter-spacing: 0.01em; }
.ptag {
  font-size: 11px; font-weight: 500;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px; padding: 2px 10px;
}
.ptag.pub { color: var(--ok); border-color: rgba(93, 240, 168, 0.35); }
.ptag.dev { color: #e8c66a; border-color: rgba(232, 198, 106, 0.35); }
.pmode p { color: #b9b9b9; font-size: 13.8px; line-height: 1.65; margin-top: 6px; }
.pmode .ip { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.pcard.dim { opacity: 0.65; }
/* plans */
.tablecard { background: #0b0b0d; border: 1px solid var(--line); border-radius: 24px; padding: 10px 22px 18px; overflow-x: auto; }
table.plans { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.plans th {
  text-align: left; font-weight: 500; color: #fff;
  padding: 16px 12px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px; letter-spacing: 0.01em;
}
.plans td { padding: 13px 12px; color: #d0d0d0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.plans tr:last-child td { border-bottom: none; }
.plans td:first-child { color: #fff; font-weight: 500; }
.plans .inf { color: var(--muted); }
.tnote { color: var(--muted); font-size: 12.5px; margin-top: 12px; line-height: 1.6; }
/* map */
#map { height: 440px; border-radius: 24px; border: 1px solid var(--line); background: #0b0b0d; overflow: hidden; }
.leaflet-container { background: #0b0b0d; font-family: var(--font-sans); }
#map .leaflet-tile-pane { filter: invert(1) grayscale(1) brightness(0.62) contrast(1.05); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #161618; color: #fff; border-radius: 12px; }
.leaflet-popup-content { font-size: 13px; }
.leaflet-control-attribution { background: rgba(0,0,0,0.7) !important; color: var(--muted) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: #bbb !important; }
.leaflet-control-zoom a { background: #161618 !important; color: #fff !important; border: 1px solid var(--line) !important; }
/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 44px; }
.foot-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.foot-brand img { width: 44px; height: 44px; object-fit: contain; }
.foot-cap { color: #d0d0d0; font-size: 13.5px; letter-spacing: 0.01em; }
.foot-links {
  display: flex; justify-content: center; gap: 8px 26px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; margin-top: 22px;
}
.foot a:hover { color: #fff; }

/* ---------- cross-document view transitions (progressive enhancement) ---------- */
@view-transition { navigation: auto; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }
::view-transition-old(root) { animation: vt-fade-out 0.25s ease both; }
::view-transition-new(root) { animation: vt-fade-in 0.25s ease both; }

/* ---------- scroll reveal (gated behind .js-reveal added by main.js) ---------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rd, 0s);
}
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header, .anim, .headline span, .cta.anim, .subhead.anim,
  .overlay, .sheet, .sheet a { animation: none !important; }
  .anim, .cta.anim { opacity: 1; transform: none; filter: none; }
  .subhead.anim { opacity: 0.8; transform: none; filter: none; }
  .headline span { opacity: 1; transform: none; }
  .sheet a { opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}
a:focus-visible, button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
