/* self-hosted brand font (no external dependency) */
@font-face {
  font-family: "Share Tech";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/share-tech.woff2") format("woff2");
}

:root {
  --ink: #0f1117;
  --muted: #656a75;
  --line: #ececf0;
  /* Accent theme — swapped at runtime by the color switcher (site.js) */
  --accent: #e11d22;
  --accent-hover: #b8171c;
  --accent-light: #f2565a;
  --accent-soft: rgba(225, 29, 34, 0.3);
  --accent-faint: rgba(225, 29, 34, 0.07);
  --wash: #fafafb;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* stop iOS Safari from inflating text in landscape */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Share Tech", ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #ffffff;
}

/* ambient aurora — site-wide living background (fixed, above bg / below nothing interactive) */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.ambient span {
  position: absolute;
  height: 58vw;
  width: 58vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  opacity: 0.2;
  filter: blur(70px);
  will-change: transform;
}
.ambient span:first-child {
  top: -24vw;
  left: -16vw;
  animation: amb-a 28s ease-in-out infinite alternate;
}
.ambient span:last-child {
  bottom: -26vw;
  right: -14vw;
  animation: amb-b 34s ease-in-out infinite alternate;
}
@keyframes amb-a {
  to { transform: translate(14vw, 12vh) scale(1.18); }
}
@keyframes amb-b {
  to { transform: translate(-12vw, -14vh) scale(1.12); }
}

/* hero halo — spinning light ring behind the hero render */
.hero-halo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-halo::before {
  content: "";
  position: absolute;
  height: min(620px, 46vw);
  width: min(620px, 46vw);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    var(--accent) 10%,
    transparent 30%,
    transparent 50%,
    var(--accent) 62%,
    transparent 82%
  );
  opacity: 0.4;
  -webkit-mask: radial-gradient(circle, transparent 57.5%, #000 58.5%, #000 61.5%, transparent 62.5%);
  mask: radial-gradient(circle, transparent 57.5%, #000 58.5%, #000 61.5%, transparent 62.5%);
  animation: halo-spin 16s linear infinite;
  will-change: transform;
}
.hero-halo::after {
  content: "";
  position: absolute;
  height: min(520px, 39vw);
  width: min(520px, 39vw);
  border-radius: 50%;
  border: 1px dashed var(--accent-soft);
  opacity: 0.7;
}
@keyframes halo-spin {
  to { transform: rotate(360deg); }
}

/* exploded glass module stack (platform capabilities) */
.cap-scene {
  position: relative;
  display: flex;
  height: 460px;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.cap-glow {
  position: absolute;
  height: 300px;
  width: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 66%);
  filter: blur(34px);
  opacity: 0.5;
  animation: core-breathe 7s ease-in-out infinite;
}
@keyframes core-breathe {
  50% { transform: scale(1.12); opacity: 0.72; }
}
.cap-deck {
  position: relative;
  height: 248px;
  width: 248px;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-38deg);
  animation: cap-turn 15s ease-in-out infinite;
  will-change: transform;
}
@keyframes cap-turn {
  50% { transform: rotateX(58deg) rotateZ(-28deg); }
}
.cap-slab {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), var(--accent-faint));
  box-shadow:
    0 24px 44px var(--accent-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.cs1 { transform: translateZ(4px); background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), var(--accent-faint)); }
