:root {
  color-scheme: light dark;
  --font-display: "Oxanium", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Sora", ui-sans-serif, system-ui, sans-serif;
  --cyan-bright: #22D3EE;
  --gold-bright: #F5BB61;
  --coral: #FF6B57;
  --mint: #2DD4A4;
  --sra: #990000;
  --ds-gold: #F5BB61;
  --sfp: #22D3EE;
  --space: clamp(2rem, 6vw, 5rem);
  --wrap: min(72rem, calc(100% - 2.25rem));
  --ease: ease;
}
:root:has(> head > meta[name="color-scheme"][content="dark"]) { color-scheme: dark; }
:root:has(> head > meta[name="color-scheme"][content="light"]) { color-scheme: light; }

html[data-theme="light"] {
  --bg: #F6F3EA;
  --bg-2: #EBE4D4;
  --ink: #141D23;
  --muted: #3D4A53;
  --panel: #FFFCF6;
  --line: color-mix(in srgb, #141D23 14%, transparent);
  --cyan: #0E7490;
  --gold: #8A5A00;
  --hud: color-mix(in srgb, #22D3EE 18%, transparent);
  --shadow: 0 12px 30px #141D2314;
  --theme-color: #F6F3EA;
}
html[data-theme="dark"] {
  --bg: #10181E;
  --bg-2: #0B1217;
  --ink: #F4F1E8;
  --muted: #C5D0D6;
  --panel: #1A242C;
  --line: color-mix(in srgb, #F4F1E8 16%, transparent);
  --cyan: #22D3EE;
  --gold: #F5BB61;
  --hud: color-mix(in srgb, #22D3EE 14%, transparent);
  --shadow: 0 16px 40px #0008;
  --theme-color: #10181E;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  background-image:
    linear-gradient(var(--hud) 1px, transparent 1px),
    linear-gradient(90deg, var(--hud) 1px, transparent 1px);
  background-size: 28px 28px;
  background-attachment: fixed;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 0.98; text-wrap: balance; margin: 0; }
p, li { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
@media (min-width: 64rem) { :root { --wrap: min(72rem, calc(100% - 6.5rem)); } }
section { scroll-margin-top: 5.25rem; }

.skip {
  position: absolute;
  inset: 0.75rem auto auto 0.75rem;
  transform: translateY(-140%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 100;
  font-weight: 700;
}
.skip:focus { transform: none; color: var(--bg); }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
}
.lockup { display: flex; align-items: center; flex: none; line-height: 0; }
.lockup img { height: 2rem; width: auto; }
html[data-theme="dark"] .logo--onLight,
html[data-theme="light"] .logo--onDark { display: none; }

.nav-toggle, .theme {
  appearance: none;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.theme {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  padding: 0;
}
.theme svg { width: 1.15rem; height: 1.15rem; }
html[data-theme="light"] .theme__moon { display: none; }
html[data-theme="dark"] .theme__sun { display: none; }

.top__nav { display: none; align-items: center; gap: 1.15rem; font-weight: 600; font-size: 0.95rem; }
.top__nav a { color: var(--ink); text-decoration: none; }
.top__nav a:hover { color: var(--cyan); }
.top__cta { display: none; align-items: center; gap: 0.7rem; margin-inline-start: auto; }
.link-login { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.theme { margin-inline-start: auto; }
.nav-toggle { margin-inline-start: 0; }

@media (min-width: 72rem) {
  .nav-toggle { display: none; }
  .top__nav { display: flex; flex: 1; }
  .top__nav .nav-cta { display: none; }
  .top__cta { display: flex; }
  .theme { order: 3; margin-inline-start: 0.2rem; }
  .top__cta { order: 4; }
}
@media (max-width: 71.99rem) {
  .top__nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    inset: 100% 0 auto 0;
    background: var(--bg);
    padding: 1rem 1.25rem 1.4rem;
    border-bottom: 1px solid var(--line);
    gap: 0.8rem;
  }
  .top__nav .nav-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn--ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--ink:hover { color: var(--bg); filter: brightness(1.08); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--gold { background: var(--gold-bright); color: #141D23; border-color: var(--gold-bright); }
.btn--gold:hover { color: #141D23; filter: brightness(1.05); }
.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hud-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}

.hero { padding: clamp(1.4rem, 4vw, 2.6rem) 0 0; }
.hero__grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.25rem; align-items: center; }
}
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.2rem); margin: 0.7rem 0 1rem; }
.hero__sub { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.hero .ctas { margin-top: 1.5rem; }
.hero__note { margin-top: 0.9rem; font-size: 0.92rem; color: var(--muted); }

.frame {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 1.25rem;
}
.frame::before, .frame::after,
.frame .cap, .frame .cab {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border: 2px solid var(--cyan-bright);
}
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.frame::after { top: -1px; right: -1px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.frame .cap { bottom: -1px; left: -1px; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.frame .cab { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

.party {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 1rem;
}
.avatar {
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 0.7rem;
  border: 2px solid var(--gold-bright);
  background: #141D23;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.party b { display: block; font-family: var(--font-display); font-weight: 800; }
.party span { color: var(--muted); font-size: 0.88rem; }

.quest h3 { font-size: 1.15rem; margin: 0.25rem 0 0.8rem; }
.steps { list-style: none; display: grid; gap: 0.4rem; }
.steps li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  background: var(--bg-2);
  border-radius: 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.steps .st {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.steps li.is-on { outline: 2px solid var(--gold-bright); }
.bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.35rem;
  margin: 0.9rem 0 1rem;
}
.bar i {
  height: 0.45rem;
  border-radius: 99px;
  background: var(--bg-2);
  font-style: normal;
  display: block;
}
.bar i.is-on { background: var(--cyan-bright); }
.bar i.is-gold { background: var(--gold-bright); }

.sec { padding: var(--space) 0; }
.sec--alt { background: color-mix(in srgb, var(--bg-2) 80%, transparent); }
.sec__head { max-width: 42rem; margin-bottom: 1.6rem; }
.h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 0.75rem; }
.lede { font-size: 1.12rem; color: var(--muted); }

.powers {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 48rem) { .powers { grid-template-columns: 1fr 1fr; } }
@media (min-width: 80rem) { .powers { grid-template-columns: repeat(4, 1fr); } }
.power {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}
.power h3 { font-size: 1.2rem; margin: 0.3rem 0 0.45rem; }
.power p { color: var(--muted); font-size: 0.95rem; }
.gem {
  width: 0.7rem; height: 0.7rem;
  transform: rotate(45deg);
  background: var(--cyan-bright);
  display: block;
}
.power:nth-child(2) .gem { background: var(--gold-bright); }
.power:nth-child(3) .gem { background: var(--mint); }
.power:nth-child(4) .gem { background: var(--coral); }

.levels [role="tablist"] {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  margin-bottom: 1.1rem;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}
.levels [role="tablist"]::-webkit-scrollbar { display: none; }
.levels [role="tab"] {
  flex: none;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.5rem;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.levels [role="tab"][aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.levels [role="tab"][aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0.9rem -0.35rem;
  border-block-end: 3px solid var(--gold-bright);
}
.panels { display: grid; }
.panels > [role="tabpanel"] { grid-area: 1 / 1; }
.panel-in { /* not on the tabpanel itself */ }
.mock {
  display: grid;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 56rem) { .mock { grid-template-columns: 1.35fr 0.75fr; } }
.mock__main, .mock__side { padding: 1.15rem 1.2rem 1.25rem; }
.mock__side { background: var(--bg-2); }
.mock h3 { font-size: 1.2rem; margin: 0 0 0.7rem; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
}
.st { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }

.diagram {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 56rem) {
  .diagram { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; }
}
.dcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow);
}
.dcard--nlos { background: color-mix(in srgb, var(--cyan-bright) 22%, var(--panel)); border-color: var(--cyan-bright); }
.dcard h3 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.dcard p { color: var(--muted); font-size: 0.95rem; }
.darrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  text-align: center;
  align-self: center;
}
@media (max-width: 55.99rem) { .darrow { transform: rotate(90deg); justify-self: center; } }

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); color: var(--cyan); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding-top: 0.7rem; color: var(--muted); max-width: 46rem; }

.cta-band {
  padding: var(--space) 0;
  background: var(--ink);
  color: var(--bg);
}
html[data-theme="light"] .cta-band { --bg: #F6F3EA; --ink: #141D23; }
html[data-theme="dark"] .cta-band { --bg: #F4F1E8; --ink: #10181E; }
.cta-band h2 { color: var(--bg); margin-bottom: 0.75rem; max-width: 18ch; }
.cta-band p { color: color-mix(in srgb, var(--bg) 80%, transparent); max-width: 38rem; margin-bottom: 1.4rem; }
.cta-band .btn--ghost { color: var(--bg); border-color: var(--bg); }
.cta-band .btn--ghost:hover { background: var(--bg); color: var(--ink); }

.foot {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.95rem;
  color: var(--muted);
}
.foot__in { display: grid; gap: 1.1rem; }
@media (min-width: 48rem) { .foot__in { grid-template-columns: 1.3fr 1fr; } }
.foot .lockup { margin-bottom: 0.75rem; }
.foot .lockup img { height: 1.65rem; }
.foot a { color: var(--ink); }

.toast {
  position: fixed;
  z-index: 80;
  right: 1rem;
  bottom: 1rem;
  width: min(22rem, calc(100vw - 2rem));
  background: var(--panel);
  color: var(--ink);
  border: 2px solid var(--gold-bright);
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
  transform: translateY(1rem);
  opacity: 0;
  pointer-events: none;
}
.toast.is-in { transform: none; opacity: 1; pointer-events: auto; transition: transform .35s ease, opacity .35s ease; }
.toast b { display: block; font-family: var(--font-display); font-weight: 800; color: var(--gold); margin-bottom: 0.2rem; }

/* Network exclusivity, Signal markup, lightly restyled */
@property --race {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes flow-race { to { --race: 360deg; } }
.section--sra { padding: var(--space) 0; }
.sra-intro { max-width: 44rem; }
.sra-intro h2 { margin: 0 0 0.8rem; max-width: 18ch; }
.sra__lead { margin: 0; font-size: 1.12rem; line-height: 1.55; color: var(--muted); max-width: 56ch; }
.paths {
  list-style: none;
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 39rem;
}
.paths li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold-bright);
  border-radius: 10px;
  background: var(--panel);
  position: relative;
  --race-c: var(--gold-bright);
  --race-t: var(--gold-bright);
}
.paths__k { font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.paths__v { font-size: 0.9rem; color: var(--muted); }
.paths li::before,
.sra-col::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 11px;
  padding: 2px;
  pointer-events: none;
  z-index: 2;
  background:
    conic-gradient(from var(--race),
      transparent 0deg 210deg,
      color-mix(in srgb, var(--race-t) 45%, transparent) 285deg,
      var(--race-c) 348deg,
      transparent 360deg),
    linear-gradient(color-mix(in srgb, var(--race-c) 16%, transparent), color-mix(in srgb, var(--race-c) 16%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--race-c) 55%, transparent));
  opacity: 0;
  animation: flow-race 2.6s linear infinite paused;
  transition: opacity .45s ease;
}
.paths li:hover::before,
.paths li:focus-within::before,
.sra-col:hover::before,
.sra-col:focus-within::before { opacity: 1; animation-play-state: running; }
.sra-cols {
  margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: stretch;
}
.sra-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 1.6rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-top: 3px solid var(--line);
  background: var(--panel);
  position: relative;
  --race-c: #22D3EE;
  --race-t: #22D3EE;
}
.sra-col--sra { border-top-color: #990000; --race-c: #990000; --race-t: #990000; }
.sra-col--ds  { border-top-color: #F5BB61; --race-c: #F5BB61; --race-t: #F5BB61; }
.sra-col--sfp { border-top-color: #22D3EE; --race-c: #22D3EE; --race-t: #22D3EE; }
.sra-col::before { inset: -3px -1px -1px; border-radius: 15px; }
.sra-col__note {
  margin: 0; width: 100%; text-align: center;
  font-size: 0.9rem; line-height: 1.55; color: var(--muted);
  max-width: 34ch; flex: 1 1 auto;
}
.sra-col .sra__logo {
  width: 168px; max-width: 100%; height: 140px;
  object-fit: contain; object-position: center;
  margin: 0 auto; flex: none; align-self: center;
}
html[data-theme="light"] .sra__logo--white { display: none; }
html[data-theme="light"] .sra__logo--color { display: block; }
html[data-theme="dark"] .sra__logo--white { display: block; }
html[data-theme="dark"] .sra__logo--color { display: none; }
.brand-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  padding: 14px 12px;
  width: 100%;
  min-height: 62px;
  height: auto;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: #FFFFFF;
  text-decoration: none;
}
.brand-btn:hover { color: #fff; }
.brand-btn__logo { width: 54px; height: auto; flex: none; }
.brand-btn--sfp .brand-btn__logo,
.brand-btn--ds .brand-btn__logo { width: 34px; }
.brand-btn__logo--color { display: none; }
.brand-btn__logo--white { display: block; }
.brand-btn__label { white-space: normal; text-align: center; }
.brand-btn__ext { width: 13px; height: 13px; flex: none; opacity: .85; color: #FFFFFF; }
.brand-btn__sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.brand-btn:active { transform: translateY(1px); }
.brand-btn--sra { background: #990000; border: 1px solid #990000; box-shadow: 0 0 28px -10px rgba(153, 0, 0, .55); }
.brand-btn--sra:hover { background: #7F0000; border-color: #7F0000; }
.brand-btn--ds { background: #004874; border: 1px solid #004874; box-shadow: 0 0 28px -10px rgba(0, 72, 116, .55); }
.brand-btn--ds:hover { background: #00385A; border-color: #00385A; }
.brand-btn--sfp { background: #0F5C5C; border: 1px solid #0F5C5C; box-shadow: 0 0 28px -10px rgba(15, 92, 92, .55); }
.brand-btn--sfp:hover { background: #0A4545; border-color: #0A4545; }

@media (prefers-reduced-motion: reduce) {
  .paths li::before, .sra-col::before {
    animation: none !important;
    background: linear-gradient(var(--race-c), var(--race-c));
    filter: none;
  }
  .paths li:hover::before, .sra-col:hover::before { opacity: .85; }
}
@media (max-width: 1020px) { .sra-cols { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr; } }
@media (max-width: 47.99rem) {
  .lockup img { height: 1.75rem; }
  .btn { width: 100%; }
  .top__cta .btn, .hero .btn, .cta-band .btn { width: auto; }
}
