:root {
  color-scheme: dark;
  --bg: #080a0f;
  --bg-2: #10131c;
  --panel: rgba(18, 23, 34, 0.84);
  --panel-solid: #151b28;
  --line: rgba(149, 247, 255, 0.22);
  --text: #eef7ff;
  --muted: #9fb2c4;
  --cyan: #43e8ff;
  --magenta: #ff3fd1;
  --amber: #ffcf5a;
  --green: #54ff9b;
  --red: #ff5f67;
  --violet: #9e7cff;
  --shadow-cyan: 0 0 24px rgba(67, 232, 255, 0.28);
  --shadow-magenta: 0 0 28px rgba(255, 63, 209, 0.24);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.55), var(--bg) 38rem),
    repeating-linear-gradient(90deg, rgba(67, 232, 255, 0.04) 0 1px, transparent 1px 96px),
    var(--bg);
  color: var(--text);
}

body.nav-open {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

code {
  color: var(--amber);
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(255, 255, 255, 0.2) 4px);
  mix-blend-mode: overlay;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 28px;
  border-bottom: 1px solid rgba(149, 247, 255, 0.16);
  background: rgba(8, 10, 15, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(67, 232, 255, 0.58);
  border-radius: 14px;
  background: #0a0f17;
  box-shadow: var(--shadow-cyan);
}

.brand-mark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.main-nav {
  display: inline-flex;
  justify-self: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.main-nav a {
  min-width: 72px;
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(67, 232, 255, 0.1);
  box-shadow: inset 0 -2px 0 var(--cyan);
  color: var(--text);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-chip,
.mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
}

.status-chip.online .status-dot {
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.status-chip.offline .status-dot {
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
.main-nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--cyan);
  color: #061017;
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
  background: #7df1ff;
}

.btn-play {
  min-height: 56px;
  padding: 0 28px;
  border-color: rgba(255, 63, 209, 0.46);
  background: linear-gradient(135deg, rgba(255, 63, 209, 0.2), rgba(67, 232, 255, 0.2));
  color: var(--text);
  box-shadow: var(--shadow-magenta);
}

.btn-play:hover {
  border-color: rgba(255, 63, 209, 0.72);
  background: linear-gradient(135deg, rgba(255, 63, 209, 0.32), rgba(67, 232, 255, 0.3));
}

.btn-play-header {
  min-height: 46px;
  padding: 0 24px;
  font-size: 1rem;
}

.btn-secondary {
  border-color: rgba(67, 232, 255, 0.36);
  background: rgba(67, 232, 255, 0.08);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(67, 232, 255, 0.14);
}

.btn-discord {
  border-color: rgba(88, 101, 242, 0.6);
  background: rgba(88, 101, 242, 0.2);
  color: #e6e9ff;
}

.btn-discord:hover {
  border-color: rgba(88, 101, 242, 0.9);
  background: rgba(88, 101, 242, 0.3);
}

.btn-small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.full-width {
  width: 100%;
}

.nav-toggle {
  display: none;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header-h));
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(149, 247, 255, 0.16);
}

#cityCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 10, 15, 0.92) 0%, rgba(8, 10, 15, 0.72) 42%, rgba(8, 10, 15, 0.14) 100%),
    linear-gradient(180deg, rgba(8, 10, 15, 0.08) 0%, rgba(8, 10, 15, 0.86) 92%);
}

.hero-grid {
  position: absolute;
  right: -20vw;
  bottom: -12vw;
  width: 72vw;
  height: 48vw;
  transform: rotateX(62deg) rotateZ(-32deg);
  background:
    linear-gradient(rgba(67, 232, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 63, 209, 0.2) 1px, transparent 1px);
  background-size: 42px 42px;
  filter: drop-shadow(0 0 18px rgba(67, 232, 255, 0.22));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 104px);
  padding: clamp(44px, 8vh, 84px) 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.cyber-logo {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.18em;
  margin-bottom: 18px;
  font-size: 8.7rem;
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: 0;
  text-shadow:
    0 0 28px rgba(67, 232, 255, 0.36),
    3px 0 0 rgba(255, 63, 209, 0.55);
}

.cyber-logo span {
  color: #f1fbff;
}

.cyber-logo strong {
  color: var(--magenta);
  font-weight: 900;
  text-shadow:
    0 0 24px rgba(255, 63, 209, 0.55),
    -3px 0 0 rgba(67, 232, 255, 0.35);
}

.hero-copy {
  width: min(680px, 100%);
  color: #d5e2ef;
  font-size: 1.22rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 10px;
  margin: 38px 0 0;
}

.hero-stats div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(149, 247, 255, 0.18);
  background: rgba(10, 15, 23, 0.72);
}

