/* JOYDROP landing — design tokens from Figma */

:root {
  --color-primary: #4d12b9;
  --color-accent: #ffe234;
  --color-surface: #f4f5ff;
  --color-text: #0e0e0e;
  --color-muted: #858585;
  --color-white: #ffffff;
  --color-overlay: rgba(10, 10, 10, 0.82);
  --color-close-bg: #ebedf0;
  --color-border: rgba(0, 0, 0, 0.12);
  --radius-lg: 20px;
  --radius-md: 12px;
  --container: 1280px;
  --content: 1240px;
  --font: "Inter", system-ui, sans-serif;
  --font-display: "Bebas Neue", sans-serif;
  --font-mono-stat: "Space Grotesk", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.33;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px 0;
}

/* Logo */

.logo {
  font-size: 22px;
  font-weight: 800;
  font-style: italic;
  line-height: 30px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.logo--light {
  color: var(--color-white);
}

/* Header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
}

.nav a:hover {
  opacity: 0.7;
}

.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--color-text);
  border-radius: 1px;
}

.nav-toggle span {
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  line-height: 20px;
  border-radius: var(--radius-lg);
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn--yellow {
  background: var(--color-accent);
  color: var(--color-text);
}

.btn--dark {
  background: var(--color-text);
  color: var(--color-white);
  font-weight: 600;
}

.btn--hero {
  width: 295px;
  height: 60px;
  padding: 8px 20px;
  border-radius: var(--radius-lg);
}

.btn--block {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  width: auto;
  height: 60px;
  border-radius: var(--radius-md);
}

.btn--submit {
  width: 100%;
  height: 54px;
  font-weight: 700;
  border-radius: var(--radius-lg);
}

/* Hero — Figma: visual at left 61px, content at left 552px, height 620px */

.hero {
  position: relative;
  height: 620px;
  margin-top: 20px;
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero__visual {
  position: absolute;
  left: 61px;
  top: 0;
  width: 433px;
  height: 620px;
  overflow: hidden;
  pointer-events: none;
}

.hero__visual img {
  position: absolute;
  height: 102.74%;
  width: 195.03%;
  max-width: none;
  left: -47.52%;
  top: 0;
}

.hero__content {
  position: absolute;
  left: 552px;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 640px;
  color: var(--color-white);
}

.hero__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

.hero__title {
  margin: 0;
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
}

.hero__stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 393px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__value {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 32px;
}

.stat__label {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
}

/* Main sections */

.main {
  display: flex;
  flex-direction: column;
  gap: 80px;
  margin-top: 80px;
}

.section__title {
  margin: 0 0 24px;
  font-size: 24px;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* Cards */

.cards {
  display: grid;
  gap: 20px;
}

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

.card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
}

.card--yellow {
  align-items: flex-start;
  height: 168px;
  overflow: hidden;
  background: var(--color-accent);
}

.card--surface {
  flex-direction: column;
  gap: 24px;
  min-height: 252px;
  background: var(--color-surface);
  padding: 24px 24px 32px;
}

.cards--value .card--surface {
  min-height: 252px;
}

.card__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

.card__icon--wink {
  object-fit: contain;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.card__heading {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
}

.card__heading--lg {
  font-size: 20px;
  line-height: 32px;
}

.card__text {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
}

/* Partners — Figma: 295×140 cards */

.partners {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.partners__card {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Win-win — Figma: 610×601 panels */

.win-win {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.win-win__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 601px;
  padding: 24px 24px 96px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
}

.win-win__intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
  background: var(--color-white);
  border-radius: var(--radius-lg);
}

.win-win__heading {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 32px;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.benefit-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 16px;
  line-height: 24px;
  border-bottom: 0.686px solid var(--color-border);
}

.benefit-list li::after {
  content: "→";
  flex-shrink: 0;
  font-family: var(--font-mono-stat);
  font-size: 12px;
  line-height: 16px;
  opacity: 0.4;
}

/* Footer */

.footer {
  margin-top: 80px;
  padding: 26px 40px 0;
  background: var(--color-text);
  color: var(--color-white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  border: 1px solid var(--color-white);
  border-radius: 10px;
}

.social-link--wide {
  padding: 0 13px;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 17px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 18px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__legal a:nth-child(3) {
  font-size: 13px;
  line-height: 19.5px;
}

.footer__legal a:hover {
  opacity: 0.8;
}

/* Modal */

.modal[hidden] {
  display: none;
}

.modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.modal__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 344px 476px;
  width: 820px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-lg);
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 9px;
  background: var(--color-close-bg);
  border-radius: 50%;
}

.modal__close:hover {
  opacity: 0.85;
}

.modal__promo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 575px;
  padding: 40px;
  background: var(--color-primary);
  color: var(--color-white);
}

.modal__eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
}

.modal__title {
  margin: 24px 0 0;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
}

.modal__illustration {
  position: relative;
  flex: 1;
  min-height: 205px;
  margin-top: 24px;
}

.modal__coin {
  position: absolute;
  width: 106px;
  height: 106px;
  object-fit: contain;
  object-position: bottom;
}

.modal__coin--left {
  left: 12px;
  bottom: 8px;
  transform: scaleY(-1) rotate(180deg);
}

.modal__coin--center {
  left: 57px;
  bottom: 49px;
}

.modal__arrow {
  position: absolute;
  left: 129px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 226px;
  object-fit: contain;
  object-position: left center;
}

.modal__stats {
  display: flex;
  gap: 24px;
  margin-top: auto;
}

.modal-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 28px;
}

.modal-stat__value small {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 28px;
}

.modal-stat__label {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono-stat);
  font-size: 11px;
  font-weight: 500;
  line-height: 16.5px;
}

