/* =============================================================
   1. TOKENS (custom properties)
   ============================================================= */
:root {
  /* Colors */
  --bg:           #040c18;
  --bg-2:         #071224;
  --bg-3:         #0b1a30;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --ink:          #e4eeff;
  --ink-soft:     #9fb4d8;
  --ink-mute:     #5a7098;
  --accent:       #4d8bf5;
  --accent-2:     #a16ef0;
  --accent-gold:  #f0b94d;
  --accent-glow:  rgba(77, 139, 245, 0.25);
  --accent-2-glow:rgba(161, 110, 240, 0.25);
  --gold-glow:    rgba(240, 185, 77, 0.25);
  --border:       rgba(255, 255, 255, 0.08);
  --border-accent:rgba(77, 139, 245, 0.4);

  /* Gradient points (updated by JS on mousemove) */
  --mx: 50%;
  --my: 50%;

  /* Typography */
  --display: 'Space Grotesk', sans-serif;
  --sans:    'Inter', sans-serif;
  --mono:    'JetBrains Mono', monospace;

  /* Easings */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Spacing */
  --section-gap: clamp(5rem, 10vw, 9rem);
  --gutter:      clamp(1.25rem, 4vw, 2rem);
  --radius:      16px;
  --radius-lg:   24px;

  /* Nav */
  --nav-h: 72px;
}

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.02em; font-family: var(--display); }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. UTILITIES
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1260px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =============================================================
   4. TYPOGRAPHY
   ============================================================= */
.kicker {
  font-family: var(--mono);
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
  display: block;
}
.kicker--light { color: rgba(255,255,255,0.7); }

.section-head {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--ink);
  margin-bottom: 1rem;
}
.section-sub {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* =============================================================
   5. COMPONENTS
   ============================================================= */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--display);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: -.01em;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), opacity .2s;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 rgba(77,139,245,0);
}
.btn-primary:hover {
  box-shadow: 0 8px 32px var(--accent-glow), 0 0 0 1px rgba(77,139,245,.4);
}

.btn-ghost {
  border: 1px solid var(--border-accent);
  color: var(--accent);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.btn-sm { padding: .5rem 1.25rem; font-size: .875rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }

/* ── Plan button ── */
.btn-plan {
  display: block;
  width: 100%;
  text-align: center;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-family: var(--display);
  font-weight: 600;
  font-size: .9rem;
  transition: background .25s, color .25s, box-shadow .25s, transform .3s var(--ease-out);
  margin-top: auto;
}
.btn-plan:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 24px var(--accent-glow);
  transform: translateY(-2px);
}
.btn-plan--featured {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-plan--featured:hover {
  background: #3b7de8;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-plan--ultra {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}
.btn-plan--ultra:hover {
  background: var(--accent-gold);
  color: var(--bg);
  box-shadow: 0 6px 24px var(--gold-glow);
}

/* =============================================================
   6. NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 12, 24, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.nav-logo-img { width: 32px; height: 32px; object-fit: contain; }
.nav-logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.03em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem;
  color: var(--ink-soft);
  font-family: var(--display);
  font-weight: 500;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 1rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  margin-left: auto;
  padding: 4px;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  background: rgba(4, 12, 24, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border);
  padding: 1.5rem var(--gutter);
  display: none;
}
.nav-mobile.is-open { display: block; }
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.nav-mobile-links a {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--ink-soft);
  transition: color .2s;
}
.nav-mobile-links a:hover { color: var(--ink); }
.nav-mobile-links .btn { text-align: center; margin-top: .5rem; }

/* =============================================================
   7. SPLASH
   ============================================================= */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  animation: splashSafety .01s 4.5s forwards;
}
@keyframes splashSafety {
  to { opacity: 0; pointer-events: none; }
}
.splash.is-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.03);
}
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.splash-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  animation: splashPulse 1.4s var(--ease-soft) infinite alternate;
}
@keyframes splashPulse {
  from { opacity: .5; transform: scale(.95); }
  to   { opacity: 1;  transform: scale(1); }
}
.splash-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.splash-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  animation: splashLoad 2s var(--ease-soft) forwards;
}
@keyframes splashLoad {
  to { transform: translateX(0); }
}

