/* RQuiz — page d'accueil (soutien scolaire) */

:root {
  --h-bg: #FAFAFC;
  --h-surface: #FFFFFF;
  --h-surface-2: #F4F2FA;
  --h-border: #E8E5F2;
  --h-text: #15122B;
  --h-muted: #5D5978;
  --h-primary: #7C3AED;
  --h-primary-hover: #6D28D9;
  --h-gradient: linear-gradient(135deg, #7C3AED 0%, #C026D3 100%);
  --h-on-primary: #FFFFFF;
  --h-primary-soft: #F1EAFE;
  --h-primary-soft-text: #5B21B6;
  --h-success: #047857;
  --h-success-soft: #E6F6EF;
  --h-warning: #B45309;
  --h-warning-soft: #FEF3DC;
  --h-shadow: 0 1px 2px rgba(21, 18, 43, 0.04), 0 10px 30px rgba(21, 18, 43, 0.08);
  --h-shadow-lg: 0 20px 60px rgba(76, 29, 149, 0.16);
  --h-radius: 20px;
  --h-nav-bg: rgba(250, 250, 252, 0.94);
  color-scheme: light;
}

[data-theme="dark"] {
  --h-bg: #0C0A17;
  --h-surface: #151229;
  --h-surface-2: #1D1937;
  --h-border: #2A2547;
  --h-text: #EEEBF8;
  --h-muted: #A9A4C6;
  --h-primary: #A78BFA;
  --h-primary-hover: #C4B5FD;
  --h-gradient: linear-gradient(135deg, #8B5CF6 0%, #D946EF 100%);
  --h-on-primary: #FFFFFF;
  --h-primary-soft: rgba(167, 139, 250, 0.14);
  --h-primary-soft-text: #D7CBFF;
  --h-success: #34D399;
  --h-success-soft: rgba(52, 211, 153, 0.13);
  --h-warning: #FBBF24;
  --h-warning-soft: rgba(251, 191, 36, 0.13);
  --h-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.3);
  --h-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
  --h-nav-bg: rgba(12, 10, 23, 0.94);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.h-body {
  margin: 0;
  background: var(--h-bg);
  color: var(--h-text);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--h-primary); outline-offset: 3px; border-radius: 6px; }

.h-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.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; }

/* ---------- Buttons ---------- */