.cs2 { transform: translateZ(42px); }
.cs3 { transform: translateZ(80px); }
.cs4 { transform: translateZ(118px); }
.cs5 {
  transform: translateZ(168px);
  border: none;
  background: linear-gradient(135deg, var(--accent-light), var(--accent) 60%, var(--accent-hover));
  box-shadow: 0 30px 56px var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs5 svg {
  height: 78px;
  width: 78px;
  transform: rotate(38deg);
  filter: drop-shadow(0 6px 10px rgba(15, 17, 23, 0.18));
}

/* flowing market-connection arcs on the globe (global access) */
.globe-arc {
  stroke-dasharray: 6 80;
  stroke-dashoffset: 0;
  animation: globe-arc-flow 3s linear infinite;
}
@keyframes globe-arc-flow {
  to { stroke-dashoffset: -86; }
}

/* isometric infrastructure blueprint (home hero) */
.bp-wrap {
  height: 600px;
  width: 680px;
}
.bp-top {
  fill: #ffffff;
  stroke: #dcdee5;
  stroke-width: 1;
}
.bp-sideR {
  fill: #e9ebf1;
  stroke: #d8dae2;
  stroke-width: 1;
}
.bp-sideL {
  fill: #f3f4f8;
  stroke: #e2e4ea;
  stroke-width: 1;
}
.bp-grid {
  fill: none;
  stroke: #f0f1f5;
  stroke-width: 1;
}
.bp-ring {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 3 5;
}
.bp-trace {
  fill: none;
  stroke: #d3d6de;
  stroke-width: 1.3;
  stroke-linejoin: round;
}
.bp-flow {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-dasharray: 7 110;
  animation: bp-flow 3.4s linear infinite;
}
@keyframes bp-flow {
  to { stroke-dashoffset: -117; }
}
.bp-pad {
  fill: #ffffff;
  stroke: #c9ccd5;
  stroke-width: 1;
}
.bp-pad.acc {
  fill: var(--accent);
  stroke: none;
}
.bp-pillar {
  stroke: #d8dae2;
  stroke-width: 2;
}
.bp-beam {
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-dasharray: 4 9;
  opacity: 0.75;
  animation: bp-beam 1.5s linear infinite;
}
@keyframes bp-beam {
  to { stroke-dashoffset: -13; }
}
.bp-cube {
  filter: drop-shadow(0 16px 28px var(--accent-soft));
  animation: cube-float 6s ease-in-out infinite;
}
@keyframes cube-float {
  50% { transform: translateY(-10px); }
}
.bp-shadow {
  fill: rgba(15, 17, 23, 0.09);
  filter: blur(3px);
  transform-box: fill-box;
  transform-origin: center;
  animation: bp-shadow 6s ease-in-out infinite;
}
@keyframes bp-shadow {
  50% { transform: scale(0.82); opacity: 0.65; }
}

/* ambient hero bubbles */
.bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bubble {
  position: absolute;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.35) 24%,
    rgba(225, 29, 34, 0.12) 56%,
    rgba(225, 29, 34, 0.04) 72%,
    transparent 75%
  );
  box-shadow:
    inset -2px -3px 8px rgba(225, 29, 34, 0.1),
    inset 3px 4px 10px rgba(255, 255, 255, 0.65),
    0 6px 16px rgba(15, 17, 23, 0.05);
  opacity: 0;
  animation: bubble-rise linear infinite;
  will-change: transform, opacity;
}
@keyframes bubble-rise {
  0% {
    transform: translate(0, 0) scale(0.85);
    opacity: 0;
  }
  8% {
    opacity: var(--maxop, 0.6);
  }
  90% {
    opacity: calc(var(--maxop, 0.6) * 0.55);
  }
  100% {
    transform: translate(var(--drift, 0), -112vh) scale(1.08);
    opacity: 0;
  }
}

/* dotted world map */
.map-dot {
  fill: #d2d3d9;
}
.hub-core {
  fill: var(--accent);
}
.hub-halo {
  fill: #ffffff;
}
.hub-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.14;
  opacity: 0.5;
}
.hub-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 0.28;
  animation: hub-pulse 2.8s ease-out infinite;
}
@keyframes hub-pulse {
  0% {
    r: 0.8;
    opacity: 0.7;
  }
  70%,
  100% {
    r: 3.4;
    opacity: 0;
  }
}
.arc {
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 0.18;
}

/* ---- animated placeholders (replace missing guardsection art) ---- */

/* continent dot-globe + orbit rings + market pins */
.globe-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin-left: auto;
}
.globe-glow {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 40%, var(--accent-light), transparent 65%);
  filter: blur(18px);
  opacity: 0.2;
  animation: glow-breathe 5.5s ease-in-out infinite;
}
@keyframes glow-breathe {
  50% { opacity: 0.34; transform: scale(1.04); }
}
.globe-svg {
  position: absolute;
  inset: 0;
}
.globe-orbit {
  position: absolute;
  inset: -5%;
  animation: orbit 17s linear infinite;
}
.globe-orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--accent-soft);
  opacity: 0.3;
}
.globe-orbit .sat {
  position: absolute;
  top: -5px;
  left: 50%;
  height: 10px;
  width: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
@keyframes orbit {
  to { transform: rotate(360deg); }
}
/* thin elliptical orbit rings sweeping around the globe */
.globe-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
  opacity: 0.55;
  pointer-events: none;
}
.globe-ring.r1 { inset: -6%; transform: rotate(-20deg) scaleY(0.4); }
.globe-ring.r2 { inset: -12%; transform: rotate(11deg) scaleY(0.56); }
.globe-ring.r3 { inset: -2%; transform: rotate(55deg) scaleY(0.78); }

