/* ===== Tokens ===== */
:root {
  --bg-deep: #020204;
  --bg-mid: #08050D;
  --bg-panel: #12081C;
  --purple-deep: #5B00FF;
  --purple: #8D19FF;
  --purple-bright: #C132FF;
  --purple-hot: #A900FF;
  --blue-neon: #168BFF;
  --text-light: #F1F1F1;
  --text-muted: #B8A8CC;
  --gradient-purple: linear-gradient(165deg, #6410C9 0%, #A519E8 52%, #7C0DCA 100%);
  --gradient-blue: linear-gradient(135deg, #087BFF 0%, #7040FF 100%);
  --max: 520px;
  --side-gutter: clamp(20px, 5.5vw, 28px);
  --pay-card-w: clamp(88px, 25vw, 112px);
  --btn-max: 390px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100svh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text-light);
  background: var(--bg-deep);
  line-height: 1.2;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== Page ===== */
.page {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
}

.page__bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-deep);
  background-image: url("assets/hero-purple-city.webp");
  background-repeat: no-repeat;
  background-position: center 38%;
  background-size: cover;
}

.page__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 120% 90% at 50% 55%,
      rgba(91, 0, 255, 0.12) 0%,
      transparent 52%
    ),
    radial-gradient(
      ellipse 70% 45% at 18% 58%,
      rgba(22, 139, 255, 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 130% 100% at 50% 50%,
      transparent 22%,
      rgba(2, 2, 4, 0.55) 68%,
      rgba(2, 2, 4, 0.92) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 2, 4, 0.94) 0%,
      rgba(2, 2, 4, 0.42) 18%,
      rgba(2, 2, 4, 0.08) 36%,
      rgba(2, 2, 4, 0.28) 58%,
      rgba(8, 5, 13, 0.72) 82%,
      rgba(2, 2, 4, 0.96) 100%
    );
}

/* ===== Shell ===== */
.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 4.5vw, 26px);
  padding:
    max(10px, var(--safe-top))
    max(var(--side-gutter), var(--safe-right))
    max(24px, calc(18px + var(--safe-bottom)))
    max(var(--side-gutter), var(--safe-left));
}

/* ===== Side decorative tag ===== */
.side-tag {
  position: absolute;
  left: max(2px, var(--safe-left));
  top: clamp(130px, 30vw, 190px);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Oswald", sans-serif;
  font-size: clamp(9px, 2.4vw, 11px);
  font-weight: 600;
  letter-spacing: 0.24em;
  color: rgba(141, 25, 255, 0.38);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ===== Top header ===== */
.top {
  position: relative;
  z-index: 3;
  padding-top: 2px;
  flex-shrink: 0;
}

.top__headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(8px, 2.2vw, 12px);
  align-items: start;
}

.top__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: var(--pay-card-w);
  flex-shrink: 0;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.88;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(
    42px,
    calc((100vw - (var(--side-gutter) * 2) - var(--pay-card-w) - 20px) / 3.5),
    100px
  );
}

.title__line {
  display: block;
  font-family: "Anton", "Oswald", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  max-width: 100%;
}

.title__line--light {
  font-size: 1em;
  color: rgba(241, 241, 241, 0.92);
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.8),
    0 6px 24px rgba(0, 0, 0, 0.75);
  filter: contrast(1.05);
}

.title__line--purple {
  font-size: 1.05em;
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter:
    drop-shadow(0 0 18px rgba(165, 25, 232, 0.35))
    drop-shadow(0 4px 16px rgba(0, 0, 0, 0.85));
}

/* ===== Pay card ===== */
.pay-card {
  width: 100%;
  margin-top: 4px;
  padding: 9px 8px 10px;
  border-radius: 18px;
  background: rgba(4, 2, 10, 0.78);
  border: 1px solid rgba(193, 50, 255, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 0 22px rgba(141, 25, 255, 0.28),
    inset 0 0 18px rgba(141, 25, 255, 0.08);
  text-align: center;
}

.pay-card__label {
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pay-card__sum {
  font-family: "Anton", "Oswald", sans-serif;
  font-size: clamp(26px, 7vw, 32px);
  line-height: 1;
  color: var(--purple-bright);
  text-shadow: 0 0 16px rgba(193, 50, 255, 0.45);
  margin-bottom: 2px;
}

.pay-card__period {
  font-family: "Oswald", sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(241, 241, 241, 0.75);
}

/* ===== Tagline ===== */
.tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-right: 0;
  max-width: calc(100% - var(--pay-card-w) - 12px);
}

.tagline__text {
  font-family: "Oswald", sans-serif;
  font-size: clamp(14px, 3.8vw, 19px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(241, 241, 241, 0.82);
  line-height: 1.2;
}

.tagline__line {
  flex: 1;
  max-width: 72px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple-bright), transparent);
  box-shadow: 0 0 10px rgba(193, 50, 255, 0.45);
}

