/* ===== Tokens ===== */
:root {
  --bg-deep: #020403;
  --bg-mid: #050806;
  --bg-panel: #09100B;
  --green: #70FF32;
  --green-mid: #45E91E;
  --green-deep: #20C915;
  --text-light: #F1F1F1;
  --text-muted: #777777;
  --gradient-green: linear-gradient(180deg, #78FF35 0%, #38E926 100%);
  --max: 520px;
  --btn-max: 420px;
  --side-gutter: clamp(18px, 5vw, 24px);
  --top-offset: max(60px, calc(30px + env(safe-area-inset-top, 0px)));
  --side-right-offset: max(30px, env(safe-area-inset-right, 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;
}

/* ===== 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-green-night.webp");
  background-repeat: no-repeat;
  background-position: center 18%;
  background-size: cover;
}

.page__overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 55% at 50% 42%,
      rgba(112, 255, 50, 0.08) 0%,
      transparent 58%
    ),
    radial-gradient(
      ellipse 130% 100% at 50% 50%,
      transparent 20%,
      rgba(2, 4, 3, 0.55) 65%,
      rgba(2, 4, 3, 0.94) 100%
    ),
    linear-gradient(
      180deg,
      rgba(2, 4, 3, 0.92) 0%,
      rgba(2, 4, 3, 0.45) 16%,
      rgba(2, 4, 3, 0.1) 34%,
      rgba(2, 4, 3, 0.28) 58%,
      rgba(5, 8, 6, 0.78) 82%,
      rgba(2, 4, 3, 0.96) 100%
    );
}

/* ===== Shell ===== */
.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2.8svh, 18px);
  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));
}

/* ===== Brand logo ===== */
.brand {
  width: 100%;
  flex-shrink: 0;
  text-align: center;
}

.brand__logo {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  width: min(85%, 100%);
  font-family: "Anton", "Oswald", Impact, sans-serif;
  font-size: clamp(44px, 13vw, 68px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  transform: rotate(-2deg);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.85);
}

.brand__part {
  color: rgba(220, 220, 220, 0.92);
}

.brand__part--green {
  color: var(--green);
  text-shadow: 0 0 18px rgba(112, 255, 50, 0.35);
}

/* ===== Side decorative quote ===== */
.side-quote {
  position: absolute;
  right: var(--side-right-offset);
  top: clamp(140px, 30svh, 220px);
  z-index: 3;
  text-align: right;
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
}

