/* ============================================================
   COMPONENT: Hero Section
   Sitemap: 02 — Hero · Headline · Sub · 2 CTAs · Badge Google
   Uses dvh for iOS Safari bottom-bar compatibility
   ============================================================ */

#hero {
  /* dvh avoids iOS Safari bottom bar covering CTAs */
  min-height: 100dvh;
  min-height: 100vh; /* fallback for older browsers */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 14vw, 120px) var(--section-pad-x) clamp(60px, 8vw, 80px);
}

@supports (min-height: 100dvh) {
  #hero { min-height: 100dvh; }
}

/* ── Background layers ───────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 72% 50%, rgba(255, 73, 0, 0.11) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 8% 80%, rgba(255, 73, 0, 0.05) 0%, transparent 50%),
    var(--bg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
}

/* ── Content grid ────────────────────────────────────────── */
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Badge ───────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 73, 0, 0.1);
  border: 1px solid rgba(255, 73, 0, 0.22);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #FF7744;
  margin-bottom: 22px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: bdot 2s ease-in-out infinite;
}

/* ── Title ───────────────────────────────────────────────── */
.hero-title {
  font-size: clamp(32px, 6vw, 70px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-title .accent {
  color: var(--orange);
  display: block;
}

.hero-sub {
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}

/* ── Stats ───────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: clamp(16px, 3vw, 26px);
  margin-bottom: 30px;
}

.stat-num {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.stat-div {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ── Actions ─────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Visual frame ────────────────────────────────────────── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-frame {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4/3;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}

.hero-orb1 { width: 280px; height: 280px; top: -80px; right: -60px; }
.hero-orb2 { width: 180px; height: 180px; bottom: -60px; left: -40px; opacity: .45; }

.hero-emoji {
  font-size: 110px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 40px rgba(255, 73, 0, 0.4));
  user-select: none;
}

.hero-frame-label {
  position: absolute;
  bottom: 18px;
  left: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.frame-label-txt { font-size: 11px; color: #888; }
.frame-label-name { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-top: 2px; }

.frame-badge {
  background: rgba(255, 73, 0, 0.15);
  border: 1px solid rgba(255, 73, 0, 0.3);
  color: var(--orange);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── Tablet (≤1024px) ────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .hero-frame { max-width: 380px; }
  .hero-emoji { font-size: 90px; }
}

/* ── Tablet/Mobile (≤900px) ──────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual { display: none; }
}

/* ── Mobile (≤768px) — Kill viewport height, hug content ── */
@media (max-width: 768px) {
  #hero {
    /* Remove the full-viewport constraint — hero wraps its content */
    min-height: auto;
    height: auto;
    /* Tight padding: header clearance top + controlled bottom gap */
    padding-top: 100px;
    padding-bottom: 48px;
    /* Align content to top, not center of a tall empty box */
    align-items: flex-start;
  }
}

/* ── Small mobile (≤480px) ───────────────────────────────── */
@media (max-width: 480px) {
  #hero {
    padding-top: 88px;
    padding-bottom: 40px;
  }
  .hero-badge {
    font-size: 11px;
    padding: 5px 12px;
    margin-bottom: 16px;
  }
  .hero-sub {
    margin-bottom: 24px;
    font-size: 15px;
  }
  .hero-stats {
    gap: 18px;
    margin-bottom: 24px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
}
