/* SPACIO 3D — Stylesheet (Architectural blueprint navy, GPU scroll story, reduced-motion safe) */
:root {
  --bg: #070b14;
  --bg-2: #0d1526;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-card: rgba(15, 23, 42, 0.72);
  --border: rgba(96, 165, 250, 0.16);
  --border-strong: rgba(56, 189, 248, 0.35);
  --text: #f8fafc;
  --text-2: #cbd5e1;
  --text-muted: #94a3b8;
  --blue: #4f8cff;
  --blue-deep: #2563eb;
  --cyan: #38bdf8;
  --sky: #60a5fa;
  --amber: #f59e0b;
  --nav-h: 68px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 650px at 78% -10%, rgba(79, 140, 255, 0.2), transparent 60%),
    radial-gradient(850px 550px at 10% 35%, rgba(56, 189, 248, 0.1), transparent 55%),
    linear-gradient(to right, rgba(96, 165, 250, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(96, 165, 250, 0.045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

/* ===== NAVBAR ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 500;
  background: rgba(7, 11, 20, 0.78);
  border-bottom: 1px solid rgba(96, 165, 250, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-cube {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

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

.nav-link {
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(96, 165, 250, 0.1);
}

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

/* Language Dropdown */
.lang-dropdown { position: relative; }

.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.lang-trigger:hover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
}

.lang-chev { opacity: 0.72; transition: transform 0.2s ease; }
.lang-dropdown.is-open .lang-chev { transform: rotate(180deg); }

.lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  max-height: 330px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 16px;
  background: rgba(9, 15, 30, 0.98);
  border: 1px solid var(--border-strong);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 600;
}

.lang-dropdown.is-open .lang-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown--up .lang-panel {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateY(6px);
}
.lang-dropdown--up.is-open .lang-panel { transform: translateY(0); }

.lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
}

.lang-option:hover:not(:disabled) { background: rgba(96, 165, 250, 0.12); }
.lang-option.is-active { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; }
.lang-option.is-soon { opacity: 0.45; cursor: not-allowed; }
.lang-check, .lang-soon-badge { margin-left: auto; font-size: 0.74rem; }
.lang-check { color: var(--cyan); font-weight: 800; }
.lang-soon-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 65%, #1d4ed8 100%);
  color: #ffffff;
  border-color: rgba(147, 197, 253, 0.35);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.42);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(56, 189, 248, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-strong);
}

