/* ===== Design tokens ===== */
:root {
  --bg: #05070d;
  --bg-soft: #0b0f1c;
  --gold: #e8bd57;
  --gold-light: #f4d381;
  --purple: #9b5cf5;
  --purple-deep: #7c3aed;
  --white: #ffffff;
  --muted: #b9bfcf;
  --card-bg: #17171d;
  --card-border: rgba(255, 255, 255, 0.08);
  --field-bg: #1e1e26;
  --field-border: rgba(255, 255, 255, 0.1);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: #05070d;
  background-image: url("../assets/hero-bg-mobile.png");
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(5, 7, 13, 0.97) 0%,
    rgba(5, 7, 13, 0.93) 26%,
    rgba(5, 7, 13, 0.6) 46%,
    rgba(5, 7, 13, 0.2) 65%,
    rgba(5, 7, 13, 0) 82%);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px 0;
}

.logo { display: flex; align-items: center; }
.logo img { height: 30px; width: auto; }

.logo__divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.25);
  flex: none;
}

.logo__tagline {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.35;
  letter-spacing: 0.5px;
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 28px 20px 36px;
  max-width: 640px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--white);
}

.bonus-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
}

.bonus-percent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 14vw, 80px);
  line-height: 1;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bonus-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--purple);
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 0 18px rgba(155, 92, 245, 0.35);
  background: rgba(10, 10, 16, 0.4);
}

.bonus-box__up {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--gold);
  letter-spacing: 1px;
}

.bonus-box__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 7vw, 40px);
  color: var(--white);
}

.hero__subtitle {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--purple);
  font-size: clamp(14px, 3.4vw, 17px);
  letter-spacing: 0.3px;
  margin: 0 0 22px;
  max-width: 30ch;
}

.scroll-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 4px 0 26px;
  width: 28px;
}
.scroll-chevrons svg:first-child { margin-bottom: -6px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, var(--purple), var(--purple-deep));
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 16px 14px 16px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 15px;
  line-height: 1.25;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(124, 58, 237, 0.6); }
.cta-btn:active { transform: translateY(0); }

.cta-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  flex: none;
}

.hero__fineprint {
  margin: 22px 0 0;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
  color: var(--white);
  max-width: 34ch;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 10, 0.82);
  backdrop-filter: blur(3px);
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 30px 26px 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
  max-height: 92vh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover { color: var(--white); }

.modal__title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 22px;
  margin: 4px 0 6px;
  color: var(--white);
}
.modal__title span { color: var(--gold); }

.modal__subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.modal__bonus-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--purple);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(155, 92, 245, 0.35);
}
.modal__bonus-percent {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  color: var(--gold);
}
.modal__bonus-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
}

.modal__form { text-align: left; }

.tabs {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--field-border);
}
.tabs__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  background: var(--field-bg);
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
}
.tabs__btn.is-active {
  background: #3a2a1c;
  color: var(--gold-light);
}
.tabs__btn:not(.is-active) { opacity: 0.6; }

.field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 12px;
}
.field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
}
.field input::placeholder { color: #7b7f8c; }
.field__icon { flex: none; }

.field--phone { position: relative; }
.field__country {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: none;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  cursor: default;
}
.field__country[data-multi="true"] { cursor: pointer; }
.field__flag { flex: none; font-size: 16px; line-height: 1; }
.field__prefix { color: var(--white); font-weight: 600; font-size: 14px; }
.field__chevrons { display: none; color: var(--muted); flex: none; }
.field__country[data-multi="true"] .field__chevrons { display: flex; }

.country-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 150px;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}
.country-dropdown li {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--white);
  cursor: pointer;
}
.country-dropdown li:hover { background: rgba(255, 255, 255, 0.06); }

.field__toggle-visibility {
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  flex: none;
}
.field__toggle-visibility:hover { color: var(--white); }

.modal__submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 15px;
  margin-top: 6px;
  background: linear-gradient(180deg, var(--purple), var(--purple-deep));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-transform: none;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}
.modal__submit:hover { filter: brightness(1.05); }
.modal__submit:disabled { opacity: 0.65; cursor: default; filter: none; }

.modal__error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(220, 60, 60, 0.12);
  border: 1px solid rgba(220, 60, 60, 0.35);
  color: #ff8f8f;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.modal__login-prompt {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.modal__login-prompt a { color: var(--gold-light); font-weight: 600; text-decoration: none; }
.modal__login-prompt a:hover { text-decoration: underline; }

.field.has-error { border-color: #dc3c3c; }

.modal__terms {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #7b7f8c;
  text-align: center;
}

/* ===== Tablet / Desktop ===== */
@media (min-width: 768px) {
  .hero__content { padding: 40px 48px 48px; }
  .hero__fineprint { font-size: 14px; }
}

@media (min-width: 1024px) {
  .hero__bg {
    background-image: url("../assets/hero-bg-desktop.png");
  }

  .hero__overlay {
    background: linear-gradient(90deg,
      rgba(5, 7, 13, 0.97) 0%,
      rgba(5, 7, 13, 0.93) 32%,
      rgba(5, 7, 13, 0.55) 55%,
      rgba(5, 7, 13, 0.1) 78%,
      rgba(5, 7, 13, 0) 100%);
  }

  .site-header { padding: 36px 60px 0; }

  .hero__content {
    padding: 60px 60px 60px;
    max-width: 660px;
  }

  .hero__title { font-size: 40px; }
  .hero__fineprint { max-width: 46ch; }
}

@media (min-width: 1440px) {
  .site-header { padding: 44px 88px 0; }
  .hero__content { padding: 90px 88px 90px; max-width: 700px; }
  .hero__title { font-size: 46px; }
}
