/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  color: #000;
  background: #fff;
  overflow-x: hidden;
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
  user-select: none;
  -webkit-user-select: none;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  height: 936px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-gradient,
.hero-bg-spotlight,
.hero-bg-gloss,
.hero-bg-noise,
.hero-bg-noise-glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg-gradient {
  background-image: linear-gradient(180deg, #499DFE 0%, #2FA9FD 9%, #2AACFD 15%, #2BAAFD 20%, #2EA5FD 30%, #4C77FC 66%, #676AFE 100%);
}

.hero-bg-spotlight {
  opacity: 0.47;
  mix-blend-mode: overlay;
  background-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.00) 0%, #000000 72%);
}

.hero-bg-gloss {
  opacity: 0.8;
  mix-blend-mode: plus-lighter;
  filter: blur(32px);
  background-image: linear-gradient(180deg,
    rgba(255,255,255,0.60) 0%,
    rgba(255,255,255,0.24) 13%,
    rgba(255,255,255,0.17) 22%,
    rgba(255,255,255,0.10) 31%,
    rgba(255,255,255,0.03) 39%,
    rgba(255,255,255,0.00) 46%,
    rgba(0,0,0,0.00) 82%,
    rgba(255,255,255,0.10) 100%
  );
}

.hero-bg-noise {
  opacity: 0.6;
  mix-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 128px 128px;
}

.hero-bg-noise-glow {
  opacity: 0;
  mix-blend-mode: plus-lighter;
  background-repeat: repeat;
  background-size: 128px 128px;
  filter: blur(1px);
  -webkit-mask-image: radial-gradient(circle 360px at var(--mx, -999px) var(--my, -999px),
    black       0%,
    rgba(0,0,0,0.98) 8%,
    rgba(0,0,0,0.93) 16%,
    rgba(0,0,0,0.85) 24%,
    rgba(0,0,0,0.74) 32%,
    rgba(0,0,0,0.61) 40%,
    rgba(0,0,0,0.48) 50%,
    rgba(0,0,0,0.34) 60%,
    rgba(0,0,0,0.21) 70%,
    rgba(0,0,0,0.10) 80%,
    rgba(0,0,0,0.03) 90%,
    transparent 100%
  );
  mask-image: radial-gradient(circle 360px at var(--mx, -999px) var(--my, -999px),
    black       0%,
    rgba(0,0,0,0.98) 8%,
    rgba(0,0,0,0.93) 16%,
    rgba(0,0,0,0.85) 24%,
    rgba(0,0,0,0.74) 32%,
    rgba(0,0,0,0.61) 40%,
    rgba(0,0,0,0.48) 50%,
    rgba(0,0,0,0.34) 60%,
    rgba(0,0,0,0.21) 70%,
    rgba(0,0,0,0.10) 80%,
    rgba(0,0,0,0.03) 90%,
    transparent 100%
  );
  transition: opacity 0.4s ease;
}

.hero-content {
  position: absolute;
  z-index: 1;
  inset: 0;
}

/* Centered wrapper for hero content block */
.hero-inner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 919px;
  height: 810px;
  top: calc(50% - 405px);
}

@media (min-width: 1200px) {
  .hero-inner {
    transform: translateX(calc(-50% + 51px));
  }
}

/* Hero left column: logo, heading, badge stacked */
.hero-left {
  position: absolute;
  left: 20px;
  top: calc(50.7407% - 215px);
  height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 372px;
}

/* Hero heading with glow layers */
.hero-heading-wrapper {
  position: relative;
  display: block;
  width: 372px;
  margin-top: 33px;
}