.hero-stats dt {
  color: var(--amber);
  font-size: 1.9rem;
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.band {
  padding: clamp(54px, 8vw, 94px) 0;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading h2,
.split h2,
.join-layout h2,
.status-panel h2 {
  margin-bottom: 0;
  font-size: 3.2rem;
  line-height: 1;
}

.intro-copy {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.feature-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.status-panel,
.district-card,
.terminal-panel {
  border: 1px solid rgba(149, 247, 255, 0.15);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    var(--panel);
}

.feature-card {
  min-height: 238px;
  padding: 20px;
}

.feature-card:hover,
.district-card:hover {
  border-color: rgba(67, 232, 255, 0.44);
  box-shadow: var(--shadow-cyan);
}

.card-code {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--magenta);
  font-weight: 900;
}

.feature-card h3,
.district-card h2 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.feature-card p,
.district-card p,
.join-layout p {
  color: var(--muted);
  line-height: 1.62;
}

.terminal-band {
  background: #090d13;
}

.join-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(26px, 6vw, 72px);
  align-items: center;
}

.terminal-panel {
  padding: 16px;
  box-shadow: var(--shadow-magenta);
}

.terminal-top {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-top span:nth-child(2) {
  background: var(--amber);
}

.terminal-top span:nth-child(3) {
  background: var(--green);
}

.terminal-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 54px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: #06080c;
  color: #d8eef7;
}

.prompt,
.terminal-line strong {
  color: var(--cyan);
}

.terminal-actions {
  display: grid;
  gap: 10px;
}

.subpage-hero {
  padding: clamp(74px, 12vw, 128px) 0 42px;
  border-bottom: 1px solid rgba(149, 247, 255, 0.14);
  background:
    linear-gradient(90deg, rgba(67, 232, 255, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(255, 63, 209, 0.1), transparent 62%),
    #090d13;
}

.subpage-hero h1 {
  margin-bottom: 16px;
  font-size: 6.6rem;
  line-height: 0.9;
  text-transform: uppercase;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.68;
}

.placeholder-layout {
  max-width: 780px;
}

.placeholder-panel {
  min-height: 230px;
}

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rank-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.rank-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.02) 0%, rgba(8, 10, 15, 0.1) 18%, rgba(8, 10, 15, 0.88) 64%, rgba(8, 10, 15, 0.98) 100%),
    var(--panel);
  background-position: center top;
  background-size: cover;
}

.rank-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.08) 0%, rgba(8, 10, 15, 0.2) 22%, rgba(8, 10, 15, 0.74) 58%, rgba(8, 10, 15, 0.92) 100%),
    linear-gradient(120deg, rgba(255, 63, 209, 0.1), transparent 42%);
  pointer-events: none;
}

.rank-card > * {
  position: relative;
  z-index: 1;
}

.rank-card h2 {
  margin-bottom: 14px;
}

.rank-card p {
  margin-bottom: 20px;
}

.rank-card-runner {
  background-image:
    linear-gradient(180deg, rgba(8, 10, 15, 0.02) 0%, rgba(8, 10, 15, 0.1) 18%, rgba(8, 10, 15, 0.88) 64%, rgba(8, 10, 15, 0.98) 100%),
    url("assets/rank-vip.png");
  background-position: center -88px;
  box-shadow: inset 0 0 0 1px rgba(67, 232, 255, 0.08);
}

.rank-card-ghost {
  background-image:
    linear-gradient(180deg, rgba(8, 10, 15, 0.02) 0%, rgba(8, 10, 15, 0.1) 18%, rgba(8, 10, 15, 0.88) 64%, rgba(8, 10, 15, 0.98) 100%),
    url("assets/rank-boss.png");
  background-position: center 8%;
  box-shadow: inset 0 0 0 1px rgba(158, 124, 255, 0.12);
}

.rank-card-overseer {
  background-image:
    linear-gradient(180deg, rgba(8, 10, 15, 0.02) 0%, rgba(8, 10, 15, 0.1) 18%, rgba(8, 10, 15, 0.88) 64%, rgba(8, 10, 15, 0.98) 100%),
    url("assets/rank-kingpin.png");
  background-position: center 0;
  box-shadow: inset 0 0 0 1px rgba(255, 207, 90, 0.12);
}

.rank-perks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-perks li {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  color: #d5e2ef;
  line-height: 1.55;
}

.rank-actions {
  margin-top: auto;
  padding-top: 16px;
}

.rank-actions .btn {
  min-height: 50px;
  font-size: 0.95rem;
}

.rank-policy-card {
  padding: 24px;
}

.rank-policy-card h2 {
  margin-bottom: 14px;
}

.rank-policy-card p:last-child {
  margin-bottom: 0;
}

.rank-policy-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding-left: 20px;
  color: #d5e2ef;
}

.rank-policy-list li {
  line-height: 1.55;
}

.payment-suggestion-grid {
  margin-top: 14px;
}

.payment-card {
  padding: 24px;
}

.payment-card h2 {
  margin-bottom: 14px;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 14px;
}

.status-panel {
  padding: 20px;
}

.map-panel {
  grid-column: 1 / -1;
}

