/* ========================================================
   Warm Khadi Paper (Daylight Editorial Craftsman)
   + Roasted Espresso Dark Mode (System & Manual Theme)
   ======================================================== */

.hero {
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  padding: 14rem var(--container-padding) 9rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Content Container */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 86rem;
  margin: 0 auto;
  text-align: center;
}
.hero__socials {
  z-index: 2;
}
.hero__scroll-indicator {
  display: none !important; /* Eliminate template mouse widget */
}

/* Typography Hierarchy */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2.4rem;
  transition: all 0.3s ease;
}
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.hero__greeting {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  display: block;
  transition: color 0.3s ease;
}
.hero__name {
  font-size: clamp(4.4rem, 7vw, 7rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.05 !important;
  margin-bottom: 0.6rem;
  transition: all 0.3s ease;
}
.hero__role {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0.4rem 0 2rem;
  display: inline-block;
  transition: color 0.3s ease;
}
.hero__headline {
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;
  max-width: 74rem;
  margin: 0 auto 2rem;
  transition: color 0.3s ease;
}
.hero__description {
  font-size: 1.75rem;
  line-height: 1.75;
  max-width: 66rem;
  margin: 0 auto 3.8rem;
  transition: color 0.3s ease;
}
.hero__description .highlight {
  font-weight: 600;
}

/* Horizontal Proof Ribbon */
.hero__stats-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4.5rem;
  padding: 2.2rem 4rem;
  border-radius: 20px;
  max-width: 72rem;
  margin: 0 auto 4rem;
  transition: all 0.3s ease;
}
.hero__stat-item {
  text-align: center;
}
.hero__stat-number {
  display: block;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  transition: color 0.3s ease;
}
.hero__stat-label {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}
.hero__stat-divider {
  width: 1px;
  height: 3.8rem;
  transition: background 0.3s ease;
}

@media (max-width: 44em) {
  .hero__stats-ribbon {
    flex-direction: column;
    gap: 2.2rem;
    padding: 2.2rem 2.4rem;
  }
  .hero__stat-divider {
    display: none;
  }
}