.hero-heading {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 200;
  font-size: 102px;
  line-height: 0.8em;
  letter-spacing: -0.04em;
  text-align: center;
  background-image: linear-gradient(309deg, rgb(255, 255, 255) 15%, rgb(181, 255, 255) 47%, rgb(207, 255, 255) 82%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding: 12px 8px;
  margin: -12px -8px;
}

.hero-heading--glow1 {
  position: absolute;
  inset: 0;
  filter: blur(3px);
  opacity: 0.27;
}

.hero-heading--glow2 {
  position: absolute;
  inset: 0;
  filter: blur(12px);
  opacity: 0.24;
}

/* Hero phone mockup */
.hero-phone {
  position: absolute;
  right: 13px;
  top: -14px;
  bottom: -34px;
  width: 601px;
}

.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-logo {
  width: 101px;
  height: 47px;
}

.hero-logo-img {
  width: 100%;
}

.app-store-badge {
  display: block;
  width: 160px;
  height: 64px;
  margin-top: 40px;
  transform-origin: center;
  overflow: visible;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
  .app-store-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.app-store-badge:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.app-store-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== ANIMATE ON SCROLL ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.hero-content [data-animate]:nth-child(1) { transition-delay: 0s; }
.hero-content [data-animate]:nth-child(2) { transition-delay: 0.2s; }

/* Feature section scroll animation */
.feature-row,
.feature-row--reverse {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.52, 0.14, 0.18, 0.84),
              transform 0.6s cubic-bezier(0.52, 0.14, 0.18, 0.84);
}

.feature-row.visible,
.feature-row--reverse.visible {
  opacity: 1;
  transform: scale(1);
}

/* ===== INTRO SECTION ===== */
.intro-section {
  display: flex;
  justify-content: center;
  padding: 136px 40px;
}

.intro-text {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 300;
  font-size: 34px;
  line-height: 37px;
  text-align: left;
  width: 626px;
  max-width: calc(100vw - 80px);
  background-image: linear-gradient(90deg, rgb(129, 100, 213) 0%, rgb(103, 101, 226) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== FEATURE SECTIONS ===== */
.feature-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 599px;
  margin-bottom: 50px;
}


.feature-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  max-width: 740px;
  width: 100%;
}

.feature-text {
  width: 405px;
  flex-shrink: 0;
  overflow: visible;
}

.feature-row--reverse .feature-text {
  text-align: left;
}

.feature-row:not(.feature-row--reverse) .feature-text {
  text-align: right;
}

.feature-label {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 2.9px;
  line-height: 25px;
  color: rgba(0, 0, 0, 0.4);
  margin-bottom: 5px;
}

.feature-heading {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 35px;
  letter-spacing: -0.02em;
  background-image: linear-gradient(90deg, rgb(129, 100, 213) 0%, rgb(103, 101, 226) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  overflow: visible;
  margin-bottom: 10px;
  padding: 8px 4px;
  margin-top: -8px;
  margin-left: -4px;
  margin-right: -4px;
}

.feature-body {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 25px;
  letter-spacing: 0.4px;
  color: rgba(0, 0, 0, 0.45);
}

.feature-row--reverse {
  flex-direction: row-reverse;
}

.feature-media {
  flex-shrink: 0;
  width: 305px;
  height: 601px;
  border-radius: 12px;
  corner-shape: squircle;
  overflow: hidden;
}

.feature-media video {
  width: 305px;
  height: 601px;
  display: block;
  object-fit: cover;
}

.feature-media img {
  width: 305px;
  height: 601px;
  object-fit: cover;
}

.feature-media--image {
  width: 305px;
  height: 601px;
  overflow: visible;
  border-radius: 0;
}

.feature-media--image img {
  border-radius: 0;
}


/* ===== CTA / PURCHASE CARD ===== */
.cta-section {
  display: flex;
  justify-content: center;
  padding: 150px 40px 0;
  position: relative;
  z-index: 1;
}

.cta-section + .site-footer {
  margin-top: 110px;
}

.purchase-card {
  width: 389px;
  height: 418px;
  padding: 0;
  border-radius: 29px;
  corner-shape: squircle;
  background: #f9f9f9e6;
  box-shadow:
    0 1px 1px #00000008,
    0 2px 6px #00000012,
    0 6px 16px #0000000d,
    0 0 1px #0000004d,
    inset 0 1px 1px #fff;
  position: relative;
  overflow: hidden;
}

.purchase-tagline {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 300;
  font-size: 31px;
  line-height: 30px;
  letter-spacing: -0.02em;
  text-align: center;
  width: 226px;
  position: absolute;
  bottom: 115px;
  left: 50%;
  transform: translateX(-50%);
  background-image: linear-gradient(90deg, rgb(84, 84, 84) 0%, rgb(105, 105, 105) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 6px 4px;
  margin: -6px -4px;
}

.purchase-title {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 85px;
  letter-spacing: -0.9px;
  text-align: center;
  white-space: nowrap;
  position: absolute;
  top: 128px;
  left: 50%;
  transform: translateX(-50%);
  background-image: linear-gradient(90deg, rgb(129, 100, 213) 23%, rgb(103, 101, 226) 83%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.purchase-icon {
  width: 90px;
  height: 90px;
  position: absolute;
  top: 44px;
  left: 50%;
  transform: translateX(-50%);
}

.purchase-icon img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  corner-shape: squircle;
  filter:
    drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1))
    drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05))
    drop-shadow(0 4px 4px rgba(0, 0, 0, 0.02));
}

.purchase-button {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) scale(1);
  width: 361px;
  height: 51px;
  border-radius: 26px;
  corner-shape: squircle;
  background: linear-gradient(rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  box-shadow:
    0 1px 1px rgba(0, 0, 0, 0.08),
    0 2px 5px rgba(0, 0, 0, 0.03),
    0 0 0 1px rgba(0, 0, 0, 0.03),
    inset 0 -2px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.44);
  will-change: transform;
  overflow: visible;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
  .purchase-button:hover {
    transform: translateX(-50%) translateY(2px) scale(1.01);
    opacity: 0.9;
  }
}

