@import url("./tokens.css");

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--st-bg-night-2);
  color: var(--st-white);
  font-family: var(--st-font-ui);
  line-height: 1.7;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--st-grad-night);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--st-gold-1);
  outline-offset: 4px;
}

.lp-page {
  min-height: 100dvh;
  overflow-x: hidden;
}

.lp-nav {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: max(12px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 12px;
  background: linear-gradient(180deg, var(--st-black-70), var(--st-transparent));
}

.lp-nav img {
  display: block;
  width: clamp(136px, 28vw, 224px);
  height: auto;
}

.lp-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 18px);
  font-size: 13px;
  font-weight: 900;
}

.lp-nav-links a:not(.lp-cta-small) {
  color: var(--st-muted);
  text-decoration: none;
}

.lp-hero {
  position: relative;
  min-height: 92dvh;
  display: grid;
  align-items: center;
  padding: calc(var(--st-safe-top) + 88px) clamp(18px, 5vw, 72px) 84px;
  background-image:
    linear-gradient(90deg, var(--st-bg-night-2) 0%, var(--st-panel) 28%, var(--st-black-40) 58%, var(--st-transparent) 100%),
    linear-gradient(0deg, var(--st-bg-night-2) 0%, var(--st-transparent) 28%),
    var(--lp-hero);
  background-size: cover;
  background-position: center;
}

.lp-hero-copy {
  width: min(620px, 100%);
}

.lp-kicker {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 4px 14px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-r-pill);
  background: var(--st-black-40);
  color: var(--st-gold-1);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.lp-hero-logo {
  display: block;
  width: min(480px, 92vw);
  height: auto;
  margin: 20px 0 8px;
  filter: drop-shadow(0 18px 24px var(--st-black-55));
}

.lp-hero h1,
.legal-hero h1 {
  margin: 0;
  font-family: var(--st-font-deco);
  font-size: clamp(34px, 8vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 3px 0 var(--st-pink-4), 0 0 18px var(--st-black-55);
}

.lp-hero p {
  width: min(560px, 100%);
  margin: 18px 0 0;
  color: var(--st-muted);
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 800;
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.lp-button,
.lp-cta-small {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--st-gold-1);
  border-radius: var(--st-r-pill);
  background: var(--st-grad-pink);
  color: var(--st-white);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 5px 0 var(--st-pink-4), var(--st-glow-pink);
}

.lp-button.gold {
  background: var(--st-grad-gold);
  color: var(--st-ink);
  box-shadow: 0 5px 0 var(--st-gold-4), var(--st-glow-gold);
}

.lp-button.secondary {
  background: var(--st-black-55);
  color: var(--st-white);
  box-shadow: 0 4px 0 var(--st-black-70);
}

.lp-cta-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 13px;
  box-shadow: 0 3px 0 var(--st-pink-4);
}

.lp-scroll-hint {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  bottom: 20px;
  color: var(--st-dim);
  font-size: 12px;
  font-weight: 900;
}

.lp-section {
  padding: clamp(56px, 9vw, 96px) clamp(18px, 5vw, 72px);
}

.lp-section.alt {
  background: var(--st-panel);
}

.lp-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.lp-section-head {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin-bottom: 30px;
}

.lp-section-head h2,
.legal-card h2 {
  margin: 0;
  font-family: var(--st-font-deco);
  font-size: clamp(25px, 4.8vw, 44px);
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--st-gold-1);
  text-shadow: 0 2px 0 var(--st-gold-4);
}

.lp-section-head p {
  margin: 0;
  color: var(--st-muted);
  font-weight: 800;
}

.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.lp-feature,
.legal-card {
  border: 2px solid var(--st-line);
  border-radius: var(--st-r-panel);
  background: var(--st-grad-panel);
  box-shadow: var(--st-shadow-frame);
}

.lp-feature {
  padding: 22px;
}

.lp-feature strong {
  display: block;
  color: var(--st-gold-1);
  font-size: 18px;
}

.lp-feature p,
.legal-card p,
.legal-card li {
  color: var(--st-muted);
  font-weight: 800;
}

.lp-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 28px);
  align-items: start;
}

.lp-shot {
  margin: 0;
  display: grid;
  gap: 10px;
}

.lp-phone-frame {
  border: 3px solid var(--st-gold-2);
  border-radius: var(--st-r-card);
  overflow: hidden;
  background: var(--st-black-70);
  box-shadow: var(--st-shadow-frame);
}

.lp-phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.lp-shot figcaption {
  color: var(--st-muted);
  font-size: 13px;
  font-weight: 900;
}

.lp-character-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.lp-character {
  min-height: 190px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--st-line);
  border-radius: var(--st-r-panel);
  background: var(--st-panel);
}

.lp-character img {
  position: absolute;
  inset: 10px 0 0;
  width: 100%;
  height: 172px;
  object-fit: contain;
}

.lp-character span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--st-r-pill);
  background: var(--st-black-70);
  color: var(--st-gold-1);
  font-size: 12px;
  font-weight: 900;
}

.lp-final {
  text-align: center;
}

.lp-final .lp-actions {
  justify-content: center;
}

.lp-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  padding: 28px 18px calc(28px + env(safe-area-inset-bottom));
  background: var(--st-bg-night-2);
  color: var(--st-dim);
  font-size: 12px;
  font-weight: 900;
}

.lp-footer a {
  color: var(--st-muted);
  text-decoration: none;
}

.legal-page {
  min-height: 100dvh;
  background: var(--st-grad-night);
}

.legal-hero {
  padding: calc(var(--st-safe-top) + 88px) clamp(18px, 5vw, 72px) 38px;
}

.legal-main {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.legal-card {
  padding: clamp(20px, 4vw, 34px);
  margin-bottom: 18px;
}

.legal-card ul {
  margin: 12px 0 0;
  padding-left: 1.3em;
}

.legal-card .legal-note {
  color: var(--st-gold-1);
}

@media (max-width: 760px) {
  .lp-nav {
    position: absolute;
  }

  .lp-nav-links a:not(.lp-cta-small) {
    display: none;
  }

  .lp-hero {
    min-height: 88dvh;
    background-image:
      linear-gradient(180deg, var(--st-black-70), var(--st-black-55) 54%, var(--st-bg-night-2)),
      var(--lp-hero);
    background-position: center;
  }

  .lp-feature-grid,
  .lp-shot-grid {
    grid-template-columns: 1fr;
  }

  .lp-shot {
    max-width: 390px;
    margin-inline: auto;
  }

  .lp-character-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
