/* Free Demo Trade Competition — standalone styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Lexend", ui-sans-serif, system-ui, sans-serif;
  background-color: #0b0e12;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Hero section */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 2rem 1rem;
  text-align: center;
  background-color: #0b0e12;
  background-image: url("img/free-demo-bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
}

.hero__content {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 48rem;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

/* Logo */
.logo-link {
  display: block;
  margin-bottom: 2.5rem;
}

.logo {
  display: block;
  height: 3rem;
  width: auto;
  margin: 0 auto;
}

/* Title card */
.title-card {
  width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  padding: 2px;
  background: linear-gradient(205.87deg, #992538 -10.06%, #0b0e12 51.22%, #992538 112.5%);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.title-card__inner {
  border-radius: 10px;
  background-color: #0b0e12;
  padding: 1rem 1.25rem;
}

.title-card__heading {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.45),
    0 0 20px rgba(255, 255, 255, 0.2);
}

/* Prize card */
.prize-card {
  margin-top: 2rem;
  width: 100%;
  border-radius: 0.75rem;
  padding: 2px;
  border: 1px solid rgba(248, 68, 71, 0.8);
  background: linear-gradient(
    180deg,
    rgba(248, 68, 71, 0.5) 0%,
    rgba(11, 14, 18, 0.6) 50%,
    rgba(248, 68, 71, 0.4) 100%
  );
  box-shadow: 0 0 24px rgba(248, 68, 71, 0.35);
  backdrop-filter: blur(4px);
}

.prize-card__inner {
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem 1rem;
}

.prize-card__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.prize-card__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.prize-card__label {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #23f534;
}

.prize-card__label--small {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #f84447;
}

.prize-card__amount {
  margin: 0.25rem 0 0;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  text-shadow:
    0 0 10px rgba(248, 68, 71, 0.5),
    0 0 20px rgba(248, 68, 71, 0.25);
}

.prize-card__amount--large {
  font-size: 1.875rem;
  font-weight: 700;
}

.prize-card__subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: #e5e7eb;
}

.prize-card__dates {
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 1rem;
}

.prize-card__dates p {
  margin: 0;
}

.prize-card__date-label {
  font-size: 0.875rem;
  color: #d1d5db;
}

.prize-card__date-value {
  font-weight: 600;
}

/* Steps section */
.steps-heading {
  margin: 2.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #23f534;
}

.steps-card {
  margin-top: 1.5rem;
  width: 100%;
  max-width: 36rem;
  border-radius: 0.75rem;
  padding: 2px;
  border: 1px solid rgba(35, 245, 52, 0.4);
  background: linear-gradient(
    180deg,
    rgba(35, 245, 52, 0.35) 0%,
    rgba(11, 14, 18, 0.6) 50%,
    rgba(35, 245, 52, 0.25) 100%
  );
  box-shadow: 0 0 24px rgba(35, 245, 52, 0.2);
  backdrop-filter: blur(4px);
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  text-align: left;
}

.steps-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.steps-list__item + .steps-list__item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.steps-list__number {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: rgba(35, 245, 52, 0.1);
  font-size: 1.125rem;
  font-weight: 700;
  color: #23f534;
  box-shadow: 0 0 12px rgba(35, 245, 52, 0.35);
  outline: 1px solid rgba(35, 245, 52, 0.5);
}

.steps-list__body {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
}

.steps-list__icon {
  display: flex;
  height: 2.25rem;
  width: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: #23f534;
}

.steps-list__icon svg {
  height: 1.25rem;
  width: 1.25rem;
}

.steps-list__text {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.375;
}