/* ===== Scene spacer (background visible) ===== */
.scene {
  flex-shrink: 1;
  min-height: clamp(120px, 26svh, 280px);
  pointer-events: none;
}

/* ===== Actions / CTA ===== */
.actions {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.actions__inner {
  width: 100%;
  max-width: var(--btn-max);
  margin: 0 auto;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.cta {
  position: relative;
  display: block;
  width: 100%;
  min-height: 78px;
  padding: 10px 16px;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(4, 2, 10, 0.82);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.cta:active {
  transform: scale(0.985);
}

.cta:focus-visible {
  outline: 2px solid var(--purple-bright);
  outline-offset: 3px;
}

.cta--purple {
  border: 1.5px solid rgba(193, 50, 255, 0.85);
  box-shadow:
    0 0 28px rgba(141, 25, 255, 0.32),
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 0 20px rgba(141, 25, 255, 0.06);
}

.cta--purple:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 36px rgba(141, 25, 255, 0.42),
    0 10px 28px rgba(0, 0, 0, 0.5);
}

.cta--blue {
  border: 1.5px solid rgba(22, 139, 255, 0.75);
  box-shadow:
    0 0 28px rgba(8, 123, 255, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 0 20px rgba(112, 64, 255, 0.06);
}

.cta--blue:hover {
  filter: brightness(1.06);
  box-shadow:
    0 0 36px rgba(8, 123, 255, 0.38),
    0 10px 28px rgba(0, 0, 0, 0.5);
}

.cta__icon-wrap {
  position: absolute;
  left: clamp(12px, 3.5vw, 16px);
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.cta__icon-wrap--purple {
  border: 1.5px solid rgba(193, 50, 255, 0.8);
  background: rgba(18, 8, 28, 0.9);
  box-shadow: 0 0 14px rgba(193, 50, 255, 0.25);
}

.cta__icon-wrap--blue {
  border: 1.5px solid rgba(22, 139, 255, 0.85);
  background: rgba(4, 10, 24, 0.9);
  box-shadow: 0 0 14px rgba(22, 139, 255, 0.3);
}

.cta__icon {
  width: 24px;
  height: 24px;
}

.cta__copy {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  max-width: calc(100% - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.cta__main {
  display: block;
  width: 100%;
  text-align: center;
  font-family: "Oswald", sans-serif;
  font-size: clamp(15px, 4vw, 17px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(241, 241, 241, 0.95);
}

.cta__main--blue {
  color: #6ec4ff;
}

.cta__sub {
  width: 100%;
  text-align: center;
  font-family: "Inter", sans-serif;
  font-size: clamp(11px, 2.8vw, 12px);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(193, 50, 255, 0.85);
}

.cta__sub--blue {
  color: rgba(22, 139, 255, 0.9);
}

/* ===== Age badge under pay card ===== */
.age-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: "Oswald", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-bright);
  background: rgba(4, 2, 10, 0.72);
  border: 1.5px solid rgba(193, 50, 255, 0.75);
  box-shadow: 0 0 16px rgba(141, 25, 255, 0.28);
  flex-shrink: 0;
}

/* ===== Motivation ===== */
.motivation {
  position: relative;
  z-index: 3;
  text-align: center;
  flex-shrink: 0;
  padding-inline: clamp(12px, 3vw, 20px);
}

.motivation__line {
  font-family: "Anton", "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.95;
}

.motivation__line--light {
  font-size: clamp(28px, 8.5vw, 46px);
  color: rgba(241, 241, 241, 0.94);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 6px;
}

.motivation__line--purple {
  font-size: clamp(20px, 6.2vw, 32px);
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(165, 25, 232, 0.3));
  margin-bottom: 10px;
  line-height: 1.05;
  padding-inline: 4px;
}

.motivation__accent {
  display: block;
  width: 64px;
  height: 3px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--purple-bright), transparent);
  box-shadow: 0 0 12px rgba(193, 50, 255, 0.5);
}

/* ===== Benefits ===== */
.benefits {
  position: relative;
  z-index: 3;
  padding-bottom: 8px;
  flex-shrink: 0;
  padding-inline: 4px;
}

.benefits__title {
  font-family: "Oswald", sans-serif;
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--purple-bright);
  margin-bottom: 16px;
  text-shadow: 0 0 14px rgba(193, 50, 255, 0.25);
}

.benefits__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 4px;
  text-align: center;
}

