@font-face {
  font-family: "CooperBT";
  src: url("assets/cooper-light.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "CooperBT";
  src: url("assets/cooper-bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  --background: #040213;
  --surface: rgba(15, 10, 42, 0.84);
  --surface-strong: #160d35;
  --primary: #6a5ae0;
  --primary-hover: #7869e9;
  --accent: #ffd700;
  --secondary: #b374c0;
  --text: #ffffff;
  --muted: #a9a4c8;
  --subtle: #77718f;
  --border: rgba(255, 255, 255, 0.1);
  --focus: #b9afff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100%;
  background: var(--background);
}

body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(4, 2, 19, 0.72), rgba(4, 2, 19, 0.9)),
    url("assets/cosmic-background.jpg") center / cover fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: radial-gradient(circle at 50% 45%, transparent 0%, rgba(4, 2, 19, 0.72) 78%);
  pointer-events: none;
}

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

[hidden] {
  display: none !important;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.18;
  pointer-events: none;
}

.page-glow--one {
  top: -20rem;
  right: -10rem;
  background: var(--primary);
}

.page-glow--two {
  bottom: -24rem;
  left: -14rem;
  background: #14b8a6;
}

.page-shell {
  width: min(1040px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(20px, env(safe-area-inset-bottom));
  display: grid;
  align-content: center;
  gap: 22px;
}

.landing-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 600px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.landing-card img {
  max-width: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.visual-panel {
  position: relative;
  min-width: 0;
  padding: 32px 34px 29px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 42%, rgba(106, 90, 224, 0.22), transparent 52%),
    linear-gradient(145deg, rgba(22, 13, 53, 0.86), rgba(4, 2, 19, 0.62));
  border-right: 1px solid var(--border);
}

.visual-panel::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(transparent, rgba(4, 2, 19, 0.52));
  pointer-events: none;
}

.brand-lockup {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font-family: "CooperBT", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.25px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.character-wrap {
  position: relative;
  width: min(100%, 370px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.character-aura {
  position: absolute;
  width: 64%;
  height: 64%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.16), rgba(106, 90, 224, 0.12) 48%, transparent 72%);
  filter: blur(16px);
}

.character {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.35));
  animation: reveal 800ms ease-out both;
}

.visual-quote {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 2.1px;
  text-align: center;
  text-transform: uppercase;
}

.content-panel {
  min-width: 0;
  padding: 54px clamp(40px, 5vw, 62px) 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.7);
}

h1 {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 760;
  line-height: 1.08;
  letter-spacing: -1.7px;
}

h1 em {
  color: #c0b8ff;
  font-style: normal;
}

.intro {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.benefits {
  margin: 21px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.benefits li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 650;
}

.action-area {
  margin-top: 24px;
}

.campaign-state {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.invalid-state:not([hidden]) + .download-actions {
  margin-top: 12px;
}

.download-actions {
  margin-top: 0;
}

.store-badge-link {
  width: 196px;
  height: 58px;
  min-width: 196px;
  min-height: 58px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid #a6a6a6;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  appearance: none;
  background: #000000;
  cursor: pointer;
  text-decoration: none;
  -webkit-touch-callout: none;
  filter: drop-shadow(0 13px 23px rgba(0, 0, 0, 0.25));
  transition: transform 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.store-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
}

.store-mark img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.store-label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: #ffffff;
  line-height: 1;
  white-space: nowrap;
}

.store-label small {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-transform: none;
}

.store-label strong {
  margin-top: 3px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.35px;
}

.store-badge-link:hover {
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.34));
  transform: translateY(-1px);
}

.store-badge-link:active {
  transform: translateY(1px);
}

.store-badge-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.store-badge-link:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.invalid-state {
  padding: 15px 17px;
  display: block;
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 16px;
  background: rgba(255, 215, 0, 0.055);
}

.invalid-title,
.invalid-copy {
  margin: 0;
}

.invalid-title {
  color: #fff0a3;
  font-size: 14px;
  font-weight: 750;
}

.invalid-copy {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.platform-note {
  max-width: 480px;
  margin: 8px 0 0;
  color: rgba(169, 164, 200, 0.82);
  font-size: 12.5px;
  line-height: 1.55;
}

.platform-note[hidden] {
  display: none;
}

.action-status {
  min-height: 0;
  margin: 7px 0 0;
  color: #c9c3ee;
  font-size: 12px;
  line-height: 1.5;
}

.action-status:empty {
  display: none;
}

.action-status[data-kind="error"] {
  color: #ffb4b4;
}

.fallback-link {
  width: fit-content;
  margin: 10px 2px 0;
  display: inline-block;
  color: #c9c3ee;
  font-size: 12px;
  font-weight: 650;
  text-underline-offset: 3px;
}

.fallback-link:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.disclaimer {
  max-width: 500px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(169, 164, 200, 0.58);
  font-size: 10.5px;
  line-height: 1.5;
}

.site-footer {
  max-width: 850px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 650;
  text-decoration: none;
}

.legal-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-links a:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.legal-links span {
  color: rgba(255, 215, 0, 0.42);
}

.trademark-notice {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9.5px;
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 5;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #ffffff;
  background: #160d35;
  font-size: 13px;
  text-align: center;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 960px) {
  body {
    background-attachment: scroll;
  }

  .page-shell {
    width: min(calc(100% - 32px), 720px);
    padding-top: max(20px, env(safe-area-inset-top));
  }

  .landing-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 27px;
  }

  .visual-panel {
    min-height: 285px;
    padding: 28px 32px 22px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .character-wrap {
    width: 245px;
    margin: -23px 0 -29px;
  }

  .visual-quote {
    display: none;
  }

  .content-panel {
    padding: 41px clamp(34px, 8vw, 58px) 36px;
  }

  h1 {
    font-size: clamp(36px, 6vw, 44px);
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(calc(100% - 16px), 520px);
    max-width: 100%;
    padding-top: max(8px, env(safe-area-inset-top));
    gap: 18px;
  }

  .landing-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 24px;
  }

  .visual-panel {
    width: 100%;
    max-width: 100%;
    min-height: 216px;
    padding: 18px 20px 14px;
  }

  .brand-lockup {
    gap: 11px;
  }

  .brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .brand-copy strong {
    font-size: 21px;
  }

  .brand-copy small {
    font-size: 8.5px;
  }

  .character-wrap {
    width: 172px;
    margin: -17px 0 -25px;
  }

  .content-panel {
    width: 100%;
    max-width: 100%;
    padding: 31px 22px 27px;
    overflow: hidden;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 10px;
  }

  h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(32px, 9.5vw, 38px);
    letter-spacing: -1px;
    overflow-wrap: normal;
  }

  h1 em {
    display: block;
  }

  .intro {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.65;
  }

  .benefits {
    margin-top: 20px;
  }

  .action-area {
    margin-top: 23px;
  }

  .campaign-state {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .store-badge-link {
    width: min(196px, 100%);
    max-width: 100%;
    min-width: 0;
  }

  .platform-note,
  .action-status {
    text-align: center;
  }

  .disclaimer {
    margin-top: 15px;
    padding-top: 12px;
    text-align: center;
  }

  .site-footer {
    padding: 0 12px;
  }
}

@media (max-width: 390px) {
  .content-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  h1 {
    font-size: clamp(31px, 9.2vw, 35px);
  }

  .benefits li:last-child {
    display: none;
  }
}

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