:root {
  --void: #04050c;
  --ice: #e8f2ff;
  --ice-dim: rgba(220, 236, 255, 0.72);
  --chrome-hi: #f5fbff;
  --chrome-mid: #9eb6d8;
  --cyan: #7ef0ff;
  --magenta: #ff7ad9;
  --violet: #a78bff;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-edge: rgba(255, 255, 255, 0.35);
  --font-display: "Orbitron", system-ui, sans-serif;
  --font-body: "Rajdhani", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--void);
  scroll-behavior: smooth;
}

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

body {
  isolation: isolate;
  color: var(--ice);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.45;
  overflow-x: hidden;
}

/* ===== Y2K BACKGROUND ===== */
#y2k-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 25% 30%, #1a2a5e 0%, transparent 70%),
    radial-gradient(50% 45% at 78% 70%, #2a1650 0%, transparent 70%),
    #04050c;
}

#y2k-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#y2k-bg .chrome {
  opacity: 0.95;
}

#y2k-bg .vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 35%, rgba(2, 3, 9, 0.78) 100%),
    linear-gradient(to bottom, rgba(2, 3, 9, 0.35), transparent 22%, transparent 78%, rgba(2, 3, 9, 0.5));
}

#y2k-bg .grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 50;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}

.scroll-progress__bar {
  height: 100%;
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--magenta));
  box-shadow: 0 0 16px rgba(126, 240, 255, 0.65);
}

/* ===== GLASS TYPE ===== */
.glass-text {
  color: var(--ice-dim);
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 24px rgba(160, 200, 255, 0.18);
}

.glass-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.6vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(200, 230, 255, 0.8);
}

.glass-heading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.chrome-type {
  font-family: var(--font-display);
  background: linear-gradient(
    115deg,
    #ffffff 0%,
    #c9dff8 18%,
    #8ef0ff 36%,
    #ffffff 50%,
    #d4b4ff 68%,
    #ffb8ec 84%,
    #eaf4ff 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chrome-flow 8s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(140, 200, 255, 0.35));
}

@keyframes chrome-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ===== GLASS SURFACES ===== */
.glass-chip,
.glass-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03) 42%, rgba(120, 160, 255, 0.06)),
    var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(120, 180, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

.glass-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.glass-panel--sm {
  border-radius: 1rem;
}

.glass-panel--cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: clamp(2rem, 5vw, 3.25rem);
}

.glass-panel--cta .glass-text {
  margin: 0;
  max-width: 32ch;
}

/* ===== TOP BAR ===== */
.top {
  position: fixed;
  z-index: 40;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%) translate3d(0, var(--py, 0px), 0);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.55rem 1rem 0.55rem 1.15rem;
  border-radius: 999px;
  width: max-content;
  max-width: calc(100% - 2rem);
}

.top__mark {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--chrome-hi);
  text-shadow: 0 0 16px rgba(160, 220, 255, 0.55);
}

.top__link {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cyan);
  transition: text-shadow 0.2s ease, color 0.2s ease;
}

.top__link:hover {
  color: #fff;
  text-shadow: 0 0 18px rgba(126, 240, 255, 0.9);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.25rem, 5vw, 3rem) 4rem;
  text-align: center;
}

.hero__orb {
  position: absolute;
  width: min(70vw, 460px);
  aspect-ratio: 1;
  top: 46%;
  left: 50%;
  translate: -50% -52%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.chrome-orb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), transparent 28%),
    radial-gradient(circle at 70% 65%, rgba(255, 122, 217, 0.35), transparent 42%),
    radial-gradient(circle at 40% 70%, rgba(126, 240, 255, 0.4), transparent 45%),
    linear-gradient(145deg, #dfe9f8, #6a7fa8 40%, #1a2038 70%, #c9b6ff);
  box-shadow:
    inset 0 -30px 50px rgba(0, 0, 0, 0.45),
    inset 0 20px 40px rgba(255, 255, 255, 0.35),
    0 0 80px rgba(140, 190, 255, 0.35),
    0 40px 80px rgba(0, 0, 0, 0.45);
  animation: orb-spin 18s linear infinite;
  filter: saturate(1.15);
}

.chrome-orb__sheen {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 40%);
  mix-blend-mode: screen;
  animation: sheen-breathe 4.5s ease-in-out infinite;
}

@keyframes orb-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sheen-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero__brand {
  margin: 0 0 1rem;
  font-size: clamp(3.6rem, 14vw, 7.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.08em;
}

.hero__pitch {
  margin: 0 auto 1.75rem;
  max-width: 34ch;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 500;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.hero__aside {
  margin: 0;
  font-size: 1rem;
  opacity: 0.85;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 2.75rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(200, 230, 255, 0.55);
}

.scroll-hint__chevrons {
  letter-spacing: 0;
  animation: chevron-bounce 1.6s ease-in-out infinite;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(126, 240, 255, 0.8);
}

@keyframes chevron-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* ===== CTA GLOW ===== */
.cta {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.7rem;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #041018;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background:
    linear-gradient(120deg, #f7fbff, #b9e9ff 35%, #e7c9ff 70%, #ffe3f7);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 24px rgba(126, 240, 255, 0.45),
    0 0 48px rgba(255, 122, 217, 0.28),
    0 12px 30px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

.cta__label {
  position: relative;
  z-index: 2;
}

.cta__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    140px 80px at var(--mx) var(--my),
    rgba(255, 255, 255, 0.75),
    transparent 55%
  );
  opacity: 0.55;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.cta:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45),
    0 0 28px rgba(126, 240, 255, 0.75),
    0 0 64px rgba(255, 122, 217, 0.45),
    0 16px 36px rgba(0, 0, 0, 0.4);
}

.cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.cta::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--cyan), var(--violet), var(--magenta), var(--cyan));
  background-size: 300% 100%;
  filter: blur(12px);
  opacity: 0.75;
  animation: cta-aura 4s linear infinite;
}

@keyframes cta-aura {
  to {
    background-position: 300% 0;
  }
}

/* ===== SECTIONS ===== */
.band {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 10vh, 6rem) clamp(1.25rem, 5vw, 3rem);
}

.band--end {
  padding-bottom: clamp(5rem, 14vh, 8rem);
}

.band__inner {
  width: min(960px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.glass-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 760px) {
  .glass-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.foot {
  position: relative;
  z-index: 1;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* ===== REVEALS ===== */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready [data-reveal].is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.js-ready .glass-row [data-reveal]:nth-child(2) {
  transition-delay: 0.08s;
}

.js-ready .glass-row [data-reveal]:nth-child(3) {
  transition-delay: 0.16s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .chrome-type,
  .chrome-orb,
  .chrome-orb__sheen,
  .scroll-hint__chevrons,
  .cta::after {
    animation: none !important;
  }

  .js-ready [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}
