/* ==========================================================================
   RED LIBERTAD -- landing page
   Sistema de diseño: paleta e identidad heredadas de la propia app (azul
   marino + rojo bandera + estrella), tipografía Manrope autoalojada.
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0a1e33;
  --navy-700: #0f2941;
  --navy-600: #16354f;
  --red: #c8102e;
  --red-600: #a30d26;
  --star: #f5f0e8;

  --bg: #f6f7fb;
  --bg-soft: #eef0f6;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --text: #131b2b;
  --text-muted: #545e73;
  --border: #e3e6f0;
  --shadow: 0 20px 45px -20px rgb(10 30 51 / 0.25);

  --accent: var(--navy);
  --accent-2: var(--red);
  --focus: #3b6fd9;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Code', Consolas, monospace;

  --container: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a1220;
    --bg-soft: #0d1728;
    --surface: #101b2c;
    --surface-2: #142238;
    --text: #edeff4;
    --text-muted: #a3aec4;
    --border: #22304a;
    --shadow: 0 20px 45px -18px rgb(0 0 0 / 0.55);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0a1220;
  --bg-soft: #0d1728;
  --surface: #101b2c;
  --surface-2: #142238;
  --text: #edeff4;
  --text-muted: #a3aec4;
  --border: #22304a;
  --shadow: 0 20px 45px -18px rgb(0 0 0 / 0.55);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.2s ease;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------- Banner / ticker ---------------------------- */

