/* ── Global background & typography ── */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Bebas+Neue&display=swap");

:root {
  --font-family-base: "Inter", "Gilroy", Arial, sans-serif;
  --font-family-logo: "Bebas Neue", "Gilroy", Arial, sans-serif;
  --bg-mesh-1: radial-gradient(ellipse 80% 60% at 10% 20%, rgba(227, 255, 52, 0.08) 0%, transparent 60%);
  --bg-mesh-2: radial-gradient(ellipse 60% 50% at 90% 10%, rgba(45, 119, 122, 0.35) 0%, transparent 55%);
  --bg-mesh-3: radial-gradient(ellipse 70% 40% at 50% 100%, rgba(24, 72, 74, 0.6) 0%, transparent 65%);
}

body {
  background-color: var(--color-emerald-12);
  background-image:
    var(--bg-mesh-1),
    var(--bg-mesh-2),
    var(--bg-mesh-3),
    linear-gradient(165deg, #0a2829 0%, #12393b 40%, #0f2e30 100%);
  background-attachment: fixed;
}

main {
  background: transparent;
  position: relative;
}

main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(227, 255, 52, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 255, 52, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}

main > * {
  position: relative;
  z-index: 1;
}

/* ── Welcome hero ── */
.welcome {
  background:
    linear-gradient(135deg, rgba(10, 40, 41, 0.92) 0%, rgba(18, 57, 59, 0.75) 50%, rgba(15, 46, 48, 0.95) 100%),
    radial-gradient(ellipse 90% 70% at 70% 30%, rgba(247, 147, 26, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(227, 255, 52, 0.06) 0%, transparent 50%);
  overflow: hidden;
}

.welcome::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(227, 255, 52, 0.05) 0%, transparent 40%);
}

@media (width <= 47.99875rem) {
  .welcome {
    background:
      linear-gradient(180deg, rgba(10, 40, 41, 0.95) 0%, #12393b 100%),
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(247, 147, 26, 0.1) 0%, transparent 60%);
  }

  .welcome::before {
    background: none;
  }
}

/* Bitcoin coins behind form */
.welcome__coins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.welcome__coin {
  position: absolute;
  user-select: none;
  will-change: transform;
}

.welcome__coin--1 {
  width: clamp(14rem, 22vw, 20rem);
  height: auto;
  top: 8%;
  left: -8%;
  transform: rotate(-32deg);
  opacity: 0.9;
  clip-path: inset(0 35% 10% 0);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
  animation: coin-float-1 8s ease-in-out infinite;
}

.welcome__coin--2 {
  width: clamp(11rem, 18vw, 16rem);
  height: auto;
  bottom: 5%;
  right: -6%;
  transform: rotate(28deg);
  filter: brightness(0.35) saturate(0.4) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.6));
  opacity: 0.85;
  animation: coin-float-2 10s ease-in-out infinite;
}

.welcome__coin--3 {
  width: clamp(8rem, 14vw, 12rem);
  height: auto;
  top: 42%;
  left: 2%;
  transform: rotate(14deg);
  filter: blur(1.5px) brightness(1.1);
  opacity: 0.55;
  animation: coin-float-3 7s ease-in-out infinite;
}

@media (width <= 63.99875rem) {
  .welcome__coin--1 {
    top: 2%;
    left: -18%;
    width: 11rem;
    clip-path: inset(0 40% 15% 0);
  }

  .welcome__coin--2 {
    bottom: 18%;
    right: -22%;
    width: 9rem;
  }

  .welcome__coin--3 {
    top: 55%;
    left: -12%;
    width: 7rem;
    opacity: 0.4;
  }
}

@keyframes coin-float-1 {
  0%, 100% { transform: rotate(-32deg) translateY(0); }
  50% { transform: rotate(-28deg) translateY(-12px); }
}

@keyframes coin-float-2 {
  0%, 100% { transform: rotate(28deg) translateY(0); }
  50% { transform: rotate(32deg) translateY(8px); }
}

@keyframes coin-float-3 {
  0%, 100% { transform: rotate(14deg) translateX(0); }
  50% { transform: rotate(18deg) translateX(6px); }
}

