:root {
  --bg: #0b0618;
  --panel: #151126;
  --panel-soft: rgba(255, 255, 255, 0.06);
  --text: #f8fafc;
  --muted: rgba(248, 250, 252, 0.72);
  --brand-green: #b2ff2d;
  --brand-green-dark: #38dd5a;
  --brand-gold: #ffd136;
  --brand-gold-dark: #ff9a00;
  --brand-purple: #7d2eff;
  --brand-purple-dark: #20093f;
  --border: rgba(188, 140, 255, 0.18);
  --shadow: 0 28px 50px rgba(0, 0, 0, 0.4);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --app-height: 100vh;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  overflow-x: clip;
  background:
    radial-gradient(circle at top center, rgba(130, 44, 255, 0.26), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(255, 187, 0, 0.14), transparent 18%),
    linear-gradient(180deg, #06030d 0%, #0b0618 26%, #130922 58%, #0e0917 100%);
}

body.download-mode {
  cursor: pointer;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto auto 0 0;
  width: 18rem;
  height: 18rem;
  background:
    radial-gradient(circle at 45% 40%, rgba(255, 177, 0, 0.55), rgba(255, 177, 0, 0) 55%),
    radial-gradient(circle at 60% 60%, rgba(125, 46, 255, 0.28), rgba(125, 46, 255, 0) 50%);
  filter: blur(10px);
  opacity: 0.55;
  pointer-events: none;
}

body::after {
  inset: auto 0 2rem auto;
  transform: scaleX(-1);
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: var(--app-height);
  display: flex;
  flex-direction: column;
  padding:
    max(0.75rem, var(--safe-top))
    max(0.75rem, var(--safe-right))
    max(0.75rem, var(--safe-bottom))
    max(0.75rem, var(--safe-left));
}

.topbar {
  display: flex;
  justify-content: center;
  padding: 0 0 0;
}

.logo-lockup {
  width: min(100%, 75rem);
  background:
    linear-gradient(180deg, rgba(9, 5, 18, 0.94), rgba(6, 4, 14, 0.96)),
    linear-gradient(90deg, rgba(143, 64, 255, 0.08), rgba(255, 191, 0, 0.06));
  border: 1px solid var(--border);
  border-radius: 0 0 1rem 1rem;
  padding: 1.4rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  column-gap: 0.45rem;
  row-gap: 0.15rem;
}

.logo-main,
.logo-badge {
  display: inline-block;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.logo-main {
  font-size: clamp(2.6rem, 8vw, 5.8rem);
  background: linear-gradient(180deg, #f1ffaf 0%, var(--brand-green) 45%, #18cf59 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(44, 228, 79, 0.18);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.logo-badge {
  font-size: clamp(1.8rem, 5vw, 4.8rem);
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 38%, #d8d8d8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero {
  width: min(100%, 75rem);
  margin: 0 auto;
  padding: 1.2rem 1rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.hero-panel,
.app-banner-panel,
.footer-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(19, 10, 38, 0.95), rgba(10, 7, 24, 0.94)),
    linear-gradient(135deg, rgba(125, 46, 255, 0.16), rgba(255, 177, 0, 0.08));
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  padding: 2rem;
  min-height: 25rem;
}

.hero-panel::before,
.app-banner-panel::before,
.footer-panel::before {
  content: "";
  position: absolute;
  inset: auto auto -4rem -3rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 186, 0, 0.22), rgba(255, 186, 0, 0) 70%);
}

.hero-panel::after,
.app-banner-panel::after,
.footer-panel::after {
  content: "";
  position: absolute;
  inset: 1rem -5rem auto auto;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(125, 46, 255, 0.22), rgba(125, 46, 255, 0) 70%);
}

.promo-copy,
.promo-visual {
  position: relative;
  z-index: 1;
}

.promo-banner {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 0;
  align-items: stretch;
  min-height: 21rem;
  padding: 0;
  background:
    radial-gradient(circle at 16% 40%, rgba(255, 184, 0, 0.14), transparent 24%),
    radial-gradient(circle at 74% 18%, rgba(160, 78, 255, 0.22), transparent 26%),
    linear-gradient(90deg, #1a0a31 0%, #30115c 38%, #441974 60%, #2c124f 78%, #14081f 100%);
}

.promo-banner::before {
  inset: auto auto -3rem -2rem;
  width: 10rem;
  height: 10rem;
  background: radial-gradient(circle, rgba(255, 180, 0, 0.18), rgba(255, 180, 0, 0) 70%);
}

.promo-banner::after {
  inset: 0 auto 0 41%;
  width: 26%;
  height: auto;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 232, 120, 0.12), rgba(255, 255, 255, 0));
}

