/* GIFTLAMMA 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;
  align-items: center;
  gap: 4px;
  padding: 0;
  color: var(--color-text);
}

.nav-toggle__label {
  font-size: 13px;
  font-weight: 700;
  line-height: 21px;
}

.nav-toggle__icon {
  display: block;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}

/* 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:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
}

.btn:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
  filter: brightness(0.94);
}

.btn--yellow {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 8px 20px rgba(255, 226, 52, 0.35);
}

.btn--yellow:hover {
  box-shadow: 0 10px 24px rgba(255, 226, 52, 0.45);
}

.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__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.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__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__stat-inline {
  display: none;
  margin: 0;
  align-items: baseline;
  gap: 4px;
}

.modal__stat-inline-value {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 28px;
  white-space: nowrap;
}

.modal__stat-inline-value strong {
  font-size: 20px;
  font-weight: 400;
}

.modal__stat-inline-label {
  font-family: var(--font-mono-stat);
  font-size: 13px;
  font-weight: 500;
  line-height: 16.5px;
}

.modal__illustration-mobile {
  display: none;
}

.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;
}

.form-footer {
  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 0 8px;
  color: var(--color-muted);
}

.form-success .btn--submit {
  margin-top: 4px;
}

@keyframes modal-sheet-in {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* 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;
    top: auto;
    left: auto;
    right: auto;
    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) {
  .page {
    padding: 8px 16px 0;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    background: var(--color-surface);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 12px 24px rgba(10, 10, 10, 0.12);
  }

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

  .header {
    position: relative;
    z-index: 100;
    flex-wrap: wrap;
    height: 62px;
    padding: 0 20px;
  }

  .nav-toggle {
    position: relative;
    z-index: 101;
    display: inline-flex;
  }

  .hero {
    height: 396px;
    min-height: 396px;
    margin-top: 36px;
  }

  .hero__visual {
    display: block;
    left: 69%;
    top: -30px;
    width: 185px;
    height: 246px;
  }

  .hero__visual img {
    height: 109.88%;
    width: 195.03%;
    left: -47.52%;
    top: -3.47%;
  }

  .hero__content {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    max-width: none;
    height: 100%;
    padding: 40px 16px 32px;
    box-sizing: border-box;
    gap: 0;
  }

  .hero__intro {
    max-width: 229px;
  }

  .hero__title {
    max-width: 218px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
  }

  .btn--hero {
    width: 100%;
    margin-top: 66px;
  }

  .hero__stats {
    gap: 16px;
    max-width: none;
    margin-top: 16px;
  }

  .stat__label {
    font-size: 10px;
    line-height: 12px;
  }

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

  .modal:not([hidden]) {
    align-items: flex-end;
    padding: 0;
  }

  .modal__dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    max-height: 90dvh;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    animation: modal-sheet-in 0.3s ease-out;
  }

  .modal__promo {
    flex-shrink: 0;
    height: 220px;
    min-height: 220px;
    padding: 24px;
    overflow: hidden;
  }

  .modal__eyebrow {
    font-size: 12px;
  }

  .modal__title {
    margin-top: 11px;
    max-width: 180px;
    font-size: 28px;
  }

  .modal__stats {
    display: none;
  }

  .modal__stat-inline {
    display: flex;
    margin-top: 12px;
  }

  .modal__illustration {
    position: absolute;
    top: 56px;
    right: 0;
    left: auto;
    flex: none;
    min-height: 0;
    width: 164px;
    height: 148px;
    margin: 0;
  }

  .modal__illustration-mobile {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
  }

  .modal__coin,
  .modal__arrow {
    display: none;
  }

  .modal__form-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: calc(90dvh - 220px);
    padding: 32px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .partner-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: auto;
  }

  .form-footer {
    margin-top: 94px;
    flex-shrink: 0;
    gap: 24px;
  }

  .form-fields {
    gap: 24px;
  }

  .field {
    display: flex;
    align-items: flex-end;
    height: 52px;
  }

  .field__input {
    padding: 0 0 8px;
  }

  .checkbox {
    gap: 10px;
  }

  .checkbox__link {
    text-decoration: underline;
  }

  .btn--submit {
    height: 60px;
    font-size: 16px;
  }

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

@media (max-width: 480px) {
  .section__title {
    font-size: 20px;
  }
}