.btn-sm {
  height: 38px;
  padding: 0 15px;
  font-size: 0.84rem;
}

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  padding: 16px;
  background: rgba(7, 11, 20, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  z-index: 490;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer.is-open { display: flex; }

.mobile-drawer a {
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}

/* ===== SHARED SECTION LABELS ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.28);
  margin-bottom: 14px;
}

.sec-title {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.sec-sub {
  margin: 12px 0 0;
  color: var(--text-2);
  font-size: 1.04rem;
}

.sec-head-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* ===== 1. HERO + ASSEMBLING CUBE MODEL REVEAL ===== */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 34px) 0 48px;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.hero-grid > * { min-width: 0; }

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 5vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  animation: fadeSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title-accent {
  display: block;
  padding: 0.06em 0.03em 0.2em;
  margin: -0.06em -0.03em -0.2em;
  background: linear-gradient(125deg, #ffffff 10%, var(--cyan) 55%, var(--blue) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 0 0 26px;
  color: var(--text-2);
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  max-width: 44ch;
  animation: fadeSlideUp 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeSlideUp 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-meta {
  margin: 16px 0 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  animation: fadeSlideUp 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

body.intro-done .hero-title,
body.intro-done .hero-sub,
body.intro-done .hero-actions,
body.intro-done .hero-meta {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes fadeSlideUp {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}

/* Architectural Maqueta Stage */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-maqueta {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  padding: 12px;
  background: linear-gradient(155deg, rgba(96, 165, 250, 0.16), rgba(13, 21, 38, 0.85));
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65), 0 0 60px rgba(79, 140, 255, 0.18);
  animation: maquetaOpen 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-maqueta-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}

/* Assembling Isometric Cube floating badge on Hero maqueta */
.hero-cube-overlay {
  position: absolute;
  top: -36px;
  right: 20px;
  width: 112px;
  height: 112px;
  z-index: 4;
  filter: drop-shadow(0 16px 30px rgba(37, 99, 235, 0.5));
  animation: cubeHoverFloat 4.2s ease-in-out 1.2s infinite;
}

.cube-frame {
  stroke-dasharray: 1900;
  stroke-dashoffset: 600;
  animation: traceSquircle 0.48s ease forwards;
}

.cube-roof {
  opacity: 0.35;
  transform: translate(0, -34px);
  animation: assembleRoof 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.cube-left {
  opacity: 0.35;
  transform: translate(-30px, 22px);
  animation: assembleWall 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s forwards;
}

.cube-right {
  opacity: 0.35;
  transform: translate(30px, 22px);
  animation: assembleWall 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) 0.09s forwards;
}

body.intro-done .hero-maqueta {
  opacity: 1;
  transform: none;
  animation: none;
}
body.intro-done .cube-frame {
  stroke-dashoffset: 0;
  animation: none;
}
body.intro-done .cube-roof,
body.intro-done .cube-left,
body.intro-done .cube-right {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes maquetaOpen {
  from { transform: scale(0.96) translateY(10px); }
  to { transform: scale(1) translateY(0); }
}

@keyframes traceSquircle {
  from { stroke-dashoffset: 1900; }
  to { stroke-dashoffset: 0; }
}

@keyframes assembleRoof {
  0% { opacity: 0; transform: translate(0, -56px); }
  75% { opacity: 1; transform: translate(0, -14px); }
  100% { opacity: 1; transform: translate(0, 0); }
}

@keyframes assembleWall {
  from { opacity: 0; }
  to { opacity: 1; transform: translate(0, 0); }
}

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

/* ===== 2. STAR SECTION: SCROLLYTELLING ("DEL PLANO A LA CASA") ===== */
.story-section {
  position: relative;
  height: 310vh;
  --cube-lift: 0px;
  --cube-tilt: 0deg;
}

.story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--nav-h) 0 24px;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 36px;
}

.story-layout > * { min-width: 0; }

.story-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.story-cube-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.mini-cube {
  width: 56px;
  height: 56px;
  transform: rotate(var(--cube-tilt));
  transition: transform 0.25s ease-out;
}

.mini-cube-roof {
  transform: translateY(var(--cube-lift));
  transition: transform 0.25s ease-out;
}

.story-step-count {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.story-words {
  position: relative;
  min-height: 145px;
  width: 100%;
}

.story-copy-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.story-copy-step.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.story-word {
  margin: -0.06em -0.03em calc(8px - 0.2em);
  padding: 0.06em 0.03em 0.2em;
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.16;
  background: linear-gradient(125deg, #ffffff 15%, var(--cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story-desc {
  margin: 0;
  font-size: 1.06rem;
  color: var(--text-2);
  max-width: 34ch;
}

.story-dots {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.story-dot {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.story-dot.is-active {
  background: rgba(79, 140, 255, 0.22);
  color: #ffffff;
  border-color: var(--cyan);
}

.story-light-toggle {
  display: inline-flex;
  gap: 6px;
  margin-top: 12px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
}

.light-pill {
  border: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.light-pill.is-active {
  background: var(--blue-deep);
  color: #ffffff;
}

/* Right Screen Viewer */
.story-viewer {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: rgba(13, 21, 38, 0.85);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.65);
}

.story-frames {
  position: relative;
  aspect-ratio: 1600 / 940;
  border-radius: 16px;
  overflow: hidden;
  background: #0a101d;
}

.story-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 0.42s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.story-frame.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  cursor: zoom-in;
}

.story-mobile-cards { display: none; }

/* ===== 3. VOICE SECTION ===== */
.voice-section {
  padding: 88px 0;
}

.voice-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 38px;
}

.voice-grid > * { min-width: 0; }

.voice-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mic-arena {
  position: relative;
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
}

.mic-wave {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  opacity: 0;
  animation: micPulse 2.8s ease-out infinite;
}

.mic-wave--2 { animation-delay: 0.9s; }
.mic-wave--3 { animation-delay: 1.8s; }

@keyframes micPulse {
  0% { transform: scale(0.55); opacity: 0.85; }
  100% { transform: scale(1.35); opacity: 0; }
}

.mic-core {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #ffffff;
  box-shadow: 0 0 36px rgba(79, 140, 255, 0.55);
}

.voice-box {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid var(--border-strong);
  font-size: 1.05rem;
  font-weight: 600;
  color: #e0f2fe;
  min-height: 82px;
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 3px;
  vertical-align: -2px;
  animation: blinkCur 0.9s steps(2) infinite;
}

@keyframes blinkCur { 50% { opacity: 0; } }

.voice-replay-btn {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 700;
}

.voice-replay-btn:hover { border-color: var(--cyan); color: var(--text); }

.voice-shot-card {
  border-radius: var(--radius-xl);
  padding: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  cursor: zoom-in;
}

.voice-shot-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 940;
  object-fit: cover;
  border-radius: 16px;
}

/* ===== 4. SUPERPOWERS GRID ===== */
.features-section {
  padding: 72px 0 88px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feat-card {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feat-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(22, 33, 61, 0.85);
}

.feat-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(79, 140, 255, 0.16);
  color: var(--cyan);
  margin-bottom: 4px;
}

.feat-card h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.feat-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
}

.feat-zoom-btn {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feat-zoom-btn:hover { text-decoration: underline; }

/* ===== 5. VIDEO SHOWCASE ===== */
.video-section {
  padding: 64px 0 92px;
}

.monitor-frame {
  max-width: 960px;
  margin-inline: auto;
  border-radius: 24px;
  padding: 12px;
  background: linear-gradient(155deg, rgba(96, 165, 250, 0.22), rgba(15, 23, 42, 0.9));
  border: 1px solid var(--border-strong);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65);
}

.monitor-screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #060911;
}

.monitor-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-ctrl {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(7, 11, 20, 0.78);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

/* ===== 6. PRICING ===== */
.pricing-section {
  padding: 64px 0 96px;
}

.compare-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border);
}

