/**
 * hero.css
 * Layouts, watermarks, indicator animations, and stats for the Hero section.
 * Optimized for a futuristic 2100-era center-aligned space landing page.
 *
 * @package Srushti_Theme
 */

.hero-section {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-midnight);
  /* White mode */
  padding: 140px 0 var(--space-16);
  z-index: 1;

  /* Use light-theme variables */
  --text-primary: var(--color-charcoal);
  --text-secondary: #4E4C48;
  --text-tertiary: #78756F;
  --glass-base: rgba(255, 255, 255, 0.85);
  --glass-hover: rgba(255, 255, 255, 0.95);
  --glass-active: rgba(255, 255, 255, 1);
  --glass-border: rgba(38, 37, 35, 0.08);
  --color-border-tech: rgba(183, 45, 49, 0.16);
}

/* ─────────────────────────────────────────────
   SPACE WATERMARK & PLANET CURVE
   ───────────────────────────────────────────── */

.hero-space-bg {
  position: absolute;
  inset: 0;
  background:
    /* Brand Gold subtle ambient warmth at top right */
    radial-gradient(circle at 85% 15%, rgba(198, 161, 91, 0.12) 0%, transparent 55%),
    /* Brand Red soft atmospheric glow at bottom left */
    radial-gradient(circle at 15% 85%, rgba(183, 45, 49, 0.08) 0%, transparent 50%),
    /* Grounding Brand Charcoal soft ambient depth from top */
    radial-gradient(ellipse 70% 30% at 50% -5%, rgba(38, 37, 35, 0.03) 0%, transparent 70%),
    /* Horizon glow blending Brand Red and Brand Gold */
    radial-gradient(ellipse 60% 40% at 50% 120%, rgba(183, 45, 49, 0.10) 0%, rgba(198, 161, 91, 0.05) 45%, transparent 75%),
    /* Warm Ivory & Crisp Canvas foundation */
    linear-gradient(180deg, #FFFFFF 0%, #FAF8F4 55%, var(--color-warm-ivory) 100%);
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-stars {
  display: none !important;
  /* Removed dot matrix background pattern */
}

.hero-glow-core {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(183, 45, 49, 0.10) 0%, rgba(198, 161, 91, 0.06) 45%, transparent 75%);
  filter: blur(40px);
}

/* Glowing Gold Planet Curve */
.hero-planet-curve {
  position: absolute;
  bottom: -360px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 500px;
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse 50% 40% at 50% 0%, rgba(183, 45, 49, 0.04) 0%, var(--color-surface-2) 65%), var(--color-surface-2);
  border-top: 1px solid var(--color-border-tech);
  box-shadow:
    0 -15px 50px rgba(38, 37, 35, 0.03),
    inset 0 10px 30px rgba(255, 255, 255, 0.8);
  z-index: 0;
}

/* Orbit lines inside space bg - removed as requested */
.hero-orbit-wrap,
.hero-orbit {
  display: none !important;
}

/* ─────────────────────────────────────────────
   TYPOGRAPHY & CONTENT LAYOUT
   ───────────────────────────────────────────── */

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-8);
  align-items: center;
}

.hero-content-left {
  position: relative;
  z-index: 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Eyebrow badge thin border */
.hero-badge-wrap {
  display: inline-block;
  margin-bottom: var(--space-4);
  text-align: left;
}

.hero-badge {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-brand-red);
  padding: 6px 16px;
  border: 1px solid var(--color-border-tech);
  border-radius: 4px;
  background: var(--color-brand-red-glow);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  max-width: 100%;
  text-align: left;
}

.hero-headline .block-line {
  display: block;
  margin-bottom: var(--space-1);
}

/* Highlight badge gradient pill - exact match to reference AI-Power container */
.hero-highlight-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 16px 5px;
  background: linear-gradient(90deg, var(--neon-gold) 0%, var(--neon-gold-bright) 100%);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  color: #FFFFFF !important;
  text-shadow: none;
  box-shadow: none !important;
  margin-left: var(--space-2);
  margin-top: var(--space-4);
  vertical-align: middle;
  font-size: 0.92em;
  letter-spacing: -0.01em;
  font-weight: 800;
  transform: translateY(-2px);
}

.pill-arrow-icon {
  width: 16px;
  height: 16px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.30s var(--ease-out);
}

.hero-highlight-pill:hover .pill-arrow-icon {
  transform: translate(2px, -2px);
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 0 var(--space-8) 0;
  text-align: left;
}

/* ─────────────────────────────────────────────
   CALL TO ACTION BUTTON (Join Today Style)
   ───────────────────────────────────────────── */

