@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("./assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2"); }
/* ==========================================================================
   SPNDR — Minimalist Product Launch (Apple / Google Industrial Design)
   ========================================================================== */

:root {
  /* Industrial Dark Palette (Apple Pro / Pixel Obsidian) */
  --bg: #000000;
  --bg-alt: #07090E;
  --surface-1: #0E121A;
  --surface-2: #141923;
  --surface-3: #1C2331;
  --surface-glass: rgba(14, 18, 26, 0.76);

  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(24, 109, 253, 0.45);

  --text-primary: #F5F7FA;
  --text-secondary: #8A93A6;
  --text-tertiary: #5C6475;

  --accent-blue: #186DFD;
  --accent-emerald: #25D685;
  --accent-violet: #7C4DFF;

  --btn-primary-bg: #F5F7FA;
  --btn-primary-fg: #07090E;
  --btn-secondary-bg: rgba(255, 255, 255, 0.06);
  --btn-secondary-fg: #F5F7FA;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
}

[data-theme="light"] {
  --bg: #F5F7FA;
  --bg-alt: #FFFFFF;
  --surface-1: #FFFFFF;
  --surface-2: #EEF2F7;
  --surface-3: #E3E8F0;
  --surface-glass: rgba(255, 255, 255, 0.82);

  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.16);
  --border-accent: rgba(24, 109, 253, 0.4);

  --text-primary: #0B0F17;
  --text-secondary: #556075;
  --text-tertiary: #8892A6;

  --btn-primary-bg: #0B0F17;
  --btn-primary-fg: #FFFFFF;
  --btn-secondary-bg: rgba(15, 23, 42, 0.05);
  --btn-secondary-fg: #0B0F17;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Google Sans", "Inter", Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  overflow-x: clip;
  transition: background-color 0.3s var(--ease-standard), color 0.3s var(--ease-standard);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Uniform SVG Icon Sizing Rule (Strictly 20px or 24px, never mismatched) */
.icon-20 {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.75;
}

.icon-18 {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.75;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--surface-2);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease-out);
}

.icon-box.blue {
  color: var(--accent-blue);
  background: radial-gradient(circle at 30% 30%, rgba(24, 109, 253, 0.2), rgba(24, 109, 253, 0.08));
  border: none;
}

.icon-box.emerald {
  color: var(--accent-emerald);
  background: radial-gradient(circle at 30% 30%, rgba(37, 214, 133, 0.2), rgba(37, 214, 133, 0.08));
  border: none;
}

/* Top Scroll Progress Line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 300;
  background: var(--accent-blue);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes progress-scale {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    .scroll-progress {
      animation: progress-scale linear both;
      animation-timeline: scroll(root);
      animation-range: 0% 100%;
    }
  }
}

/* ==========================================================================
   Navigation Bar (Minimalist Floating Glass)
   ========================================================================== */
.nav-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.nav-bar {
  pointer-events: auto;
  width: 100%;
  max-width: 1120px;
  height: 56px;
  padding: 0 12px 0 18px;
  border-radius: var(--radius-pill);
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: height 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.nav-header.is-scrolled .nav-bar {
  height: 50px;
  background: var(--surface-glass);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  border-color: var(--border-hover);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-brand .brand-logo {
  height: 26px;
  width: auto;
  max-width: 112px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

/* Selector dinámico de wordmark según tema */
[data-theme="dark"] .nav-brand .light-logo {
  display: none !important;
}
[data-theme="dark"] .nav-brand .dark-logo {
  display: block !important;
}

[data-theme="light"] .nav-brand .dark-logo {
  display: none !important;
}
[data-theme="light"] .nav-brand .light-logo {
  display: block !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--btn-secondary-bg);
}

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

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-size: 0.82rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  background: var(--btn-secondary-bg);
  border: 1px solid var(--border);
  transition: background-color 0.2s, border-color 0.2s;
}

.menu-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
}

/* Mobile Navigation Dropdown */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 20px;
  right: 20px;
  max-width: 440px;
  margin: 0 auto;
  background: var(--surface-glass);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 210;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
}

.mobile-nav.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  transition: background-color 0.15s, color 0.15s;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: var(--surface-2);
  color: var(--accent-blue);
}

.mobile-nav-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
}

.mobile-nav-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Layout & Apple/Google Editorial Typography
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 128px 0;
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

.title-hero {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.title-section {
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.text-muted-tone {
  color: var(--text-secondary);
}

.subtitle {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Primary & Secondary Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.94;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

/* ==========================================================================
   Apple-Grade Entrance & Scroll Dynamics Keyframes
   ========================================================================== */
@keyframes appleHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes appleHardwareIntro {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.94);
    filter: blur(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes appleFloatPhone {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes appleFloatWatch {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes appleShimmerBorder {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Scroll Reveal System (Apple Keynote Dynamics) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px) scale(0.98);
  filter: blur(8px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out),
    filter 0.85s var(--ease-out);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  filter: blur(6px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out),
    filter 0.75s var(--ease-out);
  will-change: opacity, transform, filter;
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Scrollspy Active Nav Indicator */
.nav-links a.is-current-section {
  color: var(--text-primary);
  background: var(--surface-2);
  border: 1px solid var(--border-hover);
}

.mobile-nav-link.is-current-section {
  background: var(--surface-2);
  color: var(--accent-blue);
}

/* ==========================================================================
   ACTO 1: HERO (Apple / Google Keynote Centered Layout — Zero Overlap)
   ========================================================================== */
.hero {
  padding: 148px 0 96px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(900px 420px at 50% 0%, rgba(24, 109, 253, 0.12), transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-intro .kicker {
    animation: appleHeroFadeUp 0.7s var(--ease-out) 0.08s both;
  }
  .hero-intro .title-hero {
    animation: appleHeroFadeUp 0.85s var(--ease-out) 0.18s both;
  }
  .hero-intro .subtitle {
    animation: appleHeroFadeUp 0.85s var(--ease-out) 0.28s both;
  }
  .hero-actions {
    animation: appleHeroFadeUp 0.85s var(--ease-out) 0.38s both;
  }
  .hero-screen-tabs {
    animation: appleHeroFadeUp 0.85s var(--ease-out) 0.48s both;
  }
  .hardware-stage {
    animation: appleHardwareIntro 1.05s var(--ease-out) 0.58s both;
  }
  .phone-frame {
    animation: appleFloatPhone 6.5s ease-in-out infinite 1.8s;
  }
  .watch-frame {
    animation: appleFloatWatch 5.5s ease-in-out infinite 2.1s;
  }
}

.hero-intro {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

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

/* Screen Switcher Pills under Hero Intro (Apple Segmented Glass Control) */
.hero-screen-tabs {
  margin: 44px auto 36px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.screen-pill {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  transition: all 0.25s var(--ease-out);
}

.screen-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.screen-pill.is-active {
  background: var(--surface-2);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .screen-pill.is-active {
  background: #FFFFFF;
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

/* Balanced Side-by-Side Hardware Stage (Phone + Watch Never Overlap) */
.hardware-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Precision Machined Android Frame */
.phone-frame {
  width: 300px;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #2A3140 0%, #11151E 50%, #1F2633 100%);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.65),
    0 0 70px rgba(24, 109, 253, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

[data-theme="light"] .phone-frame {
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.22),
    0 0 50px rgba(24, 109, 253, 0.14),
    0 0 0 1px rgba(15, 23, 42, 0.1) inset;
}

.phone-viewport {
  width: 100%;
  height: 100%;
  border-radius: 35px;
  background: #090C10;
  overflow: hidden;
  position: relative;
}

/* Clean Status Bar Mask (hides personal status bar icons from raw screenshots) */
.phone-statusbar-clean {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4.5%;
  background: #090C10;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #F5F7FA;
}

.phone-camera-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #000000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 0.38s var(--ease-out), transform 0.38s var(--ease-out);
  pointer-events: none;
}

.phone-screen-img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Companion Circular Wear OS Watch Frame (Cleanly Separated) */
.watch-companion-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.watch-frame {
  width: 208px;
  height: 208px;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(155deg, #2E3646 0%, #10141D 60%, #232A38 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  position: relative;
  flex-shrink: 0;
}

/* Subtle Watch Crown */
.watch-frame::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 34px;
  border-radius: 4px;
  background: #394256;
}

.watch-viewport {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #000000;
  overflow: hidden;
  position: relative;
}

.watch-screen-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}

.watch-screen-img.is-active {
  opacity: 1;
}

.hardware-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Metrics Strip */
.metrics-strip {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.metric-item span {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: block;
}

/* ==========================================================================
   ACTO 2: SCROLLYTELLING — EL MOTOR CONTABLE Y CAPTURA
   ========================================================================== */
.scrolly-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.scrolly-chapters {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chapter-card {
  padding: 30px;
  border-radius: 28px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.chapter-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.chapter-card.is-active {
  border-color: rgba(24, 109, 253, 0.45);
  background: linear-gradient(135deg, rgba(24, 109, 253, 0.05) 0%, var(--surface-2) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.chapter-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.chapter-step-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.chapter-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.chapter-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Chapter Quick Tabs (Visible on mobile/tablets) */
.chapter-quick-tabs {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.chapter-quick-tabs::-webkit-scrollbar {
  display: none;
}

.chapter-tab-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface-1);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-standard);
}

.chapter-tab-pill.is-active {
  background: var(--surface-2);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

/* Interactive Cutoff Widget inside Chapter 1 (Borderless Organic Flow) */
.interactive-widget {
  margin-top: 22px;
  padding: 20px 0 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  border-radius: 0;
}

.widget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.range-input {
  width: 100%;
  accent-color: var(--accent-blue);
  cursor: pointer;
  height: 6px;
  border-radius: 3px;
}

/* Timeline Visual Representation (Organic Pill Track) */
.cutoff-cycle-visual {
  margin: 16px 0 12px;
}

.cycle-track {
  height: 32px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: none;
  display: flex;
  position: relative;
  overflow: hidden;
}

.cycle-segment {
  height: 100%;
  transition: width 0.2s var(--ease-out);
  position: relative;
  display: flex;
  align-items: center;
}

.cycle-segment.past {
  background: rgba(255, 255, 255, 0.02);
}

.cycle-segment.active {
  background: linear-gradient(90deg, rgba(24, 109, 253, 0.3) 0%, rgba(24, 109, 253, 0.55) 100%);
  border-right: 2px solid var(--accent-blue);
  justify-content: flex-end;
  padding-right: 12px;
}

.cycle-segment.next {
  background: rgba(37, 214, 133, 0.15);
  border-right: 2px solid var(--accent-emerald);
  justify-content: flex-end;
  padding-right: 12px;
}

.cycle-badge-cutoff {
  font-size: 0.7rem;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

.cycle-badge-due {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-emerald);
  white-space: nowrap;
}

.widget-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.cutoff-smart-tip {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: rgba(24, 109, 253, 0.08);
  border: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.cutoff-smart-tip .tip-icon {
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.scrolly-sticky-col {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

/* ==========================================================================
   ACTO 3: WEAR OS DEDICATED SECTION
   ========================================================================== */
.wear-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.wear-stage-box {
  padding: 48px 24px;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 50%, rgba(24, 109, 253, 0.16) 0%, rgba(37, 214, 133, 0.04) 50%, transparent 75%);
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.watch-frame-lg {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 12px;
  background: linear-gradient(155deg, #323B4D 0%, #10141D 60%, #242C3A 100%);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  position: relative;
}

.watch-frame-lg::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 42px;
  border-radius: 4px;
  background: #3E485E;
}

.wear-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wear-selector-btn {
  text-align: left;
  padding: 22px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
}

.wear-selector-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.wear-selector-btn.is-active {
  border-color: rgba(37, 214, 133, 0.4);
  background: rgba(37, 214, 133, 0.06);
  box-shadow: 0 12px 32px rgba(37, 214, 133, 0.08);
}

[data-theme="light"] .wear-selector-btn {
  background: rgba(15, 23, 42, 0.02);
  border-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .wear-selector-btn:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .wear-selector-btn.is-active {
  background: rgba(37, 214, 133, 0.08);
  border-color: rgba(37, 214, 133, 0.45);
}

.wear-selector-btn h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.wear-selector-btn p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   ACTO 4: BENTO GRID DE ECOSISTEMA (APPLE STYLE)
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-cell {
  border-radius: 32px;
  background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.03), transparent 60%), var(--surface-1);
  border: 1px solid var(--border);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.bento-cell:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .bento-cell {
  background: radial-gradient(circle at 90% 10%, rgba(15, 23, 42, 0.02), transparent 60%), var(--surface-1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .bento-cell:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }

.bento-cell h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 14px;
  margin-bottom: 8px;
}

.bento-cell p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bento 1: De-boxed Debt Simplifier */
.debt-simplifier-box {
  margin-top: 16px;
  padding: 20px 0 0;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
  border-radius: 0;
}

.debt-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.debt-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.25s var(--ease-out);
}

.debt-pill.settled {
  background: rgba(37, 214, 133, 0.12);
  border-color: rgba(37, 214, 133, 0.35);
  color: var(--accent-emerald);
}

.btn-inline-action {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(24, 109, 253, 0.3);
}

.btn-inline-action:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(24, 109, 253, 0.45);
}

/* Bento 2: De-boxed Currency Flow */
.bento-currency-flow {
  margin-top: 16px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.currency-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.curr-pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.curr-arrow {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}

.currency-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulseLive 2s infinite ease-in-out;
}

@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* Bento 3, 4, 5: Integrated Organic Preview Cards */
.bento-preview-card {
  margin-top: 16px;
  padding: 20px 0 0;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
  border-radius: 0;
}

.bento-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.bento-progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  overflow: hidden;
}

.bento-progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  transition: width 0.4s var(--ease-out);
}

.bento-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-check-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37, 214, 133, 0.15);
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.preview-clock-badge {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.statement-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.statement-ready-pill {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(37, 214, 133, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(37, 214, 133, 0.3);
}

.statement-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.statement-micro-lbl {
  display: block;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.statement-micro-val {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ==========================================================================
   ACTO 5: COMPARADOR OFICIAL GRATIS VS. PRO
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.plan-box {
  padding: 38px;
  border-radius: 32px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.plan-box:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .plan-box {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .plan-box:hover {
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.08);
}

.plan-box.pro {
  border-color: rgba(24, 109, 253, 0.45);
  background: linear-gradient(180deg, rgba(24, 109, 253, 0.08) 0%, var(--surface-1) 100%);
  position: relative;
  box-shadow: 0 16px 50px rgba(24, 109, 253, 0.12);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.plan-box.pro:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(24, 109, 253, 0.22);
  border-color: rgba(24, 109, 253, 0.7);
}

.plan-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.plan-badge {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.plan-badge.pro {
  background: rgba(24, 109, 253, 0.14);
  color: #6EA8FF;
  border-color: rgba(24, 109, 253, 0.3);
}

[data-theme="light"] .plan-badge.pro {
  color: var(--accent-blue);
}

.plan-price {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.plan-list {
  list-style: none;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-list li strong {
  color: var(--text-primary);
}

/* Comparison Table (Apple Clean Table) */
.table-card {
  border-radius: 32px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease-out);
}

[data-theme="light"] .table-card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.table-card-head {
  padding: 32px 36px 18px;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comp-table th,
.comp-table td {
  padding: 18px 36px;
  font-size: 0.9rem;
}

.comp-table th {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.comp-table td {
  border-top: 1px solid var(--border);
}

.comp-table tbody tr {
  transition: background 0.2s var(--ease-standard);
}

.comp-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .comp-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.025);
}

.comp-table .col-center {
  text-align: center;
  width: 170px;
}

.ai-pill {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(24, 109, 253, 0.12);
  color: var(--accent-blue);
}

.gift-callout {
  margin-top: 24px;
  padding: 28px 36px;
  border-radius: 28px;
  background: radial-gradient(circle at 10% 50%, rgba(37, 214, 133, 0.07) 0%, transparent 70%), var(--surface-1);
  border: 1px solid rgba(37, 214, 133, 0.22);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

[data-theme="light"] .gift-callout {
  background: radial-gradient(circle at 10% 50%, rgba(37, 214, 133, 0.08) 0%, transparent 70%), #FFFFFF;
  border-color: rgba(37, 214, 133, 0.35);
  box-shadow: 0 8px 30px rgba(37, 214, 133, 0.08);
}

/* ==========================================================================
   ACTO 6: CLOSING CTA & GOOGLE PLAY QR
   ========================================================================== */
.closing-banner {
  border-radius: 36px;
  background: radial-gradient(circle at 85% 50%, rgba(24, 109, 253, 0.12) 0%, transparent 60%), var(--surface-1);
  border: 1px solid var(--border);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}

[data-theme="light"] .closing-banner {
  background: radial-gradient(circle at 85% 50%, rgba(24, 109, 253, 0.08) 0%, transparent 60%), #FFFFFF;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

.qr-card {
  background: #FFFFFF;
  color: #0B0F17;
  padding: 24px;
  border-radius: 24px;
  width: 220px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.qr-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.qr-card span {
  display: block;
  margin-top: 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
}

.footer {
  padding: 48px 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive Design (Mobile-First & Pro UX Validation)
   ========================================================================== */
.qr-label-desktop {
  display: block;
}

.qr-label-mobile {
  display: none;
}

.mobile-badge-pill {
  display: none;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .scrolly-grid,
  .wear-grid,
  .plans-grid,
  .closing-banner {
    grid-template-columns: 1fr;
  }
  .scrolly-sticky-col {
    position: relative;
    top: 0;
    order: -1;
    margin-bottom: 24px;
  }
  .chapter-quick-tabs {
    display: flex;
  }
  .span-7,
  .span-5,
  .span-4 {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .hero-screen-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px 16px 14px;
    margin: 32px -16px 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-screen-tabs::-webkit-scrollbar {
    display: none;
  }
  .screen-pill {
    flex-shrink: 0;
    white-space: nowrap;
  }
  .table-card-head {
    padding: 20px 20px 12px;
  }
  .comp-table th,
  .comp-table td {
    padding: 12px 16px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }
  .hero {
    padding: 108px 0 56px;
  }
  .nav-header {
    top: 12px;
    padding: 0 12px;
  }
  .nav-bar {
    height: 52px;
    padding: 0 8px 0 14px;
  }
  .btn-nav-cta {
    padding: 0 12px;
    font-size: 0.78rem;
  }
  .hardware-stage {
    gap: 28px;
  }
  .phone-frame {
    width: 260px;
    border-radius: 40px;
    padding: 8px;
  }
  .phone-viewport {
    border-radius: 32px;
  }
  .watch-frame {
    width: 172px;
    height: 172px;
  }
  .watch-frame-lg {
    width: 220px;
    height: 220px;
  }
  .bento-cell {
    padding: 26px 20px;
    border-radius: 26px;
  }
  .interactive-widget {
    padding: 16px 0 0;
  }
  .bento-preview-card,
  .debt-simplifier-box,
  .bento-currency-flow {
    padding: 16px 0 0;
  }
  .plan-box {
    padding: 28px 22px;
    border-radius: 26px;
  }
  .table-card {
    border-radius: 24px;
  }
  .gift-callout {
    padding: 22px 20px;
    border-radius: 24px;
  }
  .qr-label-desktop {
    display: none;
  }
  .qr-label-mobile {
    display: block;
    margin-top: 10px;
    font-size: 0.74rem;
    color: #475569;
  }
  .closing-cta-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .mobile-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-secondary);
  }
  .closing-banner {
    padding: 36px 22px;
    border-radius: 28px;
    gap: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro .kicker,
  .hero-intro .title-hero,
  .hero-intro .subtitle,
  .hero-actions,
  .hero-screen-tabs,
  .hardware-stage,
  .phone-frame,
  .watch-frame,
  .plan-box.pro::before {
    animation: none !important;
  }
  .reveal-on-scroll,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto !important;
  }
}