/* white-ringed market pins sitting on the orbits */
.ring-pin {
  position: absolute;
  z-index: 2;
  height: 11px;
  width: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 3.5px #fff,
    0 2px 10px var(--accent-soft);
}

/* pulsing hub pins rendered inside the globe SVG */
.gpin-pulse {
  transform-box: fill-box;
  transform-origin: center;
  stroke-width: 1.5;
  animation: gpin 2.8s ease-out infinite;
}
@keyframes gpin {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* tinted circular icon chips (Global Access cards) */
.icon-circle {
  display: flex;
  height: 3.25rem;
  width: 3.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--accent-faint);
}
.icon-circle i,
.icon-circle svg {
  height: 1.25rem;
  width: 1.25rem;
  color: var(--ink);
}
.icon-circle.acc i,
.icon-circle.acc svg {
  color: var(--accent);
}

/* rounded-square icon tile (module cards) */
.icon-square {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.85rem;
  background: var(--accent-faint);
}
.icon-square i,
.icon-square svg {
  height: 1.35rem;
  width: 1.35rem;
  color: var(--accent);
}

/* radar waves for the hub card header */
.wave-anim {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.wave-anim span {
  position: absolute;
  top: 42px;
  left: 40px;
  height: 44px;
  width: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: radar 3.6s ease-out infinite;
}
.wave-anim span:nth-child(2) { animation-delay: 1.2s; }
.wave-anim span:nth-child(3) { animation-delay: 2.4s; }
.wave-anim .core {
  top: 42px;
  left: 40px;
  height: 12px;
  width: 12px;
  margin: -6px 0 0 -6px;
  border: none;
  background: var(--accent);
  opacity: 1;
  animation: none;
  box-shadow: 0 0 0 5px var(--accent-soft);
}
@keyframes radar {
  0% { transform: scale(0.3); opacity: 0.9; }
  100% { transform: scale(5.5); opacity: 0; }
}

/* API hub — brand hexagon + data packets flowing in along the wires */
.api-anim {
  position: relative;
  height: 150px;
  width: 20rem;
  flex-shrink: 0;
}
.api-anim svg.wires { position: absolute; inset: 0; height: 100%; width: 100%; z-index: 1; }
.api-anim .hub {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 52px;
  width: 52px;
  margin: -26px 0 0 -26px;
  z-index: 3;
}
.api-anim .hub svg { position: absolute; inset: 9px; height: 34px; width: 34px; filter: drop-shadow(0 6px 14px var(--accent-soft)); }
.api-anim .hub::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  animation: hub-halo 2.8s ease-in-out infinite;
}
@keyframes hub-halo {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.25); opacity: 0.9; }
}
.api-anim .node {
  position: absolute;
  height: 36px;
  width: 36px;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  background: #fff;
  box-shadow: 0 5px 14px rgba(15, 17, 23, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.api-anim .node i { height: 17px; width: 17px; color: var(--ink); }
.api-anim .node img { height: 20px; width: 20px; }
.api-anim .n1 { top: 6px; left: 4px; }
.api-anim .n2 { top: 6px; right: 4px; }
.api-anim .n3 { bottom: 6px; left: 4px; }
.api-anim .n4 { bottom: 6px; right: 4px; }

/* CTA card — cropped globe bleeding off the right + swooping arcs */
.cta-globe {
  position: absolute;
  top: -18%;
  right: -13%;
  width: min(56%, 680px);
  aspect-ratio: 1;
  pointer-events: none;
}
.cta-arcs {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  pointer-events: none;
}
.cta-arcs path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.3;
}

/* footer */
.footer-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
}
.footer-link {
  color: #9aa0ab;
  transition: color 0.18s ease;
}
.footer-link:hover {
  color: #fff;
}
/* full wordmark logo — mark re-themes with the accent */
.logo-full .logo-ink { fill: var(--ink); }
.logo-full .logo-mark { fill: var(--accent); }
/* footer sits on dark ink — flip the wordmark to white there */
footer .logo-full .logo-ink { fill: #ffffff; }

/* API terminal (core technologies hero) */
.term {
  border-radius: 1rem;
  background: #0f1117;
  box-shadow:
    0 30px 70px rgba(15, 17, 23, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.term-bar span {
  height: 11px;
  width: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.term-bar span:first-child { background: var(--accent); }
.term-bar p {
  margin-left: 10px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: #6b7079;
}
.term-body {
  padding: 20px 22px 24px;
  font-size: 13.5px;
  line-height: 2.05;
  color: #c8ccd4;
}
.t-prompt { color: var(--accent); margin-right: 8px; }
.t-ok { color: #34d399; }
.t-dots { color: #3a3f4a; }
.t-key { color: var(--accent-light); }
.t-val { color: #34d399; }
.t-cursor {
  display: inline-block;
  height: 15px;
  width: 8px;
  margin-left: 8px;
  vertical-align: -2px;
  background: var(--accent);
  animation: cursor-blink 1.1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.term-line { opacity: 0; animation: term-in 0.35s ease forwards; }
.term-line.l1 { animation-delay: 0.2s; }
.term-line.l2 { animation-delay: 0.7s; }
.term-line.l3 { animation-delay: 1s; }
.term-line.l4 { animation-delay: 1.3s; }
.term-line.l5 { animation-delay: 1.6s; }
.term-line.l6 { animation-delay: 2.2s; }
.term-line.l7 { animation-delay: 2.8s; }
.term-line.l8 { animation-delay: 3.2s; }
@keyframes term-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* network status board (global infrastructure hero) */
.net-board {
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 17, 23, 0.1);
  overflow: hidden;
}
.net-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}
.net-head p {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.net-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
}
.live-dot {
  position: relative;
  height: 8px;
  width: 8px;
  border-radius: 50%;
  background: #22c55e;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #22c55e;
  animation: live-pulse 2.2s ease-out infinite;
}
@keyframes live-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}
.net-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: term-in 0.4s ease forwards;
}
.net-row:last-child { border-bottom: none; }
.net-row.r1 { animation-delay: 0.15s; }
.net-row.r2 { animation-delay: 0.35s; }
.net-row.r3 { animation-delay: 0.55s; }
.net-row.r4 { animation-delay: 0.75s; }
.net-row.r5 { animation-delay: 0.95s; }
.net-code {
  display: flex;
  height: 40px;
  width: 46px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-faint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.net-code i,
.net-code svg {
  height: 18px;
  width: 18px;
}
.net-city {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}
.net-region {
  font-size: 12px;
  color: var(--muted);
}
.net-lat {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--muted);
}
.net-status {
  position: relative;
  height: 9px;
  width: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}
.net-status::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: live-pulse 2.6s ease-out infinite;
}
.net-row.r2 .net-status::after { animation-delay: 0.5s; }
.net-row.r3 .net-status::after { animation-delay: 1s; }
.net-row.r4 .net-status::after { animation-delay: 1.5s; }
.net-row.r5 .net-status::after { animation-delay: 2s; }

/* contact form */
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.form-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  padding: 0.7rem 1rem;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-input::placeholder {
  color: #9aa0ab;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint);
}
/* 16px minimum stops iOS Safari force-zooming the page when a field is focused */
@media (max-width: 1023px) {
  .form-input { font-size: 16px; }
}

/* FAQ accordion (about page) — native <details> */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 17, 23, 0.04);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 1.5rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 1.5rem 1.25rem;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* floating crypto coins on the hero blueprint */
.bp-coin {
  transform-box: fill-box;
  transform-origin: center;
  filter: drop-shadow(0 10px 16px rgba(15, 17, 23, 0.28));
  animation: cube-float 5.5s ease-in-out infinite;
}
.bp-coin-shadow {
  fill: rgba(15, 17, 23, 0.1);
  filter: blur(2px);
  transform-box: fill-box;
  transform-origin: center;
  animation: bp-shadow 5.5s ease-in-out infinite;
}

/* overlapping coin chips (hero asset rows) */
.coin-chip {
  height: 2.35rem;
  width: 2.35rem;
  border-radius: 9999px;
  border: 2.5px solid #fff;
  background: #fff;
}
html.dark .coin-chip {
  border-color: #151821;
  background: #151821;
}

/* supported assets marquee */
.marquee {
  position: relative;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 4.5rem;
  padding-right: 4.5rem;
  animation: marquee 36s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* dark-mode toggle icons */
html:not(.dark) .theme-sun { display: none; }
html.dark .theme-moon { display: none; }

/* nav links — smooth underline on hover */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* scroll-reveal (GPU-friendly: opacity + transform only) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 0.84, 0.44, 1),
    transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.d1 {
  transition-delay: 0.08s;
}
.reveal.d2 {
  transition-delay: 0.16s;
}


/* ===================== orbital asset system (about hero) ===================== */
.osys {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
  margin-inline: auto;
}
.osys-glow {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-faint), transparent 72%);
}
.osys-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.osys-ring.o1 { inset: 30%; }
.osys-ring.o2 { inset: 17.5%; border-style: dashed; }
.osys-ring.o3 { inset: 5%; }
/* radar-style accent sweep on the outer ring */
.osys-sweep {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), transparent 80deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1.5px));
  opacity: 0.65;
  animation: osys-spin 12s linear infinite;
}
/* each track spins; the coin counter-spins so it stays upright */
.osys-track {
  position: absolute;
  border-radius: 50%;
  animation: osys-spin var(--t, 60s) linear infinite;
  will-change: transform;
}
.osys-track.t1 { inset: 30%; --t: 28s; }
.osys-track.t2 { inset: 17.5%; --t: 46s; animation-direction: reverse; }
.osys-track.t3 { inset: 5%; --t: 70s; }
.osys-sat {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a, 0deg));
}
.osys-sat img {
  position: absolute;
  top: 0;
  left: 50%;
  height: var(--s, 2.9rem);
  width: var(--s, 2.9rem);
  border-radius: 9999px;
  border: 3px solid #fff;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 17, 23, 0.14);
  animation: osys-counter var(--t, 60s) linear infinite;
}
.osys-track.t1 .osys-sat img { --s: 3.4rem; }
.osys-track.t2 .osys-sat img { animation-direction: reverse; }
.osys-track.t3 .osys-sat img { --s: 2.6rem; }
@keyframes osys-spin {
  to { transform: rotate(360deg); }
}
@keyframes osys-counter {
  from { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a, 0deg))); }
  to { transform: translate(-50%, -50%) rotate(calc(-1 * var(--a, 0deg) - 360deg)); }
}
.osys-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.osys-pulse {
  position: absolute;
  inset: 0;
  margin: auto;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: osys-pulse 3.6s ease-out infinite;
}
.osys-pulse.p2 { animation-delay: 1.8s; }
@keyframes osys-pulse {
  0% { transform: scale(1); opacity: 0.45; }
  100% { transform: scale(1.85); opacity: 0; }
}
.osys-emblem {
  display: grid;
  place-items: center;
  height: 150px;
  width: 150px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 17, 23, 0.12);
}
.osys-emblem svg {
  height: 74px;
  width: auto;
  fill: var(--accent);
}

