:root {
  color-scheme: dark;
  --bg: #07101a;
  --bg-deep: #040911;
  --panel: rgba(9, 17, 27, 0.92);
  --panel-strong: rgba(13, 25, 40, 0.96);
  --line: rgba(123, 167, 201, 0.24);
  --line-strong: rgba(255, 181, 101, 0.5);
  --text: #f4f7fb;
  --text-dim: #b8c4d5;
  --text-muted: #7f93aa;
  --orange: #ffb565;
  --orange-strong: #ff8f40;
  --blue: #88dfff;
  --blue-strong: #4cb7ff;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 14px 28px rgba(0, 0, 0, 0.18);
  --radius: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-display: "Bahnschrift SemiBold", "Trebuchet MS", "Arial Narrow", sans-serif;
  --font-body: "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  --font-ui: "Consolas", "SFMono-Regular", "Cascadia Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(76, 183, 255, 0.14), transparent 30%),
    radial-gradient(circle at 18% 12%, rgba(255, 181, 101, 0.08), transparent 20%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(117, 150, 183, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 150, 183, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.96));
}

a {
  color: inherit;
}

button {
  font: inherit;
}

@media (pointer: fine) {
  body,
  body a,
  body button {
    cursor: none;
  }
}

.site-shell {
  position: relative;
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 36px;
}

.crosshair-root {
  mix-blend-mode: screen;
}

.site-snow,
.pixel-snow-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.pixel-snow-container {
  overflow: hidden;
  contain: layout style paint;
}

.pixel-snow-container canvas {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

.site-snow-page {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 1));
}

.site-snow-warm {
  opacity: 0.3;
  mix-blend-mode: screen;
}

.screen-grid,
.screen-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.screen-grid {
  background:
    linear-gradient(rgba(122, 165, 201, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 165, 201, 0.03) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.5;
}

.screen-vignette {
  background:
    radial-gradient(circle at center, transparent 48%, rgba(2, 7, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.08), rgba(2, 7, 13, 0.3));
}

.topbar,
.main-layout,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(8, 15, 24, 0.72);
  box-shadow: var(--shadow-soft);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(255, 181, 101, 0.16), rgba(136, 223, 255, 0.12));
  box-shadow: var(--shadow-soft);
}

.brand-icon img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 14px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-bar a,
.footer-actions a,
.footer-actions button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.nav-bar a::before {
  content: '';
  position: absolute;
  inset: -40% auto -40% -55%;
  width: 46%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.34) 48%, transparent 100%);
  transform: translateX(0) rotate(16deg);
  opacity: 0;
  animation: nav-shine 3.8s ease-in-out infinite;
}

.nav-bar a:nth-child(2)::before {
  animation-delay: 0.45s;
}

.nav-bar a:nth-child(3)::before {
  animation-delay: 0.9s;
}

.nav-bar a:nth-child(4)::before {
  animation-delay: 1.35s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--blue), transparent);
  transform: scaleX(0.32);
  transform-origin: center;
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-link:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.18),
    0 0 18px rgba(76, 183, 255, 0.08);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-link:active {
  transform: translateY(0) scale(0.96);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.nav-link.is-active {
  color: var(--text);
  border-color: rgba(255, 181, 101, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 181, 101, 0.12), rgba(76, 183, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.14);
}

.main-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero,
.section-block,
.footer {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(7, 13, 21, 0.72);
  box-shadow: var(--shadow);
}

.hero,
.section-block {
  border-radius: 32px;
  scroll-margin-top: 92px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 18px;
  padding: 22px;
  min-height: 720px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.hero-kicker,
.section-kicker,
.card-eyebrow,
.hero-overlay-tag {
  margin: 0;
  color: var(--orange);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
  line-height: 0.97;
  letter-spacing: -0.04em;
}

h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  line-height: 1;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.18;
}

p,
li,
span,
strong,
small {
  line-height: 1.6;
}

.hero-text,
.pixel-card p,
.hero-overlay p,
.footer p,
.rule-list li {
  color: var(--text-dim);
}

.hero-text {
  max-width: 62ch;
  margin: 0;
  font-size: 1.05rem;
}

.hero-actions,
.status-strip,
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.action-primary,
.action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
}

.action-primary {
  color: #08121d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--orange), var(--orange-strong));
  box-shadow: 0 10px 24px rgba(255, 143, 64, 0.22);
}

.action-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.status-strip {
  margin-top: auto;
}

.status-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 176px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.status-chip span,
.hero-console-row span {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-chip strong,
.hero-console-row strong {
  color: var(--text);
  font-size: 0.98rem;
}

.hero-display {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 100%;
}

.hero-display-frame,
.pixel-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(10, 17, 26, 0.78);
  box-shadow: var(--shadow-soft);
}

.hero-display-frame {
  min-height: 510px;
}

.site-snow-hero {
  position: absolute;
  inset: 0;
  opacity: 0.88;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(7, 13, 21, 0.34), rgba(7, 13, 21, 0.56) 58%, rgba(7, 13, 21, 0.86));
}

.hero-console {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(7, 13, 21, 0.48);
}

.hero-console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-note {
  padding: 20px;
}

.section-block {
  padding: 22px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

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

.pixel-card {
  padding: 22px;
}

.card-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
}

.pixel-card p {
  margin: 14px 0 0;
}

.command-grid,
.lower-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 14px;
}

.command-stack {
  display: grid;
  gap: 14px;
}

.command-card-wide {
  min-height: 100%;
}

.rule-list {
  margin: 16px 0 0;
  padding-left: 18px;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.roadmap-chip {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 22px;
}

.footer p {
  margin: 0;
}

@keyframes nav-shine {
  0%,
  100% {
    opacity: 0;
    transform: translateX(-18%) rotate(16deg);
  }

  14% {
    opacity: 0.9;
  }

  30% {
    opacity: 0;
    transform: translateX(260%) rotate(16deg);
  }
}

@media (max-width: 1120px) {
  .hero,
  .command-grid,
  .lower-section,
  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(100% - 18px, 1240px);
    padding-top: 14px;
  }

  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .command-grid,
  .lower-section,
  .systems-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 16px;
  }

  .hero-copy,
  .section-block,
  .pixel-card,
  .hero-overlay {
    padding: 18px;
  }

  .hero-display-frame {
    min-height: 420px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 10vw, 4.4rem);
  }

  h2 {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
