* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #fafbfc;
  --text: #0f172a;
  --muted: #64748b;
  --blue: #3b82f6;
  --navy: #1a3a5c;
  --purple: #a855f7;
  --red: #dc2626;
  --green: #16a34a;
  --orange: #f59e0b;
  --border: #e2e8f0;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
code {
  background: rgba(15, 23, 42, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
}

/* ─── Top bar ─────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.topnav {
  display: flex;
  gap: 24px;
}
.topnav a {
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
}
.topnav a:hover { color: var(--blue); }
.lang-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* ─── Hero ────────────────────────────────────── */
.hero {
  padding: 80px 32px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(168, 85, 247, 0.12));
  color: #7f1d1d;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--navy);
}
.hero h1 em {
  font-style: italic;
  display: inline-block;
  /* Padding vertical generoso para que el clip del gradiente cubra descenders del italic */
  padding-top: 0.18em;
  padding-bottom: 0.32em;
  /* Padding horizontal mínimo para italic-lean sin pegar al texto vecino */
  padding-left: 0.06em;
  padding-right: 0.06em;
  /* Solo el negative margin vertical: arregla el corte y NO afecta el layout horizontal */
  margin-top: -0.18em;
  margin-bottom: -0.32em;
  /* Gradiente igual al botón de Download (navy → blue) */
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.2;
}

/* CJK (chino, japonés): NO usan italic real. El browser lo finge con skew y
   eso causa cortes del clip. Desactivamos italic y reducimos padding. */
:lang(zh) .hero h1 em,
:lang(ja) .hero h1 em {
  font-style: normal;
  padding: 0.1em 0.12em;
  margin: -0.1em 0;
}
.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.lead strong { color: var(--text); }
.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff !important;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(59, 130, 246, 0.5);
}
.btn-primary strong {
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}
.btn-primary.big {
  padding: 18px 32px;
  font-size: 17px;
}
.btn-link { color: var(--muted); font-weight: 600; font-size: 14px; }
.btn-link:hover { color: var(--blue); }
.meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.10), rgba(168, 85, 247, 0.10));
  border: 1.5px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 10px 22px;
  margin: 4px auto 0;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.18);
  /* Pulso constante — como llamando la atención */
  animation: meta-pulse 2.4s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.meta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
  animation-play-state: paused;
}
@keyframes meta-pulse {
  0%, 100% {
    box-shadow:
      0 6px 20px rgba(59, 130, 246, 0.18),
      0 0 0 0 rgba(59, 130, 246, 0.45);
    border-color: rgba(59, 130, 246, 0.35);
  }
  50% {
    box-shadow:
      0 8px 26px rgba(59, 130, 246, 0.28),
      0 0 0 8px rgba(59, 130, 246, 0);
    border-color: rgba(59, 130, 246, 0.6);
  }
}
.dot-sep { margin: 0 4px; opacity: 0.6; color: var(--blue); font-weight: 900; }

/* ─── Mockup section ──────────────────────────── */
.mockup-section {
  padding: 80px 32px 60px;
  text-align: center;
  background: linear-gradient(180deg, #fafbfc 0%, #f0f6ff 50%, #fafbfc 100%);
}
.mockup-section h2,
.shortcuts h2,
.cta h2 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 12px;
}
.subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 60px;
}

.stage2-title {
  margin-top: 80px;
  margin-bottom: 8px;
}

/* ─── Stage: tres columnas (labels izq / screenshot / labels der) ─── */
.stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
  position: relative;
}

.label-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 530px; /* matches displayed image height */
  padding: 0;
}
.feat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  text-align: left;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 3;
}
.label-col-right .feat { text-align: right; }
.feat:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.15);
}
.feat h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 4px;
}
.feat p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}

.screenshot-wrap {
  position: relative;
  width: 380px;
  max-width: 100%;
  z-index: 2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.2);
  /* Wrapper para el spotlight — necesita overflow:hidden para clip-ear el box-shadow */
}
.screenshot-wrap img {
  display: block;
  width: 100%;
  transition: filter 0.3s ease;
}

/* SPOTLIGHT — oscurece todo y deja un "agujero" iluminado sobre el feature.
   Sin `border` (que cubre contenido). El "marco" azul lo hacemos con box-shadow
   que se dibuja FUERA de la caja, así no come 2px del contenido del screenshot. */