/* ===================== mobile nav (burger + panel) ===================== */
html,
body {
  /* hidden = fallback for iOS < 16, clip = modern engines (keeps sticky working) */
  overflow-x: hidden;
  overflow-x: clip;
}
.menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  height: 40px;
  width: 40px;
  align-items: center;
  border-radius: 8px;
}
.menu-btn span {
  display: block;
  height: 2px;
  width: 20px;
  border-radius: 2px;
  background: var(--ink);
  transition:
    transform 0.3s cubic-bezier(0.16, 0.84, 0.44, 1),
    opacity 0.2s ease;
}
body.nav-open .menu-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .menu-btn span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
body.nav-open .menu-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -20px rgba(15, 17, 23, 0.18);
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    max-height 0.38s cubic-bezier(0.16, 0.84, 0.44, 1),
    opacity 0.28s ease,
    visibility 0s linear 0.38s;
}
body.nav-open .mobile-menu {
  max-height: 420px;
  opacity: 1;
  visibility: visible;
  transition:
    max-height 0.38s cubic-bezier(0.16, 0.84, 0.44, 1),
    opacity 0.28s ease;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 6px 24px 18px;
}
.mm-link {
  padding: 13px 2px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transform: translateY(-8px);
  opacity: 0;
  transition:
    transform 0.35s cubic-bezier(0.16, 0.84, 0.44, 1),
    opacity 0.3s ease;
}
.mm-link:last-child { border-bottom: 0; }
.mm-link.on { color: var(--accent); }
body.nav-open .mm-link {
  transform: none;
  opacity: 1;
}
body.nav-open .mm-link:nth-child(2) { transition-delay: 0.05s; }
body.nav-open .mm-link:nth-child(3) { transition-delay: 0.1s; }
body.nav-open .mm-link:nth-child(4) { transition-delay: 0.15s; }
body.nav-open .mm-link:nth-child(5) { transition-delay: 0.2s; }
.mm-cta {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  padding: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    transform 0.35s cubic-bezier(0.16, 0.84, 0.44, 1),
    opacity 0.3s ease;
}
body.nav-open .mm-cta {
  transform: none;
  opacity: 1;
  transition-delay: 0.25s;
}
@media (max-width: 520px) {
  .logo-full { height: 2.5rem; }
}
@media (min-width: 1024px) {
  .menu-btn,
  .mobile-menu {
    display: none;
  }
}
html.dark .mobile-menu {
  background: #10131a;
}

