:root {
  --purple-900: #341a74;
  --purple-800: #45229a;
  --purple-700: #5b2ffa;
  --purple-500: #7f5bff;
  --purple-300: #a894ff;
  --green-500: #42c426;
  --pink-500: #fa35fa;
  --orange-500: #ff5c44;
  --paper: #ffffff;
  --ink-900: #1c1330;
  --ink-700: #4f4664;
  --ink-500: #756d89;
  --surface: #f8f8fc;
  --border-soft: #ece7f7;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 45px rgba(22, 7, 44, 0.15);
  --shadow-card: 0 14px 28px rgba(33, 19, 57, 0.1);
  --container: 1120px;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.45;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  line-height: 1.18;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.section {
  padding: var(--space-16) 0;
}

.hero {
  position: relative;
  overflow: clip;
  background-color: var(--purple-700);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(160deg, #4b24ca 0%, var(--purple-700) 56%, #6a42ff 100%);
  background-size: 34px 34px, 34px 34px, 100% 100%;
  color: #fff;
  padding: var(--space-16) 0;
}

.hero__shape {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero__shape--one {
  width: 420px;
  height: 420px;
  border-radius: 50%;
  top: -120px;
  right: -90px;
  background: radial-gradient(circle, rgba(198, 160, 255, 0.46), rgba(162, 103, 241, 0));
}

.hero__shape--two {
  width: 360px;
  height: 360px;
  border-radius: 35% 65% 67% 33% / 34% 48% 52% 66%;
  left: -120px;
  bottom: -180px;
  background: linear-gradient(120deg, rgba(183, 140, 247, 0.24), rgba(255, 255, 255, 0.02));
  transform: rotate(12deg);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-10);
  align-items: center;
  grid-template-columns: 1fr;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: var(--space-6);
}

.hero-title-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35em;
  height: 1.35em;
  margin-right: -0.56em;
  vertical-align: -0.05em;
  transform: translateY(0.02em) translateX(-0.2em);
}

.hero-title-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  max-width: 17ch;
  margin-bottom: var(--space-5);
}

.hero__subtitle {
  max-width: 45ch;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-8);
}

.hero__benefits {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero__form-wrap {
  position: relative;
}

.hero-bolt {
  position: absolute;
  right: -28px;
  top: -64px;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  z-index: 2;
  transform: rotate(-18deg);
}

.hero-bolt svg {
  width: 116px;
  height: 116px;
  fill: var(--orange-500);
  filter: drop-shadow(6px 8px 0 #1d1d1b);
}

.lead-card {
  width: min(100%, 450px);
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink-900);
  border-radius: var(--radius-lg);
  border: 0;
  box-shadow: var(--shadow-soft);
  padding: var(--space-8);
}

.lead-card h2 {
  font-size: 1.45rem;
  margin-bottom: var(--space-3);
}

.lead-card > p {
  color: var(--ink-700);
  margin-bottom: var(--space-6);
}

.form-field {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-900);
}

input {
  height: 48px;
  border: 1px solid #d7d1e8;
  border-radius: var(--radius-sm);
  padding: 0 0.9rem;
  font: inherit;
  color: var(--ink-900);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #9b95ac;
}

input:focus-visible,
button:focus-visible {
  outline: none;
  border-color: var(--purple-700);
  box-shadow: 0 0 0 4px rgba(128, 74, 206, 0.2);
}

input[aria-invalid="true"] {
  border-color: #d12e53;
}

.field-error {
  min-height: 1rem;
  color: #b81f41;
  font-size: 0.82rem;
}

.btn-primary {
  width: 100%;
  min-height: 54px;
  border: 2px solid #111;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff43ff 0%, var(--pink-500) 100%);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 4px 5px 0 #111;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, filter 0.16s ease;
}

