:root {
  color-scheme: dark;
  --red: #ff2525;
  --red-bright: #ff5252;
  --red-deep: #790000;
  --panel: rgba(8, 0, 0, 0.82);
  --text: #fff7f7;
  --button-height: clamp(4.15rem, 5.2vw, 5.2rem);
  --notch: 0.9rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #020000;
}

body {
  overflow: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.prelaunch {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #020000;
}

.hero-art,
.hero-art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: -3;
}

.hero-art img {
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

.scene-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.12) 67%, transparent 86%),
    radial-gradient(circle at 50% 72%, rgba(255, 0, 0, 0.1), transparent 32%);
}

.cta-bar {
  position: absolute;
  left: 50%;
  bottom: clamp(9.75rem, 21.5svh, 18rem);
  z-index: 2;
  display: flex;
  width: min(68rem, 88vw);
  gap: clamp(0.65rem, 1.35vw, 1.2rem);
  transform: translateX(-50%);
}

.cta-button {
  --button-glow: rgba(255, 25, 25, 0.44);
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  height: var(--button-height);
  padding: 0.55rem clamp(0.8rem, 1.45vw, 1.35rem);
  gap: clamp(0.55rem, 1vw, 0.85rem);
  color: var(--text);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(34, 5, 5, 0.92), rgba(5, 0, 0, 0.92)),
    var(--panel);
  border: 1px solid rgba(255, 74, 74, 0.92);
  border-radius: 0.2rem;
  clip-path: polygon(
    var(--notch) 0,
    calc(100% - var(--notch)) 0,
    100% var(--notch),
    100% calc(100% - var(--notch)),
    calc(100% - var(--notch)) 100%,
    var(--notch) 100%,
    0 calc(100% - var(--notch)),
    0 var(--notch)
  );
  box-shadow:
    0 0 0 1px rgba(255, 0, 0, 0.2) inset,
    0 0 1.1rem var(--button-glow),
    0 0.75rem 2.2rem rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.cta-button::before {
  position: absolute;
  inset: 0.28rem;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(255, 116, 116, 0.34);
  clip-path: inherit;
}

.cta-button::after {
  position: absolute;
  top: 0;
  left: 16%;
  width: 68%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, #fff0f0, transparent);
  opacity: 0.5;
}

.cta-button--primary {
  --button-glow: rgba(255, 25, 25, 0.66);
  background:
    linear-gradient(180deg, rgba(92, 8, 8, 0.94), rgba(22, 0, 0, 0.96)),
    var(--panel);
  border-color: rgba(255, 104, 104, 1);
}

.cta-button__icon {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  width: clamp(2.55rem, 3.8vw, 3.45rem);
  height: clamp(2.55rem, 3.8vw, 3.45rem);
  place-items: center;
  border: 1px solid rgba(255, 119, 119, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(136, 17, 17, 0.72), rgba(14, 0, 0, 0.84));
  box-shadow:
    0 0 0.75rem rgba(255, 25, 25, 0.48),
    0 0 0 0.25rem rgba(255, 10, 10, 0.06);
}

.cta-button__icon svg {
  width: 54%;
  height: 54%;
  fill: currentColor;
}

.cta-button__label {
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  font-weight: 760;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 0.8rem rgba(255, 255, 255, 0.16);
}

.cta-button:hover {
  transform: translateY(-0.2rem) scale(1.012);
  border-color: #ffd0d0;
  box-shadow:
    0 0 0 1px rgba(255, 100, 100, 0.32) inset,
    0 0 1.6rem rgba(255, 38, 38, 0.7),
    0 1rem 2.5rem rgba(0, 0, 0, 0.58);
}

.cta-button:active {
  transform: translateY(0) scale(0.99);
}

.cta-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 0.35rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 721px) and (max-width: 1100px) and (orientation: portrait) {
  .cta-bar {
    bottom: max(18svh, calc(env(safe-area-inset-bottom) + 8.5rem));
    width: min(66rem, 90vw);
  }

  .cta-button {
    height: clamp(4rem, 7vw, 4.7rem);
  }

  .cta-button__label {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
  }
}

@media (max-width: 720px) {
  :root {
    --notch: 0.7rem;
  }

  .scene-shade {
    background:
      linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.22) 65%, transparent 88%),
      radial-gradient(circle at 50% 76%, rgba(255, 0, 0, 0.13), transparent 42%);
  }

  .cta-bar {
    bottom: max(18.8svh, calc(env(safe-area-inset-bottom) + 7.5rem));
    flex-direction: column;
    width: min(22rem, 84vw);
    gap: 0.5rem;
  }

  .cta-button {
    flex: none;
    justify-content: flex-start;
    width: 100%;
    height: 3.55rem;
    padding-inline: 0.75rem 1.15rem;
    gap: 0.8rem;
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
  }

  .cta-button__icon {
    width: 2.55rem;
    height: 2.55rem;
  }

  .cta-button__label {
    font-size: 1.02rem;
  }
}


@media (max-width: 640px) {
  .cta-bar {
    width: min(22rem, calc(100vw - 1.5rem - env(safe-area-inset-left) - env(safe-area-inset-right)));
  }
}

@media (max-width: 720px) and (max-height: 720px) {
  .cta-bar {
    bottom: max(18.5svh, calc(env(safe-area-inset-bottom) + 6.8rem));
    gap: 0.38rem;
  }

  .cta-button {
    height: 3.1rem;
  }

  .cta-button__icon {
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .cta-bar {
    bottom: max(1rem, calc(env(safe-area-inset-bottom) + 0.5rem));
    width: min(66rem, 92vw);
  }

  .cta-button {
    height: 3.3rem;
  }

  .cta-button__icon {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-button {
    transition: none;
  }

  .cta-button:hover,
  .cta-button:active {
    transform: none;
  }
}
