:root {
  --bg: #030609;
  --white: #f3f7fa;
  --muted: #8997a4;
  --cyan: #59d9ff;
  --cyan-bright: #baf1ff;
  --violet: #7367ff;
  --line: rgba(174, 224, 245, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
  background: var(--bg);
  font-family: "Inter", sans-serif;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 66% 48%, rgba(29, 104, 150, 0.14), transparent 32%),
    var(--bg);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero::before {
  background-image:
    linear-gradient(rgba(128, 207, 235, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 207, 235, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 48%);
}

.hero::after {
  border: 1px solid rgba(255, 255, 255, 0.035);
  inset: 18px;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(3, 6, 9, 0.55) 0%, rgba(3, 6, 9, 0.04) 48%, rgba(3, 6, 9, 0.12) 100%),
    linear-gradient(0deg, rgba(3, 6, 9, 0.7) 0%, transparent 32%);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  filter: saturate(0.82) contrast(1.06);
  animation: visual-in 1.8s cubic-bezier(.2,.7,.2,1) .15s forwards, drift 18s ease-in-out 2s infinite alternate;
}

#energy-flow {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .9;
}

.core-bloom {
  position: absolute;
  z-index: 2;
  left: 74.5%;
  top: 48%;
  width: clamp(100px, 13vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(220, 251, 255, .34) 0 2%, rgba(87, 215, 255, .18) 10%, rgba(58, 160, 255, .06) 32%, transparent 68%);
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: core-breathe 3.4s ease-in-out infinite;
}

.scanline {
  position: absolute;
  z-index: 3;
  top: -20%;
  left: 48%;
  width: 1px;
  height: 140%;
  opacity: 0.3;
  background: linear-gradient(transparent, var(--cyan), transparent);
  box-shadow: 0 0 24px var(--cyan);
  animation: scan 7s ease-in-out infinite;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  z-index: 3;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(61, 194, 255, 0.08), transparent 66%);
  transition: opacity .5s;
}

.topbar,
.footer,
.hero-copy,
.telemetry {
  position: absolute;
  z-index: 5;
}

.topbar {
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 104px;
  padding: 0 clamp(34px, 5vw, 88px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 27px;
  height: 27px;
  overflow: visible;
  fill: none;
  stroke: var(--cyan-bright);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 8px rgba(73, 203, 255, .35));
}

.brand-mark circle {
  fill: var(--cyan);
  stroke: none;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #98a4ae;
  font-family: "Manrope", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.status-pulse {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.status-pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-out infinite;
}

.hero-copy {
  top: 50%;
  left: clamp(34px, 8vw, 150px);
  width: min(660px, 48vw);
  transform: translateY(-52%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 27px;
  color: #8495a3;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
}

.eyebrow-line {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(68px, 8.4vw, 148px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.075em;
  text-wrap: balance;
}

.title-line {
  position: relative;
  display: inline-block;
  isolation: isolate;
  overflow: visible;
}

.title-outline {
  padding-bottom: .34em;
  margin-bottom: -.34em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(210, 236, 247, .67);
  text-shadow: 0 0 40px rgba(74, 199, 255, .07);
}

.title-line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  color: transparent;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(89, 217, 255, .16) 34%,
    #effdff 48%,
    #70ddff 53%,
    rgba(93, 105, 255, .35) 62%,
    transparent 78%
  );
  background-size: 250% 100%;
  background-position: 150% 0;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(89, 217, 255, .65));
  opacity: 0;
  animation: title-energy 5.8s cubic-bezier(.45,0,.2,1) 2.2s infinite;
}

.title-outline::after {
  -webkit-text-stroke: 1px rgba(134, 230, 255, .85);
  filter:
    drop-shadow(0 0 5px rgba(89, 217, 255, .8))
    drop-shadow(0 0 16px rgba(87, 111, 255, .35));
  animation-delay: 2.34s;
}

.intro {
  max-width: 500px;
  margin: 38px 0 0;
  color: #9ba9b4;
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.75;
  letter-spacing: -.01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 37px;
}

.ai-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  color: #8c9ba7;
  background: none;
  font: 600 9px/1 "Manrope", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .3s;
}

.ai-trigger-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(89, 217, 255, .35);
  color: var(--cyan);
  font-size: 8px;
  box-shadow: inset 0 0 12px rgba(89, 217, 255, .05);
  transition: .3s;
}

.ai-trigger:hover {
  color: var(--cyan-bright);
}

.ai-trigger:hover .ai-trigger-icon {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(89, 217, 255, .18);
  transform: rotate(45deg);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-width: 218px;
  padding: 15px 17px 15px 20px;
  border: 1px solid rgba(128, 223, 255, 0.38);
  background: rgba(24, 126, 160, 0.08);
  color: #dbf7ff;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  backdrop-filter: blur(12px);
  transition: .35s ease;
}

.primary-action svg {
  width: 18px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.4;
  transition: transform .35s;
}

