/* ==========================================================================
   HERO — Large typography, floating cards, parallax, statistics
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  /* Soft radial gradients are already blurry — a light filter keeps cost low */
  filter: blur(40px);
  opacity: 0.5;
  will-change: transform;
  transform: translateZ(0);
  animation: blob-drift 18s ease-in-out infinite;
}

.hero__blob--1 {
  width: 480px;
  height: 480px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
}

.hero__blob--2 {
  width: 380px;
  height: 380px;
  bottom: 10%;
  left: -10%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  animation-delay: -6s;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, var(--color-accent-muted), transparent 70%);
  animation-delay: -10s;
}

.hero__particles {
  position: absolute;
  inset: 0;
}

.hero__particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0.3;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  width: 100%;
}

.hero__text {
  max-width: 680px;
}

.hero__badge {
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .word {
  display: inline-block;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero__role {
  font-size: var(--text-base);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.hero__stat {
  text-align: left;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1;
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Hero visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.hero__portrait-wrap {
  position: relative;
  width: 340px;
  height: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 2;
}

.hero__portrait-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: 1;
}

.hero__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 2px);
}

.hero__portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-surface), var(--color-bg-elevated));
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-text-subtle);
}

/* Floating cards */
.hero__float-card {
  position: absolute;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--card-solid);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  z-index: 3;
  min-width: 140px;
  will-change: transform;
}

.hero__float-card--1 {
  top: 8%;
  right: 0;
}

.hero__float-card--2 {
  bottom: 20%;
  left: -5%;
}

.hero__float-card--3 {
  bottom: 5%;
  right: 10%;
}

.hero__float-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-accent-muted);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  font-size: var(--text-sm);
}

.hero__float-card-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.hero__float-card-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
}

/* Marquee section */
.marquee-section {
  padding-block: var(--space-lg);
  border-block: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  flex-shrink: 0;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-shrink: 0;
}

.marquee__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text-subtle);
  white-space: nowrap;
  transition: color var(--duration-fast) ease;
}

.marquee__text:hover {
  color: var(--color-accent);
}

.marquee__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__subtitle {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__visual {
    min-height: 320px;
    margin-top: var(--space-lg);
  }

  .hero__portrait-wrap {
    width: 240px;
    height: 300px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: unset;
    align-items: flex-start;
    padding-top: calc(var(--nav-height) + var(--space-md));
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .hero__float-card--2 {
    left: 0;
  }

  .hero__title {
    font-size: clamp(2.5rem, 12vw, 3.5rem);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }
}