.side-quote__line {
  font-family: "Oswald", sans-serif;
  font-size: clamp(12px, 3.4vw, 17px);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.18;
  text-transform: uppercase;
  color: rgba(220, 220, 220, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.side-quote__line--green {
  color: rgba(112, 255, 50, 0.9);
  text-shadow: 0 0 14px rgba(112, 255, 50, 0.3);
}

/* ===== Scene spacer ===== */
.scene {
  width: 100%;
  flex-shrink: 1;
  min-height: clamp(100px, 22svh, 280px);
  pointer-events: none;
}

/* ===== Hero ===== */
.hero {
  width: 100%;
  flex-shrink: 0;
  text-align: center;
  padding-inline: clamp(4px, 1.5vw, 8px);
  margin-top: 30px;
}

.hero__title {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.22em;
  width: 100%;
  margin-bottom: 8px;
  line-height: 1;
  font-size: clamp(
    34px,
    calc((100vw - (var(--side-gutter) * 2) - 8px) / 8.5),
    60px
  );
}

.hero__word {
  font-family: "Anton", "Oswald", Impact, sans-serif;
  font-size: 1em;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-light);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.hero__word--green {
  color: var(--green);
  text-shadow:
    0 0 20px rgba(112, 255, 50, 0.35),
    0 2px 14px rgba(0, 0, 0, 0.85);
}

.hero__subtitle {
  font-size: clamp(17px, 4.5vw, 21px);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.25;
}

/* ===== Actions / CTA ===== */
.actions {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 30px;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(90%, var(--btn-max));
  align-items: center;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 82px;
  padding: 10px clamp(54px, 14vw, 60px);
  border-radius: 22px;
  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(--green);
  outline-offset: 3px;
}

.cta--green {
  background: var(--gradient-green);
  box-shadow:
    0 0 24px rgba(112, 255, 50, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.45);
}

.cta--green:hover {
  filter: brightness(1.04);
  box-shadow:
    0 0 32px rgba(112, 255, 50, 0.38),
    0 10px 28px rgba(0, 0, 0, 0.5);
}

.cta--dark {
  background: rgba(2, 4, 3, 0.94);
  border: 1.5px solid var(--green);
  box-shadow:
    0 0 18px rgba(112, 255, 50, 0.12),
    0 6px 20px rgba(0, 0, 0, 0.45);
}

.cta--dark:hover {
  background: rgba(5, 8, 6, 0.98);
  box-shadow:
    0 0 26px rgba(112, 255, 50, 0.2),
    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%;
  flex-shrink: 0;
}

.cta__icon-wrap--dark {
  background: #020403;
}

.cta__icon-wrap--green {
  background: var(--green);
  box-shadow: 0 0 12px rgba(112, 255, 50, 0.35);
}

.cta__icon {
  width: 22px;
  height: 22px;
}

.cta__text {
  display: block;
  width: 100%;
  font-family: "Oswald", sans-serif;
  font-size: clamp(18px, 5vw, 30px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  pointer-events: none;
}

.cta--green .cta__text {
  color: #020403;
}

.cta--dark .cta__text {
  font-size: clamp(14px, 3.8vw, 20px);
  color: var(--text-light);
}

/* ===== Guarantee ===== */
.guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(2, 4, 3, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.guarantee__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  filter: drop-shadow(0 0 6px rgba(112, 255, 50, 0.35));
}

.guarantee__text {
  font-size: clamp(14px, 3.6vw, 16px);
  font-weight: 500;
  color: rgba(210, 210, 210, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}

/* ===== Small width ===== */
@media (max-width: 374px) {
  .brand__logo {
    font-size: clamp(38px, 12vw, 48px);
  }

  .hero__title {
    font-size: clamp(
      30px,
      calc((100vw - (var(--side-gutter) * 2) - 6px) / 9),
      44px
    );
    gap: 0.16em;
  }

  .scene {
    min-height: clamp(88px, 20svh, 180px);
  }

  .side-quote__line {
    font-size: clamp(10px, 3vw, 14px);
  }

  .cta {
    min-height: 76px;
  }

  .cta--dark .cta__text {
    font-size: 13px;
  }
}

@media (max-width: 359px) {
  .hero__title {
    font-size: clamp(
      28px,
      calc((100vw - (var(--side-gutter) * 2) - 4px) / 9.2),
      40px
    );
  }

  .cta__text {
    font-size: clamp(16px, 4.8vw, 22px);
  }
}

/* ===== Short screens ===== */
@media (max-height: 680px) {
  .shell {
    gap: clamp(8px, 1.8svh, 14px);
  }

  .scene {
    min-height: clamp(72px, 16svh, 160px);
  }

  .brand__logo {
    font-size: clamp(36px, 11vw, 46px);
  }

  .hero__title {
    font-size: clamp(
      28px,
      calc((100vw - (var(--side-gutter) * 2)) / 9.5),
      48px
    );
  }

  .cta {
    min-height: 72px;
  }

  .side-quote {
    top: clamp(120px, 26svh, 180px);
    opacity: 0.5;
  }
}

@media (max-height: 580px) {
  .scene {
    min-height: clamp(60px, 13svh, 120px);
  }

  .shell {
    gap: 8px;
  }

  .side-quote {
    opacity: 0.48;
  }

  .cta-stack {
    gap: 12px;
  }

  .cta {
    min-height: 66px;
  }
}

/* ===== Desktop ===== */
@media (min-width: 768px) {
  .page {
    display: flex;
    justify-content: center;
  }

  .page__bg {
    background-position: center 16%;
  }
}
