/* ── Base ─────────────────────────────────────────────── */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero-section {
  background-color: #1e1e1e;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgb(255 129 20 / 0.08) 1px,
    transparent 0
  );
  background-size: 24px 24px;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgb(30 30 30 / 0.55) 0%,
    transparent 38%,
    rgb(30 30 30 / 0.35) 100%
  );
}

.hero-dashboard-bg {
  z-index: 0;
}

.hero-showcase {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 1023px) {
  .hero-phone-mockup {
    position: relative;
    width: min(200px, 48vw);
    opacity: 0;
    animation: hero-fade-in-opacity 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.6s
      forwards;
  }

  .hero-phone-mockup .phone-mockup__device {
    display: flex;
    flex-direction: column;
    aspect-ratio: 9 / 19.5;
    width: 100%;
    height: auto;
    box-sizing: border-box;
  }

  .hero-phone-mockup .phone-mockup__screen {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
  }

  .hero-phone-mockup .wa-app {
    min-height: 0;
    flex: 1;
    overflow: hidden;
  }

  .hero-phone-mockup .wa-chat {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .hero-phone-mockup .wa-bubble p {
    font-size: 11px;
    line-height: 1.4;
  }

  .hero-phone-mockup .wa-msg--system {
    font-size: 9px;
  }

  .hero-phone-mockup .wa-bubble__meta {
    font-size: 8px;
  }

  .hero-phone-mockup .wa-bubble__meta svg {
    height: 10px;
    width: 10px;
  }

  .hero-phone-mockup .wa-header__name {
    font-size: 13px;
  }

  .hero-phone-mockup .wa-tabs {
    font-size: 10px;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-showcase {
    margin-top: 1.5rem;
  }

  .hero-phone-mockup {
    width: min(220px, 34vw);
  }

  .hero-phone-mockup .wa-bubble p {
    font-size: 12px;
  }
}

@media (min-width: 1024px) {
  .hero-section::after {
    background: none;
  }

  .hero-showcase {
    position: absolute;
    inset: 0;
    display: block;
    margin-top: 0;
    overflow: visible;
  }

  .hero-phone-mockup {
    display: flex;
    transform: scale(min(0.48, calc((100dvh - 22rem) / 800)));
    transform-origin: bottom right;
    opacity: 1;
    animation: none;
  }

  .hero-phone-mockup .wa-app {
    min-height: 540px;
  }

  .hero-phone-mockup .wa-bubble p {
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-phone-mockup .wa-msg--system {
    font-size: 11px;
  }

  .hero-phone-mockup .wa-bubble__meta {
    font-size: 10px;
  }

  .hero-phone-mockup .wa-bubble__meta svg {
    height: 12px;
    width: 12px;
  }
}

@media (max-width: 1023px) {
  .hero-dashboard-bg::before {
    background:
      linear-gradient(
        to bottom,
        rgb(30 30 30 / 0.88) 0%,
        rgb(30 30 30 / 0.72) 35%,
        rgb(30 30 30 / 0.5) 65%,
        rgb(30 30 30 / 0.82) 100%
      ),
      radial-gradient(
        ellipse 90% 55% at 50% 85%,
        rgb(255 129 20 / 0.18) 0%,
        transparent 72%
      );
  }
}

@media (max-width: 639px) {
  .hero-phone-mockup .phone-mockup__device {
    border-radius: 32px;
    padding: 8px;
  }

  .hero-phone-mockup .phone-mockup__island {
    top: 14px;
    height: 20px;
    width: 80px;
  }

  .hero-phone-mockup .phone-mockup__screen {
    border-radius: 26px;
  }

  .wa-app {
    min-height: 0;
  }

  .phone-mockup__device {
    border-radius: 32px;
    padding: 8px;
  }

  .phone-mockup__island {
    top: 14px;
    height: 20px;
    width: 80px;
  }

  .phone-mockup__screen {
    border-radius: 26px;
  }
}

/* ── Stacking cards (mobile: scroll normal) ───────────── */
@media (max-width: 1023px) {
  .stacking-cards__header {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
  }

  .stacking-cards__slide {
    position: relative;
    height: auto;
    min-height: auto;
    max-height: none;
    overflow: visible;
  }

  .stacking-cards__inner {
    top: 0;
    width: 100%;
    height: auto;
    min-height: auto;
    max-height: none;
    transform: none !important;
    border-radius: 0;
    box-shadow: none;
  }

  .stacking-cards__inner > .mx-auto {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .stacking-cards__visual-wrap {
    max-height: none;
    height: auto;
  }

  .stacking-cards__inner > .mx-auto > div:has(.stacking-cards__visual-wrap),
  .stacking-cards__inner > .mx-auto > div:has(.wa-panel),
  .stacking-cards__inner > .mx-auto > div:has(.property-showcase),
  .stacking-cards__inner > .mx-auto > div:has(.lead-profile),
  .stacking-cards__inner > .mx-auto > div:has(.platform-dashboard),
  .stacking-cards__inner > .mx-auto > div:has(.leads-chart) {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }

  .stacking-cards .wa-panel {
    height: auto;
    min-height: 380px;
    max-height: none;
  }

  .stacking-cards .property-showcase {
    height: auto;
    min-height: 300px;
    max-height: none;
  }

  .stacking-cards .lead-profile {
    width: min(100%, 260px);
    max-height: none;
  }

  .stacking-cards .lead-profile__phone {
    transform: none;
  }

  .stacking-cards .lead-profile__app {
    max-height: none;
  }

  .stacking-cards .platform-dashboard {
    height: auto;
    max-height: none;
  }

  .stacking-cards .laptop-mockup--frame {
    max-height: none;
  }

  .stacking-cards .laptop-mockup__frame {
    position: absolute;
    inset: 0;
    max-height: none;
  }

  .stacking-cards__visual {
    max-height: none;
  }

  .stacking-cards__inner .col-start-2.row-start-2 {
    min-height: 0 !important;
  }

  .stacking-cards__inner .absolute.-bottom-20 {
    top: -1.5rem;
    bottom: -1.5rem;
  }
}

@media (max-width: 639px) {
  .smooth-scroll__panel .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .smooth-scroll__panel .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .smooth-scroll__panel .py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  footer .px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  footer .py-16 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .stacking-cards__inner > .mx-auto {
    grid-template-columns: 2rem 1fr;
    gap-x: 0.75rem;
    padding: 1.75rem 1rem;
  }

  .stacking-cards .wa-panel {
    min-height: 340px;
    border-radius: 16px;
  }

  .stacking-cards .wa-panel .wa-bubble p {
    font-size: 12px;
  }

  .stacking-cards .wa-panel__name {
    font-size: 14px;
  }

  .stacking-cards .wa-panel__avatar {
    height: 36px;
    width: 36px;
  }

  .property-showcase {
    min-height: 260px;
  }

  .property-showcase__card {
    width: min(82%, 240px);
  }

  .property-showcase__card > img {
    height: 110px;
  }

  .property-showcase__price {
    font-size: 18px;
  }

  .property-showcase__type {
    font-size: 13px;
  }

  .property-showcase__features li {
    font-size: 13px;
  }
}

/* ── Mobile navigation ────────────────────────────────── */
.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.mobile-nav.is-open {
  grid-template-rows: 1fr;
}

.mobile-nav__inner {
  overflow: hidden;
}

.mobile-nav__toggle-icon {
  transition: transform 0.2s ease;
}

.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__toggle-icon--open {
  display: none;
}

.mobile-nav__toggle[aria-expanded="false"] .mobile-nav__toggle-icon--close {
  display: none;
}