/* =============================================================
   8. CURSOR
   ============================================================= */
.cursor {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  display: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity .25s var(--ease-out);
}
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px; margin: -2.5px;
  background: #fff;
  border-radius: 50%;
}
.cursor-ring {
  width: 30px; height: 30px; margin: -15px;
  border: 1.5px solid rgba(255,255,255,.8);
  border-radius: 50%;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
}
.cursor.is-interactive .cursor-ring { width: 50px; height: 50px; margin: -25px; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }

/* =============================================================
   9. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: -30% -10% -10% -10%;
  background:
    radial-gradient(circle 900px at var(--mx, 30%) var(--my, 40%),
      rgba(77, 139, 245, 0.35) 0%, transparent 60%),
    radial-gradient(circle 700px at calc(100% - var(--mx, 30%)) calc(var(--my, 40%) + 20%),
      rgba(161, 110, 240, 0.25) 0%, transparent 60%),
    radial-gradient(circle 500px at 80% 80%,
      rgba(77, 139, 245, 0.1) 0%, transparent 50%);
  filter: blur(50px) saturate(160%);
  pointer-events: none;
  z-index: 0;
  transition: background .15s;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(4rem, 8vw, 6rem);
}

.hero-text { display: flex; flex-direction: column; gap: 1.5rem; }

.hero-title {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 44ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-free-note {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  color: var(--ink-mute);
}
.hero-free-badge {
  background: rgba(240, 185, 77, .12);
  color: var(--accent-gold);
  border: 1px solid rgba(240, 185, 77, .25);
  padding: .2rem .6rem;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: .75rem;
  white-space: nowrap;
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-glow-img {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  object-fit: contain;
  opacity: .5;
  z-index: 0;
  pointer-events: none;
  filter: blur(4px);
}
.hero-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius);
  animation: heroFloat 6s ease-in-out infinite;
  filter: drop-shadow(0 40px 80px rgba(77, 139, 245, 0.3));
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.hero-badge {
  position: absolute;
  bottom: -2%;
  right: -4%;
  width: clamp(90px, 13%, 130px);
  z-index: 2;
  animation: heroFloat 6s 2s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(240, 185, 77, .25));
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  margin-inline: auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50%       { opacity: 1;  transform: scaleY(1.15); }
}

/* =============================================================
   10. STATS STRIP
   ============================================================= */
.stats-strip {
  padding-block: clamp(3rem, 5vw, 4rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.stats-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  text-align: center;
}
.stat-num-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .1rem;
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}
.stat-suffix {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
}
.stat-label {
  font-size: .85rem;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: .04em;
}

/* =============================================================
   11. FEATURES INCLUDED
   ============================================================= */
.features-included {
  padding-block: var(--section-gap);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;           /* image bleeds to edges */
  padding: 0;
  transition: border-color .3s, box-shadow .3s, transform .4s var(--ease-out);
  cursor: default;
  will-change: transform;
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.feature-card-img-wrap {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--bg-3) 0%, rgba(77,139,245,.10) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
}
.feature-card-img-wrap img {
  width: calc(100% - 1rem);   /* fills the card width */
  height: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease-soft);
}
.feature-card:hover .feature-card-img-wrap img {
  transform: scale(1.06);
}
.feature-card h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  padding: 1.25rem 1.5rem .4rem;
}
.feature-card p {
  font-size: .875rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding: 0 1.5rem 1.5rem;
  flex: 1;
}

/* =============================================================
   12. PLANES
   ============================================================= */
.planes {
  padding-block: var(--section-gap);
  background: var(--bg-2);
}

