
:root {
  --bg: #030914;
  --panel: rgba(8, 21, 35, .68);
  --white: #f7fbff;
  --muted: #95a7b9;
  --blue: #13bfff;
  --green: #22d98b;
  --magenta: #df41ff;
  --gold: #f3bc39;
  --vh: 1vh;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { background: var(--bg); }
body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 115%, rgba(19, 191, 255, .18), transparent 35%),
    linear-gradient(160deg, #02070e, #061321 55%, #030914);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button { font: inherit; }
img { display: block; max-width: 100%; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

#visualizer {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .42;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .045;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.grid {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 74px 74px;
  transform: perspective(900px) rotateX(61deg) translateY(37%);
  transform-origin: center bottom;
  mask-image: linear-gradient(to bottom, transparent 5%, #000 45%);
}

.aurora {
  position: fixed;
  z-index: 0;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .14;
  pointer-events: none;
}
.aurora-blue { left: -18vw; bottom: -22vw; background: var(--blue); }
.aurora-gold { right: -22vw; top: -24vw; background: var(--gold); }

.experience {
  position: relative;
  z-index: 2;
  min-height: calc(var(--vh) * 100);
}

.gate,
.stage {
  position: absolute;
  inset: 0;
  min-height: calc(var(--vh) * 100);
}

.gate {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
  transition: opacity 1.1s ease, visibility 1.1s ease;
}

.gate::before {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(243, 188, 57, .12);
  border-radius: 30px;
  box-shadow: inset 0 0 90px rgba(19, 191, 255, .025);
  content: "";
  pointer-events: none;
}

.gate-logo {
  width: min(370px, 68vw);
  filter: drop-shadow(0 18px 45px rgba(0,0,0,.55));
  animation: gateFloat 5s ease-in-out infinite;
}

.gate-kicker {
  margin: 26px 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .42em;
}

.gate h1 {
  margin: 0;
  font-size: clamp(38px, 6.2vw, 94px);
  line-height: .95;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.start-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-width: 270px;
  margin-top: 40px;
  padding: 17px 24px;
  border: 1px solid rgba(243, 188, 57, .8);
  border-radius: 999px;
  background: rgba(3, 9, 20, .55);
  box-shadow:
    0 0 0 1px rgba(243, 188, 57, .13) inset,
    0 0 30px rgba(243, 188, 57, .12);
  color: #fff4d3;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .2em;
  cursor: pointer;
  justify-content: center;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.start-button::before {
  position: absolute;
  inset: -120% auto -120% -40%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transform: rotate(14deg);
  content: "";
  animation: sheen 3.5s ease-in-out infinite;
}
.start-button:hover {
  transform: translateY(-3px);
  background: rgba(16, 25, 37, .72);
  box-shadow: 0 0 45px rgba(243,188,57,.22);
}

.start-icon {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
}
.start-icon i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
  animation: equalize .75s ease-in-out infinite alternate;
}
.start-icon i:nth-child(1) { height: 7px; }
.start-icon i:nth-child(2) { height: 14px; animation-delay: -.2s; }
.start-icon i:nth-child(3) { height: 20px; animation-delay: -.4s; }
.start-icon i:nth-child(4) { height: 12px; animation-delay: -.1s; }
.start-icon i:nth-child(5) { height: 6px; animation-delay: -.55s; }

.sound-note {
  margin: 16px 0 0;
  color: #718398;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.stage {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-items: center;
  gap: clamp(10px, 1.7vh, 24px);
  padding: clamp(22px, 4vh, 46px) clamp(22px, 4vw, 72px) clamp(20px, 3vh, 38px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.started .gate {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
body.started .stage {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.brand-reveal {
  display: grid;
  justify-items: center;
  opacity: 0;
  transform: translateY(-16px) scale(.96);
}
.master-logo {
  width: clamp(190px, 20vw, 340px);
  filter: drop-shadow(0 16px 34px rgba(0,0,0,.42));
}
.micro-label {
  margin: 9px 0 0;
  color: #7f91a4;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .48em;
}

.launch-copy {
  text-align: center;
  opacity: 0;
  transform: translateY(18px);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(10px, .8vw, 13px);
  font-weight: 900;
  letter-spacing: .34em;
}
.launch-copy h2 {
  margin: 0;
  font-size: clamp(46px, 6.5vw, 104px);
  font-weight: 300;
  letter-spacing: .08em;
  line-height: .95;
  text-shadow: 0 0 24px rgba(243,188,57,.12);
}
.launch-copy h2 span {
  color: var(--gold);
  font-weight: 650;
  text-shadow: 0 0 26px rgba(243,188,57,.32);
}
.manifesto {
  margin: 15px 0 0;
  color: #a4b3c2;
  font-size: clamp(12px, 1.15vw, 17px);
  letter-spacing: .055em;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: clamp(14px, 2.2vw, 34px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.product {
  position: relative;
  display: grid;
  justify-items: center;
  min-width: 0;
  opacity: 0;
  transform: translateY(75px) scale(.84);
  filter: saturate(.7);
}
.product::after {
  position: absolute;
  right: 8%;
  bottom: 45px;
  left: 8%;
  height: 45px;
  border-radius: 50%;
  background: currentColor;
  filter: blur(32px);
  opacity: .12;
  content: "";
  z-index: -1;
}
.product-pulse { color: var(--blue); }
.product-connect { color: var(--green); }
.product-labs { color: var(--magenta); }
.product-academy { color: var(--gold); }

.product-image-wrap {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 255px;
  aspect-ratio: 1;
  place-items: center;
}
.product-image-wrap::before {
  position: absolute;
  inset: 14%;
  border-radius: 26%;
  box-shadow: 0 0 50px currentColor;
  opacity: .11;
  content: "";
}
.product img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 26px rgba(0,0,0,.55));
}

.product-copy {
  display: grid;
  gap: 5px;
  margin-top: -2px;
  text-align: center;
}
.product-copy strong {
  color: currentColor;
  font-size: clamp(16px, 1.6vw, 24px);
  letter-spacing: .25em;
}
.product-copy small {
  color: #8596a7;
  font-size: clamp(10px, .85vw, 13px);
  letter-spacing: .03em;
}

.launch-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  opacity: 0;
  color: #7f91a3;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.launch-status p { margin: 0; }
.launch-status b { color: #dbe5ee; font-weight: 750; }
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 13px var(--gold);
  animation: pulseDot 1.7s ease-in-out infinite;
}

.audio-control,
.replay-button {
  position: fixed;
  z-index: 8;
  bottom: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(3, 9, 20, .66);
  backdrop-filter: blur(14px);
  color: #9dafc0;
  cursor: pointer;
}
.audio-control {
  right: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.audio-bars { display: flex; align-items: center; gap: 2px; height: 14px; }
.audio-bars i { width: 2px; background: var(--gold); animation: audioBars .65s ease-in-out infinite alternate; }
.audio-bars i:nth-child(1) { height: 5px; }
.audio-bars i:nth-child(2) { height: 12px; animation-delay: -.2s; }
.audio-bars i:nth-child(3) { height: 8px; animation-delay: -.4s; }
.audio-bars i:nth-child(4) { height: 13px; animation-delay: -.1s; }

.replay-button {
  left: 25px;
  display: none;
  padding: 11px 15px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
body.ended .replay-button { display: block; }

/* Timed reveal after user starts audio */
body.started .brand-reveal { animation: revealLogo 1.8s .25s cubic-bezier(.2,.8,.2,1) forwards; }
body.started .launch-copy { animation: revealCopy 1.7s 1.7s cubic-bezier(.2,.8,.2,1) forwards; }
body.started .product-pulse { animation: revealProduct 1.25s 3.8s cubic-bezier(.16,.85,.2,1) forwards; }
body.started .product-connect { animation: revealProduct 1.25s 4.65s cubic-bezier(.16,.85,.2,1) forwards; }
body.started .product-labs { animation: revealProduct 1.25s 5.5s cubic-bezier(.16,.85,.2,1) forwards; }
body.started .product-academy { animation: revealProduct 1.25s 6.35s cubic-bezier(.16,.85,.2,1) forwards; }
body.started .launch-status { animation: fadeIn 1.4s 7.8s ease forwards; }

body.music-active .product {
  animation-name: revealProduct, productBreathe;
  animation-duration: 1.25s, 5s;
  animation-timing-function: cubic-bezier(.16,.85,.2,1), ease-in-out;
  animation-fill-mode: forwards, none;
  animation-iteration-count: 1, infinite;
}
body.music-active .product-pulse { animation-delay: 3.8s, 9s; }
body.music-active .product-connect { animation-delay: 4.65s, 9.6s; }
body.music-active .product-labs { animation-delay: 5.5s, 10.2s; }
body.music-active .product-academy { animation-delay: 6.35s, 10.8s; }

@keyframes gateFloat { 50% { transform: translateY(-7px); } }
@keyframes sheen { 0%, 35% { left: -40%; } 72%, 100% { left: 130%; } }
@keyframes equalize { to { transform: scaleY(.45); opacity: .6; } }
@keyframes revealLogo { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes revealCopy { to { opacity: 1; transform: translateY(0); } }
@keyframes revealProduct { to { opacity: 1; transform: translateY(0) scale(1); filter: saturate(1); } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulseDot { 50% { opacity: .45; transform: scale(.65); } }
@keyframes audioBars { to { transform: scaleY(.45); opacity: .5; } }
@keyframes productBreathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}


/* V6 — stronger logo motion without dimming the actual images */
body.music-active .product-image-wrap {
  animation: logoFloat 3.4s ease-in-out infinite;
  transform-origin: center 62%;
  will-change: transform;
}

body.music-active .product-pulse .product-image-wrap { animation-delay: 0s; }
body.music-active .product-connect .product-image-wrap { animation-delay: -.75s; }
body.music-active .product-labs .product-image-wrap { animation-delay: -1.5s; }
body.music-active .product-academy .product-image-wrap { animation-delay: -2.25s; }

body.music-active .product-image-wrap::before {
  animation: glowPulse 2.5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg) scale(1); }
  25% { transform: translate3d(0, -9px, 0) rotate(.8deg) scale(1.015); }
  50% { transform: translate3d(0, -17px, 0) rotate(-.7deg) scale(1.035); }
  75% { transform: translate3d(0, -7px, 0) rotate(1deg) scale(1.018); }
}

@keyframes glowPulse {
  0%, 100% { opacity: .10; transform: scale(.96); }
  50% { opacity: .24; transform: scale(1.08); }
}

@media (max-width: 900px) {
  .stage {
    overflow-y: auto;
    align-content: start;
    grid-template-rows: auto auto auto auto;
    gap: 26px;
    padding-bottom: 95px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(650px, 100%);
  }
  .product-image-wrap { max-width: 230px; }
  .launch-copy h2 { letter-spacing: .035em; }
}

@media (max-width: 520px) {
  .gate { padding: 24px; }
  .gate::before { inset: 14px; border-radius: 22px; }
  .gate h1 { font-size: clamp(39px, 13vw, 60px); }
  .start-button { min-width: min(280px, 88vw); }
  .stage { padding: 22px 14px 95px; gap: 19px; }
  .master-logo { width: min(250px, 65vw); }
  .micro-label { font-size: 8px; letter-spacing: .36em; }
  .launch-copy h2 { font-size: clamp(46px, 14vw, 68px); }
  .manifesto { max-width: 340px; margin: 13px auto 0; line-height: 1.55; }
  .products { gap: 9px; }
  .product-image-wrap { max-width: 175px; }
  .product-copy strong { font-size: 14px; letter-spacing: .16em; }
  .product-copy small { font-size: 9px; }
  .launch-status {
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 20px;
    text-align: center;
    line-height: 1.5;
  }
  .audio-control { right: 12px; bottom: 12px; }
  .replay-button { left: 12px; bottom: 12px; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .stage { gap: 7px; padding-top: 15px; padding-bottom: 13px; }
  .master-logo { width: 195px; }
  .micro-label { display: none; }
  .launch-copy h2 { font-size: 60px; }
  .manifesto { margin-top: 7px; }
  .product-image-wrap { max-width: 180px; }
  .product-copy small { display: none; }
}

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