.solidarity-banner {
  background: var(--red);
  color: var(--star);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid color-mix(in srgb, #000 20%, var(--red));
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: ticker-scroll 34s linear infinite;
  will-change: transform;
}
.ticker-set {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--star);
}
.ticker-item .star {
  opacity: 0.7;
  font-size: 0.7rem;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.solidarity-banner:hover .ticker-track {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .solidarity-banner {
    overflow-x: auto;
  }
  .ticker-track {
    animation: none;
  }
  .ticker-set-dup {
    display: none;
  }
}

/* ---------------------------------- Header --------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -20px rgb(0 0 0 / 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  border-bottom-color: var(--red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.icon-btn:hover {
  transform: translateY(-1px);
  background: var(--bg-soft);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.icon-btn .icon-moon {
  display: none;
}
:root[data-theme='dark'] .icon-btn .icon-sun {
  display: none;
}
:root[data-theme='dark'] .icon-btn .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  width: 48px;
  height: 48px;
  cursor: pointer;
  place-items: center;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.02rem;
  min-height: 56px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgb(200 16 46 / 0.55);
}
.btn-primary:hover {
  background: var(--red-600);
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--bg-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 25%, transparent);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  padding: 20px 36px;
  font-size: 1.1rem;
  min-height: 62px;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn-lg svg {
  width: 22px;
  height: 22px;
}

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

.hero {
  position: relative;
  overflow: clip;
  padding: 76px 0 96px;
  background: radial-gradient(1200px 520px at 15% -10%, color-mix(in srgb, var(--navy) 18%, transparent), transparent),
    var(--bg);
}
.hero-watermark {
  position: absolute;
  left: -12%;
  bottom: -18%;
  width: 46%;
  max-width: 480px;
  height: auto;
  color: var(--text);
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}
.hero-watermark path {
  fill: currentColor;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  background: color-mix(in srgb, var(--red) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow-on-dark {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.25);
  color: #fff;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--red);
}
.hero-lede {
  font-size: 1.14rem;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-qr-inline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.hero-qr-inline img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  flex-shrink: 0;
}
.hero-qr-inline span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.hero-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--navy), var(--navy-700) 60%, var(--navy-600));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-reel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px 20px 64px;
}
.hero-visual-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: color-mix(in srgb, var(--star) 78%, transparent);
  letter-spacing: 0.04em;
  pointer-events: none;
}
.hero-visual-caption strong {
  display: block;
  font-family: var(--font-ui);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 2px;
}

/* --------------------------------- Bandera / Cuba ---------------------------------- */

.cuba-banner {
  padding: 72px 0;
  background: linear-gradient(155deg, var(--navy), var(--navy-700) 65%, var(--navy-600));
  color: #fff;
  overflow: hidden;
}
.cuba-banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.cuba-banner .kicker {
  color: #ff8a9b;
}
.cuba-banner h2 {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.cuba-banner p {
  color: rgb(255 255 255 / 0.75);
  font-size: 1.05rem;
  max-width: 50ch;
  margin: 0 0 24px;
}
.cuba-banner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cuba-banner-tags li {
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.18);
  padding: 8px 14px;
  border-radius: 999px;
}

.cuba-flag-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 900px;
}
.freedom-badge {
  position: absolute;
  right: 6%;
  bottom: -22px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid var(--navy-700);
  color: var(--star);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 14px 30px -10px rgb(0 0 0 / 0.6);
  z-index: 2;
}
.freedom-badge .freedom-icon {
  width: 54px;
  height: auto;
}
.freedom-badge span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .freedom-badge {
    width: 92px;
    height: 92px;
    right: 2%;
    bottom: -16px;
  }
  .freedom-badge .freedom-icon {
    width: 44px;
  }
  .freedom-badge span {
    font-size: 0.54rem;
  }
}
.cuba-flag {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.65);
  transform: rotate3d(0.3, 1, 0, 8deg);
  animation: cuba-flag-sway 7s ease-in-out infinite;
}
@keyframes cuba-flag-sway {
  0%,
  100% {
    transform: rotate3d(0.3, 1, 0, 8deg) rotateZ(-0.6deg);
  }
  50% {
    transform: rotate3d(0.3, 1, 0, -4deg) rotateZ(0.6deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cuba-flag {
    animation: none;
    transform: none;
  }
}

@media (max-width: 980px) {
  .cuba-banner-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .cuba-banner p {
    margin-left: auto;
    margin-right: auto;
  }
  .cuba-banner-tags {
    justify-content: center;
  }
  .cuba-flag-wrap {
    order: -1;
  }
  .cuba-flag {
    max-width: 320px;
  }
}

/* ------------------------------- Secciones genéricas ------------------------------ */

section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-soft);
}
.section-head {
  max-width: 640px;
  margin: 0 0 52px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.section-head p {
  color: var(--text-muted);
  font-size: 1.04rem;
  margin: 0;
}

/* ------------------------------------ Problema ------------------------------------ */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.claim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
}
.claim-card.negative {
  border-top: 3px solid var(--red);
}
.claim-card.positive {
  border-top: 3px solid var(--navy);
}
:root[data-theme='dark'] .claim-card.positive {
  border-top-color: #6d8fd6;
}
.claim-card h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.claim-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.claim-card li {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}
.claim-card svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.claim-card.negative svg {
  color: var(--red);
}
.claim-card.positive svg {
  color: #2e7d54;
}

/* ------------------------------------- Pasos --------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-mono);
  margin-bottom: 18px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.step-connector {
  display: none;
}

/* ---------------------------------- Funcionalidades -------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--red) 30%, var(--border));
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--navy) 10%, transparent);
  color: var(--navy);
  margin-bottom: 18px;
}
:root[data-theme='dark'] .feature-icon {
  background: color-mix(in srgb, #6d8fd6 18%, transparent);
  color: #9db2ff;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}
.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ---------------------------------- Simulaciones ------------------------------------ */

.demo-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--navy), var(--navy-700) 65%, var(--navy-600));
  color: #fff;
}
.demo-section .kicker {
  color: #ff8a9b;
}
.demo-section .section-head p {
  color: rgb(255 255 255 / 0.68);
}
.demo-section h2 {
  color: #fff;
}
.demo-watermark {
  position: absolute;
  top: -18%;
  right: -10%;
  width: 62%;
  max-width: 640px;
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}
.demo-watermark path {
  fill: var(--star);
}