.primary-action:hover {
  border-color: var(--cyan);
  background: rgba(35, 175, 221, 0.16);
  box-shadow: 0 0 35px rgba(61, 205, 255, .12);
}

.primary-action:hover svg {
  transform: translateX(4px);
}

.launch-copy {
  color: #61707d;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  line-height: 1.65;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.telemetry {
  right: clamp(34px, 5vw, 88px);
  bottom: 110px;
  width: 236px;
  padding: 16px;
  border-top: 1px solid rgba(126, 219, 255, .2);
  background: linear-gradient(135deg, rgba(19, 35, 47, .4), rgba(7, 14, 20, .1));
  backdrop-filter: blur(10px);
}

.telemetry-header,
.metric-row,
.signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.telemetry-header {
  margin-bottom: 18px;
  color: #70808d;
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  letter-spacing: .2em;
}

.telemetry-header .live {
  color: var(--cyan);
}

.metric + .metric {
  margin-top: 13px;
}

.metric-row {
  margin-bottom: 7px;
  color: #73818d;
  font-size: 9px;
}

.metric-row strong {
  color: #bcefff;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 500;
}

.meter {
  position: relative;
  overflow: visible;
  height: 1px;
  background: rgba(137, 200, 224, .1);
}

.meter i {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #27779b, var(--cyan));
  box-shadow: 0 0 7px var(--cyan);
  transition: width .75s cubic-bezier(.2,.8,.2,1);
}

.meter i::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d9f9ff;
  box-shadow: 0 0 9px 2px var(--cyan);
  opacity: .8;
  transform: translateY(-50%);
  animation: metric-tip 1.7s ease-in-out infinite;
}

.loaded .meter i {
  width: var(--level);
}

.signal {
  gap: 8px;
  margin-top: 17px;
  color: #40505c;
  font-size: 7px;
  letter-spacing: .1em;
}

.signal i {
  position: relative;
  flex: 1;
  height: 12px;
  overflow: hidden;
  opacity: .52;
  background: repeating-linear-gradient(90deg, rgba(89, 217, 255, .75) 0 1px, transparent 1px 6px);
}

.signal i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(217, 249, 255, .9), transparent);
  filter: drop-shadow(0 0 4px var(--cyan));
  animation: data-sweep 2.4s linear infinite;
}

.signal .signal-stream-alt::after {
  animation-delay: -1.1s;
  animation-duration: 1.9s;
}

.footer {
  left: clamp(34px, 5vw, 88px);
  right: clamp(34px, 5vw, 88px);
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #46535d;
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .18em;
}

.footer a {
  transition: color .25s;
}

.footer a:hover {
  color: var(--cyan);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal .9s cubic-bezier(.2,.7,.2,1) forwards;
}

.eyebrow.reveal { animation-delay: .55s; }
h1.reveal { animation-delay: .68s; }
.intro.reveal { animation-delay: .82s; }
.hero-actions.reveal { animation-delay: .96s; }

.ai-game {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 22px;
  place-items: center;
  background: rgba(1, 4, 7, .88);
  opacity: 0;
  backdrop-filter: blur(18px);
  transition: opacity .35s ease;
}

.ai-game[hidden],
.game-result[hidden],
.game-intro[hidden] {
  display: none;
}

.ai-game.open { opacity: 1; }

.game-shell {
  width: min(940px, 100%);
  border: 1px solid rgba(114, 219, 255, .25);
  background: rgba(3, 8, 13, .96);
  box-shadow: 0 0 90px rgba(36, 157, 219, .13);
  transform: scale(.97);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}

.ai-game.open .game-shell { transform: scale(1); }

.game-header,
.game-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-header {
  height: 88px;
  padding: 0 27px;
  border-bottom: 1px solid var(--line);
}

.game-kicker,
.result-label {
  color: var(--cyan);
  font: 600 8px/1 "Manrope", sans-serif;
  letter-spacing: .22em;
}

.game-header h2 {
  margin: 8px 0 0;
  font: 400 21px/1 "Manrope", sans-serif;
  letter-spacing: -.04em;
}

.game-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  color: #9cabb6;
  background: transparent;
  font: 300 22px/1 sans-serif;
  cursor: pointer;
}

.game-close:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.game-stage {
  position: relative;
  height: min(56vh, 480px);
  min-height: 330px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(34, 147, 204, .09), transparent 45%),
    linear-gradient(rgba(89, 217, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89, 217, 255, .025) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
}

#neural-game {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.game-intro,
.game-result {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: radial-gradient(circle, rgba(4, 15, 23, .7), rgba(3, 8, 13, .94) 70%);
}

.intro-chip {
  padding: 7px 10px;
  border: 1px solid rgba(89, 217, 255, .22);
  color: var(--cyan);
  font: 600 8px/1 "Manrope", sans-serif;
  letter-spacing: .18em;
}

.game-intro p {
  margin: 28px 0 9px;
  color: #758692;
  font-size: 11px;
}

.game-intro h3 {
  margin: 0 0 28px;
  font: 400 clamp(34px, 5vw, 58px)/.95 "Manrope", sans-serif;
  letter-spacing: -.065em;
}