.benefit:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 8%;
  height: 84%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(141, 25, 255, 0.35),
    transparent
  );
}

.benefit__icon {
  width: 26px;
  height: 26px;
  color: var(--purple-bright);
  filter: drop-shadow(0 0 8px rgba(193, 50, 255, 0.35));
}

.benefit__age {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: "Oswald", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple-bright);
  border: 1.5px solid rgba(193, 50, 255, 0.7);
  box-shadow: 0 0 10px rgba(141, 25, 255, 0.25);
}

.benefit__text {
  font-family: "Oswald", sans-serif;
  font-size: clamp(8px, 2.2vw, 10px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: rgba(241, 241, 241, 0.82);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}

/* ===== Small screens ===== */
@media (max-width: 374px) {
  :root {
    --pay-card-w: 84px;
  }

  .title {
    font-size: clamp(
      38px,
      calc((100vw - (var(--side-gutter) * 2) - var(--pay-card-w) - 16px) / 3.55),
      72px
    );
  }

  .pay-card {
    padding: 8px 6px 9px;
  }

  .pay-card__sum {
    font-size: 22px;
  }

  .pay-card__label {
    font-size: 10px;
  }

  .pay-card__period {
    font-size: 9px;
  }

  .tagline__text {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .scene {
    min-height: clamp(100px, 24svh, 220px);
  }

  .side-tag {
    display: none;
  }

  .benefits__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .benefit:nth-child(3)::after {
    display: none;
  }

  .benefit:nth-child(4),
  .benefit:nth-child(5) {
    grid-row: 2;
  }

  .benefit:nth-child(4) {
    grid-column: 1 / span 1;
  }

  .benefit:nth-child(5) {
    grid-column: 3 / span 1;
  }
}

@media (max-width: 359px) {
  :root {
    --pay-card-w: 78px;
  }

  .title {
    font-size: clamp(
      36px,
      calc((100vw - (var(--side-gutter) * 2) - var(--pay-card-w) - 14px) / 3.6),
      64px
    );
  }

  .cta__main {
    font-size: 13px;
  }

  .motivation__line--light {
    font-size: 26px;
  }

  .motivation__line--purple {
    font-size: 18px;
  }
}

/* ===== Short screens (iPhone SE etc.) ===== */
@media (max-height: 680px) {
  .shell {
    gap: clamp(10px, 2.2svh, 16px);
    padding-bottom: max(20px, calc(14px + var(--safe-bottom)));
  }

  .scene {
    min-height: clamp(90px, 20svh, 180px);
  }

  .title {
    font-size: clamp(
      34px,
      calc((100vw - (var(--side-gutter) * 2) - var(--pay-card-w) - 16px) / 3.7),
      80px
    );
  }

  .cta {
    min-height: 66px;
    padding: 8px 14px;
  }

  .cta-stack {
    gap: 12px;
  }

  .motivation__line--light {
    font-size: clamp(22px, 7.5vw, 34px);
    margin-bottom: 4px;
  }

  .motivation__line--purple {
    font-size: clamp(15px, 4.8vw, 24px);
    margin-bottom: 8px;
  }

  .benefits__title {
    margin-bottom: 10px;
    font-size: clamp(13px, 3.6vw, 16px);
  }

  .benefit {
    gap: 6px;
  }

  .benefit__icon {
    width: 22px;
    height: 22px;
  }

  .benefit__age {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .benefit__text {
    font-size: clamp(7px, 2vw, 9px);
  }
}

@media (max-height: 580px) {
  .scene {
    min-height: clamp(72px, 16svh, 140px);
  }

  .shell {
    gap: 8px;
  }

  .motivation__line--light {
    font-size: clamp(20px, 6.5vw, 28px);
  }

  .motivation__line--purple {
    font-size: clamp(14px, 4.2vw, 20px);
  }
}

/* ===== Desktop ===== */
@media (min-width: 768px) {
  .page {
    display: flex;
    justify-content: center;
  }

  .page__bg {
    background-position: center 36%;
  }

  .shell {
    padding-top: max(16px, var(--safe-top));
  }
}