.hero-ctas {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────
   HERO RIGHT VISUAL IMAGE & FLOATING STATS
   ───────────────────────────────────────────── */

.hero-visual-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.hero-image-card-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero-image-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.8;
  border-radius: 24px;
  overflow: hidden;
  border: 1.5px solid rgba(198, 161, 91, 0.25);
  box-shadow:
    0 24px 50px rgba(38, 37, 35, 0.08),
    0 0 35px rgba(183, 45, 49, 0.06);
  background: var(--color-surface-2);
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.hero-image-card-wrap:hover .hero-main-img {
  transform: scale(1.04);
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(38, 37, 35, 0.20) 100%);
  pointer-events: none;
}

/* Floating Stats Badges */
.hero-floating-stat {
  position: absolute;
  background: #FFFFFF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 12px 30px rgba(38, 37, 35, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4;
  transition: transform 0.3s var(--ease-out);
}

.hero-floating-stat:hover {
  transform: translateY(-3px);
}

.hero-floating-stat.stat-years {
  top: -14px;
  right: -14px;
  border: 1px solid rgba(198, 161, 91, 0.35);
}

.hero-floating-stat.stat-growth {
  bottom: -14px;
  left: -14px;
  border: 1px solid rgba(183, 45, 49, 0.25);
}

.stat-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon-wrap.icon-gold {
  background: rgba(198, 161, 91, 0.15);
  color: var(--color-brand-gold);
}

.stat-icon-wrap.icon-red {
  background: rgba(183, 45, 49, 0.12);
  color: var(--color-brand-red);
}

.stat-meta {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--color-charcoal);
  line-height: 1.1;
}

.stat-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 36px;
  background-color: var(--color-brand-red);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--color-brand-red-bright);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(183, 45, 49, 0.15), 0 8px 20px rgba(38, 37, 35, 0.05);
  transition: all 0.30s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-arrow-icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.30s var(--ease-out);
}

.hero-cta-button:hover {
  background-color: var(--color-brand-red-bright);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(183, 45, 49, 0.25);
}

.hero-cta-button:hover .btn-arrow-icon {
  transform: translate(3px, -3px);
}

.hero-cta-button:active {
  transform: translateY(0);
}

.hero-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  background-color: var(--color-charcoal);
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--color-charcoal);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(38, 37, 35, 0.15);
  transition: all 0.30s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-secondary-cta:hover {
  background-color: var(--color-charcoal-hover);
  border-color: var(--color-charcoal-hover);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(38, 37, 35, 0.25);
}

.hero-secondary-cta:hover .btn-arrow-icon {
  transform: translate(3px, -3px);
}

.hero-secondary-cta:active {
  transform: translateY(0);
}

/* ─────────────────────────────────────────────
   BOTTOM NAVIGATION TABS
   ───────────────────────────────────────────── */

.hero-tabs-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: var(--space-12);
}

.hero-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tab-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 20px;
  background: #FFFFFF;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--color-border-subtle);
  border-radius: 100px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s var(--ease-out);
}

.hero-tab-item svg {
  color: rgba(38, 37, 35, 0.4);
  transition: transform 0.25s var(--ease-spring), color 0.25s ease;
}

.hero-tab-item:hover {
  background: var(--glass-hover);
  border-color: var(--color-brand-red-bright);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow:
    0 10px 20px rgba(38, 37, 35, 0.03),
    0 0 15px rgba(183, 45, 49, 0.05);
}

.hero-tab-item:hover svg {
  color: var(--color-brand-red);
  transform: scale(1.15);
}

/* ─────────────────────────────────────────────
   SCROLL INDICATOR
   ───────────────────────────────────────────── */

.scroll-indicator {
  display: none !important;
}

/* Responsiveness overrides */
@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 130px 0 var(--space-12);
  }

  .hero-split-grid {
    gap: var(--space-8);
  }

  .hero-content-left {
    grid-column: span 12;
    text-align: center;
    align-items: center;
  }

  .hero-badge-wrap {
    text-align: center;
  }

  .hero-headline {
    text-align: center;
    font-size: clamp(26px, 5.5vw, 38px);
  }

  .hero-sub {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-visual-right {
    grid-column: span 12;
    margin-top: var(--space-4);
  }

  .hero-image-card-wrap {
    max-width: 420px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 110px 0 var(--space-8);
  }

  .hero-headline {
    font-size: clamp(22px, 7vw, 32px);
    line-height: 1.25;
  }

  .hero-highlight-pill {
    padding: 2px 12px;
    margin-left: 4px;
    transform: none;
    font-size: 0.88em;
  }

  .hero-image-card-wrap {
    max-width: 320px;
  }

  .hero-floating-stat.stat-years {
    top: -10px;
    right: -6px;
    padding: 6px 12px;
  }

  .hero-floating-stat.stat-growth {
    bottom: -10px;
    left: -6px;
    padding: 6px 12px;
  }

  .hero-tabs {
    gap: var(--space-2);
  }

  .hero-tab-item {
    font-size: 12px;
    padding: 8px 14px;
    gap: var(--space-2);
  }

  .hero-planet-curve {
    width: 180%;
    bottom: -380px;
  }
}