.planes-free-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: rgba(240, 185, 77, .06);
  border: 1px solid rgba(240, 185, 77, .18);
  border-radius: var(--radius);
  max-width: 600px;
  margin-inline: auto;
  text-align: left;
}
.badge-inline-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  flex-shrink: 0;
}
.planes-free-note p {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.planes-free-note strong { color: var(--accent-gold); }

/* Wrapper — overflow-y visible so top badges never clip */
.planes-wrapper {
  overflow: visible;
  padding-top: 1.75rem;   /* space for absolute badges */
  padding-bottom: .75rem;
  margin-top: 2rem;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* all 5 visible on desktop */
  gap: 1.25rem;
  align-items: start;
}

/* Plan card */
.plan-card {
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;   /* compact so 5 fit side-by-side */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: border-color .3s, box-shadow .3s, transform .4s var(--ease-out);
  will-change: transform;
  cursor: default;
  min-width: 0;   /* prevent grid blowout */
}
.plan-card:hover {
  border-color: rgba(77, 139, 245, .5);
  box-shadow: 0 16px 50px rgba(77, 139, 245, .12);
}

.plan-card--featured {
  border-color: var(--accent);
  background: rgba(77, 139, 245, .06);
  box-shadow: 0 0 0 1px rgba(77, 139, 245, .3), 0 20px 60px rgba(77, 139, 245, .18);
  transform: translateY(-8px);
}
.plan-card--featured:hover {
  box-shadow: 0 0 0 1px var(--accent), 0 24px 70px rgba(77, 139, 245, .28);
}

.plan-card--ultra {
  border-color: rgba(240, 185, 77, .4);
  background: rgba(240, 185, 77, .04);
}
.plan-card--ultra:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 16px 50px var(--gold-glow);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: .25rem .8rem;
  border-radius: 100px;
  white-space: nowrap;
}
.plan-badge--ultra {
  background: var(--accent-gold);
  color: var(--bg);
}

.plan-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  flex-shrink: 0;
}
.plan-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-name {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.02em;
}
.plan-ideal {
  font-size: .82rem;
  color: var(--ink-mute);
  line-height: 1.5;
  margin-top: .35rem;
}

.plan-prices {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.plan-price-design, .plan-price-monthly {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.plan-price-label {
  font-family: var(--mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.plan-price-amount {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.plan-card--ultra .plan-price-amount { color: var(--accent-gold); }
.plan-card--featured .plan-price-amount { color: var(--accent); }
.plan-currency {
  font-size: 1rem;
  font-weight: 500;
  vertical-align: top;
  margin-top: .2rem;
  display: inline-block;
}
.plan-price-type {
  font-size: .75rem;
  color: var(--ink-mute);
  font-family: var(--mono);
}
.plan-divider {
  height: 1px;
  background: var(--border);
}

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.plan-features li {
  font-size: .85rem;
  color: var(--ink-soft);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.4;
}
.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  top: .05em;
}
.plan-card--ultra .plan-features li::before { color: var(--accent-gold); }

.plan-ultra-note {
  font-size: .78rem;
  color: var(--accent-gold);
  font-family: var(--mono);
  font-style: italic;
  text-align: center;
  padding: .5rem;
  background: rgba(240, 185, 77, .06);
  border-radius: 8px;
}

.planes-legal {
  text-align: center;
  font-size: .8rem;
  color: var(--ink-mute);
  max-width: 70ch;
  margin: 2.5rem auto 0;
}

/* =============================================================
   13. PROCESO
   ============================================================= */
.proceso {
  padding-block: var(--section-gap);
}
.proceso-list {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
}
.proceso-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  /* CSS-native animation — visible regardless of JS */
  opacity: 0;
  transform: translateY(28px);
  animation: procesoReveal .8s var(--ease-out) forwards;
}
.proceso-step:nth-child(1) { animation-delay: .1s; }
.proceso-step:nth-child(2) { animation-delay: .25s; }
.proceso-step:nth-child(3) { animation-delay: .4s; }

@keyframes procesoReveal {
  to { opacity: 1; transform: none; }
}

.proceso-step:nth-child(even) .proceso-img { order: 2; }
.proceso-step:nth-child(even) .proceso-text { order: 1; }

.proceso-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
}
.proceso-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .6s var(--ease-soft);
}
.proceso-step:hover .proceso-img img { transform: scale(1.04); }

.proceso-text {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.proceso-num {
  font-family: var(--mono);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(77, 139, 245, .3);
  line-height: 1;
  display: block;
}
.proceso-text h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--ink);
}
.proceso-text p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 44ch;
}

