/* ============================================================
   FASTBOOST — hero.css
   Full-screen Hero Section with Diagonal Photo
   ============================================================ */

/* ── Hero Wrapper ── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--bg);
}

/* ── Background Photo (full bleed) ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1);
}

/* Dark gradient overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.92) 40%, rgba(10,10,10,0.3) 100%),
    linear-gradient(to top, rgba(10,10,10,0.98) 0%, transparent 50%);
}

/* ── Accent glow on right photo half ── */
.hero-glow {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 60%;
  background: radial-gradient(ellipse at 70% 40%, var(--accent) 0%, transparent 60%);
  opacity: 0.12;
  z-index: 1;
  transition: background var(--t-theme);
  pointer-events: none;
}

/* ── Diagonal clip on photo ── */
.hero-photo-clip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  z-index: 1;
  overflow: hidden;
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-photo-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* ── Content ── */
.hero-content {
  position: relative;
  z-index: 10;
  padding-bottom: clamp(4rem, 8vh, 7rem);
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 4rem;
}

.hero-left { max-width: 700px; }

/* Hero eyebrow tag */
.hero-tag {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-tag::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
  transition: background var(--t-theme);
}

/* Hero title */
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-display);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-title .line-accent {
  color: var(--accent);
  display: block;
  transition: color var(--t-theme);
  -webkit-text-stroke: 0px;
}

.hero-title .line-outline {
  -webkit-text-stroke: 2px var(--white);
  color: transparent;
  display: block;
  transition: -webkit-text-stroke-color var(--t-theme);
}

/* Hero pitch */
.hero-pitch {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: rgba(245,245,245,0.7);
  line-height: 1.6;
  max-width: 45ch;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s forwards;
}

/* Hero CTAs */
.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s forwards;
}

/* Horizontal Glassmorphic Stats Row */
.hero-stats-row {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  margin-top: 3rem;
  padding: 1.1rem 2rem;
  background: rgba(14, 14, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s forwards;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1;
  color: var(--accent);
  display: block;
  transition: color var(--t-theme);
  letter-spacing: 0.02em;
}

.hero-stat-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 237, 230, 0.65);
  display: block;
  margin-top: 0.4rem;
  white-space: nowrap;
}

.hero-stat-divider {
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

/* Vertical trainer indicator (Desktop only) */
.hero-trainer-index {
  position: absolute;
  right: clamp(1.5rem, 4vw, 4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trainer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background var(--t-mid), transform var(--t-mid);
}

.trainer-dot.active {
  background: var(--accent);
  transform: scale(1.5);
}

/* Scrolldown indicator (Desktop only) */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-4);
  animation: fadeIn 1s 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Noise texture on hero ── */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   HERO RESPONSIVE (MOBILE & TABLET)
═══════════════════════════════════════════════════ */
@media (max-width: 992px) {
  #hero {
    height: auto;
    min-height: 100svh;
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
  }

  .hero-bg {
    display: block;
    position: absolute;
    inset: 0;
    opacity: 0.25;
  }

  .hero-bg::after {
    background: linear-gradient(to top, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.85) 60%, rgba(10,10,10,0.5) 100%);
  }

  .hero-photo-clip {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: clamp(320px, 46vh, 440px);
    clip-path: none;
    border-radius: 20px;
    margin: 1.75rem 0 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
  }

  .hero-photo-clip img {
    border-radius: 20px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
  }

  .hero-content {
    padding-bottom: 0;
    position: relative;
    z-index: 10;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-title {
    font-size: clamp(3.2rem, 14vw, 5.5rem);
    margin-bottom: 1rem;
    line-height: 0.95;
  }

  .hero-pitch {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 100%;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-stats-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
    padding: 1.15rem 1.25rem;
    gap: 0.75rem;
    background: rgba(20, 20, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .hero-stat {
    flex: 1;
    text-align: center;
  }

  .hero-stat-number {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .hero-stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    white-space: normal;
    line-height: 1.25;
    margin-top: 0.25rem;
  }

  .hero-stat-divider {
    height: 32px;
    opacity: 0.6;
  }

  /* Hide floating dots & scroll helper on mobile */
  .hero-trainer-index,
  .hero-scroll {
    display: none !important;
  }
}
