/* Hutz base — reset, typography, container, buttons, ambient background */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  /* Native smooth scroll for anchor links + offset for fixed navbar */
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.5;
}

/* Aurora ambient — 4 radials drifting slowly to keep the dark background alive */
body::before {
  content: "";
  position: fixed; inset: -10%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%,  rgba(255, 31, 143, calc(var(--grain-strength) * 1.6)) 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 50% 0%,  rgba(255, 31, 143, calc(var(--grain-strength) * 1.1)) 0%, transparent 60%),
    radial-gradient(ellipse 65% 50% at 100% 45%, rgba(0, 229, 255, calc(var(--grain-strength) * 1.0)) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 85% 100%, rgba(176, 38, 255, calc(var(--grain-strength) * 0.9)) 0%, transparent 55%);
  animation: aurora-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(1.5%, -1%, 0) scale(1.04); }
  100% { transform: translate3d(-1%, 1.5%, 0) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* Grain overlay */
body::after {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: calc(var(--grain-strength) * 4);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Per-section subtle gradient washes — alternate corners for depth */
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  background: radial-gradient(ellipse 55% 35% at 0% 0%, rgba(255, 31, 143, 0.045), transparent 60%);
}
.section:nth-of-type(2n)::before {
  background: radial-gradient(ellipse 55% 35% at 100% 100%, rgba(0, 229, 255, 0.045), transparent 60%);
}
.section:nth-of-type(3n)::before {
  background:
    radial-gradient(ellipse 45% 30% at 100% 0%, rgba(176, 38, 255, 0.04), transparent 55%),
    radial-gradient(ellipse 45% 30% at 0% 100%, rgba(255, 31, 143, 0.035), transparent 55%);
}
.section > .container { position: relative; z-index: 1; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.container-narrow { max-width: 820px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}
.text-accent { color: var(--accent-pink); }
.script-accent {
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--accent-pink);
  letter-spacing: 0;
  font-style: italic;
  text-shadow: 0 0 calc(20px * var(--glow-strength)) rgba(255, 31, 143, calc(0.7 * var(--glow-strength)));
  padding: 0 0.05em;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: all 0.18s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--accent-pink);
  color: #fff;
  box-shadow:
    0 0 calc(40px * var(--glow-strength)) rgba(255, 31, 143, calc(0.6 * var(--glow-strength))),
    0 0 calc(80px * var(--glow-strength)) rgba(255, 31, 143, calc(0.3 * var(--glow-strength)));
}
.btn-primary:hover {
  background: #ff3da0;
  transform: translateY(-1px);
  box-shadow:
    0 0 calc(60px * var(--glow-strength)) rgba(255, 31, 143, calc(0.8 * var(--glow-strength))),
    0 0 calc(120px * var(--glow-strength)) rgba(255, 31, 143, calc(0.4 * var(--glow-strength)));
}
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  background: var(--text-primary);
  color: var(--bg-base);
}
.btn-secondary:hover { background: #fff; }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  color: var(--text-secondary);
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  transition: color 0.18s;
  background: transparent; border: none; cursor: pointer;
}
.btn-ghost:hover { color: var(--text-primary); }

/* Section primitives */
.section {
  position: relative;
  padding: 96px 0;
  z-index: 1;
}
@media (min-width: 768px) { .section { padding: 128px 0; } }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent-pink);
  margin-bottom: 20px;
  padding: 6px 12px;
  border: 1px solid color-mix(in oklab, var(--accent-pink) 40%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--accent-pink) 8%, transparent);
}
.section-h2 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  max-width: 820px;
  margin-bottom: 64px;
  text-wrap: balance;
}

/* Reveal-on-scroll (toggled via JS .is-visible class) */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile spacing */
@media (max-width: 767px) {
  .section { padding: 72px 0; }
}

/* Visually hidden but available to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
