/* ============================================================
   FATEFELICI — Stylesheet
   Gabriella Delfante · Collana di favole
   ============================================================ */

/* ——— Custom Properties ——— */
:root {
  /* Palette notte → alba */
  --night:        #0a0820;
  --deep-violet:  #1a0533;
  --violet:       #2d1b69;
  --magenta:      #6b2d8b;
  --rose:         #c2558b;
  --peach:        #f4a676;
  --dawn:         #fde8d0;
  --gold:         #f5d76e;
  --gold-light:   #fff5b7;
  --forest-dark:  #0d1a12;

  /* Semantici */
  --bg:           var(--night);
  --text:         #f0e8ff;
  --text-muted:   #b8a8d4;
  --card-bg:      rgba(255, 255, 255, 0.05);
  --card-border:  rgba(255, 255, 255, 0.10);

  /* Tipografia */
  --font-title:   'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  /* Layout */
  --section-pad:  clamp(4rem, 8vw, 8rem);
  --container:    72rem;
  --radius:       1rem;
  --radius-lg:    2rem;

  /* Easing */
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ——— Reset ——— */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ——— Canvas magico (overlay fisso) ——— */
#magic-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  /* mix-blend-mode: screen rimosso: Firefox gestisce il compositing
     di elementi fixed con blend mode in modo non uniforme rispetto a Chrome.
     Il glow è ottenuto direttamente via ctx.shadowColor/shadowBlur. */
}

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  transition: background-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.scrolled {
  background-color: rgba(10, 8, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-star {
  color: var(--gold);
  display: inline-block;
  animation: spin-slow 9s linear infinite;
}

.logo-text { color: var(--dawn); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--dawn); }

.nav-cta {
  color: var(--gold) !important;
  border: 1px solid rgba(245, 215, 110, 0.55);
  padding: 0.35rem 1.1rem;
  border-radius: 2rem;
  transition: background-color 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background-color: var(--gold) !important;
  color: var(--night) !important;
}

.nav-toggle { display: none; }

/* ——— Hero ——— */
#hero {
  position: relative;
  min-height: 100vh;      /* fallback Firefox < 101 e browser meno recenti */
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  /* Gradiente alba — rivelato dopo che l'overlay notte svanisce */
  background: linear-gradient(
    180deg,
    #fde8d0  0%,
    #f4a676 12%,
    #c2558b 30%,
    #7b3fa0 50%,
    #2d1b69 70%,
    #0a0820 100%
  );
}

/* Overlay notte → si dissolve all'apertura (animazione alba) */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #050412  0%,
    #0a0820 30%,
    #0d0930 70%,
    #0a0820 100%
  );
  animation: dawn-reveal 5s 0.5s var(--ease) forwards;
  z-index: 1;
}

@keyframes dawn-reveal {
  0%   { opacity: 1; }
  100% { opacity: 0; }
}

/* Layer stelle */
.stars-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: star-twinkle var(--twinkle-dur, 3s) var(--twinkle-delay, 0s) ease-in-out infinite alternate;
}

@keyframes star-twinkle {
  from { opacity: 0.12; transform: scale(1); }
  to   { opacity: 0.85; transform: scale(1.6); }
}

/* Contenuto hero */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 58rem;
}

.hero-pre-title {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  animation: fade-up 0.8s 1s var(--ease) forwards;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 300;
  line-height: 0.93;
  letter-spacing: -0.02em;
  color: var(--dawn);
  opacity: 0;
  animation: fade-up 1s 1.4s var(--ease) forwards;
  text-shadow: 0 0 80px rgba(244, 166, 118, 0.45);
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
  animation: title-glow 3s 3.5s ease-in-out infinite alternate;
}

.hero-tagline {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 3vw, 1.85rem);
  font-style: italic;
  font-weight: 300;
  color: var(--rose);
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
  opacity: 0;
  animation: fade-up 0.8s 1.9s var(--ease) forwards;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--text-muted);
  margin-top: 1.25rem;
  line-height: 1.85;
  opacity: 0;
  animation: fade-up 0.8s 2.3s var(--ease) forwards;
}

/* Bottone CTA magico */
.btn-magic {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 2.5rem;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--night);
  background: linear-gradient(135deg, var(--gold), var(--peach));
  border-radius: 3rem;
  box-shadow: 0 4px 32px rgba(245, 215, 110, 0.35);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  opacity: 0;
  animation: fade-up 0.8s 2.8s var(--ease) forwards;
}