.promo-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  padding: 2rem 1.4rem 2rem 1.55rem;
}

.promo-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.promo-value {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  color: #ffd34d;
  text-shadow: 0 2px 12px rgba(255, 196, 49, 0.28);
}

.promo-text {
  display: flex;
  flex-direction: column;
  color: #ffffff;
  font-size: clamp(1rem, 1.65vw, 1.8rem);
  font-weight: 700;
  line-height: 1.05;
}

.promo-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100%;
  padding: 0.65rem 0.65rem 0 0;
}

.promo-visual::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 226, 120, 0.5), rgba(255, 226, 120, 0) 70%);
  pointer-events: none;
}

.promo-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 34rem;
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
}

.app-banner-panel {
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 0.35rem;
  background:
    radial-gradient(circle at 15% 24%, rgba(255, 186, 0, 0.15), transparent 20%),
    radial-gradient(circle at 78% 18%, rgba(123, 42, 255, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(17, 7, 32, 0.98), rgba(10, 5, 18, 0.98));
}

.app-banner-copy {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: min(52%, 28rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.1rem 1rem 1.1rem 1.35rem;
  background: linear-gradient(90deg, rgba(25, 9, 58, 0.92) 0%, rgba(34, 14, 78, 0.82) 62%, rgba(34, 14, 78, 0) 100%);
}

.app-banner-kicker {
  color: #f3f3f3;
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.app-banner-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  font-size: clamp(1.45rem, 3vw, 2.9rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
  color: #ffffff;
}

.app-banner-title--accent {
  color: var(--brand-green);
  text-shadow: 0 4px 18px rgba(178, 255, 45, 0.16);
}

.app-banner-subtitle {
  margin: 0.1rem 0 0;
  color: #ffd53b;
  font-size: clamp(0.95rem, 1.6vw, 1.45rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.app-banner-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0.35rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #8c2fff 0%, #651be8 100%);
  color: #ffffff;
  font-size: clamp(1.6rem, 2.3vw, 2.1rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(73, 19, 169, 0.28);
}

.app-banner-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin-top: -2.6rem;
  margin-bottom: -0.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 211, 77, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 32px rgba(0, 0, 0, 0.3);
}

.footer-panel {
  min-height: 18rem;
  padding: 0;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 189, 0, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(16, 7, 31, 0.98), rgba(9, 5, 18, 0.99)),
    linear-gradient(135deg, rgba(125, 46, 255, 0.08), rgba(255, 177, 0, 0.03));
}

.footer-panel::before,
.footer-panel::after {
  background: none;
}

.footer-spacer {
  min-height: 1.6rem;
}

.footer-feature {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(12rem, 0.85fr);
  align-items: center;
  gap: 0.75rem;
  margin: 0 0.5rem 0.35rem;
  padding: 0.75rem 0.9rem 0.55rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 211, 77, 0.16);
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 181, 0, 0.12), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(196, 99, 255, 0.18), transparent 24%),
    linear-gradient(90deg, rgba(42, 19, 88, 0.98), rgba(72, 28, 130, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(0, 0, 0, 0.3);
}

.footer-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
}

.footer-feature-kicker,
.footer-feature-title {
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
}

.footer-feature-kicker {
  color: #ffffff;
  font-size: clamp(1rem, 2vw, 1.45rem);
}

.footer-feature-title {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  color: #ffffff;
  font-size: clamp(1.15rem, 2.35vw, 1.8rem);
}

.footer-feature-highlight {
  color: #ffd327;
  text-shadow: 0 2px 10px rgba(255, 196, 49, 0.26);
}

.footer-feature-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
}

.footer-feature-image {
  display: block;
  width: min(100%, 14rem);
  height: auto;
  object-fit: contain;
}

.footer-branding {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) 5.5rem;
  align-items: end;
  gap: 0.75rem;
  padding: 0 0.45rem 0.35rem;
}

.footer-side-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  align-self: end;
}

.footer-side-art--left {
  justify-self: start;
}

.footer-side-art--right {
  justify-self: end;
}

.footer-license {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  align-self: center;
  padding-bottom: 0.4rem;
}

.footer-license__icon {
  position: relative;
  width: 3.45rem;
  height: 2.35rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, #ff2069 0%, #7c2cff 48%, #00d2ff 100%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.footer-license__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 45%);
}