.btn-primary:hover {
  transform: translateY(1px);
  box-shadow: 3px 4px 0 #111;
  filter: brightness(1.05);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-secondary {
  margin-top: var(--space-5);
  min-height: 46px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  color: var(--ink-900);
  font: inherit;
  font-weight: 600;
  padding: 0 1rem;
  cursor: pointer;
  box-shadow: 3px 4px 0 #111;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn-secondary:hover {
  transform: translateY(1px);
  box-shadow: 2px 3px 0 #111;
}

.form-note {
  margin-top: var(--space-4);
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-500);
}

.success-message {
  background: linear-gradient(165deg, #f8f2ff, #ffffff);
  border: 1px solid #e4d9f8;
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}

.success-animation {
  width: 82px;
  height: 82px;
  margin: 0 auto var(--space-4);
  position: relative;
  transform: scale(0.8);
  opacity: 0;
}

.success-animation svg {
  width: 100%;
  height: 100%;
}

.success-ring {
  fill: rgba(91, 47, 250, 0.08);
  stroke: var(--green-500);
  stroke-width: 5;
  stroke-dasharray: 176;
  stroke-dashoffset: 176;
}

.success-check {
  fill: none;
  stroke: var(--green-500);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
}

.success-spark {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  opacity: 0;
}

.success-message.is-visible .success-animation {
  animation: pop-in 0.55s ease both;
}

.success-message.is-visible .success-ring {
  animation: draw-ring 0.62s ease forwards;
}

.success-message.is-visible .success-check {
  animation: draw-check 0.36s 0.42s ease forwards;
}

.success-message.is-visible .success-spark {
  animation: sparkle 0.8s 0.55s ease forwards;
}

.success-spark--one {
  background: var(--pink-500);
  top: 8px;
  right: -2px;
}

.success-spark--two {
  background: var(--orange-500);
  left: -3px;
  bottom: 14px;
}

.success-spark--three {
  background: var(--purple-700);
  right: 8px;
  bottom: -2px;
}

.success-message h3 {
  color: var(--purple-900);
  margin-bottom: var(--space-3);
}

.success-message p {
  color: var(--ink-700);
}

.wpp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--space-4);
  min-height: 46px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 2px solid #0f3d17;
  background: linear-gradient(180deg, #57e05a 0%, #2db73a 100%);
  color: #05280c;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 3px 4px 0 #0f3d17;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.wpp-button:hover {
  transform: translateY(1px);
  box-shadow: 2px 3px 0 #0f3d17;
  filter: brightness(1.03);
}

.wpp-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(45, 183, 58, 0.35), 2px 3px 0 #0f3d17;
}

.wpp-button--footer {
  width: 100%;
  color: #06220b;
}

@keyframes pop-in {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes draw-ring {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes draw-check {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: scale(0.5) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.generated-code {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px dashed #d8c9f2;
  display: grid;
  gap: var(--space-2);
}

.generated-code span {
  color: var(--ink-500);
  font-size: 0.83rem;
}

.generated-code strong {
  font-size: 1.15rem;
  color: var(--purple-700);
  letter-spacing: 0.04em;
}

.section-head {
  margin-bottom: var(--space-10);
  max-width: 65ch;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-700);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--ink-900);
  margin-bottom: var(--space-4);
}

.section-head p {
  color: var(--ink-700);
}

.ranking {
  background: #fff;
}

.ranking__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.embed-slot {
  border: 0;
  border-radius: var(--radius-sm);
  min-height: 405px;
  height: 405px;
  overflow: hidden;
  background: transparent;
  position: relative;
}

.embed-placeholder {
  min-height: 100%;
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--ink-500);
  padding: var(--space-5);
}

.embed-placeholder strong {
  font-family: "Poppins", sans-serif;
  color: var(--ink-700);
  margin-bottom: 0.35rem;
}

.rules-stars {
  width: 64px;
  height: 28px;
  margin: -0.15rem 0 0.55rem;
}

.rules-stars svg {
  width: 100%;
  height: 100%;
  fill: var(--pink-500);
}

.embed-frame {
  width: 100%;
  height: 100%;
  min-height: 405px;
  border: 0;
  display: block;
}

.embed-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  text-indent: -9999px;
  overflow: hidden;
}