.btn-magic:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 44px rgba(245, 215, 110, 0.55);
}

.btn-magic-icon {
  display: inline-block;
  animation: spin-slow 5s linear infinite;
}

/* Glifi decorativi flottanti */
.deco {
  position: absolute;
  color: rgba(245, 215, 110, 0.22);
  pointer-events: none;
  z-index: 3;
  animation: float var(--float-dur, 6s) var(--float-delay, 0s) ease-in-out infinite alternate;
}

.deco-1 { font-size: 1.6rem; top: 24%; left: 9%;  --float-dur: 7s;  --float-delay: 0s; }
.deco-2 { font-size: 0.9rem; top: 62%; right: 11%; --float-dur: 5s;  --float-delay: 1.6s; }
.deco-3 { font-size: 1.1rem; bottom: 28%; left: 19%; --float-dur: 8s; --float-delay: 0.8s; }

@keyframes float {
  from { transform: translateY(0)    rotate(0deg); }
  to   { transform: translateY(-22px) rotate(18deg); }
}

/* Sagoma bosco */
.forest-silhouette {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
  height: clamp(80px, 14vw, 200px);
}

.forest-silhouette svg {
  width: 100%;
  height: 100%;
}

/* ——— Keyframe condivisi ——— */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes title-glow {
  from { text-shadow: 0 0 20px rgba(245, 215, 110, 0.4); }
  to   { text-shadow: 0 0 65px rgba(245, 215, 110, 0.95), 0 0 120px rgba(245, 215, 110, 0.35); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ——— Sezione Il Regno ——— */
#regno {
  background: linear-gradient(
    180deg,
    var(--night)   0%,
    #0f0d2a       45%,
    var(--forest-dark) 100%
  );
  padding: var(--section-pad) 2rem;
  position: relative;
  overflow: hidden;
}

/* Alone ambientale in cima */
#regno::before {
  content: '';
  position: absolute;
  top: -5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 10rem;
  background: radial-gradient(ellipse, rgba(107, 45, 139, 0.28), transparent 70%);
  pointer-events: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

/* Intro sezione */
.section-intro {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  color: var(--dawn);
  margin-bottom: 1.25rem;
}

.section-lead {
  max-width: 42rem;
  margin: 0 auto;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  color: var(--text-muted);
  line-height: 1.85;
}

/* Griglia feature card */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(245, 215, 110, 0.07), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  border-color: rgba(245, 215, 110, 0.28);
}

.feature-card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  display: block;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--dawn);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Blocco citazione */
.quote-block {
  text-align: center;
  padding: 3rem 3rem;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  position: relative;
}

.quote-block::before,
.quote-block::after {
  content: '✦';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(245, 215, 110, 0.18);
  font-size: 3rem;
}

.quote-block::before { left: 1rem; }
.quote-block::after  { right: 1rem; }

blockquote p {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
}

blockquote cite {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ——— Scroll Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.30s; }
.delay-3 { transition-delay: 0.45s; }

/* ——— Sezione Video Gallery ——— */
/*
   Palette estratta dal thumbnail "Le Chiavi delle Fate":
   - Rosso vermiglio (costume fata):  #c92b00
   - Arancio-rosso (capelli/dettagli): #e85020
   - Bruno corteccia (sfondo):         #150a05
   - Specchio argentato:               #4a4050
*/
:root {
  --video-red:       #c92b00;
  --video-red-light: #e85020;
  --video-bark:      #150a05;
}

#video {
  background: linear-gradient(
    180deg,
    var(--forest-dark) 0%,
    var(--video-bark)  50%,
    #0d0510           100%
  );
  padding: var(--section-pad) 2rem;
  position: relative;
  overflow: hidden;
}

/* Texture ombra bark in cima — richiama la corteccia dell'albero nel video */
#video::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8rem;
  background: linear-gradient(180deg, var(--forest-dark), transparent);
  pointer-events: none;
}

/* Alone rosso ambientale */
#video::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 20rem;
  background: radial-gradient(ellipse, rgba(201, 43, 0, 0.12), transparent 70%);
  pointer-events: none;
}