.demo-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.demo-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-tab {
  text-align: left;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: rgb(255 255 255 / 0.85);
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  min-height: 56px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.demo-tab:hover {
  transform: translateX(2px);
  background: rgb(255 255 255 / 0.09);
}
.demo-tab-desc {
  display: block;
  font-weight: 500;
  font-size: 0.82rem;
  color: rgb(255 255 255 / 0.55);
  margin-top: 4px;
}
.demo-tab.is-active {
  background: rgb(255 255 255 / 0.13);
  border-color: var(--red);
}
.demo-tab.is-active .demo-tab-desc {
  color: rgb(255 255 255 / 0.78);
}

.demo-phone-wrap {
  display: flex;
  justify-content: center;
}
.demo-frame {
  width: min(250px, 100%);
  border-radius: 32px;
  padding: 10px;
  background: linear-gradient(160deg, #1c2940, #060c16);
  box-shadow: var(--shadow);
}
.demo-screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
  background: linear-gradient(180deg, #0f1c2e, #060c16);
}

.demo-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.demo-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* -- Convocatoria -- */
.demo-chat-bg {
  position: absolute;
  inset: 0;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  filter: brightness(0.55);
}
.demo-bubble {
  height: 36px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.08);
  width: 72%;
}
.demo-bubble.mine {
  align-self: flex-end;
  width: 50%;
  background: rgb(157 178 255 / 0.16);
}
.demo-alert {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 32%;
  background: linear-gradient(160deg, var(--red), var(--red-600));
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 20px 40px -10px rgb(0 0 0 / 0.6);
  transform: scale(0.7);
  opacity: 0;
}
.demo-panel.is-active .demo-alert {
  animation: demo-alert-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
    demo-alert-pulse 1.7s ease-in-out 0.55s infinite;
}
@keyframes demo-alert-in {
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes demo-alert-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(255 255 255 / 0), 0 20px 40px -10px rgb(0 0 0 / 0.6);
  }
  50% {
    box-shadow: 0 0 0 10px rgb(255 255 255 / 0.1), 0 20px 40px -10px rgb(0 0 0 / 0.6);
  }
}
.demo-alert-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  background: rgb(0 0 0 / 0.25);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.demo-alert-text {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0 0 12px;
}
.demo-alert-note {
  font-size: 0.68rem;
  opacity: 0.85;
}

/* -- Marcar represor -- */
.demo-photo-card {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14%;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 16px;
  padding: 14px;
  overflow: hidden;
}
.demo-photo-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(150deg, #2a3550, #131f30);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}
.demo-photo-thumb svg {
  width: 40%;
  height: 40%;
  color: rgb(255 255 255 / 0.35);
}
.demo-photo-meta {
  font-size: 0.76rem;
  color: rgb(255 255 255 / 0.6);
}
.demo-stamp {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%) rotate(-9deg) scale(0);
  opacity: 0;
  background: rgb(200 16 46 / 0.92);
  border: 2px solid rgb(255 255 255 / 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.demo-panel.is-active .demo-stamp {
  animation: demo-stamp-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards;
}
@keyframes demo-stamp-in {
  to {
    transform: translate(-50%, -50%) rotate(-9deg) scale(1);
    opacity: 1;
  }
}
.demo-propagation {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  font-size: 0.72rem;
  color: rgb(255 255 255 / 0.75);
}
.demo-propagation > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: rgb(255 255 255 / 0.55);
}
.demo-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.15);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.demo-dot.is-lit {
  background: var(--red);
  box-shadow: 0 0 8px 1px rgb(200 16 46 / 0.7);
}
.demo-counter {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
}

/* -- Alerta en la red -- */
.demo-radar {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.demo-ripple {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgb(200 16 46 / 0.6);
  opacity: 0;
}
.demo-panel.is-active .demo-ripple {
  animation: demo-ripple 2.4s ease-out infinite;
}
.demo-ripple.delay1 {
  animation-delay: 0.8s !important;
}
.demo-ripple.delay2 {
  animation-delay: 1.6s !important;
}
@keyframes demo-ripple {
  0% {
    transform: scale(0.4);
    opacity: 0.65;
  }
  100% {
    transform: scale(4.2);
    opacity: 0;
  }
}
.demo-radar-center {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--star);
  box-shadow: 0 0 14px 3px rgb(245 240 232 / 0.5);
  z-index: 1;
}
.demo-radar-node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: rgb(255 255 255 / 0.5);
}
.demo-radar-node.n1 { top: 28%; left: 34%; }
.demo-radar-node.n2 { top: 22%; left: 64%; }
.demo-radar-node.n3 { top: 46%; left: 76%; }
.demo-radar-node.n4 { top: 68%; left: 60%; }
.demo-radar-node.n5 { top: 66%; left: 30%; }
.demo-radar-node.n6 { top: 40%; left: 18%; }