.footer-license__g {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.footer-license__g--left {
  left: 0.5rem;
}

.footer-license__g--right {
  right: 0.5rem;
}

.footer-license__text {
  display: flex;
  flex-direction: column;
  line-height: 0.92;
  color: #9ea3ad;
  font-size: clamp(0.82rem, 1.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 0.85rem;
  }

  .hero-panel {
    padding: 1.4rem;
  }

  .promo-banner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    padding: 0;
  }

  .promo-copy {
    padding: 1.25rem 1rem 1.25rem 1.1rem;
    gap: 1.1rem;
  }

  .promo-value {
    font-size: clamp(1.35rem, 4vw, 2rem);
  }

  .promo-text {
    font-size: clamp(0.88rem, 2.1vw, 1.2rem);
  }

  .promo-visual {
    padding-right: 0.35rem;
  }

  .app-banner-panel {
    padding: 0.28rem;
  }

  .app-banner-copy {
    width: min(53%, 22rem);
    padding: 0.9rem 0.85rem 0.9rem 1rem;
  }

  .footer-spacer {
    min-height: 1.1rem;
  }

  .footer-feature {
    margin: 0 0.4rem 0.3rem;
    padding: 0.65rem 0.8rem 0.5rem;
  }

  .footer-branding {
    grid-template-columns: 4.6rem minmax(0, 1fr) 4.6rem;
  }
}

@media (max-width: 520px) {
  .logo-lockup {
    padding: 1rem 0.9rem 1.1rem;
    border-radius: 0 0 0.85rem 0.85rem;
  }

  .hero {
    padding: 0.55rem 0.6rem 0.7rem;
  }

  .hero-panel {
    min-height: unset;
  }

  .promo-banner {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: 14.5rem;
  }

  .promo-copy {
    gap: 0.7rem;
    padding: 0.95rem 0.7rem 0.95rem 0.95rem;
  }

  .promo-value {
    font-size: clamp(1rem, 6vw, 1.35rem);
  }

  .promo-text {
    font-size: clamp(0.74rem, 3.6vw, 0.96rem);
    line-height: 1.08;
  }

  .promo-visual {
    align-items: center;
    padding: 0.45rem 0.25rem 0 0;
  }

  .promo-image {
    max-width: 100%;
  }

  .app-banner-panel {
    padding: 0.22rem;
  }

  .app-banner-copy {
    width: 54%;
    gap: 0.18rem;
    padding: 0.6rem 0.55rem 0.6rem 0.7rem;
  }

  .app-banner-kicker {
    font-size: 0.62rem;
  }

  .app-banner-title {
    font-size: clamp(1rem, 5.4vw, 1.35rem);
  }

  .app-banner-subtitle {
    font-size: 0.68rem;
  }

  .app-banner-cta {
    margin-top: 0.18rem;
    padding: 0.56rem 0.92rem;
    font-size: 1.12rem;
  }

  .app-banner-image {
    border-radius: 0.8rem;
    margin-top: -1.9rem;
  }

  .footer-panel {
    min-height: 12.5rem;
  }

  .footer-spacer {
    min-height: 0.7rem;
  }

  .footer-feature {
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.9fr);
    gap: 0.4rem;
    margin: 0 0.22rem 0.22rem;
    padding: 0.58rem 0.58rem 0.42rem;
  }

  .footer-feature-kicker {
    font-size: 0.9rem;
  }

  .footer-feature-title {
    font-size: 1rem;
  }

  .footer-feature-image {
    width: min(100%, 9.2rem);
  }

  .footer-branding {
    grid-template-columns: 3.9rem minmax(0, 1fr) 3.9rem;
    gap: 0.45rem;
    padding: 0 0.25rem 0.2rem;
  }

  .footer-license {
    gap: 0.35rem;
    padding-bottom: 0.2rem;
  }

  .footer-license__icon {
    width: 2.8rem;
    height: 1.9rem;
  }

  .footer-license__g {
    font-size: 1.08rem;
  }

  .footer-license__text {
    font-size: 0.72rem;
  }
}

@media (max-width: 360px) {
  .page-shell {
    padding-inline: max(0.5rem, var(--safe-left)) max(0.5rem, var(--safe-right));
  }

  .logo-main {
    font-size: clamp(2rem, 13vw, 2.7rem);
  }

  .logo-badge {
    font-size: clamp(1.25rem, 8vw, 1.7rem);
  }

  .hero {
    padding-inline: 0.45rem;
  }

  .promo-banner {
    min-height: 12.6rem;
  }

  .promo-copy {
    gap: 0.6rem;
    padding: 0.85rem 0.55rem 0.85rem 0.8rem;
  }

  .promo-value {
    font-size: clamp(0.92rem, 6vw, 1.12rem);
  }

  .promo-text {
    font-size: clamp(0.66rem, 3.4vw, 0.8rem);
  }

  .hero-panel,
  .app-banner-panel,
  .footer-panel {
    border-radius: 1rem;
  }
}