/* CTA Row */
.hero__cta {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.hero__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.6rem;
  font-size: 1.4rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================
   LIGHT MODE (Daylight Warm Khadi Paper)
   ======================================================== */
body:not([data-theme="dark"]) .header {
  background: rgba(248, 246, 240, 0.92) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid #e7e0d3 !important;
}
body:not([data-theme="dark"]) .header__logo-sub {
  color: #181513 !important;
}
body:not([data-theme="dark"]) .header__link {
  color: #5c5249 !important;
}
body:not([data-theme="dark"]) .header__link:hover {
  color: #181513 !important;
}

body:not([data-theme="dark"]) .hero {
  background: #f8f6f0 !important;
  color: #181513 !important;
}
body:not([data-theme="dark"]) .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle 900px at 50% 0%, rgba(255, 255, 255, 0.85) 0%, transparent 70%),
    radial-gradient(circle 700px at 50% 100%, rgba(232, 224, 212, 0.45) 0%, transparent 70%) !important;
  pointer-events: none;
}
body:not([data-theme="dark"]) .hero::after {
  display: none !important;
}
body:not([data-theme="dark"]) .hero__badge {
  background: #ffffff !important;
  border: 1px solid #ded5c7 !important;
  color: #4a413a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
body:not([data-theme="dark"]) .hero__badge-dot {
  background: #16a34a !important;
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.4) !important;
}
body:not([data-theme="dark"]) .hero__greeting {
  color: #716860 !important;
}
body:not([data-theme="dark"]) .hero__name {
  color: #181513 !important;
  background: none !important;
  -webkit-text-fill-color: #181513 !important;
}
body:not([data-theme="dark"]) .hero__role {
  color: #8c8278 !important;
}
body:not([data-theme="dark"]) .hero__headline {
  color: #181513 !important;
}
body:not([data-theme="dark"]) .hero__description {
  color: #615850 !important;
}
body:not([data-theme="dark"]) .hero__description .highlight {
  color: #c2410c !important;
  background: none !important;
  -webkit-text-fill-color: #c2410c !important;
}
body:not([data-theme="dark"]) .hero__stats-ribbon {
  background: #ffffff !important;
  border: 1px solid #e2dad0 !important;
  box-shadow: 0 4px 20px rgba(24, 21, 19, 0.05) !important;
}
body:not([data-theme="dark"]) .hero__stat-number {
  color: #181513 !important;
}
body:not([data-theme="dark"]) .hero__stat-label {
  color: #8c8278 !important;
}
body:not([data-theme="dark"]) .hero__stat-divider {
  background: #e2dad0 !important;
}
body:not([data-theme="dark"]) .hero .btn--primary {
  background: #181513 !important;
  color: #ffffff !important;
  border: 1px solid #181513 !important;
  box-shadow: 0 4px 14px rgba(24, 21, 19, 0.15) !important;
}
body:not([data-theme="dark"]) .hero .btn--primary:hover {
  background: #2f2824 !important;
  transform: translateY(-2px);
}
body:not([data-theme="dark"]) .hero .btn--secondary {
  background: #ffffff !important;
  color: #181513 !important;
  border: 1px solid #d5cbba !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
body:not([data-theme="dark"]) .hero .btn--secondary:hover {
  background: #fdfcf9 !important;
  border-color: #c9bea9 !important;
  transform: translateY(-2px);
}
body:not([data-theme="dark"]) .hero .btn--ghost {
  background: #ffffff !important;
  color: #4a413a !important;
  border: 1px solid #d5cbba !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
body:not([data-theme="dark"]) .hero .btn--ghost:hover {
  background: #fdfcf9 !important;
  border-color: #c9bea9 !important;
  transform: translateY(-2px);
}
body:not([data-theme="dark"]) .hero__socials {
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid #ded5c7 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
body:not([data-theme="dark"]) .hero__social-link img {
  filter: invert(1) brightness(0.2) !important;
  opacity: 0.75 !important;
}
body:not([data-theme="dark"]) .hero__social-link:hover img {
  opacity: 1 !important;
  filter: invert(1) brightness(0.05) !important;
}
body:not([data-theme="dark"]) .hero__social-link:hover {
  background: rgba(24, 21, 19, 0.06) !important;
}

/* ========================================================
   DARK MODE (Deep Obsidian & Crisp Luminous Typography)
   Triggered by @media (prefers-color-scheme: dark) or [data-theme="dark"]
   ======================================================== */
@media (prefers-color-scheme: dark) {
  body:not([data-theme="light"]) .header {
    background: rgba(11, 12, 16, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  body:not([data-theme="light"]) .header__logo-sub {
    color: #ffffff !important;
  }
  body:not([data-theme="light"]) .header__link {
    color: #94a3b8 !important;
  }
  body:not([data-theme="light"]) .header__link:hover {
    color: #ffffff !important;
  }

  body:not([data-theme="light"]) .hero {
    background: #0b0c10 !important;
    color: #ffffff !important;
  }
  body:not([data-theme="light"]) .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse 70% 45% at 50% -5%, rgba(56, 189, 248, 0.07) 0%, transparent 65%),
      radial-gradient(ellipse 50% 30% at 50% 105%, rgba(14, 165, 233, 0.04) 0%, transparent 60%) !important;
    pointer-events: none;
  }
  body:not([data-theme="light"]) .hero__badge {
    background: rgba(34, 197, 94, 0.1) !important;
    border: 1px solid rgba(34, 197, 94, 0.28) !important;
    color: #86efac !important;
    box-shadow: none !important;
  }
  body:not([data-theme="light"]) .hero__badge-dot {
    background: #22c55e !important;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7) !important;
  }
  body:not([data-theme="light"]) .hero__greeting {
    color: #94a3b8 !important;
  }
  body:not([data-theme="light"]) .hero__name {
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    filter: none !important;
  }
  body:not([data-theme="light"]) .hero__role {
    color: #38bdf8 !important;
    letter-spacing: 0.16em !important;
  }
  body:not([data-theme="light"]) .hero__headline {
    color: #ffffff !important;
  }
  body:not([data-theme="light"]) .hero__description {
    color: #cbd5e1 !important;
  }
  body:not([data-theme="light"]) .hero__description .highlight {
    color: #38bdf8 !important;
    background: none !important;
    -webkit-text-fill-color: #38bdf8 !important;
  }
  body:not([data-theme="light"]) .hero__stats-ribbon {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
  }
  body:not([data-theme="light"]) .hero__stat-number {
    color: #ffffff !important;
  }
  body:not([data-theme="light"]) .hero__stat-label {
    color: #94a3b8 !important;
  }
  body:not([data-theme="light"]) .hero__stat-divider {
    background: rgba(255, 255, 255, 0.12) !important;
  }
  body:not([data-theme="light"]) .hero .btn--primary {
    background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 18px rgba(10, 132, 255, 0.45) !important;
  }
  body:not([data-theme="light"]) .hero .btn--primary:hover {
    background: linear-gradient(135deg, #258cfb 0%, #0a84ff 100%) !important;
    box-shadow: 0 6px 24px rgba(10, 132, 255, 0.6) !important;
    transform: translateY(-2px);
  }
  body:not([data-theme="light"]) .hero .btn--secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: none !important;
  }
  body:not([data-theme="light"]) .hero .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
  }
  body:not([data-theme="light"]) .hero .btn--ghost {
    background: transparent !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: none !important;
  }
  body:not([data-theme="light"]) .hero .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
  }
  body:not([data-theme="light"]) .hero__socials {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
  body:not([data-theme="light"]) .hero__social-link img {
    filter: none !important;
    opacity: 0.8 !important;
  }
  body:not([data-theme="light"]) .hero__social-link:hover img {
    opacity: 1 !important;
  }
  body:not([data-theme="light"]) .hero__social-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }
}

/* Explicit [data-theme="dark"] override */
body[data-theme="dark"] .header {
  background: rgba(11, 12, 16, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
body[data-theme="dark"] .header__logo-sub {
  color: #ffffff !important;
}
body[data-theme="dark"] .header__link {
  color: #94a3b8 !important;
}
body[data-theme="dark"] .header__link:hover {
  color: #ffffff !important;
}
body[data-theme="dark"] .hero {
  background: #0b0c10 !important;
  color: #ffffff !important;
}
body[data-theme="dark"] .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(56, 189, 248, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 30% at 50% 105%, rgba(14, 165, 233, 0.04) 0%, transparent 60%) !important;
  pointer-events: none;
}
body[data-theme="dark"] .hero__badge {
  background: rgba(34, 197, 94, 0.1) !important;
  border: 1px solid rgba(34, 197, 94, 0.28) !important;
  color: #86efac !important;
  box-shadow: none !important;
}
body[data-theme="dark"] .hero__badge-dot {
  background: #22c55e !important;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7) !important;
}
body[data-theme="dark"] .hero__greeting {
  color: #94a3b8 !important;
}
body[data-theme="dark"] .hero__name {
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
  filter: none !important;
}
body[data-theme="dark"] .hero__role {
  color: #38bdf8 !important;
  letter-spacing: 0.16em !important;
}
body[data-theme="dark"] .hero__headline {
  color: #ffffff !important;
}
body[data-theme="dark"] .hero__description {
  color: #cbd5e1 !important;
}
body[data-theme="dark"] .hero__description .highlight {
  color: #38bdf8 !important;
  background: none !important;
  -webkit-text-fill-color: #38bdf8 !important;
}
body[data-theme="dark"] .hero__stats-ribbon {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}
body[data-theme="dark"] .hero__stat-number {
  color: #ffffff !important;
}
body[data-theme="dark"] .hero__stat-label {
  color: #94a3b8 !important;
}
body[data-theme="dark"] .hero__stat-divider {
  background: rgba(255, 255, 255, 0.12) !important;
}
body[data-theme="dark"] .hero .btn--primary {
  background: linear-gradient(135deg, #0a84ff 0%, #0066cc 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 18px rgba(10, 132, 255, 0.45) !important;
}
body[data-theme="dark"] .hero .btn--primary:hover {
  background: linear-gradient(135deg, #258cfb 0%, #0a84ff 100%) !important;
  box-shadow: 0 6px 24px rgba(10, 132, 255, 0.6) !important;
  transform: translateY(-2px);
}
body[data-theme="dark"] .hero .btn--secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}
body[data-theme="dark"] .hero .btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}
body[data-theme="dark"] .hero .btn--ghost {
  background: transparent !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}
body[data-theme="dark"] .hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}
body[data-theme="dark"] .hero__socials {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
body[data-theme="dark"] .hero__social-link img {
  filter: none !important;
  opacity: 0.8 !important;
}
body[data-theme="dark"] .hero__social-link:hover img {
  opacity: 1 !important;
}
body[data-theme="dark"] .hero__social-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Floating Quick Theme Toggle */
.khadi-theme-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  background: rgba(24, 21, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.khadi-theme-toggle__btn {
  padding: 0.6rem 1.1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: #a8a29e;
  background: transparent;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.khadi-theme-toggle__btn.active {
  background: #ffffff;
  color: #181513;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
