/* ===== Tokens ===== */
:root {
  --bg-deep: #020203;
  --bg-mid: #08050D;
  --bg-panel: #14051D;
  --purple-deep: #54108F;
  --purple: #8118D8;
  --purple-bright: #B22AFF;
  --yellow: #FFD400;
  --yellow-hot: #FFE000;
  --text-light: #F3F3F3;
  --text-muted: #B8B0C4;
  --gradient-yellow: linear-gradient(180deg, #FFD200 0%, #FFE327 100%);
  --max: 520px;
  --btn-max: 410px;
  --side-gutter: clamp(18px, 5vw, 24px);
  --top-offset: max(30px, env(safe-area-inset-top, 0px));
  --safe-bottom: env(safe-area-inset-bottom, 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;
}

.accent-yellow {
  color: var(--yellow);
}

/* ===== 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-cat-purple.webp");
  background-repeat: no-repeat;
  background-position: center 12%;
  background-size: cover;
}

.page__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 90% 60% at 50% 38%,
      rgba(129, 24, 216, 0.14) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 130% 100% at 50% 50%,
      transparent 18%,
      rgba(2, 2, 3, 0.5) 62%,
      rgba(2, 2, 3, 0.92) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 2, 3, 0.88) 0%,
      rgba(2, 2, 3, 0.35) 14%,
      rgba(2, 2, 3, 0.08) 32%,
      rgba(2, 2, 3, 0.22) 52%,
      rgba(8, 5, 13, 0.65) 78%,
      rgba(2, 2, 3, 0.95) 100%
    );
}

/* ===== Shell ===== */
.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.8svh, 20px);
  padding:
    var(--top-offset)
    max(var(--side-gutter), var(--safe-right))
    max(22px, calc(16px + var(--safe-bottom)))
    max(var(--side-gutter), var(--safe-left));
}

/* ===== Top decorative blocks ===== */
.decor-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(6px, 2vw, 10px);
  align-items: start;
  flex-shrink: 0;
}

.decor-left {
  transform: rotate(-4deg);
  transform-origin: left top;
  max-width: 100%;
}

.decor-left__line {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(10px, 2.8vw, 14px);
  line-height: 1.12;
  color: var(--text-light);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

.brush-line {
  display: block;
  width: clamp(80px, 28vw, 120px);
  height: 8px;
  margin-top: 4px;
}

.brush-line--short {
  width: clamp(64px, 22vw, 80px);
  margin-left: auto;
  margin-right: 4px;
}

.decor-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: rotate(2deg);
  transform-origin: right top;
  max-width: 100%;
}

.decor-right__card {
  background: rgba(2, 2, 3, 0.82);
  border: 1px solid rgba(129, 24, 216, 0.35);
  border-radius: 4px 14px 6px 12px;
  padding: clamp(5px, 1.5vw, 7px) clamp(8px, 2.5vw, 10px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  clip-path: polygon(2% 0%, 98% 4%, 96% 96%, 4% 100%);
  max-width: 100%;
}

.decor-right__line {
  font-family: "Permanent Marker", cursive;
  font-size: clamp(9px, 2.6vw, 13px);
  line-height: 1.1;
  text-align: right;
  color: var(--text-light);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

.decor-right__crown {
  width: clamp(18px, 5vw, 22px);
  height: clamp(14px, 4vw, 18px);
  margin-bottom: 4px;
  margin-right: clamp(4px, 2vw, 8px);
  filter: drop-shadow(0 0 6px rgba(255, 212, 0, 0.4));
}

/* ===== Scene spacer ===== */
.scene {
  flex-shrink: 1;
  min-height: clamp(120px, 24svh, 320px);
  pointer-events: none;
}

/* ===== Hero title ===== */
.hero {
  position: relative;
  z-index: 3;
  text-align: center;
  flex-shrink: 0;
  padding-inline: clamp(4px, 1.5vw, 8px);
}

.hero__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 0.88;
  width: 100%;
  font-size: clamp(
    40px,
    calc((100vw - (var(--side-gutter) * 2) - 8px) / 6.8),
    90px
  );
}

.hero__line {
  display: block;
  font-family: "Anton", "Oswald", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.hero__line--white {
  font-size: 1em;
  color: rgba(243, 243, 243, 0.95);
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.9),
    0 6px 24px rgba(0, 0, 0, 0.85);
}

.hero__line--yellow {
  font-size: 1.08em;
  color: var(--yellow);
  transform: rotate(-2.5deg);
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.95),
    0 0 28px rgba(255, 212, 0, 0.35),
    0 8px 28px rgba(0, 0, 0, 0.8);
  margin-top: -2px;
}

.hero__underline {
  display: block;
  width: min(72%, 220px);
  height: 10px;
  margin: 4px auto 0;
  transform: rotate(-2deg);
  opacity: 0.9;
}