.demo-panel.is-active .demo-radar-node {
  animation: demo-node-flash 2.4s ease-out infinite;
}
.demo-radar-node.n2, .demo-radar-node.n5 { animation-delay: 0.5s !important; }
.demo-radar-node.n3, .demo-radar-node.n6 { animation-delay: 1s !important; }
@keyframes demo-node-flash {
  0%, 30% { background: rgb(255 255 255 / 0.5); transform: scale(1); }
  40% { background: var(--red); transform: scale(1.8); }
  60%, 100% { background: rgb(255 255 255 / 0.5); transform: scale(1); }
}
.demo-alert-banner {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  background: rgb(0 0 0 / 0.35);
  border: 1px solid rgb(200 16 46 / 0.5);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
}
.demo-alert-banner .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 6px;
  animation: demo-dot-blink 1.1s ease-in-out infinite;
}
@keyframes demo-dot-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* -- Hero: repaso de funciones (radar / difundir / ocultar / emergencia) -- */

.hero-reel-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: rgb(255 255 255 / 0.7);
  padding: 0 14px;
}

.demo-radar-mini {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}
.demo-radar-mini .ring {
  position: absolute;
  border: 1px solid rgb(157 178 255 / 0.28);
  border-radius: 50%;
}
.demo-radar-mini .r1 {
  width: 46%;
  height: 46%;
}
.demo-radar-mini .r2 {
  width: 70%;
  height: 70%;
}
.demo-radar-mini .r3 {
  width: 94%;
  height: 94%;
}
/* Barrido con estela real (cuña que se desvanece), no una línea plana --
   se lee mucho más como un radar de verdad y menos como una manecilla. */
.demo-sweep-wedge {
  position: absolute;
  inset: 3%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgb(200 16 46 / 0.55),
    rgb(200 16 46 / 0.16) 18%,
    transparent 32%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(circle, #000 100%, transparent 100%);
  mask-image: radial-gradient(circle, #000 100%, transparent 100%);
}
.demo-panel.is-active .demo-sweep-wedge {
  animation: demo-sweep-spin 2.6s linear infinite;
}
@keyframes demo-sweep-spin {
  to {
    transform: rotate(360deg);
  }
}
.demo-radar-mini .demo-radar-center {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--star);
  box-shadow: 0 0 10px 2px rgb(245 240 232 / 0.5);
  z-index: 1;
}
.demo-tick {
  position: absolute;
  background: rgb(255 255 255 / 0.28);
}
.demo-tick.tick-n,
.demo-tick.tick-s {
  width: 1px;
  height: 8px;
  left: 50%;
  margin-left: -0.5px;
}
.demo-tick.tick-e,
.demo-tick.tick-w {
  height: 1px;
  width: 8px;
  top: 50%;
  margin-top: -0.5px;
}
.demo-tick.tick-n {
  top: 2%;
}
.demo-tick.tick-s {
  bottom: 2%;
}
.demo-tick.tick-e {
  right: 2%;
}
.demo-tick.tick-w {
  left: 2%;
}

.demo-blip {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.85);
  opacity: 0;
  z-index: 1;
}
.demo-panel.is-active .demo-blip {
  animation: demo-blip-in 2.6s ease-in-out infinite;
}
.demo-blip.blip1 {
  top: 75%;
  left: 72%;
  animation-delay: 0.35s !important;
}
.demo-blip.blip2 {
  top: 69%;
  left: 23%;
  animation-delay: 1.05s !important;
}
.demo-blip.blip3 {
  top: 21%;
  left: 35%;
  animation-delay: 1.75s !important;
}
.demo-blip.blip4 {
  top: 31%;
  left: 77%;
  animation-delay: 2.35s !important;
}
@keyframes demo-blip-in {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  10%,
  32% {
    opacity: 1;
    transform: scale(1);
  }
}

