:root {
  color-scheme: light;
  --bg-top: #5b46ff;
  --bg-mid: #8f7eff;
  --bg-bottom: #d8c9f3;
  --bg-bottom-soft: #f0e9ff;
  --text: #ffffff;
  --text-dark: #0d0a1b;
  --muted: rgba(255, 255, 255, 0.82);
  --glass: rgba(255, 255, 255, 0.16);
  --glass-strong: rgba(18, 10, 44, 0.52);
  --card-shadow: 0 42px 110px rgba(52, 18, 112, 0.32);
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(197, 234, 255, 0.3), transparent 22%),
    radial-gradient(circle at 78% 20%, rgba(195, 170, 255, 0.24), transparent 22%),
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-bottom) 78%, var(--bg-bottom-soft) 100%);
  color: var(--text);
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

body.terms-page {
  overflow: auto;
  height: auto;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 18% 12%, rgba(190, 231, 255, 0.18), transparent 24%),
    radial-gradient(circle at 84% 10%, rgba(171, 135, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #5f4cff 0%, #8b7dff 32%, #c9bdf0 68%, #efe8fb 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: scroll;
}

body.terms-page .background-haze,
body.terms-page .background-rings {
  display: none;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.background-haze,
.background-rings {
  position: fixed;
  pointer-events: none;
}

.background-haze {
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0.62;
}

.background-haze-a {
  top: -14vh;
  left: -8vw;
  width: 34vw;
  height: 34vw;
  background: radial-gradient(circle, rgba(184, 238, 255, 0.7), transparent 68%);
}

.background-haze-b {
  right: -8vw;
  bottom: -10vh;
  width: 30vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(150, 78, 255, 0.42), transparent 68%);
}

.background-rings {
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 0 20%, rgba(255, 255, 255, 0.08) 20% 20.6%, transparent 20.6% 26%, rgba(255, 255, 255, 0.06) 26% 26.5%, transparent 26.5%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 24%);
  mask-image: radial-gradient(circle at center, black 0%, black 58%, transparent 83%);
  -webkit-mask-image: radial-gradient(circle at center, black 0%, black 58%, transparent 83%);
  opacity: 0.34;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding:
    max(14px, env(safe-area-inset-top))
    clamp(14px, 2vw, 26px)
    max(14px, env(safe-area-inset-bottom));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: clamp(42px, 4vw, 50px);
  aspect-ratio: 1;
  border-radius: 16px;
  box-shadow: 0 18px 30px rgba(31, 13, 74, 0.18);
}