/* ===== Actions / CTA ===== */
.actions {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(90%, var(--btn-max));
  align-items: center;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80px;
  padding: 10px clamp(54px, 14vw, 60px);
  border-radius: 20px;
  text-decoration: none;
  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(--yellow);
  outline-offset: 3px;
}

.cta--yellow {
  background: var(--gradient-yellow);
  box-shadow:
    0 0 24px rgba(255, 212, 0, 0.35),
    0 8px 24px rgba(0, 0, 0, 0.45);
}

.cta--yellow:hover {
  filter: brightness(1.04);
  box-shadow:
    0 0 32px rgba(255, 212, 0, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.5);
}

.cta--dark {
  background: rgba(2, 2, 3, 0.92);
  border: 1.5px solid var(--yellow);
  box-shadow:
    0 0 20px rgba(255, 212, 0, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.45);
}

.cta--dark:hover {
  background: rgba(8, 5, 13, 0.96);
  box-shadow:
    0 0 28px rgba(255, 212, 0, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.5);
}

.cta__icon-wrap {
  position: absolute;
  left: clamp(14px, 4vw, 18px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.cta__icon-wrap--dark {
  background: #020203;
}

.cta__icon-wrap--yellow {
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(255, 212, 0, 0.4);
}

.cta__icon {
  width: 22px;
  height: 22px;
}

.cta__text {
  display: block;
  width: 100%;
  font-family: "Oswald", sans-serif;
  font-size: clamp(12px, 3.4vw, 17px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  pointer-events: none;
}

.cta--yellow .cta__text {
  color: #020203;
}

.cta--dark .cta__text {
  color: var(--text-light);
}

/* ===== Benefits ===== */
.benefits {
  flex-shrink: 0;
  padding-inline: 4px;
}

.benefits__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: start;
}

.benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  text-align: center;
}

.benefit:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(180, 180, 190, 0.35),
    transparent
  );
}

.benefit__icon {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 8px rgba(255, 212, 0, 0.3));
}

.benefit__text {
  font-family: "Oswald", sans-serif;
  font-size: clamp(9px, 2.5vw, 11px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: rgba(243, 243, 243, 0.88);
}

/* ===== Guarantee footer ===== */
.guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: center;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 28px;
  background: rgba(4, 2, 10, 0.72);
  border: 1px solid rgba(129, 24, 216, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.guarantee__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.guarantee__text {
  font-size: clamp(12px, 3.2vw, 14px);
  font-weight: 500;
  color: var(--text-muted);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}

/* ===== Small screens ===== */
@media (max-width: 374px) {
  .decor-left__line,
  .decor-right__line {
    font-size: clamp(9px, 2.5vw, 10px);
  }

  .hero__title {
    font-size: clamp(
      36px,
      calc((100vw - (var(--side-gutter) * 2) - 6px) / 7),
      62px
    );
  }

  .scene {
    min-height: clamp(100px, 22svh, 200px);
  }

  .cta {
    min-height: 72px;
  }

  .benefit__text {
    font-size: clamp(7px, 2.2vw, 9px);
  }
}

@media (max-width: 359px) {
  .hero__title {
    font-size: clamp(
      34px,
      calc((100vw - (var(--side-gutter) * 2) - 4px) / 7.2),
      58px
    );
  }

  .cta__text {
    font-size: 11px;
  }
}

/* ===== Short screens ===== */
@media (max-height: 680px) {
  .scene {
    min-height: clamp(88px, 18svh, 180px);
  }

  .shell {
    gap: clamp(8px, 1.8svh, 14px);
  }

  .hero__title {
    font-size: clamp(
      38px,
      calc((100vw - (var(--side-gutter) * 2) - 8px) / 7.2),
      72px
    );
  }

  .cta {
    min-height: 66px;
  }

  .benefits {
    padding-inline: 2px;
  }

  .benefit__icon {
    width: 24px;
    height: 24px;
  }

  .guarantee {
    padding: 8px 14px;
  }

  .guarantee__text {
    font-size: 11px;
  }
}

@media (max-height: 580px) {
  .scene {
    min-height: clamp(72px, 15svh, 140px);
  }

  .shell {
    gap: 8px;
  }

  .hero__title {
    font-size: clamp(
      32px,
      calc((100vw - (var(--side-gutter) * 2)) / 7.5),
      56px
    );
  }

  .hero__underline {
    width: min(60%, 180px);
    height: 8px;
  }

  .cta {
    min-height: 62px;
  }

  .cta-stack {
    gap: 10px;
  }

  .decor-left__line,
  .decor-right__line {
    font-size: 9px;
  }
}

/* ===== Desktop ===== */
@media (min-width: 768px) {
  .page {
    display: flex;
    justify-content: center;
  }

  .page__bg {
    background-position: center 10%;
  }

  .shell {
    padding-top: var(--top-offset);
  }
}
