/*
 * BComm.net — Hero Section Styles
 * ═══════════════════════════════════════════════════════════════════
 * PHASE 2 — ISOLATED MODULE
 *
 * Depends on: css/tokens.css, css/base.css
 * Does NOT modify navbar, footer, or any Phase 1 selector.
 * All selectors are scoped under #hero or .hero-* namespace.
 * ═══════════════════════════════════════════════════════════════════
 */


/* ── Section Shell ─────────────────────────────────────────────────────────── */

#hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-block: var(--space-16) var(--space-10);
}


/* ── Animated Background Orbs ─────────────────────────────────────────────── */

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-orb-1 {
  width: 700px;
  height: 700px;
  top: -250px;
  inset-inline-start: -180px;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.14) 0%, transparent 65%);
  filter: blur(60px);
  animation: orbDrift1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 550px;
  height: 550px;
  bottom: -180px;
  inset-inline-end: -120px;
  background: radial-gradient(circle, rgba(184, 146, 42, 0.12) 0%, transparent 65%);
  filter: blur(55px);
  animation: orbDrift2 15s ease-in-out infinite;
}

.hero-orb-3 {
  width: 380px;
  height: 380px;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(30, 144, 255, 0.07) 0%, transparent 70%);
  filter: blur(40px);
  animation: orbPulse 8s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0,   0)   scale(1);    opacity: 1; }
  33%       { transform: translate(30px, -40px) scale(1.08); opacity: 0.8; }
  66%       { transform: translate(-15px, 25px) scale(0.96); opacity: 0.9; }
}

@keyframes orbDrift2 {
  0%, 100% { transform: translate(0,   0)   scale(1); }
  40%       { transform: translate(-25px, -30px) scale(1.06); }
  70%       { transform: translate(20px,  15px) scale(0.97); }
}

@keyframes orbPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 0.9; transform: translate(-50%, -50%) scale(1.2); }
}


/* ── Dot Grid Overlay ─────────────────────────────────────────────────────── */

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, black 20%, transparent 100%);
}


/* ── Content Wrapper ──────────────────────────────────────────────────────── */

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
  padding-inline: var(--space-6);
  gap: 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}


/* ── Entrance Badge ───────────────────────────────────────────────────────── */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-5);
  background: var(--color-blue-ultra-dim);
  border: 1px solid var(--color-border-blue);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  color: var(--color-blue-light);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  animation: fadeInDown 0.6s var(--ease-out) 0.05s both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-blue);
  flex-shrink: 0;
  animation: pulse-ring 2s ease-in-out infinite;
}


/* ── Headline ─────────────────────────────────────────────────────────────── */

.hero-headline {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: var(--fw-bold);
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.7s var(--ease-out) 0.15s both;
}

/* Line 1 — static white */
.hero-headline-line1 {
  display: block;
  color: var(--color-text-primary);
}

/* Line 2 — animated gradient */
.hero-headline-line2 {
  display: block;
  background: linear-gradient(
    135deg,
    var(--color-blue-light) 0%,
    var(--color-blue)       35%,
    var(--color-gold-bright) 65%,
    var(--color-gold-light) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation:
    fadeInUp      0.7s  var(--ease-out) 0.25s both,
    gradientFlow  7s    ease infinite;
}

@keyframes gradientFlow {
  0%   { background-position: 0%   center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0%   center; }
}


/* ── Subtitle ─────────────────────────────────────────────────────────────── */

.hero-subtitle {
  font-size: clamp(var(--text-base), 2.2vw, var(--text-lg));
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-light);
  max-width: 600px;
  margin-bottom: var(--space-10);
  animation: fadeInUp 0.7s var(--ease-out) 0.3s both;
}


/* ── CTA Button Row ───────────────────────────────────────────────────────── */

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: var(--space-12);
  animation: fadeInUp 0.7s var(--ease-out) 0.4s both;
}

/* Primary Button — filled gradient with shimmer */
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--color-blue) 0%, #0A62D4 100%);
  color: #fff;
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition:
    transform    var(--transition-bounce),
    box-shadow   var(--transition-smooth);
  box-shadow: 0 4px 24px rgba(30, 144, 255, 0.45);
  white-space: nowrap;
}

/* Shimmer overlay */
.hero-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 100%
  );
  transition: left 0.45s ease;
}

.hero-btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 36px rgba(30, 144, 255, 0.55);
}

.hero-btn-primary:hover::after {
  left: 160%;
}

.hero-btn-primary:active {
  transform: translateY(-1px) scale(0.99);
}

/* Arrow icon inside button */
.hero-btn-primary .btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-smooth);
  flex-shrink: 0;
}

.hero-btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

html[dir="rtl"] .hero-btn-primary:hover .btn-arrow {
  transform: translateX(-4px) scaleX(-1);
}

html[dir="rtl"] .hero-btn-primary .btn-arrow {
  transform: scaleX(-1);
}

/* Secondary Button — glass ghost */
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-medium);
  cursor: pointer;
  text-decoration: none;
  transition:
    background    var(--transition-smooth),
    border-color  var(--transition-smooth),
    box-shadow    var(--transition-smooth),
    transform     var(--transition-bounce),
    color         var(--transition-fast);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  white-space: nowrap;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--color-border-blue);
  box-shadow: var(--shadow-blue-sm), inset 0 0 20px var(--color-blue-ultra-dim);
  color: var(--color-blue-light);
  transform: translateY(-3px);
}

.hero-btn-secondary:active {
  transform: translateY(-1px);
}


/* ── Stats Row ────────────────────────────────────────────────────────────── */

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  animation: fadeInUp 0.7s var(--ease-out) 0.5s both;
}

.hero-stat-separator {
  width: 1px;
  height: 44px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--color-border-medium),
    transparent
  );
  flex-shrink: 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero-stat-number {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  line-height: 1;
  color: var(--color-blue-light);
  letter-spacing: -1px;
}

.hero-stat-number .stat-plus {
  font-size: var(--text-xl);
  color: var(--color-gold-light);
}

.hero-stat-label {
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}


/* ── Scroll Indicator ─────────────────────────────────────────────────────── */

.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  animation: fadeIn 1s var(--ease-out) 1s both;
  cursor: pointer;
  text-decoration: none;
}

.hero-scroll-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--color-border-medium);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.hero-scroll-wheel {
  width: 3px;
  height: 7px;
  background: var(--color-blue-light);
  border-radius: var(--radius-pill);
  animation: scrollWheel 1.8s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%   { transform: translateY(0);    opacity: 1; }
  70%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0);    opacity: 0; }
}


/* ── Reduced Motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .hero-badge-dot,
  .hero-headline-line2,
  .hero-scroll-wheel,
  .hero-content,
  .hero-badge {
    animation: none !important;
  }
}


/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  #hero {
    padding-block: var(--space-12) var(--space-8);
    justify-content: flex-start;
    padding-top: calc(var(--space-12) + var(--navbar-height));
    min-height: 100svh;
  }

  .hero-headline {
    letter-spacing: -1px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    justify-content: center;
    width: 100%;
  }

  .hero-stats {
    gap: var(--space-4);
  }

  .hero-scroll-indicator {
    display: none;
  }
}