.purchase-button:active {
  transform: translateX(-50%) translateY(2px) scale(0.95);
  opacity: 0.8;
}

.purchase-button span {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.4px;
  line-height: 25px;
  background-image: linear-gradient(90deg, rgb(129, 100, 213) 0%, rgb(103, 101, 226) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Expand the background-clip region beyond the line-height box so
     ascenders/descenders aren't clipped. Negative margin compensates. */
  padding: 6px 4px;
  margin: -6px -4px;
}

.purchase-description {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.45);
  max-width: 300px;
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  padding: 0 0 40px;
  overflow: visible;
}

.footer-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 513px;
  background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.03) 21% 74%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.footer-bar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1156px;
  width: 96%;
  margin: 0 auto;
  padding-top: 0;
}

.footer-links-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.footer-link {
  font-family: 'SF Pro Display', -apple-system, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.4px;
  line-height: 25px;
  color: rgba(0, 0, 0, 0.4);
  display: inline-block;
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (hover: hover) {
  .footer-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

.footer-link:active {
  transform: scale(0.95);
  opacity: 0.8;
}

.footer-copyright {
  text-align: left;
}

/* ===== FOOTER PADDING: kicks in when viewport is narrower than the footer's max-width ===== */
@media (min-width: 810px) and (max-width: 1156px) {
  .footer-bar {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* ===== RESPONSIVE: TABLET (810px - 1199px) ===== */
@media (min-width: 810px) and (max-width: 1199px) {
  .hero-inner {
    transform: translateX(calc(-50% + 28px));
  }

  .hero-left {
    left: 70px;
  }

  .hero-phone {
    width: 569px;
    top: 9px;
    bottom: -12px;
    right: 59px;
  }
}

/* ===== RESPONSIVE: MOBILE (max-width 809px) ===== */
@media (max-width: 809px) {
  /* Hero: same 936px height as desktop, phone overflows viewport sides */
  .hero {
    height: 936px;
  }

  /* Keep hero-content as absolute overlay */
  .hero-content {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
  }

  /* Hero inner: 919px wide, extends beyond viewport edges on narrow screens */
  .hero-inner {
    position: absolute;
    width: 919px;
    height: 873px;
    top: 63px;
    display: block;
    transform: translateX(calc(-50% + 11px));
  }

  /* Left block: logo + heading + badge at top of hero inner, centered horizontally */
  .hero-left {
    position: absolute;
    top: 0;
    left: calc(48.531% - 186px);
    width: 372px;
    height: 430px;
    overflow: hidden;
    z-index: 1;
  }

  .hero-heading-wrapper {
    width: 372px;
    margin-top: 33px;
  }

  /* Phone: 773px wide, bottom-anchored, extends beyond both viewport edges */
  .hero-phone {
    position: absolute;
    width: 773px;
    height: 724px;
    bottom: -120px;
    left: calc(48.3134% - 386.5px);
    right: auto;
    top: auto;
  }

  /* Intro */
  .intro-section {
    padding: 56px 0 44px;
  }

  /* Feature sections stack vertically — media on top, text below */
  .feature-section {
    height: auto;
    padding: 0 40px;
    margin-bottom: 62px;
  }

  .feature-row,
  .feature-row--reverse {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  /* Text below media in column layout, always left-aligned */
  .feature-text {
    order: 1;
    width: 310px;
    flex-shrink: 1;
    margin-top: 12px;
  }

  /* Override higher-specificity desktop text-align rules for all feature rows.
     .feature-row:not(.feature-row--reverse) .feature-text has specificity 0,3,0
     so we must match it to win inside the media query. */
  .feature-row:not(.feature-row--reverse) .feature-text,
  .feature-row--reverse .feature-text {
    text-align: left;
  }

  /* Media on top — keep desktop dimensions (305×601px) */
  .feature-media {
    order: 0;
    flex-shrink: 0;
  }

  /* CTA */
  .cta-section {
    padding: 48px 20px 0;
  }

  .cta-section + .site-footer {
    margin-top: 78px;
  }

  .purchase-card {
    width: 339px;
    height: 395px;
  }

  .purchase-icon {
    top: 41px;
  }

  .purchase-title {
    top: 123px;
  }

  .purchase-tagline {
    bottom: 105px;
  }

  .purchase-button {
    width: 311px;
    bottom: 15px;
  }

  .intro-text {
    width: 308px;
    max-width: none;
    margin: 0 auto;
  }

  /* Footer — OG order: links stack first, copyright last */
  .footer-bar {
    flex-direction: column;
    align-items: center;
    gap: 44px;
  }

  .footer-links-stack {
    order: 0;
    align-items: center;
    gap: 5px;
  }

  .footer-copyright {
    order: 1;
    text-align: center;
  }
}
