/* Hero Section */
/* Uses CSS custom properties defined in tokens.css */

.hero {
  min-height: 100vh;
  min-height: 100dvh; /* Fallback for modern mobile browsers */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-ocean-deep) 0%, hsl(210, 55%, 22%) 50%, hsl(200, 60%, 18%) 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1; /* behind content, above background */
  width: 100%;
  height: 100%;
  pointer-events: none; /* Let clicks pass through to background or interactive elements */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--color-ocean-deep) 70%, transparent),
    transparent
  );
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--color-white);
  max-width: 700px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, var(--fs-hero));
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: clamp(1.25rem, 4vw, var(--fs-xl));
  font-weight: 300;
  font-family: var(--font-heading);
  opacity: 0.9;
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero__tagline {
  font-size: clamp(1rem, 2.5vw, var(--fs-md));
  opacity: 0.8;
  font-family: var(--font-body);
  margin-bottom: var(--space-xl);
  max-width: 80%;
}

.hero__cta {
  padding: 1rem 2.5rem;
  font-size: var(--fs-md);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: color-mix(in srgb, var(--color-white) 60%, transparent);
  animation: bounce 2s infinite cubic-bezier(0.445, 0.05, 0.55, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll-indicator svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}
