/* ── Hero section ─────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Canvas background */
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  will-change: transform;
}

/* Gradient overlay on canvas */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0,87,217,0.07) 0%, transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--color-bg) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Content layer */
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-8) var(--content-padding-x);
  max-width: 900px;
  will-change: transform;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.6s ease 0.2s both;
}

.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

/* Main heading — characters revealed individually */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero__title .word {
  display: inline-block;
  overflow: hidden;
  margin-right: 0.25em;
}

.hero__title .word:last-child {
  margin-right: 0;
}

.hero__title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero__title .accent {
  color: var(--color-accent);
}

/* Subtitle */
.hero__subtitle {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--color-text-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
  line-height: var(--leading-relaxed);
  animation: fadeUp 0.7s ease 0.8s both;
}

/* CTA group */
.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 1s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  color: var(--color-bg);
  background: var(--color-accent);
  box-shadow: 0 4px 24px var(--color-accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--color-accent-glow);
}

.btn-secondary {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: rgba(0,0,0,0.04);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--color-accent-dim);
  background: rgba(0,87,217,0.06);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-subtle);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
}

.hero__scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--color-text-subtle);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero__scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 2px;
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(8px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
