/* ============================================================
   Facloud — Landing styles
   Mobile-first · breakpoints 768px y 1024px
   ============================================================ */

:root {
  --cyan:       #39BAFE;
  --navy:       #003D9B;
  --navy-dark:  #001A4D;
  --bg-light:   #F0F6FF;
  --border:     #E8F0FE;
  --text:       #1A202C;
  --muted:      #4A5568;

  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 10px 30px rgba(0, 61, 155, .10);
  --shadow-lg:  0 24px 60px rgba(0, 61, 155, .18);
  --max:        1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* evita que las anclas queden bajo el navbar fijo */
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cyan); color: var(--navy-dark); }

/* Foco visible para navegación por teclado */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Barra de scroll con la marca (WebKit) */
@media (min-width: 768px) {
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: var(--bg-light); }
  ::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--cyan), var(--navy));
    border-radius: 999px;
    border: 3px solid var(--bg-light);
  }
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.15; margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow { max-width: 800px; }

.section { padding: 72px 0; }
.section--alt { background: var(--bg-light); }

.section__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}
.section__title { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.section__lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: .95rem;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 14px 26px; font-size: 1rem; }

.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: #002f78; box-shadow: var(--shadow); }

.btn--secondary { background: #fff; color: var(--navy); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--cyan); color: var(--navy); }

.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: #eaf3ff; }

.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.navbar.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 61, 155, .08);
  border-bottom-color: var(--border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar__brand { display: flex; align-items: center; }

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.navbar__nav a { font-weight: 600; color: var(--muted); font-size: .95rem; }
.navbar__nav a:hover { color: var(--navy); }
.navbar__nav a.navbar__cta { color: #fff; }

/* Subrayado animado + enlace activo (scrollspy) */
.navbar__nav a:not(.navbar__cta) { position: relative; }
.navbar__nav a:not(.navbar__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.navbar__nav a:not(.navbar__cta):hover::after,
.navbar__nav a.is-active::after { transform: scaleX(1); }
.navbar__nav a.is-active { color: var(--navy); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.navbar__toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.navbar__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Barra de progreso de lectura ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  z-index: 200;
  transition: width .1s linear;
}

/* ---------- Botón volver arriba ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px) scale(.85);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 120;
}
.to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.to-top:hover { background: var(--cyan); transform: translateY(-3px) scale(1.05); }
.to-top svg { width: 24px; height: 24px; fill: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #eaf3ff 0%, #cfe4ff 22%, #aacdff 44%, #cfe4ff 66%, #e8f2ff 100%);
  background-size: 320% 320%;
  animation: hero-gradient 12s ease-in-out infinite;
  padding: 36px 0 44px;
}
/* Auroras en movimiento con los colores del logo (cian + navy) */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  top: -25%; right: -8%;
  width: 60%; height: 90%;
  background: radial-gradient(circle, rgba(57, 186, 254, .55), transparent 64%);
  animation: hero-aurora-1 10s ease-in-out infinite alternate;
}
.hero::after {
  bottom: -38%; left: -12%;
  width: 55%; height: 80%;
  background: radial-gradient(circle, rgba(0, 61, 155, .34), transparent 64%);
  animation: hero-aurora-2 13s ease-in-out infinite alternate;
}
.hero > .container { position: relative; z-index: 1; }

@keyframes hero-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes hero-aurora-1 {
  from { transform: translate(0, 0) scale(1);          opacity: .55; }
  to   { transform: translate(-80px, 56px) scale(1.32); opacity: 1; }
}
@keyframes hero-aurora-2 {
  from { transform: translate(0, 0) scale(1);          opacity: .45; }
  to   { transform: translate(78px, -44px) scale(1.36); opacity: 1; }
}
.hero__grid { display: grid; gap: 40px; align-items: center; }

.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: .85rem;
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.hero__title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin: 20px 0 16px;
  letter-spacing: -.02em;
}
.hero__subtitle { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 520px; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stores { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stores .store-btn { padding: 12px 20px; }
.hero__trust { margin-top: 22px; color: var(--muted); font-weight: 600; font-size: .92rem; }

/* macOS frame */
.frame {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #f5f8ff;
  border-bottom: 1px solid var(--border);
}
.frame__dot { width: 12px; height: 12px; border-radius: 50%; }
.frame__dot--red    { background: #ff5f57; }
.frame__dot--yellow { background: #febc2e; }
.frame__dot--green  { background: #28c840; }
.frame__body { background: #fff; }
.frame__body img { width: 100%; height: auto; display: block; }

/* ---------- Dashboard animado (inspirado en Facloud) ---------- */
.dash {
  display: flex;
  height: 340px;
  background: var(--bg-light);
  font-family: 'Inter', sans-serif;
}

/* Sidebar */
.dash__side {
  width: 54px;
  flex-shrink: 0;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}
.dash__logo {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), #fff);
  margin-bottom: 6px;
}
.dash__navdot {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(255,255,255,.14);
}
.dash__navdot.is-active { background: var(--cyan); }

/* Main */
.dash__main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash__topbar { display: flex; align-items: center; justify-content: space-between; }
.dash__title { width: 120px; height: 12px; border-radius: 6px; background: var(--navy); opacity: .85; }
.dash__avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--navy)); }

/* Stat cards */
.dash__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  animation: dash-card-in .6s ease forwards;
}
.dash__card:nth-child(1) { animation-delay: .1s; }
.dash__card:nth-child(2) { animation-delay: .25s; }
.dash__card:nth-child(3) { animation-delay: .4s; }
.dash__card-label { font-size: 9px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.dash__card-value { font-size: 15px; font-weight: 800; color: var(--navy); }
.dash__spark {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  width: 0;
  animation: dash-spark 1.4s ease forwards;
  animation-delay: .6s;
}
.dash__spark--up { background: linear-gradient(90deg, #28c840, var(--cyan)); }

/* Panels: bars + donut */
.dash__panels { flex: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px; min-height: 0; }
.dash__chart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}
.dash__panel-title { width: 70px; height: 8px; border-radius: 4px; background: var(--border); margin-bottom: 10px; }
.dash__bars { flex: 1; display: flex; align-items: flex-end; gap: 7px; }
.dash__bars span {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--navy));
  transform: scaleY(0);
  transform-origin: bottom;
  animation: dash-bar 3.2s ease-in-out var(--d) infinite;
}

/* Donut */
.dash__donut {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.dash__donut svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.dash__donut-track { fill: none; stroke: var(--border); stroke-width: 12; }
.dash__donut-fill {
  fill: none;
  stroke: var(--navy);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 301.6;
  stroke-dashoffset: 301.6;
  animation: dash-donut 2s ease forwards .5s;
}
.dash__donut-label {
  position: absolute;
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.dash__donut-label small { font-size: 8px; font-weight: 600; color: var(--muted); margin-top: 3px; letter-spacing: .05em; }

@keyframes dash-card-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes dash-spark {
  to { width: 100%; }
}
@keyframes dash-bar {
  0%, 100% { transform: scaleY(.55); }
  50%      { transform: scaleY(1); }
}
@keyframes dash-donut {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .hero::before, .hero::after { animation: none; }
  .dash__card, .dash__spark, .dash__bars span, .dash__donut-fill { animation: none; }
  .dash__card { opacity: 1; transform: none; }
  .dash__spark { width: 100%; }
  .dash__bars span { transform: scaleY(1); }
  .dash__donut-fill { stroke-dashoffset: 0; }
}

/* ---------- Trust bar ---------- */
.trustbar {
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.trustbar p {
  margin: 0;
  padding: 18px 0;
  font-weight: 600;
  letter-spacing: .01em;
  font-size: 1rem;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--modules { grid-template-columns: 1fr; }
.grid--pillars { grid-template-columns: 1fr; }
.grid--stats   { grid-template-columns: repeat(2, 1fr); gap: 28px; }

/* ---------- Cards (módulos) ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
/* línea de acento superior que crece al hover */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--navy));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.card:hover::before { transform: scaleX(1); }
/* brillo suave en la esquina */
.card::after {
  content: "";
  position: absolute;
  top: -55px; right: -55px;
  width: 170px; height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57,186,254,.20), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.card:hover::after { opacity: 1; }
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 44px rgba(0, 61, 155, .18);
  border-color: rgba(57, 186, 254, .45);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--bg-light);
  margin-bottom: 18px;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), background .35s ease, box-shadow .35s ease;
}
.card__icon svg { width: 26px; height: 26px; fill: var(--navy); transition: fill .35s ease; }
.card:hover .card__icon {
  background: linear-gradient(135deg, var(--cyan), var(--navy));
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 10px 22px rgba(0, 61, 155, .28);
}
.card:hover .card__icon svg { fill: #fff; }

.card__title { font-size: 1.14rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card__text { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Pillars ---------- */
.pillar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.pillar:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 44px rgba(0, 61, 155, .16);
  border-color: rgba(57, 186, 254, .45);
}
.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0, 61, 155, .22);
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.pillar:hover .pillar__icon { transform: scale(1.1) rotate(-4deg); }
.pillar__icon svg { width: 30px; height: 30px; fill: #fff; }
.pillar__title { font-size: 1.18rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.pillar__text { color: var(--muted); margin: 0; }

/* ---------- Acceso al sistema ---------- */
.access {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 22px;
  border: 1px solid var(--navy-dark);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: #00226b;
}
.store-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  flex-shrink: 0;
}
.store-btn__icon svg { width: 30px; height: 30px; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.2; }
.store-btn__text small { font-size: .74rem; color: rgba(255,255,255,.7); font-weight: 600; }
.store-btn__text strong { font-size: 1.18rem; font-weight: 700; }

/* ---------- Cómo empezar (pasos) ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.step:hover {
  transform: translateY(-7px);
  box-shadow: 0 20px 44px rgba(0, 61, 155, .16);
  border-color: rgba(57, 186, 254, .45);
}
.step:hover .step__num { transform: scale(1.08) rotate(-4deg); }
.step__num { transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.step__title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.step__text { color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.faq__item[open] { box-shadow: var(--shadow); border-color: var(--cyan); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 18px 32px 18px 0;
  position: relative;
  font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--cyan);
  transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { background: #fff; padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { text-align: center; }
.stat__num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1;
}
.stat__label { display: block; margin-top: 8px; color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(57,186,254,.25), transparent 60%),
    var(--navy);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta__title { font-size: 2rem; font-weight: 800; margin-bottom: 14px; }
.cta__lead { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 30px; font-size: 1.08rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta__note { margin: 22px 0 0; color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.78); padding: 56px 0 28px; }
.footer__grid { display: grid; gap: 32px; }
.footer__brand img { filter: brightness(0) invert(1); }
.footer__tagline { margin: 14px 0 0; font-size: .95rem; max-width: 280px; }

.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-weight: 600; }
.footer__links a:hover { color: var(--cyan); }

.footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: .95rem; }
.footer__contact a:hover { color: var(--cyan); }
.footer__contact p { margin: 6px 0 0; }

.footer__bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem;
  color: rgba(255,255,255,.6);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Tablet — 768px
   ============================================================ */
@media (min-width: 768px) {
  .section__title { font-size: 2.2rem; }
  .hero__title { font-size: 3rem; }

  .grid--modules { grid-template-columns: repeat(2, 1fr); }
  .grid--pillars { grid-template-columns: repeat(3, 1fr); }
  .grid--stats   { grid-template-columns: repeat(4, 1fr); }

  .access { grid-template-columns: repeat(3, 1fr); }
  .steps  { grid-template-columns: repeat(3, 1fr); }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

/* ============================================================
   Desktop — 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .hero { padding: 48px 0 56px; }
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
  .hero__title { font-size: 3.3rem; }

  .grid--modules { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   Mobile nav — collapse under 860px
   ============================================================ */
@media (max-width: 860px) {
  .navbar__toggle { display: flex; }

  .navbar__nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 14px 20px 22px;
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .navbar__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .navbar__nav a { padding: 12px 4px; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .navbar__nav a:last-child { border-bottom: none; }
  .navbar__nav a.navbar__cta {
    margin-top: 8px;
    border-radius: var(--radius-sm);
    justify-content: center;
    border-bottom: none;
  }
}
