/* Homepage only: mobile composition and Safari viewport normalization. */
@media (max-width: 600px) {
  html:has(body .hero) {
    scrollbar-width: none;
  }

  html:has(body .hero)::-webkit-scrollbar {
    display: none;
  }

  body:has(.hero) {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body:has(.hero) .header {
    padding-block: 0.7rem;
    background: linear-gradient(180deg, rgba(7, 7, 7, 0.97), rgba(14, 5, 7, 0.92));
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  body:has(.hero) .header-content {
    min-height: 44px;
    padding-inline: 1rem;
    align-items: center;
  }

  body:has(.hero) .logo {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
  }

  body:has(.hero) .logo-img {
    display: block;
    width: auto;
    height: 34px;
    flex: 0 0 auto;
    object-fit: contain;
    transform: scale(1.45);
    transform-origin: center;
  }

  body:has(.hero) .logo-text {
    display: block;
    min-width: 0;
    font-size: 1.12rem;
    line-height: 1;
    white-space: nowrap;
  }

  body:has(.hero) .mobile-menu-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 3.2rem;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    isolation: isolate;
  }

  .hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    right: -5rem;
    bottom: 2.4rem;
    width: 15rem;
    height: 15rem;
    border: 1px solid rgba(255, 0, 51, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 80px rgba(255, 0, 51, 0.08);
    pointer-events: none;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 1.15rem;
    text-align: left;
  }

  .hero-logo-bg {
    inset: auto -38% 5% auto;
    width: min(118vw, 520px);
    height: auto;
    margin: 0;
    opacity: 0.11;
    animation: none;
    transform: rotate(-7deg);
  }

  .hero-badge {
    justify-content: flex-start;
    margin: 0 0 1.2rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.76rem;
    letter-spacing: 0.01em;
  }

  .hero-title {
    width: 100%;
    max-width: 9.5em;
    margin: 0 0 0.95rem;
    font-size: clamp(2.35rem, 10.7vw, 2.85rem);
    line-height: 0.98;
    text-align: left;
    text-wrap: balance;
  }

  .hero-description {
    max-width: 35ch;
    margin: 0 0 1.45rem;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.94rem;
    line-height: 1.5;
    text-align: left;
    text-wrap: pretty;
  }

  .hero-stats {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 1.25rem;
  }

  .hero-stats .stat {
    min-width: 0;
    min-height: 78px;
    padding: 0.7rem 0.6rem;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .hero-stats .stat-value {
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
    line-height: 1;
  }

  .hero-stats .stat-label {
    margin-top: 0.4rem;
    font-size: 0.65rem;
    line-height: 1.22;
    text-align: left;
  }

  .hero-actions {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.88fr);
    gap: 0.55rem;
    margin: 0;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin-top: 0;
    padding: 0.72rem 0.7rem;
    border-radius: 16px;
    font-size: 0.78rem;
    line-height: 1.1;
    white-space: nowrap;
  }

  .hero-actions .btn svg {
    flex: 0 0 auto;
    font-size: 1rem;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 360px) {
  body:has(.hero) .header-content {
    padding-inline: 0.8rem;
  }

  body:has(.hero) .logo-img {
    height: 31px;
  }

  body:has(.hero) .logo-text {
    font-size: 1rem;
  }

  .hero {
    padding-top: 5.75rem;
  }

  .hero-content {
    padding-inline: 0.9rem;
  }

  .hero-title {
    font-size: 2.18rem;
  }

  .hero-stats {
    gap: 0.35rem;
  }

  .hero-stats .stat {
    min-height: 74px;
    padding-inline: 0.45rem;
  }

  .hero-stats .stat-value {
    font-size: 1.18rem;
  }

  .hero-stats .stat-label {
    font-size: 0.59rem;
  }

  .hero-actions {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.82fr);
    gap: 0.4rem;
  }

  .hero-actions .btn {
    padding-inline: 0.45rem;
    font-size: 0.7rem;
  }

  .hero-actions .btn-secondary svg {
    display: none;
  }
}
