/* Reset, ambiance globale, typo, boutons, primitives réutilisables
   (GlassSurface, AtmosphericGlow, SectionLabel, Reveal, MagneticButton). */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- ambient world: the black is never flat ---------- */
.world-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.world-glow::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 38% at 18% 6%, rgba(255,47,163,.05), transparent 60%),
    radial-gradient(ellipse 46% 40% at 86% 22%, rgba(139,92,246,.055), transparent 62%),
    radial-gradient(ellipse 50% 36% at 22% 82%, rgba(255,15,134,.04), transparent 60%),
    radial-gradient(ellipse 40% 32% at 90% 94%, rgba(139,92,246,.05), transparent 58%);
}
.world-glow::after {
  content: ''; position: absolute; inset: 0; opacity: .022;
  background-image: radial-gradient(rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 3px 3px;
}

.edge { width: var(--wide); margin: 0 auto; }
.edge-narrow { width: min(92vw, 800px); margin: 0 auto; }

/* ---------- section label (kicker) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--pink-light);
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--pink); box-shadow: 0 0 10px rgba(255,47,163,.75);
}
.eyebrow.is-neutral { color: var(--grey-2); }
.eyebrow.is-neutral::before { background: var(--grey-3); box-shadow: none; }

/* ---------- glass surface primitive ---------- */
.glass {
  position: relative;
  background: var(--glass-fill);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.glass::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.glass-raised { background: var(--glass-fill-raised); }

/* ---------- spotlight border: used sparingly, 1-2 surfaces per section ---------- */
.spotlight { position: relative; --spot-x: 50%; --spot-y: 50%; }
.spotlight::before {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px;
  background: radial-gradient(280px circle at var(--spot-x) var(--spot-y), rgba(255,128,198,.6), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px; white-space: nowrap;
  transition: transform var(--dur-s) var(--ease-out), box-shadow var(--dur-s) var(--ease-out), border-color var(--dur-s) ease, background-color var(--dur-s) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 18px 40px -16px rgba(255,47,163,.6);
}
.btn-primary:hover { box-shadow: 0 22px 48px -14px rgba(255,47,163,.7); }
.btn-ghost {
  background: rgba(255,255,255,.045); color: #fff; border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { border-color: rgba(255,128,198,.4); background: rgba(255,255,255,.075); }
.btn-lg { height: 60px; padding: 0 34px; font-size: 15.5px; }
.btn-text {
  background: none; color: var(--grey-2); font-family: var(--font-display); font-weight: 700; font-size: 14px;
  transition: color var(--dur-s) ease;
}
.btn-text:hover { color: #fff; }



/* ---------- accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
:focus-visible { outline: 2px solid var(--pink-light); outline-offset: 3px; border-radius: 4px; }
a.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 300;
  background: var(--pink); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; transition: top .2s ease;
}
a.skip-link:focus { top: 12px; }

/* ---------- reveal system ---------- */
.js-ready [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--dur-l) var(--ease-out), transform var(--dur-l) var(--ease-out);
}
.js-ready [data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.js-ready [data-reveal="fade"] { transform: none; }
.js-ready [data-reveal="scale"] { transform: translateY(18px) scale(.94); }
.js-ready [data-reveal="scale"].is-visible { transform: translateY(0) scale(1); }
.js-ready [data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }
