/* ═══════════════════════════════════════════════════════════════════════════
   NEXO WHISPER — Design tokens
   Familia Nexo (violeta + cyan) con waveform como firma propia.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Brand */
  --w-violet: oklch(62% 0.27 285);
  --w-violet-2: oklch(75% 0.20 305);
  --w-cyan: oklch(78% 0.16 220);
  --w-cyan-2: oklch(82% 0.14 200);
  --w-grad: linear-gradient(95deg, var(--w-violet) 0%, var(--w-violet-2) 35%, var(--w-cyan) 100%);
  --w-grad-soft: linear-gradient(95deg, oklch(62% 0.27 285 / 0.15) 0%, oklch(78% 0.16 220 / 0.10) 100%);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-mac: -apple-system, 'SF Pro Text', BlinkMacSystemFont, system-ui, sans-serif;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme="dark"] {
  --bg: #06060e;
  --bg-elev: #0b0b18;
  --bg-elev-2: #111121;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.07);
  --border-hi: rgba(255, 255, 255, 0.14);
  --text: #f0eff8;
  --text-muted: rgba(240, 239, 248, 0.62);
  --text-subtle: rgba(240, 239, 248, 0.32);
  --grid-line: rgba(255, 255, 255, 0.045);
  --code-bg: rgba(255, 255, 255, 0.04);
  --glow-1: oklch(62% 0.27 285 / 0.22);
  --glow-2: oklch(78% 0.16 220 / 0.18);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.4);
  --shadow-hard: 0 12px 40px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.5);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f5fb;
  --bg-elev: #ffffff;
  --bg-elev-2: #fbfaff;
  --surface: rgba(7, 7, 15, 0.025);
  --surface-hi: rgba(7, 7, 15, 0.05);
  --border: rgba(7, 7, 15, 0.08);
  --border-hi: rgba(7, 7, 15, 0.16);
  --text: #08081a;
  --text-muted: rgba(8, 8, 26, 0.62);
  --text-subtle: rgba(8, 8, 26, 0.40);
  --grid-line: rgba(7, 7, 15, 0.05);
  --code-bg: rgba(7, 7, 15, 0.04);
  --glow-1: oklch(62% 0.27 285 / 0.18);
  --glow-2: oklch(78% 0.16 220 / 0.14);
  --shadow-soft: 0 1px 2px rgba(7,7,15,0.05), 0 8px 24px rgba(7,7,15,0.08);
  --shadow-hard: 0 12px 40px rgba(7,7,15,0.12), 0 2px 6px rgba(7,7,15,0.08);
  color-scheme: light;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET / BASE
   ═══════════════════════════════════════════════════════════════════════════ */

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

/* Prevenir shift horizontal por aparición/desaparición de scrollbar vertical.
   Forzar scrollbar siempre presente para que el contenido centrado se vea
   alineado en todas las páginas (la home con mucho contenido vs /features
   con menos contenido). */
html { overflow-y: scroll; scrollbar-gutter: stable; }
/* Refuerzo de centrado para títulos del hero y de secciones, por si algún
   contenedor padre lo pierde. */
.hero-title, .hero-sub, .section-title, .section-desc { text-align: center; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  text-wrap: pretty;
  transition: background-color 0.4s var(--ease-out), color 0.4s var(--ease-out);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .heading { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.08; font-weight: 600; }

button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--w-violet); color: white; }

.gradient-text {
  background: var(--w-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════════════ */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  height: 64px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s, border-color 0.3s;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo-img {
  display: block;
  height: 36px;
  width: auto;
}
.nav-logo-img.nw-icon-light { display: block; }
.nav-logo-img.nw-icon-dark { display: none; }
.nw-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 3px 10px oklch(62% 0.27 285 / 0.3));
}
.nw-icon-light { display: none; }
.nw-icon-dark { display: block; }
[data-theme="light"] .nw-icon-light { display: block; }
[data-theme="light"] .nw-icon-dark { display: none; }
.nav-logo-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.98rem; letter-spacing: -0.01em;
  color: var(--text);
}
.nav-logo-text-dim { color: var(--text-muted); font-weight: 500; }

.nav-links {
  display: flex; gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted); font-size: 0.875rem;
  font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

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

.theme-toggle {
  width: 34px; height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  display: grid; place-items: center;
  transition: all 0.2s;
  position: relative; overflow: hidden;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-hi); }
.theme-toggle svg { width: 15px; height: 15px; position: absolute; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: none; }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: none; }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

.lang-toggle {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px; gap: 1px;
}
.lang-btn {
  color: var(--text-muted);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.04em;
  padding: 5px 9px; border-radius: 999px;
  transition: all 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-soft); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--w-grad);
  color: white;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.82rem; letter-spacing: -0.005em;
  border-radius: 999px;
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 4px 14px oklch(62% 0.27 285 / 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 22px oklch(62% 0.27 285 / 0.55); }
.nav-cta-price { display: none; }

.nav-burger { display: none; }

/* Mobile nav panel */
.nav-mobile {
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px 18px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
  box-shadow: 0 16px 40px -8px oklch(0% 0 0 / 0.4);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: 12px 8px;
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { background: var(--surface); }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════ */

#hero {
  position: relative;
  padding: 140px clamp(20px, 5vw, 56px) 80px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden;
  text-align: center;
}
/* Hero section bg matches the logo artwork bg exactly, then fades to page bg at the bottom */
[data-theme="dark"] #hero {
  background:
    linear-gradient(to bottom, #00000F 0%, #00000F 75%, #06060e 100%);
}
[data-theme="light"] #hero {
  background:
    linear-gradient(to bottom, #f4f7f8 0%, #f4f7f8 75%, #f6f5fb 100%);
}

.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 0%, var(--glow-1), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 30%, var(--glow-2), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 80%);
  opacity: 0.5;
}
[data-theme="light"] .hero-grid { display: none; }
.hero-grid { display: none; }

.hero-content {
  position: relative; z-index: 2;
  max-width: 880px;
  display: flex; flex-direction: column;
  align-items: center; gap: 28px;
}

/* ── Hero logo (icono + wordmark) ───────────────────────────────────── */
.hero-logo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 12px 30px oklch(0% 0 0 / 0.35)) drop-shadow(0 0 80px oklch(62% 0.27 285 / 0.25));
}
[data-theme="light"] .hero-logo {
  filter: drop-shadow(0 12px 30px oklch(0% 0 0 / 0.12)) drop-shadow(0 0 80px oklch(62% 0.27 285 / 0.18));
}
.hero-logo.nw-icon-light { display: block; }
.hero-logo.nw-icon-dark { display: none; }
@media (max-width: 560px) {
  .hero-logo { max-width: 240px; }
}

/* ── Carta 3D (legacy — no longer used) ─────────────────────────────── */
.hero-logo-card {
  position: relative;
  /* Mismo aspect ratio que el contenido recortado (1.29:1) para que llegue justo al borde */
  width: 320px;
  aspect-ratio: 1066 / 825;
  border-radius: 32px;
  display: grid;
  place-items: stretch;
  padding: 0;
  margin-bottom: 4px;
  overflow: hidden;
  isolation: isolate;
  animation: hero-icon-float 6s ease-in-out infinite;

  /* Dark — relieve sutil con gradiente diagonal */
  background:
    radial-gradient(120% 100% at 30% 0%, oklch(62% 0.27 285 / 0.10) 0%, transparent 55%),
    linear-gradient(150deg, oklch(22% 0.02 280) 0%, oklch(12% 0.015 280) 55%, oklch(8% 0.01 280) 100%);
  border: 1px solid oklch(100% 0 0 / 0.06);
  box-shadow:
    /* Sombra externa (depth) */
    0 30px 60px -18px oklch(0% 0 0 / 0.65),
    0 12px 24px -10px oklch(0% 0 0 / 0.45),
    /* Bevel superior — relieve */
    inset 0 1px 0 oklch(100% 0 0 / 0.14),
    inset 0 2px 1px oklch(100% 0 0 / 0.05),
    /* Bevel inferior — peso */
    inset 0 -1px 0 oklch(0% 0 0 / 0.45),
    inset 0 -10px 24px -12px oklch(0% 0 0 / 0.4),
    /* Glow violeta detrás */
    0 0 80px -10px oklch(62% 0.27 285 / 0.35);
}
/* Gloss/highlight diagonal — efecto vidrio */
.hero-logo-card-gloss {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(155deg,
    oklch(100% 0 0 / 0.10) 0%,
    oklch(100% 0 0 / 0.02) 35%,
    transparent 60%);
  pointer-events: none;
  z-index: 1;
}
[data-theme="light"] .hero-logo-card {
  background:
    radial-gradient(120% 100% at 30% 0%, oklch(62% 0.27 285 / 0.06) 0%, transparent 55%),
    linear-gradient(150deg, #ffffff 0%, #f3f4f9 60%, #e9ebf3 100%);
  border: 1px solid oklch(0% 0 0 / 0.06);
  box-shadow:
    0 24px 50px -16px oklch(0% 0 0 / 0.18),
    0 10px 22px -10px oklch(0% 0 0 / 0.12),
    inset 0 1px 0 oklch(100% 0 0 / 0.95),
    inset 0 2px 1px oklch(100% 0 0 / 0.5),
    inset 0 -1px 0 oklch(0% 0 0 / 0.05),
    inset 0 -10px 24px -16px oklch(0% 0 0 / 0.08),
    0 0 60px -12px oklch(62% 0.27 285 / 0.22);
}
[data-theme="light"] .hero-logo-card-gloss {
  background: linear-gradient(155deg,
    oklch(100% 0 0 / 0.7) 0%,
    oklch(100% 0 0 / 0.15) 35%,
    transparent 60%);
}

.hero-app-icon {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* sin animation propia — flota la carta */
}
.hero-app-icon.nw-icon-light { display: none; }
[data-theme="light"] .hero-app-icon.nw-icon-light { display: block; }
[data-theme="light"] .hero-app-icon.nw-icon-dark { display: none; }
@keyframes hero-icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-logo-card { animation: none; }
}
@media (max-width: 560px) {
  .hero-logo-card { width: 240px; border-radius: 24px; }
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.02em;
  color: var(--text-muted);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--w-cyan);
  box-shadow: 0 0 8px var(--w-cyan);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 600;
}
.hero-title .accent { background: var(--w-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.5;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-dim, #888);
  flex-wrap: wrap;
}
.hero-stat-item {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}
.hero-stat-item:hover { color: var(--text-strong, #fff); }
.hero-stat-sep { color: var(--text-faint, #555); user-select: none; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--w-grad);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 8px 24px oklch(62% 0.27 285 / 0.45), 0 0 0 1px oklch(62% 0.27 285 / 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 32px oklch(62% 0.27 285 / 0.55), 0 0 0 1px oklch(62% 0.27 285 / 0.4); }
.btn-primary .btn-price {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; margin-left: 4px;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.btn-primary .btn-price-strike { text-decoration: line-through; opacity: 0.55; font-weight: 500; }

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-hi); border-color: var(--border-hi); }

.hero-trust {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-subtle);
}
.hero-trust-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-subtle); }

/* ── Hero widget (floating mac-style recorder) ───────────────────────── */
.hero-widget-wrap {
  position: relative; z-index: 2;
  margin-top: 56px;
  width: min(640px, 92vw);
  perspective: 1200px;
}
.hero-widget {
  position: relative;
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--border-hi);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: var(--shadow-hard), 0 0 80px oklch(62% 0.27 285 / 0.2);
  display: flex; align-items: center; gap: 18px;
  text-align: left;
}
.hero-widget::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: 22px;
  padding: 1px;
  background: var(--w-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}
.hero-widget-rec {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--w-grad);
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px oklch(62% 0.27 285 / 0.15), 0 0 30px oklch(62% 0.27 285 / 0.5);
  animation: rec-pulse 2.2s ease-in-out infinite;
}
@keyframes rec-pulse {
  0%, 100% { box-shadow: 0 0 0 6px oklch(62% 0.27 285 / 0.15), 0 0 30px oklch(62% 0.27 285 / 0.5); }
  50% { box-shadow: 0 0 0 10px oklch(62% 0.27 285 / 0.06), 0 0 40px oklch(78% 0.16 220 / 0.55); }
}
.hero-widget-rec svg { width: 18px; height: 18px; color: white; }

.hero-widget-main { flex: 1; min-width: 0; }
.hero-widget-meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.hero-widget-meta strong { color: var(--text); font-weight: 600; }
.hero-widget-meta-sep { opacity: 0.4; }

.hero-widget-typing {
  font-family: var(--font-mac);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.4;
  /* Altura fija para evitar que la página salte mientras tipea */
  min-height: calc(1.4em * 2);
  display: flex; align-items: flex-start; gap: 1px;
  white-space: pre-wrap;
  word-break: break-word;
}
.hero-widget-typing-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--w-cyan);
  animation: blink 1s steps(2) infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
  align-self: center;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-widget-wave {
  display: flex; align-items: center; gap: 3px;
  height: 44px; width: 110px;
  flex-shrink: 0;
}
.hero-widget-wave span {
  display: block;
  width: 3px;
  background: var(--w-grad);
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}
.hero-widget-wave span:nth-child(1) { animation-delay: 0s; }
.hero-widget-wave span:nth-child(2) { animation-delay: 0.08s; }
.hero-widget-wave span:nth-child(3) { animation-delay: 0.16s; }
.hero-widget-wave span:nth-child(4) { animation-delay: 0.24s; }
.hero-widget-wave span:nth-child(5) { animation-delay: 0.32s; }
.hero-widget-wave span:nth-child(6) { animation-delay: 0.40s; }
.hero-widget-wave span:nth-child(7) { animation-delay: 0.48s; }
.hero-widget-wave span:nth-child(8) { animation-delay: 0.56s; }
.hero-widget-wave span:nth-child(9) { animation-delay: 0.64s; }
.hero-widget-wave span:nth-child(10) { animation-delay: 0.72s; }
.hero-widget-wave span:nth-child(11) { animation-delay: 0.80s; }
.hero-widget-wave span:nth-child(12) { animation-delay: 0.88s; }
@keyframes wave {
  0%, 100% { height: 4px; opacity: 0.5; }
  50% { height: 36px; opacity: 1; }
}

.hero-widget-shortcut {
  position: absolute; top: -14px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  box-shadow: var(--shadow-soft);
}
.kbd {
  display: inline-block;
  padding: 1px 5px;
  background: var(--surface-hi);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7em;
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SECTION BASICS
   ═══════════════════════════════════════════════════════════════════════════ */

section { padding: 100px clamp(20px, 5vw, 56px); position: relative; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--w-cyan);
  background: oklch(78% 0.16 220 / 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid oklch(78% 0.16 220 / 0.2);
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.05;
}
.section-title .accent { background: var(--w-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-widget-rec, .hero-widget-wave span, .hero-eyebrow-dot { animation: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DEMO — ventana macOS animada (loop ~13s, 100% CSS, sin JS)
   Replica el look del demo MP4 de SpeechTypr/Voibe pero con paleta Nexo
   (violeta-cyan) y customizado al flujo Nexo Whisper: presionar Fn,
   hablar, ver el texto transcribirse y luego mejorarse con IA.
   ═══════════════════════════════════════════════════════════════════════════ */

#demo {
  padding: 40px clamp(16px, 4vw, 56px) 60px;
  position: relative;
  overflow: hidden;
}
/* Fondo gradient suave — pista visual de "espacio limpio Apple" */
#demo::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, oklch(78% 0.16 220 / 0.18), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, oklch(62% 0.27 285 / 0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] #demo::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, oklch(78% 0.16 220 / 0.20), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, oklch(62% 0.27 285 / 0.15), transparent 60%);
}

.demo-stage {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* ── Wrapper de escenas (Mail / VS Code rotando) ────────────────────── */
.demo-scenes {
  position: relative;
  width: 100%;
  min-height: 320px;
}
.demo-scene {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.demo-scene.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative; /* la activa toma flow para que .demo-scenes se ajuste */
}

/* ── Ventana macOS ───────────────────────────────────────────────────── */
.demo-window {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 30px 80px oklch(0% 0 0 / 0.35),
    0 10px 30px oklch(62% 0.27 285 / 0.12);
}
[data-theme="light"] .demo-window {
  background: #ffffff;
  border-color: oklch(92% 0 0);
  box-shadow:
    0 30px 80px oklch(0% 0 0 / 0.10),
    0 8px 20px oklch(62% 0.27 285 / 0.08);
}

.demo-titlebar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: oklch(15% 0.01 280 / 0.6);
  border-bottom: 1px solid var(--border);
  position: relative;
}
[data-theme="light"] .demo-titlebar {
  background: oklch(97% 0 0);
  border-bottom-color: oklch(92% 0 0);
}
.demo-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.demo-dot-r { background: #ff5f57; }
.demo-dot-y { background: #febc2e; }
.demo-dot-g { background: #28c840; }
.demo-titlebar-text {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-toolbar {
  display: flex; gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.demo-toolbar-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--text-muted);
}
.demo-toolbar-icon svg { width: 14px; height: 14px; }
.demo-toolbar-icon-active {
  background: oklch(78% 0.16 220 / 0.15);
  color: var(--w-cyan);
}

.demo-field {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.demo-field-label {
  color: var(--text-dim);
  min-width: 64px;
  font-size: 0.82rem;
}
.demo-field-value { color: var(--text); }

.demo-body {
  padding: 20px 22px 28px;
  min-height: 130px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}
.demo-body-greeting { margin-bottom: 12px; }
.demo-body-line { position: relative; min-height: 1.6em; }

/* Texto crudo (transcripción inicial) — invisible al inicio, aparece
   con la animación. Se "tipea" usando ::after con content. */
.demo-text-raw,
.demo-text-clean {
  display: inline;
  white-space: pre;
}
.demo-text-raw {
  color: var(--text-muted);
  font-style: italic;
}
.demo-text-clean {
  color: var(--text);
}

/* Override de colores cuando el texto vive dentro de la escena VS Code:
   el body de la ventana es siempre oscuro (#1e1e1e) — sin importar el
   theme del sitio — así que los colores deben matchear los de VS Code
   (verde comentario / texto claro), no los tokens del sitio. */
.demo-scene--code .demo-text-raw {
  color: #6a9955; /* verde comentario VS Code */
  font-style: italic;
}
.demo-scene--code .demo-text-clean {
  color: #d4d4d4; /* gris claro texto código VS Code */
  font-style: normal;
}
/* El caret dentro de la escena code también más claro para que se vea */
.demo-scene--code .demo-caret {
  background: #569cd6; /* azul claro tipo VS Code keyword */
}

/* Caret blink al lado del texto */
.demo-caret {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--w-cyan);
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: demo-caret-blink 1s steps(2) infinite;
  border-radius: 1px;
  transition: opacity 0.3s;
}
@keyframes demo-caret-blink {
  50% { opacity: 0; }
}

/* ── Indicador inferior: tecla Fn + waveform ─────────────────────────── */
.demo-control {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 24px oklch(0% 0 0 / 0.18);
}
[data-theme="light"] .demo-control {
  background: #ffffff;
  border-color: oklch(92% 0 0);
  box-shadow: 0 8px 24px oklch(0% 0 0 / 0.06);
}

.demo-key {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: oklch(20% 0.01 280);
  color: var(--text-muted);
  border: 1px solid var(--border);
  box-shadow: inset 0 -2px 0 oklch(0% 0 0 / 0.3);
  transition: all 0.3s;
  /* Ciclo de 14s para sincronizar con el typing del JS. Glow durante
     ~7% a ~48% (que cubre tipeo + hold del raw). */
  animation: demo-key 14s infinite;
}
[data-theme="light"] .demo-key {
  background: oklch(96% 0 0);
  color: oklch(40% 0 0);
}
@keyframes demo-key {
  0%, 5%, 52%, 100% {
    background: oklch(20% 0.01 280);
    color: var(--text-muted);
    box-shadow: inset 0 -2px 0 oklch(0% 0 0 / 0.3);
  }
  7%, 48% {
    background: var(--w-grad);
    color: white;
    box-shadow:
      inset 0 -1px 0 oklch(0% 0 0 / 0.2),
      0 0 16px oklch(78% 0.16 220 / 0.6);
  }
}
[data-theme="light"] .demo-key { animation-name: demo-key-light; }
@keyframes demo-key-light {
  0%, 5%, 52%, 100% {
    background: oklch(96% 0 0);
    color: oklch(40% 0 0);
    box-shadow: inset 0 -2px 0 oklch(0% 0 0 / 0.06);
  }
  7%, 48% {
    background: var(--w-grad);
    color: white;
    box-shadow:
      inset 0 -1px 0 oklch(0% 0 0 / 0.15),
      0 0 16px oklch(78% 0.16 220 / 0.5);
  }
}

/* Waveform animado — 12 barras más anchas, mejor altura y color con gradient
   para que se vea claramente sin necesidad de mirar fijo. Cada barra
   tiene su propio --peak (altura máxima) y --delay para que parezca
   un movimiento orgánico. */
.demo-wave {
  display: flex; gap: 4px; align-items: center;
  height: 36px;
  min-width: 180px;
  padding: 0 2px;
}
.demo-wave span {
  width: 4px;
  border-radius: 3px;
  height: 6px;
  background: linear-gradient(to top, oklch(62% 0.27 285), var(--w-cyan));
  box-shadow: 0 0 8px oklch(78% 0.16 220 / 0.4);
  animation: demo-wave-pulse 14s infinite;
}
[data-theme="light"] .demo-wave span {
  background: linear-gradient(to top, oklch(62% 0.27 285), oklch(70% 0.18 220));
  box-shadow: 0 0 6px oklch(70% 0.18 220 / 0.3);
}
/* Ciclo 14s. Activas durante ~7-48% (sync con Fn glow + typing del JS). */
@keyframes demo-wave-pulse {
  0%, 5%, 52%, 100% { height: 6px; opacity: 0.35; }
  7%, 48% { height: var(--peak, 22px); opacity: 1; }
  12%, 44% { height: 10px; opacity: 0.85; }
  17%, 40% { height: var(--peak, 22px); opacity: 1; }
  22%, 36% { height: 8px; opacity: 0.8; }
  27%, 32% { height: 30px; opacity: 1; }
}
.demo-wave span:nth-child(1)  { --peak: 18px; animation-delay: 0s;    }
.demo-wave span:nth-child(2)  { --peak: 26px; animation-delay: 0.08s; }
.demo-wave span:nth-child(3)  { --peak: 22px; animation-delay: 0.16s; }
.demo-wave span:nth-child(4)  { --peak: 30px; animation-delay: 0.04s; }
.demo-wave span:nth-child(5)  { --peak: 20px; animation-delay: 0.20s; }
.demo-wave span:nth-child(6)  { --peak: 32px; animation-delay: 0.10s; }
.demo-wave span:nth-child(7)  { --peak: 28px; animation-delay: 0.18s; }
.demo-wave span:nth-child(8)  { --peak: 24px; animation-delay: 0.06s; }
.demo-wave span:nth-child(9)  { --peak: 30px; animation-delay: 0.14s; }
.demo-wave span:nth-child(10) { --peak: 22px; animation-delay: 0.02s; }
.demo-wave span:nth-child(11) { --peak: 26px; animation-delay: 0.12s; }
.demo-wave span:nth-child(12) { --peak: 18px; animation-delay: 0.06s; }

.demo-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.demo-status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 6px #ff3b30;
  animation: demo-status-blink 14s infinite;
}
@keyframes demo-status-blink {
  0%, 5%, 52%, 100% { opacity: 0.25; background: var(--text-faint); box-shadow: none; }
  7%, 48% { opacity: 1; background: #ff3b30; box-shadow: 0 0 6px #ff3b30; }
}

/* ── ESCENA VS Code ─────────────────────────────────────────────────── */
.demo-window--dark {
  background: oklch(15% 0.005 280);
  border-color: oklch(22% 0.005 280);
}
[data-theme="light"] .demo-window--dark {
  /* En light mode, mantenemos VS Code oscuro (es lo natural — VS Code
     suele verse con tema dark incluso en sitios light). */
  background: #1e1e1e;
  border-color: #2d2d2d;
  color: #d4d4d4;
}
.demo-titlebar--code {
  background: #2d2d30 !important;
  border-bottom-color: #1e1e1e !important;
}
.demo-titlebar--code .demo-titlebar-text { color: #cccccc !important; }
[data-theme="light"] .demo-titlebar--code {
  background: #2d2d30 !important;
  border-bottom-color: #1e1e1e !important;
}

.demo-code-layout {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 230px;
}
.demo-code-sidebar {
  background: #252526;
  padding: 10px 0;
  border-right: 1px solid #1e1e1e;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.demo-code-section {
  color: #858585;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  text-transform: uppercase;
}
.demo-code-file {
  color: #cccccc;
  padding: 4px 14px 4px 22px;
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem;
}
.demo-code-file.is-active { background: #37373d; }
.demo-code-file-icon {
  width: 12px; height: 12px;
  background: #519aba; /* py */
  border-radius: 2px;
  flex-shrink: 0;
}
.demo-code-file-icon.md { background: #519aba; }
.demo-code-file-icon.js { background: #f1c40f; }

.demo-code-editor {
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #d4d4d4;
  line-height: 1.6;
  background: #1e1e1e;
}
.demo-code-tab {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1e1e1e;
  padding: 4px 10px;
  margin: -14px -18px 12px;
  border-bottom: 1px solid #2d2d30;
  font-size: 0.78rem;
  color: #cccccc;
}
.demo-code-comment {
  color: #6a9955; /* color de comentario VS Code */
  font-style: italic;
  margin-bottom: 8px;
  min-height: 1.5em;
}
.demo-code-hash { color: #6a9955; margin-right: 6px; }
.demo-code-block {
  background: transparent;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  white-space: pre-wrap;
  color: #d4d4d4;
  min-height: 4em;
}
.demo-code-block code {
  font-family: inherit;
  color: #d4d4d4;
}

/* Texto raw/clean: el typing lo maneja JS (scripts.js), acá solo la
   apariencia. El fade-out del raw y fade-in del clean también lo
   maneja JS para coordinarse con el typing. */
.demo-text-raw, .demo-text-clean {
  transition: opacity 0.4s ease;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #demo { padding: 30px 14px 40px; }
  .demo-stage { gap: 18px; }
  .demo-titlebar-text { font-size: 0.7rem; }
  .demo-field { padding: 8px 14px; font-size: 0.82rem; }
  .demo-field-label { min-width: 50px; font-size: 0.74rem; }
  .demo-body { padding: 16px 16px 22px; font-size: 0.85rem; min-height: 160px; }
  .demo-control {
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 10px 14px;
    gap: 10px;
    justify-content: center;
  }
  .demo-wave { min-width: 100px; }
  .demo-status { font-size: 0.65rem; text-align: center; width: 100%; }
}

/* Reduced motion: pausar la animación de tipeo, mostrar versión final */
@media (prefers-reduced-motion: reduce) {
  .demo-text-raw, .demo-text-clean, .demo-caret, .demo-key, .demo-wave span {
    animation: none !important;
  }
  .demo-text-raw { width: 0; opacity: 0; }
  .demo-text-clean { opacity: 1; }
  .demo-caret { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUCT HUNT BADGE (social proof bajo hero)
   ═══════════════════════════════════════════════════════════════════════════ */

#ph-badge {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 12px;
}
#ph-badge a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
#ph-badge a:hover { transform: translateY(-2px); }
.ph-badge-img {
  height: 54px;
  width: auto;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════════════════
   INTEGRATIONS (logo wall — "funciona en cualquier app")
   Banda fina abajo del hero con logos uniformados a gris.
   ═══════════════════════════════════════════════════════════════════════════ */

#integrations {
  padding-top: 50px;
  padding-bottom: 50px;
}
.integrations-head { text-align: center; margin-bottom: 26px; }
.integrations-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.integrations-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 36px 48px;
  max-width: 980px;
  margin: 0 auto;
}
.integrations-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  opacity: 0.55;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.integrations-logo:hover { opacity: 1; transform: translateY(-2px); }
.integrations-logo img {
  width: 100%; height: 100%;
  /* Unificar logos a gris para que el grupo tenga look "logo wall" coherente */
  filter: grayscale(1) brightness(0.85);
}
[data-theme="light"] .integrations-logo img { filter: grayscale(1) brightness(0.4); }
[data-theme="light"] .integrations-logo { opacity: 0.6; }
.integrations-sub {
  text-align: center;
  max-width: 640px;
  margin: 32px auto 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PILLARS (3 columnas)
   ═══════════════════════════════════════════════════════════════════════════ */

#pillars { padding-top: 60px; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}
.pillar {
  padding: 32px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.pillar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--w-grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.pillar:hover { border-color: var(--border-hi); transform: translateY(-2px); }
.pillar:hover::before { opacity: 1; }
.pillar-icon {
  width: 44px; height: 44px;
  background: var(--w-grad-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.pillar-icon svg { width: 22px; height: 22px; color: var(--w-cyan); }
.pillar-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.pillar-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.pillar-tag {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--w-cyan);
  background: oklch(78% 0.16 220 / 0.08);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid oklch(78% 0.16 220 / 0.2);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS (3 pasos)
   ═══════════════════════════════════════════════════════════════════════════ */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 96px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi) 20%, var(--border-hi) 80%, transparent);
  z-index: 0;
}
.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.step-visual {
  height: 200px;
  background: var(--w-grad-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.step-visual::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, oklch(62% 0.27 285 / 0.2), transparent 60%),
    radial-gradient(circle at 70% 70%, oklch(78% 0.16 220 / 0.2), transparent 60%);
  pointer-events: none;
}
.step-body { padding: 24px 26px 28px; }
.step-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--w-cyan);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 6px;
}
.step-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.step-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Step 1: keyboard with Fn */
.kbd-row { display: flex; gap: 6px; position: relative; z-index: 1; }
.kbd-key {
  width: 40px; height: 40px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--font-mac);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 1px 0 var(--border-hi), 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
}
.kbd-key.fn {
  background: var(--w-grad);
  color: white;
  border-color: transparent;
  box-shadow: 0 0 0 6px oklch(62% 0.27 285 / 0.15), 0 0 22px oklch(62% 0.27 285 / 0.5);
  animation: kbd-pulse 2s ease-in-out infinite;
}
@keyframes kbd-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

/* Step 2: waveform */
.wave-illust {
  display: flex; align-items: center; gap: 4px;
  height: 80px;
  position: relative; z-index: 1;
}
.wave-illust span {
  display: block;
  width: 4px;
  background: var(--w-grad);
  border-radius: 3px;
  animation: wave 1.6s ease-in-out infinite;
}
.wave-illust span:nth-child(1) { animation-delay: 0s; height: 16px; }
.wave-illust span:nth-child(2) { animation-delay: 0.12s; height: 32px; }
.wave-illust span:nth-child(3) { animation-delay: 0.24s; height: 56px; }
.wave-illust span:nth-child(4) { animation-delay: 0.36s; height: 70px; }
.wave-illust span:nth-child(5) { animation-delay: 0.48s; height: 44px; }
.wave-illust span:nth-child(6) { animation-delay: 0.60s; height: 64px; }
.wave-illust span:nth-child(7) { animation-delay: 0.72s; height: 28px; }
.wave-illust span:nth-child(8) { animation-delay: 0.84s; height: 50px; }
.wave-illust span:nth-child(9) { animation-delay: 0.96s; height: 22px; }
.wave-illust span:nth-child(10) { animation-delay: 1.08s; height: 38px; }
.wave-illust span:nth-child(11) { animation-delay: 1.20s; height: 18px; }

/* Step 3: text appearing */
.paste-illust {
  width: 70%;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--font-mac);
  font-size: 0.85rem;
  color: var(--text);
  position: relative; z-index: 1;
  line-height: 1.4;
  box-shadow: var(--shadow-soft);
}
.paste-illust .typed {
  background: var(--w-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP MOCKUPS — Gmail / Slack / VS Code / Notion
   ═══════════════════════════════════════════════════════════════════════════ */

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.mockup {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.mockup:hover { transform: translateY(-4px); box-shadow: var(--shadow-hard); }

.mac-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
}
.mac-dot { width: 12px; height: 12px; border-radius: 50%; }
.mac-dot-r { background: #ff5f57; }
.mac-dot-y { background: #febc2e; }
.mac-dot-g { background: #28c840; }
.mac-bar-title {
  margin-left: auto;
  font-family: var(--font-mac);
  font-size: 0.72rem;
  color: var(--text-subtle);
}

.mockup-body { position: relative; min-height: 320px; }

.mockup-meta {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
  background: var(--bg-elev-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.mockup-meta-tag {
  padding: 3px 9px;
  background: oklch(78% 0.16 220 / 0.1);
  color: var(--w-cyan);
  border-radius: 999px;
  border: 1px solid oklch(78% 0.16 220 / 0.2);
  font-weight: 600;
}

/* ── GMAIL ──────────────────────────────────────────────────────────── */
.mock-gmail {
  background: #fff;
  color: #202124;
  font-family: 'Google Sans', 'Roboto', sans-serif;
  padding: 22px 26px;
  min-height: 320px;
}
[data-theme="dark"] .mock-gmail { background: #1f1f1f; color: #e3e3e3; }
.gmail-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 0.85rem;
}
[data-theme="dark"] .gmail-head { border-color: rgba(255,255,255,0.08); }
.gmail-field {
  display: flex; gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
[data-theme="dark"] .gmail-field { border-color: rgba(255,255,255,0.06); }
.gmail-field-label { color: #5f6368; min-width: 60px; }
[data-theme="dark"] .gmail-field-label { color: #9aa0a6; }
.gmail-body {
  padding: 16px 0;
  font-size: 0.92rem;
  line-height: 1.55;
}
.gmail-body p { margin-bottom: 12px; }
.gmail-body .typed-text {
  background: linear-gradient(95deg, oklch(62% 0.27 285 / 0.18), oklch(78% 0.16 220 / 0.18));
  border-radius: 3px;
  padding: 0 2px;
}
.gmail-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding-top: 8px;
}
.gmail-send {
  background: #0b57d0; color: white;
  padding: 8px 22px;
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── SLACK ──────────────────────────────────────────────────────────── */
.mock-slack {
  background: #1a1d29;
  color: #d1d2d3;
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 320px;
  font-family: 'Lato', 'Helvetica Neue', sans-serif;
}
[data-theme="light"] .mock-slack { background: #3f0e40; color: #fff; }
.slack-sidebar {
  background: #19171d;
  padding: 14px 10px;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.82rem;
}
[data-theme="light"] .slack-sidebar { background: #350d36; }
.slack-ws {
  font-weight: 700;
  color: #fff;
  padding: 4px 6px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.slack-channel {
  padding: 4px 8px;
  border-radius: 4px;
  display: flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7);
}
.slack-channel.active { background: #1164a3; color: #fff; }
.slack-channel-hash { opacity: 0.7; }

.slack-main { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; background: #1a1d29; }
[data-theme="light"] .slack-main { background: #fff; color: #1d1c1d; }
.slack-msg { display: flex; gap: 10px; }
.slack-avatar {
  width: 32px; height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, #4a154b, #ec4899);
  flex-shrink: 0;
}
.slack-avatar.user { background: var(--w-grad); }
.slack-msg-body { flex: 1; min-width: 0; }
.slack-msg-head { display: flex; align-items: baseline; gap: 8px; }
.slack-msg-name { font-weight: 700; color: inherit; font-size: 0.9rem; }
.slack-msg-time { color: rgba(255,255,255,0.4); font-size: 0.7rem; }
[data-theme="light"] .slack-msg-time { color: rgba(0,0,0,0.4); }
.slack-msg-text { font-size: 0.88rem; line-height: 1.45; margin-top: 2px; }
.slack-msg-text .typed-text {
  background: linear-gradient(95deg, oklch(62% 0.27 285 / 0.22), oklch(78% 0.16 220 / 0.22));
  border-radius: 3px;
  padding: 0 2px;
}
.slack-composer {
  margin-top: auto;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.02);
}
[data-theme="light"] .slack-composer { border-color: rgba(0,0,0,0.1); color: rgba(0,0,0,0.6); background: #fff; }


/* ── VS CODE / CURSOR ─────────────────────────────────────────────── */
.mock-vscode {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Menlo', 'Consolas', monospace;
  min-height: 320px;
  display: grid;
  grid-template-columns: 200px 1fr;
}
.vscode-sidebar {
  background: #252526;
  padding: 14px 12px;
  border-right: 1px solid #1e1e1e;
  font-size: 0.78rem;
  color: #cccccc;
  display: flex; flex-direction: column; gap: 4px;
}
.vscode-section { color: #6d6d6d; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 0; margin-top: 4px; }
.vscode-file { padding: 3px 6px; display: flex; align-items: center; gap: 6px; border-radius: 3px; }
.vscode-file.active { background: #37373d; }
.vscode-file-icon { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.vscode-file-icon.py { background: linear-gradient(135deg, #3776ab, #ffd43b); }
.vscode-file-icon.md { background: #519aba; }
.vscode-file-icon.js { background: #f7df1e; }

.vscode-editor { background: #1e1e1e; padding: 14px 16px; font-size: 0.82rem; line-height: 1.55; }
.vscode-tab { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; background: #1e1e1e; border-top: 2px solid var(--w-cyan); border-right: 1px solid #252526; margin: -14px -16px 12px; width: fit-content; font-size: 0.78rem; color: #cccccc; }
.vscode-line { display: flex; gap: 16px; font-family: 'Menlo', monospace; }
.vscode-ln { color: #858585; min-width: 18px; text-align: right; user-select: none; }
.vscode-code { color: #d4d4d4; white-space: pre; }
.vscode-code .kw { color: #569cd6; }
.vscode-code .fn { color: #dcdcaa; }
.vscode-code .var { color: #9cdcfe; }
.vscode-code .num { color: #b5cea8; }
.vscode-code .str { color: #ce9178; }
.vscode-code .cm { color: #6a9955; font-style: italic; }
.vscode-code .typed { background: linear-gradient(95deg, oklch(62% 0.27 285 / 0.22), oklch(78% 0.16 220 / 0.22)); border-radius: 2px; }

/* ── NOTION ────────────────────────────────────────────────────────── */
.mock-notion {
  background: #ffffff;
  color: #37352f;
  font-family: ui-sans-serif, -apple-system, 'Helvetica Neue', sans-serif;
  padding: 24px 32px;
  min-height: 320px;
}
[data-theme="dark"] .mock-notion { background: #191919; color: #e4e4e4; }
.notion-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.notion-meta { display: flex; gap: 14px; font-size: 0.75rem; color: #9b9a97; margin-bottom: 18px; }
.notion-bullet {
  display: flex; gap: 10px;
  padding: 5px 0;
  font-size: 0.9rem;
  line-height: 1.5;
  align-items: flex-start;
}
.notion-bullet::before {
  content: "•"; color: #9b9a97; font-size: 1.4rem; line-height: 0.9; flex-shrink: 0; margin-top: 2px;
}
.notion-bullet strong { font-weight: 600; }
.notion-bullet .typed-text {
  background: linear-gradient(95deg, oklch(62% 0.27 285 / 0.16), oklch(78% 0.16 220 / 0.16));
  border-radius: 3px;
  padding: 0 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES GRID
   ═══════════════════════════════════════════════════════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── Categorías de features en /features (página propia) ───────────────── */
.feat-group {
  max-width: 1240px;
  margin: 0 auto 64px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.feat-group:first-of-type { border-top: none; padding-top: 0; }
.feat-group-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.feat-group-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--w-cyan);
  background: oklch(78% 0.16 220 / 0.1);
  border: 1px solid oklch(78% 0.16 220 / 0.2);
  padding: 3px 12px;
  border-radius: 999px;
}
.feat-group-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.feat-group-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 580px;
}
@media (max-width: 720px) {
  .feat-group { margin-bottom: 44px; padding-top: 22px; }
}
.feature {
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.3s, background 0.3s;
  display: flex; flex-direction: column; gap: 12px;
}
.feature:hover { border-color: var(--border-hi); background: var(--surface-hi); }
.feature-icon {
  width: 38px; height: 38px;
  background: var(--w-grad-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: grid; place-items: center;
}
.feature-icon svg { width: 18px; height: 18px; color: var(--w-cyan); stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-title { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.feature-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════════════════════════════════════ */

#vs { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.vs-wrap { max-width: 1080px; margin: 0 auto; }
.vs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.vs-table th, .vs-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.vs-table tr:last-child td { border-bottom: none; }
.vs-table thead th {
  background: var(--bg-elev);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}
.vs-table thead th.vs-us {
  background: var(--w-grad);
  color: white;
  position: relative;
}
.vs-table thead th.vs-us::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}
.vs-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--bg-elev);
  width: 22%;
}
.vs-table td.vs-us-cell {
  background: color-mix(in srgb, var(--w-violet) 6%, var(--bg));
  font-weight: 600;
  color: var(--text);
  border-left: 1px solid oklch(62% 0.27 285 / 0.2);
  border-right: 1px solid oklch(62% 0.27 285 / 0.2);
}
.vs-table td.vs-us-cell:last-child { border-right: none; }
.vs-table tr:last-child td.vs-us-cell { border-bottom: 1px solid oklch(62% 0.27 285 / 0.2); }
.vs-check { color: var(--w-cyan); font-weight: 700; }
.vs-cross { color: var(--text-subtle); }
.vs-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════════════════════════ */

#pricing {
  position: relative;
  overflow: hidden;
}
#pricing::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, var(--glow-1), transparent 70%);
  pointer-events: none;
}

/* Grid de 2 columnas Free + Pro. En mobile se apila vertical (ver
   media query @media (max-width: 960px) más abajo). */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
}

.pricing-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-hi);
  border-radius: 24px;
  padding: 40px 36px;
  position: relative;
  box-shadow: var(--shadow-hard), 0 0 60px oklch(62% 0.27 285 / 0.18);
  z-index: 1;
}
.pricing-card::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: 24px; padding: 1px;
  background: var(--w-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none;
}
.pricing-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: oklch(78% 0.16 220 / 0.12);
  color: var(--w-cyan);
  border: 1px solid oklch(78% 0.16 220 / 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.pricing-name {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.pricing-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 22px; }
.pricing-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.pricing-price {
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--w-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pricing-price-strike {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-decoration: line-through;
}
.pricing-once {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.pricing-price-old {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-subtle, #888);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 80, 80, 0.6);
  text-decoration-thickness: 2px;
  align-self: flex-start;
}

/* Offer block (badge + countdown) */
.pricing-offer {
  display: flex; flex-direction: column; gap: 10px;
  margin: -8px 0 20px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(120deg,
    rgba(255, 110, 80, 0.08),
    rgba(108, 92, 231, 0.10) 60%,
    rgba(108, 92, 231, 0.04));
  border: 1px solid rgba(255, 110, 80, 0.20);
}
.pricing-offer-badge {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ff7a5c;
  text-transform: none;
}
.pricing-countdown {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.pricing-countdown-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.pricing-countdown-clock {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.pricing-countdown-cell {
  display: inline-flex; align-items: baseline;
  gap: 2px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,0.18);
  color: var(--text-strong, #f5f5f5);
  font-weight: 600;
}
.pricing-countdown-cell b { font-size: 1.1rem; font-weight: 700; min-width: 22px; text-align: center; }
.pricing-countdown-cell i { font-size: 0.72rem; font-style: normal; opacity: 0.7; }
.pricing-countdown-sep { color: var(--text-faint, #555); }

/* Light mode adjustments */
[data-theme="light"] .pricing-countdown-cell { background: rgba(0,0,0,0.06); color: var(--text-strong, #111); }
[data-theme="light"] .pricing-offer { background: linear-gradient(120deg, rgba(255,110,80,0.06), rgba(108,92,231,0.06) 60%, rgba(108,92,231,0.02)); }
.pricing-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px;
}
.pricing-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.94rem;
  color: var(--text);
}
.pricing-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: oklch(78% 0.16 220 / 0.15);
  color: var(--w-cyan);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-check svg { width: 11px; height: 11px; }
.pricing-cta { width: 100%; justify-content: center; }
.pricing-note {
  margin-top: 14px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-subtle);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SOURCE CODE SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

#source {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.source-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1140px;
  margin: 0 auto;
  align-items: center;
}
.source-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.05;
}
.source-text h2 .accent { background: var(--w-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.source-text p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.6; margin-bottom: 16px; }
.source-trust {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text);
  margin-top: 4px;
}
.source-trust svg { width: 16px; height: 16px; color: var(--w-cyan); }
.source-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.source-visual-head {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.7rem; letter-spacing: 0.06em; color: var(--text-subtle);
  text-transform: uppercase;
}
.source-visual-head svg { width: 14px; height: 14px; color: var(--w-cyan); }
.source-visual .gh-line { display: flex; gap: 12px; align-items: center; }
.source-visual .gh-line .gh-dir { color: var(--w-cyan); }
.source-visual .gh-line .gh-file { color: var(--text); }
.source-visual .gh-line .gh-bytes { margin-left: auto; color: var(--text-subtle); font-size: 0.72rem; }

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--text);
  transition: color 0.2s;
}
.faq-q:hover { color: var(--w-cyan); }
.faq-chev {
  width: 20px; height: 20px;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-out), color 0.2s;
  flex-shrink: 0;
}
.faq-item.is-open .faq-chev { transform: rotate(180deg); color: var(--w-cyan); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}
.faq-a > div {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}
.faq-a > div > p { padding-bottom: 22px; padding-right: 30px; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ═══════════════════════════════════════════════════════════════════════════
   DOCS GRID
   ═══════════════════════════════════════════════════════════════════════════ */

#docs-grid { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}
.doc-card {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 10px;
  transition: all 0.25s var(--ease-out);
  position: relative;
}
.doc-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
  background: var(--surface-hi);
}
.doc-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--w-grad-soft);
  border: 1px solid var(--border);
  display: grid; place-items: center;
}
.doc-card-icon svg { width: 17px; height: 17px; color: var(--w-cyan); stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.doc-card-title { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.doc-card-desc { color: var(--text-muted); font-size: 0.82rem; line-height: 1.45; }
.doc-card-arrow {
  position: absolute; top: 18px; right: 18px;
  color: var(--text-subtle);
  transition: color 0.2s, transform 0.2s;
}
.doc-card-arrow svg { width: 14px; height: 14px; }
.doc-card:hover .doc-card-arrow { color: var(--w-cyan); transform: translate(2px, -2px); }

/* ═══════════════════════════════════════════════════════════════════════════
   FINAL CTA
   ═══════════════════════════════════════════════════════════════════════════ */

#cta-final {
  position: relative;
  text-align: center;
  overflow: hidden;
}
#cta-final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 50%, var(--glow-1), transparent 70%);
  pointer-events: none;
}
.cta-final-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.cta-final-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.cta-final-title .accent { background: var(--w-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-final-sub { color: var(--text-muted); font-size: 1.1rem; }
.cta-final-meta {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-subtle);
  flex-wrap: wrap; justify-content: center;
}
.cta-final-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-subtle); }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

#footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 60px clamp(20px, 5vw, 56px) 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  max-width: 1240px;
  margin: 0 auto 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.nw-icon-lg {
  width: 56px; height: 56px;
  border-radius: 11px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 12px oklch(62% 0.27 285 / 0.3));
}
.nw-icon-lg.nw-icon-light { display: none; }
.nw-icon-lg.nw-icon-dark { display: block; }
[data-theme="light"] .nw-icon-lg.nw-icon-light { display: block; }
[data-theme="light"] .nw-icon-lg.nw-icon-dark { display: none; }
.footer-brand-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.05rem;
}
.footer-brand-text-dim { color: var(--text-muted); font-weight: 500; }
.footer-tag { color: var(--text-muted); font-size: 0.88rem; max-width: 280px; line-height: 1.55; }
.footer-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-subtle); }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 8px;
}
.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

/* Banner discreto pero visible del repo GPL — entre el grid del footer y
   el bottom bar. Muestra el ícono de GitHub + nombre del repo, cumpliendo
   con la transparencia esperada de un fork GPL v3 y haciendo que cualquier
   visitante curioso pueda llegar al código en un click. */
.footer-repo {
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; justify-content: center;
}
.footer-repo-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-repo-link:hover { color: var(--w-cyan); }
.footer-repo-link svg { flex-shrink: 0; }
.footer-repo-meta {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  border-left: 1px solid var(--border);
  padding-left: 10px;
  margin-left: 4px;
}
@media (max-width: 560px) {
  .footer-repo-link { flex-wrap: wrap; gap: 6px; }
  .footer-repo-meta { border-left: none; padding-left: 0; margin-left: 0; width: 100%; }
}

.footer-bottom {
  max-width: 1240px;
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-subtle);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }
.footer-made {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TWEAKS PANEL
   ═══════════════════════════════════════════════════════════════════════════ */

#tweaks {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 200;
  width: 280px;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-hi);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  padding: 16px;
  display: none;
  flex-direction: column;
  gap: 14px;
  font-size: 0.85rem;
}
#tweaks.is-open { display: flex; }
.tweaks-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.tweaks-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 8px;
}
.tweaks-title-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--w-cyan); box-shadow: 0 0 8px var(--w-cyan); }
.tweaks-close {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  display: grid; place-items: center;
}
.tweaks-close:hover { color: var(--text); background: var(--surface-hi); }
.tweaks-close svg { width: 12px; height: 12px; }

.tweak-group { display: flex; flex-direction: column; gap: 8px; }
.tweak-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.tweak-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tweak-swatch {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: transform 0.15s;
}
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--w-cyan); }
.tweak-radio { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.tweak-radio-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 0.2s;
  text-align: center;
}
.tweak-radio-btn:hover { color: var(--text); }
.tweak-radio-btn.is-active { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-soft); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
  }
  .nav-burger svg { width: 18px; height: 18px; }
  .nav-cta { display: none; }
  .nav-cta .nav-cta-label { display: none; }
  .pillars-grid, .steps-grid, .mockup-grid, .pricing-grid { grid-template-columns: 1fr; }
  /* Fix pricing en mobile: limitar el ancho del grid para que cada card
     quede centrada y nunca corrida. El max-width 540px de la card se
     anula porque ahora el grid mismo limita el ancho. */
  .pricing-grid { max-width: 540px; }
  .pricing-card { max-width: none; margin: 0; }
  .steps-grid::before { display: none; }
  .source-layout { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vs-table { font-size: 0.8rem; }
  .vs-table th, .vs-table td { padding: 12px 14px; }
  .vs-table td:first-child { font-size: 0.68rem; }
  section { padding: 70px 20px; }
  #hero { padding: 110px 20px 60px; min-height: auto; }
  .hero-widget { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-widget-wave { width: 100%; height: 30px; }
  .mock-slack { grid-template-columns: 130px 1fr; }
  .mock-vscode { grid-template-columns: 150px 1fr; }
  #tweaks { width: calc(100vw - 40px); right: 20px; bottom: 20px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.6rem; }
  .hero-sub { font-size: 1rem; }
  .pricing-price { font-size: 3.2rem; }
  .pricing-card { padding: 28px 22px; }
  .nav-tools .lang-toggle { display: flex; }
  /* Versus table on mobile: stacked vertical list per row, ours highlighted */
  .vs-wrap { margin: 0 -18px; padding: 0 18px; }
  .vs-table, .vs-table thead, .vs-table tbody, .vs-table tr, .vs-table td, .vs-table th { display: block; }
  .vs-table { border: none; background: transparent; }
  .vs-table thead { display: none; }
  .vs-table tr {
    padding: 18px;
    margin-bottom: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
  }
  .vs-table tr td:first-child {
    padding: 0 0 12px 0;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    text-transform: none;
  }
  /* Each provider cell: full-width row with label left, value right */
  .vs-table tbody td:not(:first-child) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-family: var(--font-mac);
  }
  .vs-table tbody td:not(:first-child)::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-family: var(--font-mac);
    font-size: 0.85rem;
    color: var(--text-subtle);
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
  }
  /* Our cell: highlighted as a feature row at the end */
  .vs-table tbody td.vs-us-cell {
    margin-top: 8px;
    padding: 14px 14px;
    background: linear-gradient(135deg, oklch(62% 0.27 285 / 0.15), oklch(78% 0.16 220 / 0.10));
    border: 1px solid oklch(78% 0.16 220 / 0.45);
    border-radius: 12px;
    color: var(--text);
    font-weight: 600;
  }
  .vs-table tbody td.vs-us-cell::before {
    color: var(--w-cyan);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.72rem;
    font-family: var(--font-mono);
  }

  /* Hero widget: stack ordenado y typing más alto */
  .hero-widget { padding: 16px; gap: 12px; }
  .hero-widget-typing { font-size: 0.95rem; min-height: calc(1.4em * 3); }
  .hero-widget-meta { flex-wrap: wrap; font-size: 0.65rem; }
  .hero-widget-shortcut { top: -12px; right: 14px; font-size: 0.65rem; padding: 3px 8px; }
  .hero-widget-rec { width: 38px; height: 38px; }
  .hero-trust { font-size: 0.75rem; flex-wrap: wrap; justify-content: center; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  /* Secciones: padding más ajustado */
  section { padding: 56px 18px; }
  .section-head { margin-bottom: 36px; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .section-desc { font-size: 0.95rem; }

  /* Mockups: tipografía interna más chica */
  .mockup { font-size: 0.85rem; }
  .mock-slack, .mock-vscode { grid-template-columns: 1fr; }
  .mock-slack-sidebar, .mock-vscode-sidebar { display: none; }
  .mac-bar-title { font-size: 0.7rem; }

  /* Features grid */
  .features-grid { grid-template-columns: 1fr; }

  /* Docs grid */
  .docs-grid { grid-template-columns: 1fr; }

  /* Source: stack del gh-tree */
  .source-trust { font-size: 0.8rem; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
}