.panel-title-row {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.panel-title-row h2 {
  font-size: 2.3rem;
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.status-metrics div {
  min-height: 92px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.metric-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-metrics strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 1.18rem;
}

.motd {
  margin-bottom: 0;
  color: #d6e3ec;
  line-height: 1.6;
}

.player-list {
  display: grid;
  gap: 8px;
  min-height: 172px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.player-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  color: #d9e6ef;
}

.player-avatar {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  image-rendering: pixelated;
  border-radius: 8px;
  background: rgba(67, 232, 255, 0.13);
  object-fit: cover;
}

.player-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
}

.district-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.district-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 20px;
}

.job-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: flex-end;
  background-position: center;
  background-size: cover;
}

.job-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.24), rgba(8, 10, 15, 0.88)),
    linear-gradient(90deg, rgba(8, 10, 15, 0.68), transparent 72%);
}

.job-card > * {
  position: relative;
  z-index: 1;
}

.job-replicant {
  background-image: url("assets/job-replicant-hunting.jpg");
}

.job-restaurant {
  background-image: url("assets/job-restaurant-farming.jpg");
}

.job-delivery {
  background-image: url("assets/job-delivery-fishing.jpg");
}

.job-metro {
  background-image: url("assets/job-metro-cars.jpg");
}

.district-card span {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.job-card span {
  margin-bottom: 18px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.video-panel {
  overflow: hidden;
  border: 1px solid rgba(149, 247, 255, 0.15);
  border-radius: var(--radius);
  background: var(--panel-solid);
  aspect-ratio: 16 / 9;
}

.video-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.platform-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.platform-modal[hidden] {
  display: none !important;
}

.platform-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 10, 0.82);
  backdrop-filter: blur(4px);
}

.platform-modal-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(67, 232, 255, 0.3);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016)),
    #0a1018;
  box-shadow: var(--shadow-cyan);
}

.platform-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.platform-modal-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.platform-modal-panel p {
  color: #d0deea;
}

.platform-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.platform-option {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(67, 232, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.26);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.platform-option:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 232, 255, 0.5);
  box-shadow: var(--shadow-cyan);
}

.platform-option img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #111925;
}

.platform-option strong {
  display: block;
  margin-bottom: 3px;
  color: #eff8ff;
}

.platform-option span {
  color: var(--muted);
  font-size: 0.9rem;
}

.platform-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(360px, calc(100% - 36px));
  padding: 13px 15px;
  border: 1px solid rgba(67, 232, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(8, 10, 15, 0.94);
  color: var(--text);
  box-shadow: var(--shadow-cyan);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  border-top: 1px solid rgba(149, 247, 255, 0.14);
  padding: 24px 0;
  color: var(--muted);
  background: #07090d;
}

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

.footer-layout p {
  margin: 0;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
    column-gap: 16px;
    justify-content: space-between;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 14px;
    left: 14px;
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    justify-self: stretch;
    padding: 8px;
    background: rgba(8, 10, 15, 0.96);
  }

  body.nav-open .main-nav {
    display: grid;
  }

  .main-nav a {
    min-height: 46px;
  }

  .nav-toggle {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 9px;
    border: 1px solid rgba(67, 232, 255, 0.3);
    background: rgba(67, 232, 255, 0.08);
    cursor: pointer;
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text);
  }

  .header-actions {
    display: none;
  }

  .feature-grid,
  .district-grid,
  .video-grid,
  .rank-grid,
  .rank-policy-grid,
  .platform-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-grid,
  .split,
  .join-layout {
    grid-template-columns: 1fr;
  }

  .cyber-logo {
    font-size: 6.2rem;
  }

  .hero-copy {
    font-size: 1.12rem;
  }

  .section-heading h2,
  .split h2,
  .join-layout h2,
  .status-panel h2 {
    font-size: 2.65rem;
  }

  .subpage-hero h1 {
    font-size: 5.2rem;
  }

  .panel-title-row h2 {
    font-size: 2.05rem;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 66px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: calc(92svh - var(--header-h));
  }

  .hero-content {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
  }

  .cyber-logo {
    display: block;
    font-size: 2.62rem;
    line-height: 0.92;
    max-width: 100%;
  }

  .cyber-logo span,
  .cyber-logo strong {
    display: block;
  }

  .cyber-logo strong {
    margin-top: 2px;
    font-size: 3.15rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section-heading h2,
  .split h2,
  .join-layout h2,
  .status-panel h2 {
    font-size: 2rem;
  }

  .subpage-hero h1 {
    font-size: 3.25rem;
  }

  .panel-title-row h2 {
    font-size: 1.85rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats,
  .status-metrics,
  .feature-grid,
  .district-grid,
  .video-grid,
  .rank-grid,
  .rank-policy-grid,
  .platform-option-grid {
    grid-template-columns: 1fr;
  }

  .platform-modal {
    padding: 14px;
  }

  .platform-modal-actions .btn {
    width: 100%;
  }

  .panel-title-row {
    flex-direction: column;
    align-items: stretch;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