.game-start,
.game-restart {
  padding: 14px 22px;
  border: 1px solid rgba(89, 217, 255, .5);
  color: #dff9ff;
  background: rgba(45, 165, 208, .1);
  font: 600 10px/1 "Manrope", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.game-intro small {
  margin-top: 15px;
  color: #3e4e59;
  font: 600 7px/1 "Manrope", sans-serif;
  letter-spacing: .18em;
}

.game-result strong {
  margin-top: 15px;
  color: transparent;
  font: 400 clamp(72px, 12vw, 130px)/.85 "Manrope", sans-serif;
  letter-spacing: -.08em;
  -webkit-text-stroke: 1px var(--cyan);
  text-shadow: 0 0 40px rgba(89, 217, 255, .2);
}

.game-result p {
  margin: 22px 0;
  color: #8d9aa4;
  font-size: 12px;
}

.combo-flash {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  color: white;
  font: 500 19px/1 "Manrope", sans-serif;
  text-shadow: 0 0 16px var(--cyan);
  opacity: 0;
}

.combo-flash.pop { animation: combo-pop .55s ease-out; }

.game-stats {
  height: 70px;
  padding: 0 27px;
  border-top: 1px solid var(--line);
}

.game-stats div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.game-stats span {
  color: #4b5c68;
  font: 600 7px/1 "Manrope", sans-serif;
  letter-spacing: .18em;
}

.game-stats strong {
  color: #b8edfb;
  font: 500 13px/1 "Manrope", sans-serif;
}

body.game-open { overflow: hidden; }

@keyframes combo-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -100%) scale(1.25); }
}

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes visual-in {
  from { opacity: 0; transform: scale(1.045); }
  to { opacity: .88; transform: scale(1); }
}

@keyframes drift {
  from { transform: scale(1); }
  to { transform: scale(1.025) translate3d(-.3%, .2%, 0); }
}

@keyframes pulse {
  from { opacity: .8; transform: scale(.4); }
  to { opacity: 0; transform: scale(1.7); }
}

@keyframes metric-tip {
  0%, 100% { opacity: .45; transform: translateY(-50%) scale(.7); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.25); }
}

@keyframes data-sweep {
  from { transform: translateX(-110%); }
  to { transform: translateX(320%); }
}

@keyframes core-breathe {
  0%, 100% {
    opacity: .5;
    transform: translate(-50%, -50%) scale(.82);
    filter: blur(3px);
  }
  45% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18);
    filter: blur(1px);
  }
  58% {
    opacity: .72;
    transform: translate(-50%, -50%) scale(.96);
  }
}

@keyframes title-energy {
  0%, 12% {
    opacity: 0;
    background-position: 150% 0;
  }
  18% {
    opacity: .95;
  }
  37% {
    opacity: .72;
  }
  48%, 100% {
    opacity: 0;
    background-position: -145% 0;
  }
}

@keyframes scan {
  0%, 100% { transform: translateX(-18vw); opacity: 0; }
  25%, 75% { opacity: .25; }
  50% { transform: translateX(36vw); opacity: .12; }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-visual img {
    object-position: 65% center;
    opacity: .58;
  }

  .core-bloom {
    left: 78%;
    top: 50%;
    width: 170px;
  }

  .hero-visual::before {
    background:
      linear-gradient(90deg, rgba(3, 6, 9, .82), rgba(3, 6, 9, .25)),
      linear-gradient(0deg, rgba(3, 6, 9, .84), transparent 60%);
  }

  .hero-copy {
    top: 48%;
    width: calc(100% - 68px);
    transform: translateY(-50%);
  }

  h1 {
    font-size: clamp(58px, 15vw, 100px);
  }

  .core-bloom {
    left: 88%;
    top: 50%;
    width: 145px;
  }

  .telemetry {
    display: none;
  }
}

@media (max-width: 580px) {
  .hero::after {
    inset: 10px;
  }

  .topbar {
    height: 80px;
    padding: 0 24px;
  }

  .system-status span:last-child {
    display: none;
  }

  .hero-copy {
    left: 24px;
    width: calc(100% - 48px);
  }

  .eyebrow {
    gap: 9px;
    font-size: 7px;
  }

  .eyebrow-line {
    width: 20px;
  }

  h1 {
    font-size: clamp(55px, 19vw, 82px);
  }

  .intro {
    max-width: 90%;
    margin-top: 29px;
    font-size: 13px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-top: 28px;
  }

  .primary-action {
    min-width: 215px;
  }

  .footer {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .coordinates {
    display: none;
  }

  .ai-game { padding: 10px; }

  .game-header {
    height: 72px;
    padding: 0 17px;
  }

  .game-header h2 { font-size: 17px; }

  .game-stage {
    height: 58vh;
    min-height: 390px;
  }

  .game-stats {
    height: 60px;
    padding: 0 16px;
  }

  .game-stats div {
    flex-direction: column;
    gap: 5px;
  }
}

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