.rules {
  background: linear-gradient(180deg, #faf8ff 0%, #ffffff 36%);
  padding-bottom: 0;
}

.rules__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.rules-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  position: relative;
  overflow: visible;
  padding-bottom: 3.3rem;
}

.rules-card h3 {
  margin-bottom: var(--space-4);
  font-size: 1.16rem;
}

.rules-card ol,
.rules-card ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: var(--space-3);
  color: var(--ink-700);
}

.reward-list {
  list-style: none;
  padding-left: 0;
}

.reward-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  border: 1px solid #eee6fb;
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  background: #fdfbff;
}

.reward-list strong {
  font-size: 0.88rem;
  color: var(--ink-900);
}

.reward-list span {
  font-size: 0.88rem;
  color: var(--ink-700);
  text-align: right;
}

.placeholder-tag {
  margin-top: var(--space-5);
  font-size: 0.85rem;
  color: var(--ink-500);
}

.card-icon {
  position: absolute;
  left: -16px;
  bottom: -16px;
  width: 60px;
  height: 60px;
  z-index: 3;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-icon--chat svg {
  fill: var(--green-500);
  stroke: #1d1d1b;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.card-icon--stars svg {
  fill: var(--pink-500);
}

.card-icon--stars {
  left: auto;
  bottom: auto;
  right: -16px;
  top: -16px;
}

.footer {
  background: #42c426;
  color: #f3fff5;
  padding: var(--space-10) 0;
}

.footer__content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  justify-content: space-between;
}

.footer h3,
.footer h4 {
  margin-bottom: var(--space-3);
}

.footer p {
  max-width: 38ch;
  color: #d7f2df;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #f3fff5;
  text-decoration: none;
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-link__icon {
  width: 1.4rem;
  height: 1.4rem;
  fill: currentColor;
  flex-shrink: 0;
}

.footer__legal {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(243, 255, 245, 0.35);
}

.footer__legal p {
  margin: 0;
  max-width: none;
  color: #f3fff5;
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 35, 0.7);
  backdrop-filter: blur(3px);
}

.modal__dialog {
  position: relative;
  width: min(100% - 2rem, 860px);
  margin: clamp(1rem, 4vh, 2rem) auto;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 70px rgba(9, 4, 24, 0.35);
  border: 1px solid #e8e2f6;
  padding: var(--space-8);
}

.modal__close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border: 1px solid #ddd3f2;
  background: #fff;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-900);
}

.modal__date {
  color: var(--ink-500);
  font-size: 0.9rem;
  margin-bottom: var(--space-3);
}

.modal__dialog h2 {
  margin-bottom: var(--space-6);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

.modal__content {
  display: grid;
  gap: var(--space-4);
  color: var(--ink-700);
}

.modal__content h3 {
  margin-top: var(--space-3);
  color: var(--ink-900);
  font-size: 1rem;
}

.modal__content p,
.modal__content li {
  font-size: 0.95rem;
}

.modal__content ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: var(--space-2);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 768px) {
  .hero {
    padding: 5.5rem 0;
  }

  .hero__grid {
    grid-template-columns: 1.04fr 0.96fr;
  }

  .ranking__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rank-card--meta {
    grid-column: 1 / -1;
  }

  #meta-slot {
    grid-column: 1 / -1;
  }

  .rules__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero {
    min-height: 85vh;
    display: grid;
    align-items: center;
  }

  .hero__shape--one {
    width: 520px;
    height: 520px;
  }

  .hero__shape--two {
    width: 430px;
    height: 430px;
    left: -160px;
  }

  .embed-slot {
    min-height: 405px;
    height: 405px;
  }

  .embed-frame {
    min-height: 405px;
  }
}

@media (max-width: 767px) {
  .hero-bolt {
    right: -6px;
    top: -52px;
    width: 106px;
    height: 106px;
  }

  .hero-bolt svg {
    width: 96px;
    height: 96px;
  }

  .modal__dialog {
    padding: var(--space-6);
  }

  .reward-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .reward-list span {
    text-align: left;
  }
}