.plan-card--pro {
  border-color: rgba(56, 189, 248, 0.55);
  background: linear-gradient(165deg, rgba(37, 99, 235, 0.16), rgba(13, 21, 38, 0.92));
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.2);
}

.plan-card--ult {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(165deg, rgba(245, 158, 11, 0.1), rgba(13, 21, 38, 0.92));
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--blue-deep);
  color: #ffffff;
}

.plan-card--ult .plan-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
}

.plan-name {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-tag {
  margin: 6px 0 22px;
  font-size: 0.84rem;
  color: var(--cyan);
  font-weight: 600;
}

.plan-card--ult .plan-tag { color: #fcd34d; }

.plan-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 11px;
  flex-grow: 1;
}

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

.plan-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cyan);
}

.plan-card--ult .plan-list svg { color: #fbbf24; }
.plan-card .btn { width: 100%; }

.pricing-note {
  text-align: center;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ===== 7. FINAL CTA ===== */
.final-cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.cta-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
  pointer-events: none;
}

.cta-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(7, 11, 20, 0.52), rgba(7, 11, 20, 0.94) 85%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cta-cube-spin {
  width: 72px;
  height: 72px;
  animation: gentleSpin 16s linear infinite;
}

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

.cta-content h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.025em;
}

.cta-content p {
  margin: 0 0 8px;
  color: var(--text-2);
  font-size: 1.08rem;
}

/* ===== 8. FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  background: #04070e;
  padding: 52px 0 82px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-cazvia {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 12px;
}

.footer-cazvia:hover { border-color: #00d1b2; }

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.52s ease, transform 0.52s ease;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Lightbox Modal */
.sp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(4, 7, 15, 0.9);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sp-lightbox.is-open { display: flex; }

.sp-lightbox-inner {
  position: relative;
  max-width: min(1100px, 96vw);
  max-height: 90vh;
}

.sp-lightbox-inner img {
  max-height: 86vh;
  width: auto;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
}

.sp-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #0f172a;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cube-overlay { right: 14px; top: -22px; width: 76px; height: 76px; }
  .hero-cube-overlay svg { width: 100%; height: 100%; }
  .voice-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-store-desktop { display: none; }
  .nav-burger { display: inline-flex; }

  .story-section {
    height: auto;
    padding: 56px 0;
  }
  .story-sticky { display: none; }
  .story-mobile-cards {
    display: grid;
    gap: 24px;
  }
  .story-mobile-head {
    text-align: center;
    margin-bottom: 10px;
  }
  .story-m-card {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--surface-card);
    border: 1px solid var(--border);
  }
  .story-m-card h2 {
    margin: 0 0 6px;
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--cyan);
  }
  .story-m-card p {
    margin: 0 0 14px;
    color: var(--text-2);
    font-size: 0.94rem;
  }
  .story-m-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 1600 / 940;
    object-fit: cover;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 24px); }
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title, .hero-sub, .hero-actions, .hero-meta,
  .hero-maqueta, .cube-roof, .cube-left, .cube-right, .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .cube-frame { stroke-dashoffset: 0 !important; }
  .story-section {
    height: auto;
    padding: 64px 0;
  }
  .story-sticky { display: none; }
  .story-mobile-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .story-mobile-head { grid-column: 1 / -1; text-align: center; }
  @media (max-width: 720px) {
    .story-mobile-cards { grid-template-columns: 1fr; }
  }
}

/* ===== LEGAL PAGES ===== */
.legal-wrap {
  padding: calc(var(--nav-h) + 42px) 0 88px;
}

.legal-card {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.legal-back:hover { text-decoration: underline; }

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0 0 28px;
}

.legal-card h2 {
  margin: 26px 0 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.legal-card p, .legal-card li {
  color: var(--text-2);
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal-card ul {
  margin: 8px 0 16px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.legal-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.legal-nav-pills a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-2);
}

.legal-nav-pills a:hover, .legal-nav-pills a[aria-current="page"] {
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(56, 189, 248, 0.12);
}