.h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.h-btn:hover { transform: translateY(-1px); }
.h-btn--primary { background: var(--h-gradient); color: var(--h-on-primary); box-shadow: 0 10px 24px rgba(124, 58, 237, 0.28); }
.h-btn--primary:hover { box-shadow: 0 14px 30px rgba(124, 58, 237, 0.36); }
.h-btn--ghost { background: var(--h-surface); color: var(--h-text); border-color: var(--h-border); }
.h-btn--ghost:hover { border-color: var(--h-primary); color: var(--h-primary); }
.h-btn--light { background: #FFFFFF; color: #2E1065; }
.h-btn--outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.35); }
.h-btn--outline-light:hover { border-color: #FFFFFF; }
.h-btn--sm { padding: 0.55rem 1rem; font-size: 0.9rem; border-radius: 12px; }
.h-btn--icon { width: 42px; height: 42px; padding: 0; border-radius: 12px; font-size: 1.15rem; }

/* ---------- Navigation ---------- */

.h-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--h-nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.h-nav.is-scrolled { border-bottom-color: var(--h-border); box-shadow: 0 6px 20px rgba(21, 18, 43, 0.05); }
.h-nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.h-nav__logo img { height: 48px; width: auto; }
.h-nav__links { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.h-nav__links a { padding: 0.5rem 0.8rem; border-radius: 10px; font-weight: 600; font-size: 0.93rem; color: var(--h-muted); }
.h-nav__links a:hover { color: var(--h-text); background: var(--h-surface-2); }
.h-nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.h-nav__menu-btn { display: none; }

.h-mobile-menu { display: none; }

/* ---------- Hero ---------- */

.h-hero { position: relative; overflow: hidden; padding: 4.5rem 0 5rem; }
.h-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto auto;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(192, 38, 211, 0.16) 0%, rgba(124, 58, 237, 0.08) 40%, transparent 70%);
  pointer-events: none;
}
.h-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.5rem; align-items: center; }
.h-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--h-primary-soft);
  color: var(--h-primary-soft-text);
  font-size: 0.85rem;
  font-weight: 700;
}
.h-hero__title { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.03em; margin-top: 1.1rem; }
.h-gradient-text { background: var(--h-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-hero__lead { margin-top: 1.25rem; font-size: 1.15rem; color: var(--h-muted); max-width: 560px; }
.h-hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.h-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 2rem; padding: 0; list-style: none; }
.h-trust li { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.93rem; color: var(--h-muted); }
.h-trust i { color: var(--h-success); font-size: 1.15rem; }

/* Hero preview (illustrative interface mock) */
.h-preview { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.h-preview__card {
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  border-radius: 18px;
  box-shadow: var(--h-shadow-lg);
  padding: 1.1rem 1.2rem;
}
.h-preview__card--offset { margin-left: 2.5rem; }
.h-preview__label { font-size: 0.75rem; font-weight: 700; color: var(--h-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.h-preview__row { display: flex; align-items: center; gap: 0.8rem; margin-top: 0.6rem; }
.h-preview__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: var(--h-primary-soft); color: var(--h-primary-soft-text); flex-shrink: 0; }
.h-preview__title { font-weight: 700; }
.h-preview__meta { font-size: 0.88rem; color: var(--h-muted); }
.h-preview__pill { margin-left: auto; padding: 0.4rem 0.8rem; border-radius: 10px; background: var(--h-gradient); color: #fff; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.h-preview__text { margin-top: 0.5rem; font-size: 0.92rem; color: var(--h-text); }
.h-bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 74px; margin-top: 0.8rem; }
.h-bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--h-primary-soft); }
.h-bars span:last-child { background: var(--h-gradient); }
.h-preview__note { font-size: 0.78rem; color: var(--h-muted); text-align: right; }

/* ---------- Sections ---------- */

.h-section { padding: 5.5rem 0; }
.h-section--alt { background: var(--h-surface); border-top: 1px solid var(--h-border); border-bottom: 1px solid var(--h-border); }
.h-section__head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.h-section__title { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin-top: 0.8rem; }
.h-section__lead { margin-top: 0.9rem; color: var(--h-muted); font-size: 1.08rem; }

.h-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.h-step { position: relative; padding: 1.6rem 1.4rem; border-radius: var(--h-radius); background: var(--h-surface); border: 1px solid var(--h-border); box-shadow: var(--h-shadow); }
.h-section--alt .h-step { background: var(--h-bg); }
.h-step__num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--h-gradient); color: #fff; font-weight: 800; }
.h-step__title { margin-top: 1rem; font-size: 1.1rem; font-weight: 700; }
.h-step__text { margin-top: 0.5rem; color: var(--h-muted); font-size: 0.96rem; }

