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

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

body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

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

/* ========================
   Hero Section
   ======================== */
.hero {
  background: linear-gradient(170deg, #0a1e3f 0%, #0d0e0f 100%);
  height: 100vh;
  max-height: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 24px;
  position: relative;
  z-index: 2;
}

.logo {
  height: 22px;
  width: auto;
}

.hero-inner {
  flex: 1;
  max-width: 1440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 24px;
  position: relative;
}

.hero-visual {
  position: relative;
  width: 500px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.hero-globe {
  position: absolute;
  width: 1100px;
  max-width: none;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-ellipse {
  position: absolute;
  width: 1100px;
  max-width: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  pointer-events: none;
}

.hero-card {
  position: relative;
  z-index: 1;
  width: 420px;
  filter: drop-shadow(0 20px 60px rgba(80, 119, 245, 0.15));
}

.hero-text {
  text-align: center;
  max-width: 749px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 68px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-text p {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.53;
  color: rgba(255, 255, 255, 0.6);
  max-width: 400px;
  margin: 0 auto;
}

/* ========================
   Features Section (Bento Grid)
   ======================== */
.features {
  background: #0d0e0f;
  padding: 80px 40px 40px;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, #0d0e0f);
  pointer-events: none;
  z-index: 3;
}

/* Desktop: CSS grid bento layout */
.features-grid {
  max-width: 1110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 380px 250px 500px;
  gap: 18px;
}

/* Card everywhere: left column, rows 1-2 → 432+18+250=700 */
.feature-card--everywhere {
  grid-column: 1;
  grid-row: 1 / 3;
}

/* Crypto: right column, row 1 → 432 */
.feature-card--crypto {
  grid-column: 2;
  grid-row: 1;
}

/* Apple/Google Pay: right column, rows 2-3 → 250+18+432=700 */
.feature-card--applepay {
  grid-column: 2;
  grid-row: 2 / 4;
}

/* Referral: left column, row 3 → 432 */
.feature-card--referral {
  grid-column: 1;
  grid-row: 3;
}

/* Desktop: right-column cards show text on top, image below */
.feature-card--crypto .feature-card__text,
.feature-card--applepay .feature-card__text {
  order: -1;
}

.feature-card {
  background: #13141e;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card__image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  min-height: 0;
}

.feature-card__image img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Apple/Google Pay: crop the empty bottom half of the phone image */
.feature-card--applepay .feature-card__image {
  align-items: flex-start;
}

.feature-card--applepay .feature-card__image img {
  object-fit: cover;
  object-position: top center;
  width: 100%;
  max-height: none;
  height: 100%;
}

.feature-card__text {
  padding: 32px 36px;
  flex-shrink: 0;
}

.feature-card__text h3 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 16px;
}

.feature-card__text p {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  max-width: 375px;
}

/* ========================
   Pricing Section
   ======================== */
.pricing {
  background: #0d0e0f;
  padding: 80px 40px 160px;
}

.pricing h2 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 68px;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  max-width: 749px;
  margin: 0 auto 60px;
}

.pricing-content {
  max-width: 636px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pricing-card-visual img {
  width: 100%;
  border-radius: 20px;
}

/* Desktop highlights: 6-col grid, row1=2 items, row2=3 items */
.pricing-highlights {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

/* Row 1: Globe (item 4) + Visa (item 5) */
.pricing-highlight:nth-child(4) {
  grid-row: 1;
  grid-column: 1 / 4;
}
.pricing-highlight:nth-child(5) {
  grid-row: 1;
  grid-column: 4 / 7;
}

/* Row 2: Card (item 1) + Rocket (item 2) + Star (item 3) */
.pricing-highlight:nth-child(1) {
  grid-row: 2;
  grid-column: 1 / 3;
}
.pricing-highlight:nth-child(2) {
  grid-row: 2;
  grid-column: 3 / 5;
}
.pricing-highlight:nth-child(3) {
  grid-row: 2;
  grid-column: 5 / 7;
}

.pricing-highlight {
  background: #13141e;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
}

.pricing-highlight__icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pricing-highlight__icon img {
  width: 30px;
  height: 30px;
}

.pricing-highlight span {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.33;
  color: #fff;
}

/* Pricing Table */
.pricing-table {
  background: #13141e;
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pricing-table__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-table__label {
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.pricing-table__value {
  font-weight: 500;
  font-size: 18px;
  color: #fff;
}

/* ========================
   Floating CTA Button
   ======================== */
.cta-button {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #5376e9;
  border-radius: 40px;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 32px rgba(83, 118, 233, 0.4);
  width: 240px;
  height: 52px;
}

.cta-button:hover {
  background: #4565d4;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 40px rgba(83, 118, 233, 0.5);
}

.cta-button__text {
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  white-space: nowrap;
}

.cta-button__count {
  font-weight: 500;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* ========================
   Mobile Responsive (≤768px)
   ======================== */
@media (max-width: 768px) {
  /* ---- Hero ---- */
  .hero {
    height: auto;
    max-height: none;
    min-height: 100dvh;
    padding-bottom: 24px;
  }

  .hero-logo {
    padding-top: 16px;
  }

  .hero-inner {
    padding-top: 0;
    justify-content: center;
  }

  .hero-visual {
    width: calc(100% - 28px);
    max-width: 365px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 8px;
  }

  .hero-globe {
    width: 200%;
  }

  .hero-ellipse {
    width: 200%;
  }

  .hero-card {
    width: 90%;
  }

  .hero-text {
    padding: 0 19px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 38px;
    margin-bottom: 18px;
  }

  .hero-text p {
    font-size: 13px;
    max-width: 331px;
    margin: 0 auto;
  }

  /* ---- Features: single column, stacked ---- */
  .features {
    padding: 60px 19px 19px;
  }

  .features-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* Reset desktop grid placements */
  .feature-card--everywhere,
  .feature-card--crypto,
  .feature-card--applepay,
  .feature-card--referral {
    grid-column: unset;
    grid-row: unset;
  }

  /* All cards: image on top on mobile (reset desktop reorder) */
  .feature-card--crypto .feature-card__text,
  .feature-card--applepay .feature-card__text {
    order: unset;
  }

  .feature-card {
    border-radius: 20px;
  }

  .feature-card--everywhere {
    min-height: 532px;
  }

  .feature-card--applepay {
    min-height: auto;
  }

  .feature-card--applepay .feature-card__image {
    flex: none;
    aspect-ratio: 540 / 540;
  }

  .feature-card--crypto,
  .feature-card--referral {
    min-height: 392px;
  }

  .feature-card__image {
    padding: 20px 18px;
  }

  .feature-card__text {
    padding: 24px 23px;
  }

  .feature-card__text h3 {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .feature-card__text p {
    font-size: 13px;
  }

  /* ---- Pricing ---- */
  .pricing {
    padding: 60px 19px 140px;
  }

  .pricing h2 {
    font-size: 38px;
    margin-bottom: 32px;
    text-align: center;
  }

  .pricing-content {
    max-width: 355px;
  }

  .pricing-card-visual img {
    border-radius: 22px;
  }

  /* Highlights: vertical list inside a single card */
  .pricing-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #18192c;
    border-radius: 20px;
    padding: 20px;
  }

  /* Reset desktop grid positioning */
  .pricing-highlight:nth-child(1),
  .pricing-highlight:nth-child(2),
  .pricing-highlight:nth-child(3),
  .pricing-highlight:nth-child(4),
  .pricing-highlight:nth-child(5) {
    grid-row: unset;
    grid-column: unset;
  }

  .pricing-highlight {
    background: none;
    border-radius: 0;
    padding: 0;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .pricing-highlight__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .pricing-highlight__icon img {
    width: 20px;
    height: 20px;
  }

  .pricing-highlight span {
    font-size: 16px;
  }

  /* Pricing table */
  .pricing-table {
    background: #18192c;
    padding: 20px;
    gap: 16px;
  }

  .pricing-table__label {
    font-size: 13px;
  }

  .pricing-table__value {
    font-size: 16px;
  }

  .cta-button:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}