/* =============================================================
   14. FUNCIONALIDADES
   ============================================================= */
.funcionalidades {
  padding-block: var(--section-gap);
  background: var(--bg-2);
}
.func-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.func-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .4s var(--ease-out);
  will-change: transform;
  cursor: default;
}
.func-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.func-img {
  width: 100%;
  aspect-ratio: 16/9;   /* taller area */
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-3) 0%, rgba(77,139,245,.07) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;   /* less padding = more image */
}
.func-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;        /* illustrations — show full, no crop */
  transition: transform .5s var(--ease-soft);
}
.func-card:hover .func-img img { transform: scale(1.06); }
.func-card h3, .func-card p {
  padding-inline: 1.75rem;
}
.func-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}
.func-card p {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-bottom: 1.75rem;
}

/* =============================================================
   15. MODIFICACIONES
   ============================================================= */
.modificaciones {
  padding-block: var(--section-gap);
}
.mod-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}
.mod-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.mod-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.mod-desc {
  color: var(--ink-soft);
  line-height: 1.7;
}
.mod-list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.mod-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: var(--ink-soft);
}
.mod-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.mod-note {
  font-size: .875rem;
  color: var(--ink-mute);
  padding: 1rem 1.25rem;
  background: rgba(77, 139, 245, .06);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.5;
}
.mod-note strong { color: var(--accent); }

.mod-visual {
  position: relative;
}
.mod-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.mod-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  filter: blur(30px);
  pointer-events: none;
}

/* =============================================================
   16. TESTIMONIOS
   ============================================================= */
.testimonios {
  padding-block: var(--section-gap);
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.testimonios-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.testimonios-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .08;
}
.testimonios > .container { position: relative; z-index: 1; }

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testi-card {
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color .3s, box-shadow .3s, transform .4s var(--ease-out);
  will-change: transform;
  cursor: default;
}

/* Solid fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(16px)) {
  .testi-card { background: var(--bg-3); }
}
.testi-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 16px 50px var(--accent-glow);
}

.testi-stars {
  color: var(--accent-gold);
  font-size: 1rem;
  letter-spacing: .15em;
}
.testi-quote p {
  font-size: .95rem;
  color: var(--ink-soft);
  line-height: 1.7;
  font-style: italic;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-top: auto;
}
.testi-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
  flex-shrink: 0;
}
.testi-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink);
}
.testi-role {
  font-size: .78rem;
  color: var(--ink-mute);
  margin-top: .1rem;
}

/* =============================================================
   17. FAQ
   ============================================================= */
.faq {
  padding-block: var(--section-gap);
}
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item.is-open {
  border-color: var(--border-accent);
}

.faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  transition: color .2s, background .2s;
}
.faq-q:hover { color: var(--accent); background: rgba(77, 139, 245, .04); }

.faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-accent);
  flex-shrink: 0;
  position: relative;
  transition: transform .35s var(--ease-out), background .2s;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: var(--accent);
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.faq-icon::before { width: 8px; height: 1.5px; transform: translate(-50%,-50%); }
.faq-icon::after  { width: 1.5px; height: 8px; transform: translate(-50%,-50%); }
.faq-item.is-open .faq-icon { background: rgba(77, 139, 245, .15); transform: rotate(45deg); }

.faq-a {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  transition: max-height .5s var(--ease-soft), padding .4s var(--ease-soft);
}
.faq-item.is-open .faq-a {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

/* =============================================================
   18. CTA FINAL
   ============================================================= */
.cta-final {
  padding-block: var(--section-gap);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .12;
}
.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(4,12,24,.9) 0%, rgba(7,18,36,.85) 100%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.cta-inner h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
}
.cta-sub {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.65;
}
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-free-reminder {
  font-size: .85rem;
  color: var(--ink-mute);
  padding: .75rem 1.25rem;
  background: rgba(240, 185, 77, .06);
  border: 1px solid rgba(240, 185, 77, .15);
  border-radius: var(--radius);
}
.cta-free-reminder strong { color: var(--accent-gold); }