.h-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.h-feature { padding: 1.8rem 1.6rem; border-radius: var(--h-radius); background: var(--h-surface); border: 1px solid var(--h-border); box-shadow: var(--h-shadow); }
.h-feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: var(--h-primary-soft); color: var(--h-primary-soft-text); }
.h-feature__title { margin-top: 1.1rem; font-size: 1.15rem; font-weight: 700; }
.h-feature__text { margin-top: 0.5rem; color: var(--h-muted); }
.h-feature__list { margin: 1rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.h-feature__list li { display: flex; gap: 0.5rem; font-size: 0.94rem; }
.h-feature__list i { color: var(--h-success); margin-top: 0.2rem; }


/* Three spaces: student, parent, teacher */
.h-spaces-section { background: linear-gradient(180deg, var(--h-bg) 0%, var(--h-primary-soft) 100%); }
.h-spaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.h-space {
  --space-c: #7C3AED;
  --space-soft: rgba(124, 58, 237, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.8rem 1.6rem;
  border-radius: var(--h-radius);
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  box-shadow: var(--h-shadow);
  overflow: hidden;
}
.h-space::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--space-c); }
.h-space--parent { --space-c: #059669; --space-soft: rgba(5, 150, 105, 0.1); }
.h-space--teacher { --space-c: #D97706; --space-soft: rgba(217, 119, 6, 0.12); }
[data-theme="dark"] .h-space { --space-soft: rgba(167, 139, 250, 0.14); }
[data-theme="dark"] .h-space--student { --space-c: #A78BFA; }
[data-theme="dark"] .h-space--parent { --space-c: #34D399; --space-soft: rgba(52, 211, 153, 0.13); }
[data-theme="dark"] .h-space--teacher { --space-c: #FBBF24; --space-soft: rgba(251, 191, 36, 0.13); }
.h-space__head { display: flex; align-items: center; gap: 0.75rem; }
.h-space__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.55rem; background: var(--space-soft); color: var(--space-c); }
.h-space__label { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--space-c); }
.h-space__title { font-size: 1.3rem; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.h-space__text { color: var(--h-muted); font-size: 0.96rem; }
.h-space__menu { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0.6rem; border-radius: 12px; background: var(--h-surface-2); }
.h-space__menu span { padding: 0.25rem 0.6rem; border-radius: 8px; font-size: 0.78rem; font-weight: 700; color: var(--h-muted); background: var(--h-surface); }
.h-space__menu span:first-child { color: var(--space-c); background: var(--space-soft); }
.h-space__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.h-space__list li { display: flex; gap: 0.6rem; font-size: 0.94rem; }
.h-space__list i { color: var(--space-c); font-size: 1.15rem; margin-top: 0.1rem; flex-shrink: 0; }
.h-space__cta { margin-top: auto; align-self: flex-start; }
.h-space__cta:hover { border-color: var(--space-c); color: var(--space-c); }

.h-subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.h-subject { display: flex; align-items: center; gap: 0.9rem; padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--h-bg); border: 1px solid var(--h-border); }
.h-subject__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; background: var(--h-primary-soft); color: var(--h-primary-soft-text); }
.h-subject__name { font-weight: 700; }
.h-subject__meta { font-size: 0.86rem; color: var(--h-muted); }
.h-subjects__note { text-align: center; margin-top: 1.5rem; color: var(--h-muted); }

/* Dark brand band: RQuiz + Champions League (dark in both themes) */
.h-band { background: radial-gradient(ellipse 80% 70% at 20% 0%, rgba(192, 38, 211, 0.25), transparent 60%), #0D0A1E; color: #F3F0FF; }
.h-band .h-eyebrow { background: rgba(255, 255, 255, 0.1); color: #E9D5FF; }
.h-band .h-section__lead, .h-band .h-band__text { color: #C9C3E6; }
.h-band__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.h-band__card { display: flex; flex-direction: column; gap: 1rem; padding: 2rem; border-radius: 24px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); }
.h-band__card h3 { font-size: 1.5rem; font-weight: 800; color: #FFFFFF; }
.h-band__logo { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; }
.h-band__icon { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-size: 2rem; background: linear-gradient(135deg, #8B5CF6, #D946EF); color: #fff; }
.h-band__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; color: #E4DEFF; }
.h-band__list li { display: flex; gap: 0.55rem; }
.h-band__list i { color: #F0ABFC; margin-top: 0.2rem; }
.h-band__card .h-btn { align-self: flex-start; margin-top: auto; }
.h-stages { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.h-stages span { padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.82rem; font-weight: 700; color: #F3E8FF; }
.h-stages span:last-child { background: linear-gradient(135deg, #8B5CF6, #D946EF); border-color: transparent; }

.h-testimonials { --h-t-gap: 1.25rem; --h-t-per-view: 3; }
.h-testimonials:not(.h-testimonials--carousel) .h-testimonials__track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--h-t-gap);
}
.h-testimonials--carousel { position: relative; }
.h-testimonials__viewport { overflow: hidden; margin: 0 -0.15rem; padding: 0.15rem; }
.h-testimonials__track {
  display: flex;
  gap: var(--h-t-gap);
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.h-testimonials--carousel .h-testimonial {
  flex: 0 0 calc((100% - (var(--h-t-per-view) - 1) * var(--h-t-gap)) / var(--h-t-per-view));
  min-width: 0;
  min-height: 220px;
}
.h-testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.6rem;
  border-radius: var(--h-radius);
  background: var(--h-surface);
  border: 1px solid var(--h-border);
  box-shadow: var(--h-shadow);
}
.h-stars { color: #F59E0B; letter-spacing: 0.1em; }
.h-testimonial blockquote { margin: 0; font-size: 1rem; white-space: pre-line; }
.h-testimonial figcaption { margin-top: auto; font-weight: 700; color: var(--h-muted); font-size: 0.92rem; }
.h-testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.h-testimonials__arrow {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--h-border);
  background: var(--h-surface);
  color: var(--h-text);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.h-testimonials__arrow:hover {
  border-color: var(--h-primary);
  color: var(--h-primary);
  background: var(--h-primary-soft);
}
.h-testimonials__dots { display: flex; align-items: center; gap: 0.45rem; }
.h-testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: var(--h-border);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.h-testimonials__dot.is-active {
  width: 22px;
  background: var(--h-primary);
}
@media (max-width: 1080px) {
  .h-testimonials { --h-t-per-view: 2; }
}
@media (max-width: 720px) {
  .h-testimonials { --h-t-per-view: 1; }
  .h-testimonials--carousel .h-testimonial { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .h-testimonials__track { transition: none; }
}

.h-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.h-faq details { border: 1px solid var(--h-border); border-radius: 16px; background: var(--h-bg); }
.h-section--alt .h-faq details { background: var(--h-bg); }
.h-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.3rem; cursor: pointer; font-weight: 700; list-style: none; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary i { transition: transform 0.2s ease; color: var(--h-primary); }
.h-faq details[open] summary i { transform: rotate(45deg); }
.h-faq details p { padding: 0 1.3rem 1.2rem; color: var(--h-muted); }

.h-contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 2rem; align-items: start; }
.h-contact__info { display: flex; flex-direction: column; gap: 1rem; }
.h-contact__item { display: flex; gap: 0.9rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--h-surface); border: 1px solid var(--h-border); }
.h-contact__item i { font-size: 1.4rem; color: var(--h-primary); }
.h-form { display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem; border-radius: var(--h-radius); background: var(--h-surface); border: 1px solid var(--h-border); box-shadow: var(--h-shadow); }
.h-field { display: flex; flex-direction: column; gap: 0.35rem; }
.h-field label { font-weight: 600; font-size: 0.9rem; }
.h-input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--h-border);
  background: var(--h-bg);
  color: var(--h-text);
  font: inherit;
}
.h-input:focus { outline: none; border-color: var(--h-primary); box-shadow: 0 0 0 3px var(--h-primary-soft); }
textarea.h-input { resize: vertical; min-height: 130px; }
.h-form__status { font-size: 0.92rem; font-weight: 600; }
.h-form__status--ok { color: var(--h-success); }
.h-form__status--error { color: #DC2626; }

.h-cta { padding: 0 0 5.5rem; }
.h-cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.6rem;
  border-radius: 28px;
  background: var(--h-gradient);
  color: #FFFFFF;
  box-shadow: var(--h-shadow-lg);
}
.h-cta__box h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; }
.h-cta__box p { margin-top: 0.4rem; color: rgba(255, 255, 255, 0.88); }
.h-cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.h-footer { padding: 3.5rem 0 2rem; border-top: 1px solid var(--h-border); background: var(--h-surface); }
.h-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.h-footer__brand img { height: 40px; width: auto; }
.h-footer__brand p { margin-top: 0.9rem; color: var(--h-muted); font-size: 0.94rem; max-width: 320px; }
.h-footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--h-muted); margin-bottom: 0.8rem; }
.h-footer ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.h-footer ul a { color: var(--h-text); font-size: 0.95rem; }
.h-footer ul a:hover { color: var(--h-primary); }
.h-socials { display: flex; gap: 0.5rem; margin-top: 1rem; }
.h-socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--h-border); font-size: 1.15rem; color: var(--h-muted); }
.h-socials a:hover { color: var(--h-primary); border-color: var(--h-primary); }
.h-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--h-border); color: var(--h-muted); font-size: 0.88rem; }
.h-footer__bottom nav { display: flex; gap: 1.25rem; }

/* Reveal on scroll (only when JS runs) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .h-btn:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .h-nav__links { display: none; }
  .h-nav__menu-btn { display: inline-flex; }
  .h-nav__actions { margin-left: auto; }
  .h-mobile-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    z-index: 45;
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.5rem 1.5rem;
    background: var(--h-surface);
    border-bottom: 1px solid var(--h-border);
    box-shadow: var(--h-shadow);
  }
  .h-mobile-menu.is-open { display: flex; }
  .h-mobile-menu a { padding: 0.8rem 0.5rem; font-weight: 600; border-bottom: 1px solid var(--h-border); }
  .h-mobile-menu .h-btn { margin-top: 0.75rem; border-bottom: 0; }
  .h-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .h-preview { max-width: 560px; }
  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-features { grid-template-columns: minmax(0, 1fr); }
  .h-spaces { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin: 0 auto; }
  .h-contact { grid-template-columns: minmax(0, 1fr); }
  .h-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .h-hide-sm { display: none !important; }
  .h-hero { padding: 2.5rem 0 3.5rem; }
  .h-section { padding: 4rem 0; }
  .h-steps, .h-band__grid, .h-spaces { grid-template-columns: minmax(0, 1fr); }
  .h-preview__card--offset { margin-left: 0; }
  .h-cta__box { padding: 1.8rem; }
  .h-footer__grid { grid-template-columns: minmax(0, 1fr); }
}
