/* ============================================================
   app-hero.css — BuddiesSpace App Hero Section
   Figma node: 52:857 (file wpkxELWVlzeoRjthUL7RQ4)
   ============================================================ */

.bs-app-hero {
  background-color: #59acf8;
  padding: clamp(48px, 8vw, 100px) clamp(24px, 7vw, 96px);
}

.bs-app-hero__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(48px, 9vw, 120px);
  max-width: 1280px;
  margin: 0 auto;
}

/* ---- Phone mockup (left) ---- */

/* Outer positioning container — matches Figma 52:866 (322.619 × 555.667px) */
.bs-app-hero__phone-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(180px, 22vw, 323px);
  height: clamp(310px, 38vw, 556px);
}

/* Tilt wrapper — rotation applied here so it doesn't affect layout flow */
.bs-app-hero__phone-tilt {
  transform: rotate(-7.39deg);
  flex-shrink: 0;
}

/* Phone device chrome — border + rounded corners (Figma: 257 × 527px) */
.bs-app-hero__phone-device {
  position: relative;
  border: 2px solid #21254a;
  border-radius: 38px;
  width: clamp(140px, 17vw, 257px);
  height: clamp(290px, 35vw, 527px);
  overflow: hidden;
}

/* Phone screen image — fills the device, no overflow */
.bs-app-hero__phone-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Content (right) ---- */

/* Main content column — Figma gap: 40px */
.bs-app-hero__content {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 40px);
}

/* Text + CTA group — Figma 55:875, gap: 16px */
.bs-app-hero__heading-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Heading + body + button group — Figma 52:859, gap: 24px */
.bs-app-hero__text-cta-group {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 24px);
}

/* Heading + body stacked — Figma 52:860, gap: 12px */
.bs-app-hero__text-pair {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Headline — Figma: Inter Black 56px, line-height 1.2, color #21254a */
.bs-app-hero__heading {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.2;
  color: #21254a;
  margin: 0;
  text-transform: uppercase;
}

/* Body — Figma: Inter Regular 22px, line-height 1.55, color #21254a */
.bs-app-hero__body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.55;
  color: #21254a;
  margin: 0;
}

/* CTA button — Figma 55:872: navy bg, white text, Inter Medium 20px, px-32 py-16, radius 8 */
.bs-app-hero__cta {
  display: inline-block;
  background-color: #21254a;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: normal;
  white-space: nowrap;
  padding: clamp(12px, 1.2vw, 16px) clamp(20px, 2.2vw, 32px);
  border-radius: 8px;
  text-decoration: none;
  align-self: flex-start;
  transition: opacity 0.2s ease;
}

.bs-app-hero__cta:hover {
  opacity: 0.88;
}

/* Below-button tagline — Figma 52:865: Inter Regular 22px */
.bs-app-hero__early-access {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(15px, 1.4vw, 22px);
  line-height: 1.55;
  color: #21254a;
  margin: 0;
}

/* ---- App store badges — Figma 55:868, gap: 6.419px ---- */
.bs-app-hero__badges {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
}

.bs-app-hero__badge-link {
  display: inline-block;
  line-height: 0;
  flex-shrink: 0;
}

/* Each badge: Figma 135.129 × 44.818px */
.bs-app-hero__badge-img {
  height: 45px;
  width: 135px;
  object-fit: contain;
  display: block;
}

/* ============================================================
   Responsive — breakpoints at 1024px and 599px (per spec)
   ============================================================ */

/* Tablet — ≤ 1024px: tighten spacing, scale phone down */
@media (max-width: 1024px) {
  .bs-app-hero__inner {
    gap: clamp(32px, 5vw, 64px);
  }

  .bs-app-hero__phone-wrap {
    width: clamp(160px, 20vw, 240px);
    height: clamp(280px, 34vw, 490px);
  }

  .bs-app-hero__phone-device {
    border-radius: clamp(24px, 3vw, 38px);
  }
}

/* Mobile — ≤ 599px: stack vertically, center content, suppress rotation */
@media (max-width: 599px) {
  .bs-app-hero {
    padding: 48px 24px;
  }

  .bs-app-hero__inner {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .bs-app-hero__phone-wrap {
    width: 200px;
    height: auto;
  }

  .bs-app-hero__phone-tilt {
    transform: none;
  }

  .bs-app-hero__phone-device {
    width: 200px;
    height: auto;
    aspect-ratio: 257 / 527;
    border-radius: 30px;
  }

  .bs-app-hero__content {
    align-items: center;
    text-align: center;
  }

  .bs-app-hero__cta {
    align-self: center;
    white-space: normal;
    text-align: center;
  }

  .bs-app-hero__badges {
    justify-content: center;
  }
}