.brand-mark img {
  width: 100%;
  border-radius: 16px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-tag {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.topbar-link {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(18px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 32px rgba(62, 23, 137, 0.16);
}

.hero {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(14px, 1.8vh, 24px);
  min-height: 0;
  padding-top: clamp(12px, 2vh, 22px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 760px;
  text-align: center;
  animation: rise-in 0.8s ease both;
}

.eyebrow {
  margin: 0 0 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 10, 53, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(2.7rem, 5.8vw, 4.9rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  text-shadow: 0 8px 30px rgba(58, 31, 126, 0.24);
  text-wrap: balance;
}

.lede {
  max-width: 34rem;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 1.2vw, 1rem);
  line-height: 1.38;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.legal-links {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
}

.legal-links span {
  margin: 0 0.5rem;
  opacity: 0.72;
}

.legal-links a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.download-pill,
.value-strip span {
  border-radius: 999px;
}

.download-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  min-width: 250px;
  padding: 17px 28px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  box-shadow:
    0 24px 50px rgba(67, 24, 153, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.download-pill:hover,
.download-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 28px 60px rgba(67, 24, 153, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.download-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.64;
  text-transform: uppercase;
}

.download-title {
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.value-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.value-strip span {
  padding: 10px 14px;
  background: rgba(13, 6, 35, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
}

.poster-stage {
  position: relative;
  width: min(100%, 1120px);
  flex: 1;
  min-height: clamp(460px, 76vh, 1040px);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  animation: rise-in 0.95s ease 0.1s both;
}

.stage-glow,
.stage-floor {
  position: absolute;
  pointer-events: none;
}

.stage-glow {
  bottom: 4%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.9;
}

.stage-glow-left {
  left: 4%;
  background: radial-gradient(circle, rgba(179, 240, 255, 0.5), transparent 68%);
}

.stage-glow-right {
  right: 4%;
  background: radial-gradient(circle, rgba(169, 112, 255, 0.42), transparent 68%);
}

.stage-floor {
  left: 50%;
  bottom: 5%;
  width: min(76%, 760px);
  height: 20%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 15, 116, 0.28), transparent 72%);
  filter: blur(16px);
}

.showcase-stage {
  position: relative;
  z-index: 3;
  height: clamp(520px, 88vh, 1180px);
  aspect-ratio: 1290 / 2796;
  width: auto;
  max-width: min(100%, 520px);
  margin-inline: auto;
}

.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  filter: saturate(0.97);
  transition:
    opacity 560ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 560ms ease;
}

.showcase-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

.showcase-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 40px 90px rgba(42, 12, 97, 0.2));
}

.terms-shell {
  gap: 24px;
}

.terms-content {
  display: flex;
  justify-content: center;
  padding-bottom: 36px;
}

.terms-card {
  width: min(100%, 860px);
  padding: clamp(22px, 3vw, 40px);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    rgba(17, 9, 43, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(52, 18, 112, 0.18);
}

.terms-card h1 {
  margin: 0;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.terms-intro {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.terms-section {
  margin-top: 24px;
}

.terms-section h2 {
  margin: 0 0 10px;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.terms-section p,
.terms-section li {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.6;
}

.terms-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.terms-email {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.terms-links {
  margin-top: 26px;
}

.support-card {
  width: min(100%, 980px);
}

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 24px;
  align-items: start;
}

.support-copy {
  display: flex;
  flex-direction: column;
}

.support-direct,
.support-note,
.support-form-card {
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(13, 7, 34, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.support-direct {
  margin-top: 22px;
  padding: 18px 20px;
}

.support-label {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.support-email-link {
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.support-notes {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.support-note {
  padding: 18px 20px;
}

.support-note h2 {
  margin: 0 0 8px;
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.support-note p,
.support-form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
  line-height: 1.6;
}

.support-form-card {
  padding: 18px;
  box-shadow: 0 26px 60px rgba(52, 18, 112, 0.14);
}

.support-form {
  display: grid;
  gap: 14px;
}

.support-form label {
  display: grid;
  gap: 8px;
}

.support-form span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  font-weight: 500;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(9, 4, 24, 0.36);
  color: #fff;
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.support-form input::placeholder,
.support-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.46);
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(9, 4, 24, 0.48);
  box-shadow: 0 0 0 4px rgba(181, 206, 255, 0.08);
}

.support-form textarea {
  resize: vertical;
  min-height: 150px;
}

.support-submit {
  margin-top: 4px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-dark);
  font-family: "Sora", "Avenir Next", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  cursor: pointer;
  box-shadow:
    0 22px 44px rgba(67, 24, 153, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.support-submit:hover,
.support-submit:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 28px 52px rgba(67, 24, 153, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.support-form-note {
  margin-top: 14px;
}

.support-form-note a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@media (max-width: 1080px) {
  .hero-copy h1 {
    font-size: clamp(2.5rem, 6.6vw, 4.5rem);
  }

  .poster-stage {
    width: min(100%, 880px);
    min-height: clamp(420px, 70vh, 900px);
  }

  .showcase-stage {
    height: clamp(470px, 78vh, 980px);
    max-width: min(100%, 450px);
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding:
      max(12px, env(safe-area-inset-top))
      12px
      max(12px, env(safe-area-inset-bottom));
  }

  .brand-tag,
  .topbar-link {
    display: none;
  }

  .hero {
    justify-content: flex-start;
    gap: 8px;
    padding-top: 6px;
  }

  .eyebrow {
    margin-bottom: 10px;
    padding: 8px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .hero-copy h1 {
    font-size: clamp(1.8rem, 8.4vw, 2.7rem);
  }

  .lede {
    margin-top: 7px;
    max-width: 17rem;
    font-size: 0.76rem;
    line-height: 1.24;
  }

  .hero-actions {
    width: 100%;
    margin-top: 12px;
  }

  .download-pill {
    width: 100%;
    min-width: 0;
    max-width: 280px;
    padding: 12px 18px;
  }

  .value-strip {
    display: none;
  }

  .poster-stage {
    width: min(100%, 390px);
    min-height: clamp(430px, 62vh, 700px);
    margin-top: 6px;
  }

  .showcase-stage {
    height: clamp(430px, 62vh, 700px);
    max-width: min(100%, 330px);
  }

  .legal-links {
    margin-top: 10px;
    font-size: 0.82rem;
  }

  .terms-card {
    padding: 20px 16px;
    border-radius: 24px;
  }

  .terms-section {
    margin-top: 20px;
  }

  .terms-section p,
  .terms-section li {
    font-size: 0.92rem;
    line-height: 1.52;
  }

  .support-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .support-form-card,
  .support-direct,
  .support-note {
    border-radius: 22px;
  }

  .support-form-card {
    padding: 16px;
  }

  .support-email-link {
    font-size: 1.12rem;
  }

  .support-note p,
  .support-form-note {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

@media (max-height: 860px) {
  .hero-copy h1 {
    font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  }

  .lede {
    max-width: 32rem;
    margin-top: 10px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .poster-stage {
    min-height: clamp(400px, 70vh, 860px);
  }

  .showcase-stage {
    height: clamp(440px, 78vh, 960px);
    max-width: min(100%, 430px);
  }
}

@media (min-width: 761px) and (max-height: 740px) {
  .brand-tag {
    display: none;
  }

  .hero {
    gap: 6px;
    padding-top: 4px;
  }

  .eyebrow {
    margin-bottom: 8px;
    padding: 7px 11px;
    font-size: 0.66rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 4.9vw, 3.2rem);
  }

  .lede {
    margin-top: 6px;
    max-width: 25rem;
    font-size: 0.72rem;
    line-height: 1.18;
  }

  .value-strip {
    display: none;
  }

  .hero-actions {
    margin-top: 8px;
  }

  .download-pill {
    padding: 13px 20px;
  }

  .download-title {
    font-size: 1.28rem;
  }

  .poster-stage {
    min-height: clamp(300px, 58vh, 620px);
  }

  .showcase-stage {
    height: clamp(320px, 66vh, 680px);
    max-width: min(100%, 300px);
  }
}

@media (max-width: 760px) and (max-height: 740px) {
  .hero {
    gap: 6px;
    padding-top: 4px;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 7.8vw, 2.5rem);
  }

  .lede {
    max-width: 16rem;
    font-size: 0.72rem;
    line-height: 1.18;
  }

  .hero-actions {
    margin-top: 8px;
  }

  .legal-links {
    margin-top: 6px;
    font-size: 0.76rem;
  }

  .poster-stage {
    width: min(100%, 390px);
    min-height: clamp(390px, 60vh, 620px);
  }

  .showcase-stage {
    height: clamp(390px, 60vh, 620px);
    max-width: min(100%, 320px);
  }
}

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