/* ============================================================
   hero.css — Hero Section
   ============================================================ */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 40px; /* nav height */
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

/* Animated background grid */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--outline-variant) 1px, transparent 1px),
    linear-gradient(90deg, var(--outline-variant) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.08;
  pointer-events: none;
}

html.light #hero::before {
  opacity: 0.04;
}

/* Radial glow blob */
#hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, color-mix(in srgb, var(--secondary-container) 15%, transparent) 0%, transparent 70%);
  pointer-events: none;
}

html.light #hero::after {
  background: radial-gradient(ellipse 1200px 800px at 100% 0%, rgba(30, 111, 191, 0.08) 0%, rgba(26, 111, 154, 0.04) 40%, transparent 100%);
  opacity: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 5rem var(--margin-desktop);
}

/* ── Left: Text ──────────────────────────────────────────── */
.hero-text {
  position: relative;
  z-index: 1;
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary-container);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--secondary-container) 0%, var(--secondary-container) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding: 6px 0;
}

html.light .hero-overline {
  color: var(--primary-container);
  background: linear-gradient(135deg, #1e6fbf 0%, #0052a3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-overline::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 3px;
  background: var(--secondary-container);
  border-radius: 2px;
  flex-shrink: 0;
}

html.light .hero-overline::before {
  background: linear-gradient(90deg, #1e6fbf 0%, #0052a3 100%);
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(48px, 6.5vw, 84px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--on-surface);
  margin-bottom: 1.75rem;
}

.hero-title .accent {
  color: var(--secondary-container);
  position: relative;
  display: inline-block;
}

html.light .hero-title .accent {
  color: var(--primary-container);
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  opacity: 0.35;
}

.hero-desc {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2.5rem;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.hero-badge span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

/* ── Right: Visual ───────────────────────────────────────── */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.03);
}

.hero-image-card .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--background) 65%, transparent) 0%, transparent 60%);
}

html.light .hero-image-card .img-overlay {
  background: none;
}

/* Floating cards */
.hero-float-stat {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  animation: float-card 4s ease-in-out infinite;
}

html.light .hero-float-stat {
  background: rgba(255,255,255,0.92);
}

.hero-float-stat:nth-child(2) { animation-delay: -2s; }

@keyframes float-card {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hero-float-stat.card-1 {
  bottom: -20px;
  left: -20px;
}

.hero-float-stat.card-2 {
  top: -20px;
  right: -20px;
}

.float-stat-icon {
  width: 38px;
  height: 38px;
  background: var(--primary-container);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-stat-icon .material-symbols-outlined {
  font-size: 20px;
  color: var(--secondary-container);
}

html.light .float-stat-icon .material-symbols-outlined {
  color: #fff;
}

.float-stat-label {
  font-size: 11px;
  color: var(--on-surface-variant);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.float-stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.2;
}
