:root {
  --bg-a: #061226;
  --bg-b: #13072e;
  --bg-c: #062c33;
  --text: #f4f8ff;
  --muted: #b8c4de;
  --accent: #63f6ff;
  --accent-2: #ff66e8;
  --glass: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 15%, #1b2a58 0%, transparent 35%),
    radial-gradient(circle at 80% 10%, #542264 0%, transparent 30%),
    linear-gradient(140deg, var(--bg-a), var(--bg-b) 45%, var(--bg-c));
  overflow-x: hidden;
  position: relative;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 0 0, transparent 0, rgba(255, 255, 255, 0.03) 1px, transparent 2px);
  background-size: 6px 6px;
  opacity: 0.3;
  z-index: -1;
}

.aurora {
  position: fixed;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  filter: blur(55px);
  opacity: 0.38;
  pointer-events: none;
  animation: drift 16s ease-in-out infinite alternate;
  z-index: -2;
}

.aurora-a {
  background: #1fd5ff;
  left: -8vw;
  top: 12vh;
}

.aurora-b {
  background: #ff38d6;
  right: -14vw;
  top: 38vh;
  animation-duration: 20s;
}

.aurora-c {
  background: #5fffaf;
  left: 30vw;
  bottom: -20vh;
  animation-duration: 24s;
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -3;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 20;
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.brand-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 4rem;
}

.hero {
  padding: 3.5rem 0 2.5rem;
}

.kicker {
  margin: 0;
  letter-spacing: 0.15em;
  color: var(--accent);
  font-size: 0.86rem;
}

h1 {
  margin: 0.75rem 0;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 8vw, 5.3rem);
  line-height: 1.03;
  max-width: 12ch;
}

.cursor {
  animation: blink 0.9s steps(1) infinite;
  color: var(--accent);
}

.sub {
  color: var(--muted);
  margin: 1rem 0 0;
  max-width: 52ch;
  line-height: 1.7;
}

.cta-row {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  padding: 0.68rem 1rem;
  border-radius: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.btn-glow {
  border-color: rgba(99, 246, 255, 0.6);
  box-shadow: 0 0 22px rgba(99, 246, 255, 0.22);
}

.btn-ghost {
  background: transparent;
}

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

.card {
  padding: 1.1rem;
  border-radius: 16px;
  transform-style: preserve-3d;
  will-change: transform;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-family: "Orbitron", sans-serif;
}

.card p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

.meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.meter span {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.console {
  margin-top: 1rem;
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.console h2 {
  margin: 0 0 0.7rem;
  font-size: 1rem;
  font-family: "Orbitron", sans-serif;
  color: var(--accent);
}

#logs {
  margin: 0;
  padding-left: 1.1rem;
  color: #d9e5ff;
}

#logs li {
  margin: 0.38rem 0;
  opacity: 0;
  transform: translateY(6px);
  animation: reveal 0.4s forwards;
}

#cursorGlow {
  position: fixed;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(99, 246, 255, 0.65) 0%, rgba(99, 246, 255, 0) 70%);
  z-index: 50;
}

.particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 60;
  animation: fly 680ms ease-out forwards;
}

body.hyper {
  --bg-a: #1f0d0a;
  --bg-b: #0f1c43;
  --bg-c: #3b0b48;
  --accent: #ffd35c;
  --accent-2: #ff5c8a;
}

@keyframes drift {
  from {
    transform: translate3d(-3vw, -2vh, 0) scale(0.95);
  }
  to {
    transform: translate3d(4vw, 4vh, 0) scale(1.05);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

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

@keyframes fly {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.2);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .deck {
    grid-template-columns: 1fr;
  }

  .topbar {
    top: 0.5rem;
    margin-top: 0.6rem;
  }
}

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