/* ===== FONTS ===== */
@font-face {
  font-family: 'Mont';
  src: url('assets/fonts/Mont-Regular.woff2') format('woff2'),
       url('assets/fonts/Mont-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Mont';
  src: url('assets/fonts/Mont-SemiBold.woff2') format('woff2'),
       url('assets/fonts/Mont-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('assets/fonts/GothamProRegular.woff') format('woff'),
       url('assets/fonts/GothamProRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('assets/fonts/GothamProMedium.woff') format('woff'),
       url('assets/fonts/GothamProMedium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('assets/fonts/GothamProItalic.woff') format('woff'),
       url('assets/fonts/GothamProItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }

:root {
  --coral: #FF4669;
  --dark: #1A1924;
  --white: #FFFFFF;
  --input-bg: #E5E6EB;
  --placeholder: #6F7482;
  --placeholder-light: #B8BCCA;
  --pink-bg: #FFF3F5;
  --pink-border: #FFD8DF;
  --heading: 'Mont', sans-serif;
  --body: 'Gotham Pro', sans-serif;
}

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.2;
  color: #000;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Force all SVG images to respect their container sizing */
img[src$=".svg"] {
  display: inline-block;
  max-width: none;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  padding: 20px 100px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
}

.header__logos {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header__logo--quarks { width: 122px; height: auto; }
.header__logo--sens { width: 113px; height: auto; }
.header__x { width: 13px; height: 13px; }

.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #000;
  color: var(--white);
  font-family: var(--body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  padding: 8px 43px;
  border-radius: 10px;
  height: 40px;
  white-space: nowrap;
}

.header__line {
  margin-top: 20px;
  height: 1px;
  background: var(--coral);
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  text-align: center;
  margin-top: -75px;
  padding: 175px 100px 60px;
  overflow-x: clip;
  overflow-y: visible;
  min-height: 560px;
}

.hero__bg {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 2122px;
  max-width: none;
  pointer-events: none;
  z-index: 0;
  display: block;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero__title {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 90px;
  line-height: 1;
  letter-spacing: -4px;
}

.hero__subtitle {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
}

.hero__desc {
  font-size: 16px;
  line-height: 1.2;
  max-width: 410px;
  margin-top: 30px;
}

/* ===== FLOATING EMOJI CARDS ===== */
.emoji-card {
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid var(--pink-border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.emoji-card img {
  width: 53px;
  height: 53px;
  object-fit: contain;
  display: block;
}

.emoji-card--hands  { left: 11%;  top: 50px;  transform: rotate(5.79deg); }
.emoji-card--hearts { left: 55%;  top: -10px; transform: rotate(-8.13deg); }
.emoji-card--girls  { left: 18%;  top: 270px; transform: rotate(-4.3deg); }
.emoji-card--hogs   { left: 73%;  top: 270px; transform: rotate(6.76deg); }
.emoji-card--love   { left: 40%;  top: 390px; transform: rotate(4.08deg); }

/* ===== HOW IT WORKS ===== */
.how {
  position: relative;
  z-index: 2;
  max-width: 701px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.how__title, .how__subtitle {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
}

.how__desc {
  font-size: 24px;
  line-height: 1.2;
  max-width: 553px;
  margin-top: 25px;
}

.how__line { margin: 20px 0; }
.how__line img { display: block; width: 1px; }

.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.step__num { width: 45px; height: 45px; display: block; }

.step__text {
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  width: 200px;
}
.step__text--wide { width: 261px; }

.step__line { margin: 18px 0; }
.step__line img { display: block; width: 1px; height: 50px; }

/* ===== DATA NOTE ===== */
.data-note {
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  max-width: 391px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.arrow-down { text-align: center; margin-bottom: 40px; }
.arrow-down img { display: inline-block; width: 57px; height: auto; }

/* ===== CARDS SECTION ===== */
.cards {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 100px 40px;
}

.cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1080px;
  margin: 0 auto;
}

/* ===== CARD ===== */
.card {
  position: relative;
  background: var(--pink-bg);
  border: 1px solid var(--white);
  padding: 38px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  gap: 0;
}

.card__emoji {
  position: absolute;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border: 0.44px solid var(--pink-border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.card__emoji img { width: 23px; height: 23px; object-fit: contain; display: block; }

.card__emoji--tl { left: -12px; top: 160px; transform: rotate(-12deg); }
.card__emoji--tr { right: -16px; top: -10px; transform: rotate(8.4deg); }
.card__emoji--br { right: -20px; bottom: 90px; transform: rotate(14.2deg); }

/* White inner card (left card) */
.card__inner {
  background: var(--white);
  border-radius: 23px;
  padding: 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Photo upload */
.card__photo {
  width: 100%;
  aspect-ratio: 431 / 322;
  background: var(--input-bg);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card__photo-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}

.card__photo-icon { width: 60px; height: 60px; display: block; }

.card__photo-label {
  font-weight: 500;
  font-size: 14px;
}

.card__photo-preview {
  width: 100%; height: 100%;
  object-fit: cover; display: none;
}
.card__photo--has-image .card__photo-placeholder { display: none; }
.card__photo--has-image .card__photo-preview { display: block; }

/* Swipe buttons */
.card__swipe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  margin-top: -28px;
  position: relative; z-index: 3;
}

.card__swipe-btn {
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.card__swipe-btn--no {
  width: 55px; height: 55px;
  background: #7D7D7D;
  box-shadow: 0 7.6px 13px #DDDEE5;
}
.card__swipe-btn--no img { width: 19px; height: 19px; display: block; }

.card__swipe-btn--yes {
  width: 71px; height: 71px;
  background: var(--coral);
  box-shadow: 0 7.6px 13px #DDDEE5;
}
.card__swipe-btn--yes img { width: 39px; height: 33px; display: block; }

/* Form fields */
.card__row {
  display: flex; gap: 40px;
  margin-top: 16px;
}
.card__row .card__field { margin-top: 0; flex: 1; }

.card__field {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 12px;
}

.card__label {
  font-family: var(--heading);
  font-weight: 400; font-size: 14px; line-height: 1.2;
}
.card__label--pink { color: var(--coral); }
.card__label--gray { color: var(--placeholder); }
.card__req { color: var(--coral); }

.card__input {
  width: 100%;
  padding: 12px 10px;
  background: var(--input-bg);
  border: none; border-radius: 4px;
  font-family: var(--body);
  font-style: italic; font-size: 14px; line-height: 1.2;
  color: #000; resize: none;
}
.card__input::placeholder { color: var(--placeholder); }
.card__input:focus { outline: 2px solid var(--coral); outline-offset: -2px; }

textarea.card__input { field-sizing: content; min-height: 58px; }

.card__input--tall { min-height: 69px; }
.card__input--sm   { min-height: 58px; }
.card__input--md   { min-height: 97px; }
.card__input--lg   { min-height: 142px; }
.card__input--ig   { min-height: 68px; width: 100%; }

/* Card branding */
.card__brand {
  display: flex; align-items: center; justify-content: center;
  gap: 19px; margin-top: auto; padding-top: 24px;
}
.card__brand-logo:first-child { width: 78px; height: auto; }
.card__brand-logo:last-child  { width: 72px; height: auto; }
.card__brand-x { width: 8px; height: 8px; }

/* Right card: white field boxes */
.card__field-box {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 12px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.card__field-box + .card__field-box { margin-top: 12px; }
.card__field-box .card__input { background: var(--input-bg); }

/* Right card specifics */
.card--right .card__field:first-child { margin-top: 0; }

.card__bottom {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-top: 20px;
}

.card__bottom-title {
  font-family: var(--heading);
  font-weight: 400; font-size: 18px;
  line-height: 1.06; max-width: 200px;
}
.card__bottom-hint { font-size: 14px; margin-top: 8px; }

.card__bottom-right { display: flex; flex-direction: column; gap: 4px; }

.card__ig-box {
  background: var(--white);
  border-radius: 11px;
  padding: 8px;
  width: 130px;
}

.card__divider { margin-top: 16px; height: 1px; background: var(--placeholder-light); }

.card__disclaimer {
  font-style: italic; font-size: 11px;
  line-height: 1.2; color: var(--coral);
  margin-top: 12px;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  width: 243px; height: 50px;
  background: var(--coral); color: var(--white);
  border: none; border-radius: 10px;
  font-family: var(--body); font-weight: 500;
  font-size: 16px; line-height: 24px;
  cursor: pointer; margin-top: 40px;
}
.submit-btn:hover { background: #e63d5c; }
.submit-btn__icon { width: 24px; height: 24px; display: block; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  gap: 31px; height: 60px;
  font-size: 12px; line-height: 1.3;
  margin-top: 40px;
}

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; }
.modal--open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.modal__dialog {
  position: relative; background: var(--white);
  border-radius: 20px; padding: 36px;
  max-width: 400px; width: 90%; text-align: center;
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn { from { opacity:0; transform: scale(0.95); } to { opacity:1; transform: scale(1); } }
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border: none;
  background: #f0f0f0; border-radius: 50%;
  font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal__title { font-family: var(--heading); font-weight: 700; font-size: 24px; margin-bottom: 8px; }
.modal__subtitle { font-size: 14px; color: var(--placeholder); margin-bottom: 24px; }
.modal__qr { display: flex; align-items: center; justify-content: center; padding: 20px; margin-bottom: 20px; }
.modal__qr canvas { max-width: 100%; height: auto; }
.modal__btn {
  width: 100%; height: 50px;
  background: var(--coral); color: var(--white);
  border: none; border-radius: 10px;
  font-family: var(--body); font-weight: 500; font-size: 16px; cursor: pointer;
}
.modal__btn:hover { background: #e63d5c; }

/* ===== RESPONSIVE ===== */

@media (max-width: 1200px) {
  .header { padding: 16px 40px 0; }
  .hero { padding: 150px 40px 60px; }
  .cards { padding: 0 20px 40px; }
  .cards__grid { grid-template-columns: 1fr; max-width: 540px; }
}

@media (max-width: 768px) {
  /* Header */
  .header { padding: 12px 16px 0; }
  .header__logos { gap: 12px; }
  .header__logo--quarks { width: 93px; }
  .header__logo--sens { width: 86px; }
  .header__x { width: 9px; height: 9px; }
  .header__cta {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 0;
    line-height: 0;
    gap: 0;
    border-radius: 10px;
  }
  .header__cta svg { width: 18px; height: 18px; }

  /* Hero */
  .hero {
    margin-top: -55px;
    padding: 135px 0 40px;
    min-height: 620px;
    overflow-x: clip;
    overflow-y: visible;
  }
  .hero__bg { width: 900px; top: -30px; }
  .hero__content { max-width: 344px; margin: 0 auto; }
  .hero__title { font-size: 54px; letter-spacing: -2.16px; }
  .hero__subtitle { font-size: 24px; }
  .hero__desc { font-size: 16px; max-width: 264px; }

  /* Emoji cards — visible on mobile, smaller */
  .emoji-card {
    width: 63px;
    height: 63px;
    border-radius: 10px;
  }
  .emoji-card img { width: 33px; height: 33px; }
  .emoji-card--hands  { left: 5%;  top: 35px; }
  .emoji-card--hearts { left: 48%; top: 38px; }
  .emoji-card--girls  { left: 2%;  top: 215px; }
  .emoji-card--hogs   { left: 67%; top: 165px; }
  .emoji-card--love   { left: 37%; top: 480px; }

  /* How section */
  .how { padding: 0 16px 30px; }
  .how__title, .how__subtitle { font-size: 24px; }
  .how__desc { font-size: 18px; }

  .data-note { font-size: 14px; }

  /* Cards */
  .cards { padding: 0 0 20px; }
  .cards__grid { max-width: 100%; }
  .card { padding: 20px; }
  .card__inner { padding: 12px; border-radius: 16px; }
  .card__emoji { display: none; }
  .card__swipe { padding: 0 20px; }
  .card__swipe-btn--no { width: 44px; height: 44px; }
  .card__swipe-btn--no img { width: 15px; height: 15px; }
  .card__swipe-btn--yes { width: 56px; height: 56px; }
  .card__swipe-btn--yes img { width: 30px; height: 26px; }
  .card__swipe { margin-top: -22px; }

  .card__row { flex-direction: column; gap: 0; }
  .card__ig-box { width: 100%; }
  .card__bottom { flex-direction: column; gap: 16px; }

  .submit-btn { width: 100%; max-width: 320px; }

  /* Footer */
  .footer {
    gap: 0;
    font-size: 10px;
    height: 47px;
    padding: 0 16px;
    justify-content: space-between;
  }
}