.modal__form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 575px;
  padding: 40px;
}

.partner-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.field {
  display: block;
}

.field__input {
  width: 100%;
  padding: 22px 0 8px;
  font: inherit;
  font-size: 15px;
  line-height: 22.5px;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-muted);
  border-radius: 0;
  outline: none;
}

.field__input::placeholder {
  color: var(--color-muted);
}

.field__input:focus {
  border-bottom-color: transparent;
  box-shadow: inset 0 -2px 0 0 var(--color-accent);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 20px;
}

.checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1px solid var(--color-muted);
  border-radius: 4px;
}

.checkbox input:checked + .checkbox__box {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 2px var(--color-white);
}

.checkbox__text {
  color: var(--color-muted);
}

.checkbox__link {
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.form-error {
  margin: 0;
  font-size: 13px;
  color: #c0392b;
}

.form-success {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.form-success__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.form-success__text {
  margin: 0;
  color: var(--color-muted);
}

/* Responsive */

@media (max-width: 1080px) {
  .hero__visual {
    left: 20px;
    width: 320px;
  }

  .hero__content {
    left: auto;
    right: 32px;
    max-width: calc(100% - 360px);
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 520px;
  }

  .hero__visual {
    display: none;
  }

  .hero__content {
    position: static;
    max-width: none;
    padding: 48px 32px;
  }

  .cards--3,
  .partners,
  .win-win {
    grid-template-columns: 1fr;
  }

  .card--yellow {
    height: auto;
    min-height: 168px;
  }

  .win-win__panel {
    min-height: auto;
    padding-bottom: 96px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--color-surface);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .header.is-open .nav {
    display: flex;
  }

  .header {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  .hero__title {
    font-size: 36px;
  }

  .btn--hero {
    width: 100%;
  }

  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal__dialog {
    grid-template-columns: 1fr;
    width: 100%;
    overflow: auto;
  }

  .modal__promo {
    min-height: auto;
    padding: 32px 24px 24px;
  }

  .modal__form-wrap {
    min-height: auto;
    padding: 24px;
  }

  .modal__close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .page {
    padding: 8px 12px 0;
  }

  .hero__title {
    font-size: 28px;
  }

  .section__title {
    font-size: 20px;
  }
}