.demo-send-card {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 40%;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}
.demo-send-text {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.demo-send-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgb(255 255 255 / 0.6);
}

.demo-homescreen {
  position: absolute;
  inset: 18% 12% auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.demo-app-icon {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22%;
  background: rgb(255 255 255 / 0.08);
  overflow: hidden;
}
.demo-app-target svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.5s ease;
}
.demo-app-target .icon-disguised {
  opacity: 0;
  background: #1b2740;
  padding: 22%;
  box-sizing: border-box;
}
.demo-app-target.is-disguised .icon-real {
  opacity: 0;
}
.demo-app-target.is-disguised .icon-disguised {
  opacity: 1;
}

.demo-emergency-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
}
.demo-panic-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b57, var(--red) 55%, #6e0705);
  box-shadow: 0 10px 24px -6px rgb(200 16 46 / 0.7), inset 0 0 0 3px rgb(255 255 255 / 0.15);
}
.demo-panel.is-active .demo-panic-btn {
  animation: demo-panic-press 4.2s ease-in-out infinite;
}
@keyframes demo-panic-press {
  0%,
  18% {
    transform: scale(1);
  }
  24% {
    transform: scale(0.86);
  }
  30%,
  100% {
    transform: scale(1);
  }
}
.demo-wipe-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  overflow: hidden;
}
.demo-wipe-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  border-radius: inherit;
}
.demo-panel.is-active .demo-wipe-fill {
  animation: demo-wipe-fill 4.2s ease-in-out infinite;
}
@keyframes demo-wipe-fill {
  0%,
  24% {
    width: 0%;
  }
  90%,
  100% {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-sweep-wedge,
  .demo-blip,
  .demo-panic-btn,
  .demo-wipe-fill {
    animation: none !important;
  }
  .demo-blip {
    opacity: 0.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-panel.is-active .demo-alert {
    animation: none;
    transform: scale(1);
    opacity: 1;
  }
  .demo-panel.is-active .demo-stamp {
    animation: none;
    transform: translate(-50%, -50%) rotate(-9deg) scale(1);
    opacity: 1;
  }
  .demo-panel.is-active .demo-ripple {
    animation: none;
    opacity: 0;
  }
  .demo-alert-banner .dot {
    animation: none;
    opacity: 1;
  }
  .demo-panel.is-active .demo-radar-node {
    animation: none;
  }
}

@media (max-width: 980px) {
  .demo-stage {
    grid-template-columns: 1fr;
  }
  .demo-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .demo-tab {
    flex: 1 1 auto;
  }
}

/* ------------------------------------- Capturas ------------------------------------ */

.showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.phone {
  position: relative;
  border-radius: 30px;
  padding: 10px;
  background: linear-gradient(160deg, #1c2940, #0a1220);
  box-shadow: var(--shadow);
}
.phone-screen {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 480 / 1066;
  background: var(--navy);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-caption {
  text-align: center;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.94rem;
}
.phone-caption span {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* -------------------------------------- Seguridad ----------------------------------- */

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.security-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}
.security-item .mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: color-mix(in srgb, #2e7d54 14%, transparent);
  color: #2e7d54;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.security-item .mark svg {
  width: 19px;
  height: 19px;
}
.security-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.security-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.callout {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: color-mix(in srgb, var(--red) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--red) 28%, var(--border));
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.callout svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}
.callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
}
.callout strong {
  display: block;
  margin-bottom: 4px;
}

/* ------------------------------------- Descargar ------------------------------------- */

.download-panel {
  background: linear-gradient(155deg, var(--navy), var(--navy-700) 65%, var(--navy-600));
  border-radius: var(--radius-lg);
  padding: 52px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.download-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 320px at 88% 12%, rgb(200 16 46 / 0.35), transparent 70%);
  pointer-events: none;
}
.download-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
}
.download-panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin: 0 0 14px;
}
.download-panel > .download-grid > div:first-child > p {
  color: color-mix(in srgb, #fff 78%, transparent);
  font-size: 1.02rem;
  max-width: 46ch;
  margin: 0 0 26px;
}
.download-stats {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.download-stats .stat b {
  display: block;
  font-size: 1.6rem;
  font-family: var(--font-mono);
}
.download-stats .stat span {
  font-size: 0.8rem;
  color: color-mix(in srgb, #fff 65%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.download-card {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--radius-md);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.download-card .req {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 10px;
  font-size: 0.88rem;
  color: color-mix(in srgb, #fff 82%, transparent);
}
.download-card .req li {
  display: flex;
  gap: 8px;
}
.download-card .req svg {
  width: 16px;
  height: 16px;
  color: #8fe3b0;
  flex-shrink: 0;
  margin-top: 2px;
}
.variant-select {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.variant-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  min-height: 52px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
}
.variant-option input {
  accent-color: var(--red);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}
.variant-option > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.variant-option strong {
  font-weight: 700;
}
.variant-option small {
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgb(255 255 255 / 0.65);
}
.download-card .btn-primary {
  width: 100%;
}

.qr-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.5);
}
.qr-divider::before,
.qr-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgb(255 255 255 / 0.16);
}
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.qr-code {
  width: 132px;
  height: 132px;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / 0.5);
}
.qr-block p {
  margin: 12px 0 0;
  max-width: 30ch;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.6);
}
.checksum {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: rgb(0 0 0 / 0.28);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: color-mix(in srgb, #fff 80%, transparent);
  word-break: break-all;
  position: relative;
  cursor: pointer;
}
.checksum:hover {
  background: rgb(0 0 0 / 0.4);
}
.checksum .label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: color-mix(in srgb, #fff 60%, transparent);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------- FAQ ----------------------------------------- */

.faq {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .chev {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}
.faq-item[open] summary .chev {
  transform: rotate(180deg);
}
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 68ch;
}

/* -------------------------------------- Footer --------------------------------------- */

.site-footer {
  background: var(--navy);
  color: color-mix(in srgb, #fff 88%, transparent);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand p {
  color: color-mix(in srgb, #fff 65%, transparent);
  font-size: 0.9rem;
  max-width: 34ch;
  margin: 14px 0 0;
}
.footer-credit {
  font-size: 0.84rem !important;
  margin-top: 10px !important;
}
.footer-credit a {
  color: var(--star);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--star) 40%, transparent);
}
.footer-credit a:hover {
  border-bottom-color: var(--star);
}
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, #fff 55%, transparent);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  text-decoration: none;
  color: color-mix(in srgb, #fff 85%, transparent);
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: color-mix(in srgb, #fff 55%, transparent);
}
.footer-bottom .flag-bar {
  display: flex;
  gap: 4px;
}
.footer-bottom .flag-bar span {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: var(--red);
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow);
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* --------------------------------------- Reveal --------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------- Error 404 --------------------------------------- */

.error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
}
.error-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}
.error-page p {
  color: var(--text-muted);
  max-width: 52ch;
}

/* ---------------------------------------- Utils ---------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
  .split,
  .steps,
  .feature-grid,
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-actions .btn-secondary-desktop {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .nav-links.is-open {
    display: flex;
    position: fixed;
    inset: 72px 0 0 0;
    height: calc(100vh - 72px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 22px;
    overflow-y: auto;
    z-index: 99;
  }
  .nav-links.is-open a {
    font-size: 1.2rem;
    padding: 12px 4px;
    width: 100%;
  }
  section {
    padding: 56px 0;
  }
  .hero {
    padding: 40px 0 56px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .split,
  .steps,
  .feature-grid,
  .security-grid,
  .showcase,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .download-panel {
    padding: 32px 22px;
  }
  .download-stats {
    gap: 20px 28px;
  }
  .demo-tabs {
    flex-direction: column;
  }
  .demo-tab {
    width: 100%;
  }
}