/* ——— Griglia video ——— */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* ——— Video Card ——— */
.video-card {
  background: rgba(30, 10, 5, 0.7);
  border: 1px solid rgba(201, 43, 0, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(201, 43, 0, 0.25);
  border-color: rgba(201, 43, 0, 0.45);
}

/* Thumbnail button */
.video-thumb-btn {
  display: block;
  width: 100%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: var(--video-bark);
}

.video-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease), filter 0.3s;
  filter: brightness(0.88) saturate(1.1);
}

.video-card:hover .video-thumb-btn img {
  transform: scale(1.04);
  filter: brightness(0.75) saturate(1.2);
}

/* Overlay play */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 5, 2, 0.25);
  transition: background 0.3s;
}

.video-card:hover .video-play-overlay {
  background: rgba(10, 5, 2, 0.50);
}

/* Bottone play — ispirato al cappello conico rosso della fata */
.video-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--video-red), var(--video-red-light));
  border: 2px solid rgba(245, 215, 110, 0.6);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;   /* ottico per il triangolo */
  box-shadow: 0 0 0 8px rgba(201, 43, 0, 0.20),
              0 6px 24px rgba(201, 43, 0, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.video-card:hover .video-play-btn {
  transform: scale(1.12);
  box-shadow: 0 0 0 12px rgba(201, 43, 0, 0.25),
              0 10px 35px rgba(201, 43, 0, 0.6);
}

/* Badge (Trailer / Ep. N) */
.video-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: linear-gradient(135deg, var(--video-red), var(--video-red-light));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 0.3rem;
}

/* Info testo */
.video-info {
  padding: 1.1rem 1.4rem 1.4rem;
}

.video-info h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dawn);
  margin-bottom: 0.3rem;
}

.video-series {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--video-red-light);
}

/* ——— Card "Prossimamente" ——— */
.video-card--soon {
  cursor: default;
  opacity: 0.75;
}

.video-card--soon:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(201, 43, 0, 0.18);
}

.video-coming-soon {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    rgba(201, 43, 0, 0.04) 0px,
    rgba(201, 43, 0, 0.04) 1px,
    transparent 1px,
    transparent 12px
  );
  border-bottom: 1px solid rgba(201, 43, 0, 0.15);
}

.coming-icon {
  font-size: 2.5rem;
  color: rgba(201, 43, 0, 0.35);
  animation: float 5s ease-in-out infinite alternate;
}

/* ——— Modal Lightbox ——— */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.video-modal[hidden] { display: none; }

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 2, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.video-modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  z-index: 1;
  animation: fade-up 0.3s var(--ease) forwards;
}

.video-modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(201, 43, 0, 0.8);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.video-modal-close:hover {
  background: var(--video-red-light);
  transform: scale(1.1);
}

.video-modal-frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 43, 0, 0.3);
  box-shadow: 0 0 80px rgba(201, 43, 0, 0.25),
              0 30px 80px rgba(0, 0, 0, 0.8);
}

.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-modal-title {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ——— Responsive video ——— */
@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-modal-close { top: -2.5rem; }
}

/* ——— Footer ——— */
.site-footer {
  background: #050412;
  padding: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--card-border);
}

.footer-logo {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* ——— Responsive ——— */
@media (max-width: 768px) {
  .main-nav { display: none; }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 18, 0.97);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 1000;
  }

  .main-nav.open ul {
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
  }

  .main-nav.open a { font-size: 1.5rem; }

  .features-grid { grid-template-columns: 1fr; }

  .quote-block::before,
  .quote-block::after { display: none; }
}

/* ——— Accessibilità ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Il canvas rimane visibile anche con reduced-motion (scelta dell'autrice).
     Le animazioni CSS vengono comunque azzerate dalla regola sopra. */

  /* Rende visibili gli elementi senza animazioni */
  .reveal,
  .hero-pre-title,
  .hero-title,
  .hero-tagline,
  .hero-subtitle,
  .btn-magic {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Focus visibile per navigazione da tastiera */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --radius: 0.5rem;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
header {
  background-color: var(--color-surface);
  box-shadow: var(--shadow);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 1.5rem;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--color-primary);
}

/* ===== Main ===== */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  max-width: 600px;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  color: var(--color-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

#cta-btn {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

#cta-btn:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

#cta-btn:active {
  transform: translateY(0);
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  border-top: 1px solid #e2e8f0;
  background-color: var(--color-surface);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h2 {
    font-size: 1.75rem;
  }
}