/* ===================== legal / policy pages ===================== */
.legal > section:first-child h2 { margin-top: 0; }
.legal h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  margin-top: 2.75rem;
  scroll-margin-top: 92px;
}
.legal h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.6rem;
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}
.legal p { margin-top: 1rem; }
.legal ul {
  margin-top: 1rem;
  padding-left: 1.15rem;
  list-style: disc;
}
.legal li { margin-top: 0.5rem; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--accent); font-weight: 600; }
.legal a:hover { text-decoration: underline; }
.legal strong { color: var(--ink); font-weight: 700; }
.toc-link { color: var(--muted); transition: color 0.2s; }
.toc-link:hover { color: var(--ink); }

/* ===================== dark mode ===================== */
html.dark {
  --ink: #f2f3f7;
  --muted: #9aa0ab;
  --line: #242833;
  --wash: #10131a;
  color-scheme: dark;
}
html.dark body { background: #0f1117; }
html.dark .bg-white { background-color: #151821; }
html.dark .bg-\[\#fafafb\] { background-color: #10131a; }
html.dark .bg-white\/90 { background-color: rgba(13, 15, 20, 0.85); }
html.dark .bg-white\/95 { background-color: rgba(21, 24, 33, 0.95); }
html.dark .hover\:bg-\[\#f7f7f9\]:hover { background-color: #1c202b; }
html.dark .text-\[\#4b5058\] { color: #b8bcc6; }
html.dark .divide-\[color\:var\(--line\)\] > * { border-color: var(--line); }
html.dark .net-board,
html.dark .faq-item { background: #151821; }
html.dark .form-input { background: #10131a; }
html.dark .map-dot { fill: #3a3f4b; }
html.dark .hub-halo { fill: #151821; }
html.dark .bp-top { fill: #151821; stroke: #2b303c; }
html.dark .bp-sideR { fill: #0f1218; stroke: #232833; }
html.dark .bp-sideL { fill: #131720; stroke: #262b36; }
html.dark .bp-grid { stroke: #1a1e28; }
html.dark .bp-ring { stroke: #2a2f3a; }
html.dark .bp-trace { stroke: #343a48; }
html.dark .bp-pad { fill: #151821; stroke: #3a4150; }
html.dark .bp-pillar { stroke: #2b303c; }
html.dark .cap-slab {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), var(--accent-faint));
}
html.dark .osys-sat img { border-color: #151821; background: #151821; }
html.dark .osys-emblem {
  background: #151821;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
html.dark .ambient { mix-blend-mode: screen; }
html.dark .bubbles { display: none; }

@media (prefers-reduced-motion: reduce) {
  .bubbles {
    display: none;
  }
  .ambient span,
  .hero-halo::before,
  .bp-cube,
  .bp-shadow,
  .bp-beam,
  .cap-deck,
  .cap-glow,
  .gpin-pulse {
    animation: none;
  }
  .bp-flow,
  .globe-arc {
    display: none;
  }
  .marquee-track,
  .bp-coin,
  .bp-coin-shadow {
    animation: none;
  }
  .hub-pulse {
    animation: none;
    opacity: 0.25;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  #swatch-popover {
    transition: none;
  }
  .globe-glow,
  .globe-orbit,
  .gpin-pulse,
  .wave-anim span,
  .api-anim .hub::before {
    animation: none;
  }
  .term-line,
  .net-row {
    opacity: 1;
    animation: none;
  }
  .t-cursor,
  .live-dot::after,
  .net-status::after {
    animation: none;
  }
  .api-anim .packet { display: none; }
  .osys-track,
  .osys-pulse {
    animation: none;
  }
  .osys-sweep { display: none; }
  .mobile-menu,
  .mm-link,
  .mm-cta,
  .menu-btn span {
    transition: none;
  }
  .osys-sat img {
    animation: none;
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--a, 0deg)));
  }
}