.spotlight {
  position: absolute;
  pointer-events: none;
  border-radius: 9px;
  opacity: 0;
  box-shadow:
    /* 1) Anillo azul "borde" — pintado FUERA del box, no tapa contenido */
    0 0 0 2px rgba(59, 130, 246, 0.95),
    /* 2) Glow suave azul alrededor */
    0 0 24px rgba(59, 130, 246, 0.55),
    /* 3) Oscurece todo lo demás del screenshot */
    0 0 0 9999px rgba(15, 23, 42, 0.62);
  transition:
    opacity 0.25s ease,
    top 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    left 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    width 0.35s cubic-bezier(0.34, 1.2, 0.64, 1),
    height 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.screenshot-wrap.active .spotlight {
  opacity: 1;
}
/* Pequeño "tilt" sobre la imagen al destacar */
.screenshot-wrap.active img {
  filter: saturate(1.05);
}

/* Hover en cualquier feat también lo destaca */
.feat.active {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(59, 130, 246, 0.25);
  border-color: #93c5fd;
}

/* En mobile, las labels van apiladas debajo del screenshot */
@media (max-width: 1100px) {
  .stage {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .label-col { padding-top: 24px; gap: 12px; }
  .screenshot-wrap { margin: 0 auto 24px; width: 320px; }
  .overlay-arrows { display: none; }
  .feat, .label-col-right .feat { text-align: left; }
}

/* ─── Video Demos ─────────────────────────────── */
.demos-section {
  padding: 80px 32px 60px;
  text-align: center;
  background: linear-gradient(180deg, #fafbfc 0%, #f8faff 50%, #fafbfc 100%);
}
.demos-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 12px;
}
.demos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}
.demo-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.demo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
}
.demo-video-wrap {
  position: relative;
  background: #0f172a;
  overflow: hidden;
}
.demo-video-wrap video {
  width: 100%;
  display: block;
  border-radius: 0;
  max-height: 420px;
  object-fit: contain;
  background: #000;
}
.demo-info {
  padding: 20px 24px;
  text-align: left;
}
.demo-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}
.demo-info p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 600px) {
  .demos-section { padding: 40px 16px; }
  .demos-grid { gap: 24px; }
  .demo-info { padding: 16px; }
  .demo-info h3 { font-size: 16px; }
}

/* ─── How it works (inside demo cards) ────────── */
.demo-how {
  border-top: 1px solid var(--border);
}
.demo-how-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
}
.demo-how-toggle:hover {
  background: rgba(59, 130, 246, 0.04);
}
.demo-how-toggle > span:first-child {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}
.how-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.1));
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
  padding-bottom: 1px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.demo-how.open .how-toggle {
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
}
.demo-how-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 24px;
}
.demo-how.open .demo-how-body {
  max-height: 400px;
  padding: 0 24px 20px;
}
.how-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
}
.how-step:not(:last-child) {
  border-bottom: 1px dashed var(--border);
}
.how-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}
.how-step p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  text-align: left;
}
.how-step kbd {
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  box-shadow: 0 1px 0 #cbd5e1;
  padding: 2px 6px;
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
}
.how-step strong { color: var(--navy); }

/* ─── Pricing ──────────────────────────────────── */
.pricing-section {
  padding: 100px 32px 60px;
  text-align: center;
  background: linear-gradient(180deg, #fafbfc 0%, #f0f6ff 100%);
}
.pricing-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 12px;
}
.price-card {
  max-width: 480px;
  margin: 50px auto 30px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 20px;
  padding: 40px 32px 32px;
  box-shadow: 0 30px 60px rgba(59, 130, 246, 0.18);
  position: relative;
  text-align: center;
}
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.32);
}
.price-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 18px;
}
.price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 28px;
}
.price-currency {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  vertical-align: top;
}
.price-number {
  font-size: 68px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1;
}
.price-once {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 6px;
}
.price-features {
  list-style: none;
  text-align: left;
  margin: 0 auto 28px;
  max-width: 360px;
  padding: 0;
}
.price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px dashed #e2e8f0;
}
.price-features li:last-child { border-bottom: none; }

.pricing-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
}
.pricing-btn strong { color: #fff; font-weight: 900; }

.price-trust {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.pricing-note {
  max-width: 600px;
  margin: 30px auto 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.pricing-note strong { color: var(--text); }
.pricing-note a { font-weight: 700; }

/* ─── Atajos ──────────────────────────────────── */
.shortcuts {
  padding: 80px 32px;
  text-align: center;
}
.kbd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.kbd-card {
  padding: 28px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.kbd {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}
kbd {
  background: linear-gradient(180deg, #ffffff, #f1f5f9);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 2px 0 #cbd5e1;
  padding: 6px 12px;
  font-family: -apple-system, sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.kbd-card > div:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

/* ─── CTA final ───────────────────────────────── */
.cta {
  padding: 100px 32px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(59, 130, 246, 0.05));
}
.cta > p {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 32px;
}
.install-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ─── Footer ──────────────────────────────────── */
footer {
  padding: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
footer a { color: var(--blue); font-weight: 600; }

@media (max-width: 600px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .topnav { order: 3; width: 100%; justify-content: center; }
  .hero { padding: 40px 16px; }
}