/* CTA section */
.cta {
  margin-top: 2.5rem;
  display: flex;
  width: 100%;
  max-width: 28rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn-signup {
  display: inline-flex;
  height: 3.5rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  padding: 0 2rem;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(248, 68, 71, 0.9);
  background: linear-gradient(to bottom, #ff4d50 0%, #f84447 70%, #992538 100%);
  box-shadow:
    0 0 28px rgba(248, 68, 71, 0.55),
    0 4px 24px rgba(248, 68, 71, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-signup:hover {
  background: linear-gradient(to bottom, #ff5c5f 0%, #e63a3d 70%, #8a1f32 100%);
  box-shadow:
    0 0 36px rgba(248, 68, 71, 0.7),
    0 6px 28px rgba(248, 68, 71, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.cta__link {
  font-size: 0.875rem;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.2s;
}

.cta__link:hover {
  color: #fff;
}

/* Social section */
.social {
  margin-top: 3rem;
  width: 100%;
}

.social__card {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  padding: 3.125rem 1rem 2.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(35, 245, 52, 0.18) 0%, transparent 70%),
    linear-gradient(135deg, rgba(20, 160, 30, 0.12) 0%, rgba(11, 14, 18, 0.9) 50%, rgba(35, 245, 52, 0.08) 100%);
  box-shadow: 0 0 40px rgba(35, 245, 52, 0.12);
}

.social__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: radial-gradient(circle at 50% 0%, rgba(35, 245, 52, 0.2) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.social__card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 1rem;
  background: linear-gradient(135deg, #23f534 0%, #0c0f13 50%, #14a01e 100%);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.social__heading {
  position: relative;
  z-index: 2;
  margin: 0 auto 1.5rem;
  max-width: 42rem;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  color: #ededed;
}

.social__icons {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 20rem;
  margin: 0 auto;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto;
  border-radius: 9999px;
  padding: 0.5rem;
  transition: transform 0.2s;
}

.social__link:hover {
  transform: scale(1.1);
}

.social__icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

.social__chart,
.social__dot {
  position: absolute;
  pointer-events: none;
}

.social__chart img,
.social__dot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social__chart--top-right {
  top: -2rem;
  right: 1rem;
  width: 4rem;
  height: 4rem;
}

.social__chart--bottom-left {
  bottom: -2rem;
  left: 1rem;
  width: 4rem;
  height: 4rem;
}

.social__dot--left {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.social__dot--right {
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
}

/* Responsive */
@media (min-width: 640px) {
  .logo-link {
    margin-bottom: 3rem;
  }

  .logo {
    height: 3.5rem;
  }

  .title-card__inner {
    padding: 1rem 1.5rem;
  }

  .title-card__heading {
    font-size: 1.5rem;
  }

  .prize-card__inner {
    padding: 2rem 1.5rem;
  }

  .prize-card__label {
    font-size: 1.5rem;
  }

  .prize-card__label--small {
    font-size: 0.875rem;
  }

  .prize-card__amount {
    font-size: 3rem;
  }

  .prize-card__amount--large {
    font-size: 2.25rem;
  }

  .prize-card__subtitle {
    font-size: 1rem;
  }

  .prize-card__dates {
    font-size: 1.125rem;
  }

  .steps-heading {
    font-size: 1.875rem;
  }

  .steps-list__item {
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
  }

  .steps-list__number {
    height: 3rem;
    width: 3rem;
    font-size: 1.25rem;
  }

  .steps-list__text {
    font-size: 1.125rem;
  }

  .btn-signup {
    height: 4rem;
    font-size: 1.375rem;
  }

  .social__icons {
    gap: 1.5rem;
  }

  .social__link {
    width: 3rem;
    height: 3rem;
    padding: 0.625rem;
  }

  .social__icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .social__heading {
    font-size: 1.125rem;
  }
}

@media (min-width: 768px) {
  .hero {
    justify-content: center;
    margin: 0 1rem;
    padding: 2.5rem 1rem;
    border-radius: 1rem;
  }

  .logo-link {
    margin-bottom: 3.5rem;
  }

  .logo {
    height: 4rem;
  }

  .title-card__heading {
    font-size: 1.875rem;
  }

  .prize-card__grid {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .prize-card__col--left {
    padding-right: 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
  }

  .prize-card__col--right {
    padding-left: 1.5rem;
  }

  .prize-card__amount {
    font-size: 3.75rem;
  }

  .social__card {
    padding: 3.125rem 2rem 2.5rem;
  }

  .social__icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.25rem;
    max-width: none;
  }

  .social__link {
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.75rem;
  }

  .social__icon {
    width: 2rem;
    height: 2rem;
  }

  .social__chart--top-right {
    top: -4rem;
    right: 2rem;
    width: 8rem;
    height: 8rem;
  }

  .social__chart--bottom-left {
    bottom: -4rem;
    left: 2rem;
    width: 8rem;
    height: 8rem;
  }

  .social__dot--left {
    width: 33.333%;
  }

  .social__dot--right {
    width: 33.333%;
  }
}

@media (min-width: 1024px) {
  .logo {
    height: 5rem;
  }

  .social__heading {
    font-size: 1.375rem;
  }
}