/* =============================================================
   19. FOOTER
   ============================================================= */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(3rem, 5vw, 5rem);
  padding-block: clamp(3rem, 5vw, 4rem);
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--ink);
}
.footer-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.footer-tagline {
  font-size: .85rem;
  color: var(--ink-mute);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.footer-col-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.footer-col a {
  font-size: .875rem;
  color: var(--ink-mute);
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: .8rem;
  color: var(--ink-mute);
}

/* =============================================================
   20. REVEAL ANIMATIONS
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* DEFENSIVE: element with both .reveal and [data-split] should not hide */
.reveal[data-split] {
  opacity: 1;
  transform: none;
}

/* Stagger for children */
.features-grid .reveal:nth-child(2) { transition-delay: .08s; }
.features-grid .reveal:nth-child(3) { transition-delay: .16s; }
.features-grid .reveal:nth-child(4) { transition-delay: .24s; }
.features-grid .reveal:nth-child(5) { transition-delay: .32s; }
.features-grid .reveal:nth-child(6) { transition-delay: .4s; }

.planes-grid .reveal:nth-child(2) { transition-delay: .06s; }
.planes-grid .reveal:nth-child(3) { transition-delay: .12s; }
.planes-grid .reveal:nth-child(4) { transition-delay: .18s; }
.planes-grid .reveal:nth-child(5) { transition-delay: .24s; }

.testimonios-grid .reveal:nth-child(2) { transition-delay: .1s; }
.testimonios-grid .reveal:nth-child(3) { transition-delay: .2s; }

.func-grid .reveal:nth-child(2) { transition-delay: .1s; }
.func-grid .reveal:nth-child(3) { transition-delay: .2s; }
.func-grid .reveal:nth-child(4) { transition-delay: .3s; }

/* =============================================================
   21. RESPONSIVE
   ============================================================= */

/* Tablet portrait */
@media (max-width: 959px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text { align-items: center; }
  .hero-sub { max-width: 52ch; }
  .hero-visual { max-width: 480px; margin-inline: auto; }
  .hero-badge { right: 0; }
  .hero-scroll { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .func-grid     { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; }
  .proceso-step { grid-template-columns: 1fr; }
  .proceso-step:nth-child(even) .proceso-img { order: 0; }
  .proceso-step:nth-child(even) .proceso-text { order: 0; }
  .mod-inner { grid-template-columns: 1fr; }
  .mod-visual { display: none; }

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

  /* Tablet: horizontal scroll for plans (not enough width for 5 columns) */
  .planes-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-top: 1.5rem; }
  .planes-wrapper::-webkit-scrollbar { height: 4px; }
  .planes-wrapper::-webkit-scrollbar-track { background: var(--bg-3); border-radius: 4px; }
  .planes-wrapper::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
  .planes-grid { grid-template-columns: repeat(5, 260px); min-width: max-content; }
  .plan-card--featured { transform: none; }
}

/* Mobile */
@media (max-width: 719px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

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

  .stats-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* Mobile: horizontal scroll for plans */
  .planes-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-top: 1.5rem; }
  .planes-wrapper::-webkit-scrollbar { height: 4px; }
  .planes-wrapper::-webkit-scrollbar-track { background: var(--bg-3); border-radius: 4px; }
  .planes-wrapper::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
  .planes-grid { grid-template-columns: repeat(5, 280px); min-width: max-content; }
  .plan-card--featured { transform: none; }

  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .func-grid { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .cta-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-actions .btn { justify-content: center; }
}

/* Small phones */
@media (max-width: 479px) {
  .stats-list { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { grid-template-columns: 1fr; }
  .planes-free-note { flex-direction: column; text-align: center; }
}

/* =============================================================
   22. REDUCED MOTION — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mockup,
  .hero-badge,
  .splash-logo  { animation: none; }
  .hero-scroll-line { animation: none; opacity: .4; }
}