/* Welcome text */
.welcome__title {
  font-size: clamp(2rem, 1.745rem + 1.05vw, 3rem);
  max-width: 30.625rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.welcome__title-accent {
  color: var(--color-accent);
  text-shadow: 0 0 30px rgba(227, 255, 52, 0.35);
}

.welcome__badge {
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(227, 255, 52, 0.15);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* Form glass card */
.welcome__form {
  z-index: 20;
}

.welcome__form .form {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(227, 255, 52, 0.2);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 80px rgba(247, 147, 26, 0.08);
  backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.welcome__form .form:hover {
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(227, 255, 52, 0.25) inset,
    0 0 100px rgba(247, 147, 26, 0.12);
  transform: translateY(-2px);
}

.welcome__form .leadform input {
  border: 1px solid #dde3e3;
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.welcome__form .leadform input:focus {
  outline: none;
  border-color: var(--color-emerald-2d);
  box-shadow: 0 0 0 3px rgba(45, 119, 122, 0.2);
}

.welcome__form .submit {
  background: linear-gradient(135deg, #12393b 0%, #18484a 100%);
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.welcome__form .submit:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(18, 57, 59, 0.4);
}

/* Remove broken pseudo coin backgrounds */
.welcome__main::after,
.welcome__form::before,
.welcome__form::after {
  display: none !important;
}

/* ── Section cards polish ── */
.steps__card,
.advantages__card,
.feedback__item,
.trades__card,
.statistics__card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.steps__card:hover,
.advantages__card:hover,
.feedback__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.trades__card {
  border: 1px solid rgba(227, 255, 52, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.subtitle__badge {
  border: 1px solid rgba(227, 255, 52, 0.2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
}

.subtitle-h2 {
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.statistics__card-value {
  background: linear-gradient(135deg, #e3ff34 0%, #c8e62a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Footer ── */
.footer__main {
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2);
}

/* ── Semantic lists reset ── */
.steps__inner,
.trades__list,
.statistics__inner,
.advantages__inner,
.feedback__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  column-gap: 1.75rem;
}

@media (width <= 63.99875rem) {
  .footer__nav ul {
    flex-direction: column;
    align-items: center;
    row-gap: 2.25rem;
  }
}

.steps__card-icon {
  margin: 0;
}

figure.steps__card-icon {
  display: block;
}

/* ── Form helpers ── */
.iti__country-container {
  pointer-events: none;
}

.iti__arrow {
  display: none;
}

.leadform {
  max-width: 400px;
  margin: 0 auto;
}

.leadform input {
  display: block;
  width: 100%;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin: 20px 0;
  padding: 15px;
}

.welcome__form .form,
.join__form .form {
  padding: 20px !important;
}

.welcome__form .submit,
.join__form .submit {
  width: 100%;
}

@media (max-width: 768px) {
  .welcome__main {
    padding-top: 0;
  }

  .welcome__title {
    margin-top: 1.5rem;
    z-index: 50;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  }
}

.join__form .form {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(227, 255, 52, 0.2);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.join__form .submit {
  animation: aio-sdk-pulsing 2s ease infinite;
  box-shadow: #12393b 0 0 0 0;
  background: #12393b;
  border-color: #12393b;
  color: #e3ff34;
  padding: 12px;
  height: 60px;
  border: 1px solid transparent;
  border-radius: 50px;
  margin-top: 20px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.iti__selected-dial-code,
.iti__country-name {
  color: #222;
}

@keyframes aio-sdk-pulsing {
  100% {
    box-shadow: transparent 0 0 0 10px;
  }
}

figure.welcome__coins {
  margin: 0;
  padding: 0;
  border: none;
}

.welcome__coin {
  display: block;
}

.feedback__list > li {
  list-style: none;
  display: contents;
}

.header__button {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

/* ── Join section coins ── */
.join {
  background: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(247, 147, 26, 0.06) 0%, transparent 55%);
}

.join__main::after,
.join__form::before,
.join__form::after {
  display: none !important;
}

/* ── Accessibility: respect motion preference ── */
@media (prefers-reduced-motion: reduce) {
  .welcome__coin {
    animation: none;
  }

  .welcome__form .form:hover {
    transform: none;
  }
}
