/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue: #1e0795;
  --blue-light: rgba(30, 7, 149, 0.36);
  --white: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--blue);
  overflow-x: hidden;
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Tickets have their own transform so only animate opacity */
.ticket.fade-in { transform: none; transition: opacity 1s ease-out; }
.ticket.fade-in.visible { transform: none; }

/* Slide down from top */
.slide-down {
  opacity: 0;
  transform: translateY(-60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-down.visible {
  opacity: 1;
  transform: translateY(0);
}
.slide-down.delay-1 { transition-delay: 0.25s; }

/* ── Hover ── */
.btn-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.btn-hover:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(30, 7, 149, 0.2);
}
.btn-hover:active {
  transform: translateY(0) scale(0.98);
}

/* ══════════════════════════════════════════
   DESKTOP — Figma canvas 1920×1080
   All positions in % of viewport width/height
   ══════════════════════════════════════════ */
.desktop {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
}

/* ── Tickets — overflow edges of screen ── */
.ticket {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
/* Brown — top right, poking from right edge
   Figma: x=1051 y=142 w=488 h=558 in 1920×1080 */
.ticket-brown {
  width: 17.8vw;
  right: -2vw;
  top: 2%;
}
/* Green — bottom right, poking from right edge
   Figma: x=1238 y=762 w=638 h=619 */
.ticket-green {
  width: 23.2vw;
  right: 2vw;
  bottom: -15%;
}
/* Purple — bottom left, poking from left edge
   Figma: x=39 y=834 w=465 h=563 */
.ticket-purple {
  width: 17vw;
  left: -4vw;
  bottom: -5%;
}

/* ── Logo — Figma: x=157 y=147 ── */
.desktop .logo {
  position: absolute;
  left: 9.5%;
  top: 13%;
  width: clamp(180px, 16vw, 301px);
  height: auto;
  z-index: 2;
}

/* ── Headline — Figma: x=183 y=294 w=678 ── */
.desktop .headline {
  position: absolute;
  left: 9.5%;
  top: 27%;
  width: 35%;
  font-size: clamp(32px, 3.33vw, 64px);
  font-weight: 700;
  line-height: 1.22;
  z-index: 2;
}

/* ── Subtext — Figma: x=183 y=520 w=559 ── */
.desktop .subtext {
  position: absolute;
  left: 9.5%;
  top: 48%;
  width: 29%;
  font-size: clamp(14px, 1.04vw, 20px);
  font-weight: 600;
  line-height: 1.4;
  z-index: 2;
}

/* ── Store badges — Figma: x=184 y=933 ── */
.desktop .store-badges {
  position: absolute;
  left: 9.5%;
  bottom: 8%;
  display: flex;
  gap: 16px;
  z-index: 5;
}

/* ── Blue card — Figma: x=867 y=283 w=869 h=515
   Right edge at 1736/1920 = 90.4%, NOT at screen edge.
   Full 64px border-radius on all corners. ── */
.cta-card {
  position: absolute;
  left: 45.2%;       /* 867/1920 */
  top: 26%;           /* 283/1080 */
  width: 45.3%;       /* 869/1920 */
  height: 48%;        /* 515/1080 */
  background: var(--blue);
  border-radius: 64px;
  z-index: 2;
  display: flex;
  align-items: center;
}
.cta-card-content {
  padding-left: clamp(40px, 5%, 75px);
  z-index: 3;
}
.cta-subtitle {
  color: var(--white);
  font-size: clamp(14px, 1.04vw, 20px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}
.cta-title {
  color: var(--white);
  font-size: clamp(18px, 1.46vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
}
.cta-label {
  color: var(--white);
  font-size: clamp(11px, 0.73vw, 14px);
  margin-bottom: 8px;
}
.email-input-row {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 26px;
  height: 48px;
  padding: 0 6px 0 20px;
  margin-bottom: 20px;
  width: 265px;
}
.email-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--blue);
  background: transparent;
}
.email-input::placeholder { color: var(--blue-light); }
.email-submit {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.email-submit img { width: 12px; height: 12px; }
.cta-or {
  color: var(--white);
  font-size: clamp(11px, 0.73vw, 14px);
  margin-bottom: 10px;
}
.social-buttons { display: flex; gap: 12px; }
.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: none;
  border-radius: 26px;
  padding: 6px 20px;
  height: 41px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--blue);
  cursor: pointer;
}
.social-btn img { width: 24px; height: 24px; object-fit: contain; }

/* ── Phone — Figma: x=1187 y=131 w=661 h=846
   661/1920 = 34.4vw width, positioned at 61.8% from left ── */
.phone-mockup {
  position: absolute;
  left: 61.8%;        /* 1187/1920 */
  top: 12%;           /* 131/1080 */
  z-index: 4;
}
.phone-mockup img {
  width: 34.4vw;      /* 661/1920 — scales with viewport width */
  height: auto;
  display: block;
}

/* ── Badge images ── */
.badge-link {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
}
.badge-link img {
  height: clamp(50px, 3.85vw, 74px);
  width: auto;
  display: block;
}

/* ── Neon Code logo — bottom right ── */
.neoncode-logo {
  position: absolute;
  right: 3%;
  bottom: 3%;
  z-index: 5;
}
.neoncode-logo img {
  width: 160px;
  height: 90px;
  object-fit: contain;
}

/* ── Footer links ── */
.desktop .footer-links {
  position: absolute;
  right: 3%;
  bottom: 1%;
  display: flex;
  gap: 20px;
  z-index: 5;
}
.footer-links a {
  color: var(--blue);
  text-decoration: none;
  font-size: 11px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-links a:hover {
  opacity: 1;
}

/* ── Mobile hidden on desktop ── */
.mobile { display: none; }


/* ══════════════════════════════════════════
   MOBILE — below 1024px
   Matches Figma mobile frame (360px wide)
   ══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .desktop { display: none; }
  .mobile {
    display: block;
    width: 100%;
  }

  .mobile-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 10px;
  }
  .mobile-hero::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 45%;
    background: var(--blue);
    border-radius: 48px;
    z-index: 0;
  }

  .mobile .logo {
    display: block;
    width: clamp(150px, 45vw, 250px);
    height: auto;
    margin: 32px auto 8px;
  }

  .mobile .headline {
    font-size: clamp(22px, 6.5vw, 36px);
    font-weight: 700;
    line-height: 1.18;
    text-align: center;
    color: var(--blue);
    margin-bottom: 20px;
    padding: 0 10px;
  }

  /* ── Phone screens — stacked vertically, on top of blue block ── */
  .mobile-phones {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    z-index: 2;
    padding: 10px 0 40px;
  }
  .m-phone {
    width: 65%;
    max-width: 260px;
    background: none;
  }

  /* ── Badges wrapper with tickets ── */
  .mobile-badges-wrapper {
    position: relative;
    padding: 10px 20px 20px;
    overflow: visible;
  }

  /* ── Mini tickets on mobile — flanking store badges ── */
  .m-ticket {
    position: absolute;
    pointer-events: none;
    z-index: 1;
  }
  .m-ticket-brown {
    width: 28vw;
    top: -6vw;
    left: -6vw;
    transform: rotate(15deg);
  }
  .m-ticket-green {
    width: 26vw;
    top: -6vw;
    right: -6vw;
    transform: rotate(-20deg);
  }

  /* ── Store badges — centered ── */
  .mobile .store-badges {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .mobile .badge-link img {
    height: 48px;
    width: auto;
  }

  /* ── Subtext ── */
  .mobile .subtext {
    font-size: clamp(14px, 4vw, 20px);
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    padding: 16px 24px 30px;
  }

  /* ── CTA card ── */
  .mobile .cta-card {
    position: relative;
    right: auto;
    top: auto;
    left: auto;
    width: calc(100% - 24px);
    height: auto;
    border-radius: 36px;
    padding: 36px 28px;
    margin: 0 auto 24px;
    display: block;
  }
  .mobile .cta-card-content {
    position: relative;
    left: auto;
    top: auto;
    padding: 0;
    transform: none;
  }
  .mobile .cta-subtitle { font-size: 16px; }
  .mobile .cta-title { font-size: 22px; margin-bottom: 20px; }
  .mobile .email-input-row { width: 100%; max-width: 280px; }

  /* ── Neon Code logo ── */
  .mobile .neoncode-logo {
    position: relative;
    right: auto;
    bottom: auto;
    text-align: center;
    padding: 0 20px 30px;
  }
  .mobile .neoncode-logo img {
    width: 110px;
    height: auto;
  }
  .mobile .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 20px 30px;
  }
  .mobile .footer-links a {
    font-size: 12px;
  }
}
