/* Nexus CRM Landing — neural journey */
:root {
  --bg-0: #050810;
  --bg-1: #0a0e1a;
  --bg-2: #0f172a;
  --bg-3: #111827;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.15);
  --purple: #6366f1;
  --purple-soft: rgba(99, 102, 241, 0.2);
  --gradient: linear-gradient(135deg, #22d3ee 0%, #6366f1 60%, #a855f7 100%);
  --gradient-h: linear-gradient(90deg, #22d3ee, #6366f1);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --warn: #f87171;
  --font-display: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --nav-h: 72px;
  --scene-pad: clamp(24px, 5vw, 80px);
}

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

.hidden,
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-snap-type: y proximity; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-0);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Canvas & overlays ── */
#neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  contain: strict;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.warp-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, var(--bg-0) 85%);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  opacity: 0.4;
}

/* ── Nav ── */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--scene-pad);
  background: rgba(5, 8, 16, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
  transition: background 0.3s, border-color 0.3s;
}

.landing-nav.scrolled {
  background: rgba(5, 8, 16, 0.92);
  border-color: rgba(34, 211, 238, 0.2);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--text);
}

.nav-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--cyan); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(15, 23, 42, 0.6);
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.lang-btn:hover { color: var(--text); }

.lang-btn.active {
  color: var(--bg-0);
  background: var(--gradient);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25);
}

.nav-cta {
  padding: 8px 20px !important;
  border: 1px solid rgba(34, 211, 238, 0.4) !important;
  border-radius: 999px;
  color: var(--cyan) !important;
  background: var(--cyan-soft);
  transition: box-shadow 0.2s, background 0.2s !important;
}

.nav-cta:hover {
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.22) !important;
}

/* ── Install buttons (PWA) ── */
.install-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
  white-space: nowrap;
}

.install-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
}

.install-btn.ready {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.2);
}

.install-btn-ios:hover { background: rgba(99, 102, 241, 0.2); }
.install-btn-android:hover { background: rgba(52, 211, 153, 0.12); }

.install-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Install modal */
.install-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

@media (min-width: 769px) {
  .install-modal {
    align-items: center;
    padding: 20px;
  }
}

.install-modal.hidden { display: none; }

body.install-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.install-modal:not(.hidden) {
  touch-action: none;
}

.install-modal-scroll {
  touch-action: pan-y;
}

.install-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.install-modal-sheet {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  height: min(88dvh, 640px);
  max-height: min(88dvh, 640px);
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 20px 20px 16px 16px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(5, 8, 16, 0.98));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(34, 211, 238, 0.08);
  overflow: hidden;
}

@media (min-width: 769px) {
  .install-modal-sheet {
    border-radius: 20px;
    height: auto;
    max-height: min(85vh, 640px);
  }
}

.install-modal-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 28px 24px 12px;
}

.install-modal-sheet h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 8px;
  padding-right: 28px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.install-modal-lead {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.install-steps {
  margin: 0 0 20px 1.1rem;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.install-steps li { margin-bottom: 8px; }
.install-steps strong { color: var(--cyan); font-weight: 600; }

.install-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.install-modal-actions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 24px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(5, 8, 16, 0.95);
}

.btn-install-open,
.btn-install-done {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-install-open {
  background: var(--gradient);
  color: var(--bg-0);
}

.btn-install-done {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 99;
  background: rgba(99, 102, 241, 0.1);
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-h);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
  transition: width 0.05s linear;
}

/* ── Journey sections ── */
.journey {
  position: relative;
  z-index: 10;
}

.scene {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) var(--scene-pad) 80px;
  scroll-snap-align: start;
  position: relative;
}

.scene-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.scene-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 999px;
  background: var(--cyan-soft);
}

.scene-tag-warn {
  color: var(--warn);
  border-color: rgba(248, 113, 113, 0.3);
  background: rgba(248, 113, 113, 0.1);
}

.scene-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.scene-title-lg {
  font-size: clamp(2.8rem, 8vw, 5rem);
}

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

.scene-text {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 32px;
}

.scene-text strong { color: var(--text); font-weight: 600; }
.scene-text em { color: var(--cyan); font-style: normal; }
.scene-text-center { text-align: center; max-width: 560px; margin-left: auto; margin-right: auto; }

.depth-marker {
  position: absolute;
  bottom: 32px;
  left: var(--scene-pad);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.35);
  font-family: var(--font-display);
}

/* ── Hero ── */
.scene-hero .scene-inner { max-width: 860px; }

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
}

.hero-nexus {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--text);
  text-shadow: 0 0 60px rgba(34, 211, 238, 0.15);
}

.hero-crm {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.6em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 40px;
}

.hero-lead em {
  color: var(--cyan);
  font-style: normal;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(99, 102, 241, 0.3);
}

.btn-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float-y 2.5s ease-in-out infinite;
}

.btn-scroll svg { opacity: 0.7; }

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

/* ── Pain list ── */
.pain-list {
  list-style: none;
  text-align: left;
  max-width: 420px;
  margin: 0 auto;
}

.pain-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(248, 113, 113, 0.12);
  color: var(--muted);
  font-size: 0.95rem;
}

.pain-icon {
  color: var(--warn);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ── Hub visual ── */
.hub-visual {
  position: relative;
  width: min(360px, 80vw);
  height: min(360px, 80vw);
  margin: 48px auto 0;
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.2), 0 0 80px rgba(99, 102, 241, 0.1);
  z-index: 2;
  animation: hub-pulse 3s ease-in-out infinite;
}

.hub-center img { border-radius: 50%; }

@keyframes hub-pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(34, 211, 238, 0.2), 0 0 80px rgba(99, 102, 241, 0.1); }
  50% { box-shadow: 0 0 60px rgba(34, 211, 238, 0.35), 0 0 120px rgba(99, 102, 241, 0.2); }
}

.hub-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cyan);
  animation: orbit-float 4s ease-in-out infinite;
}

.hub-orbit-1 { transform: rotate(0deg) translateX(140px) rotate(0deg); animation-delay: 0s; }
.hub-orbit-2 { transform: rotate(60deg) translateX(140px) rotate(-60deg); animation-delay: 0.5s; }
.hub-orbit-3 { transform: rotate(120deg) translateX(140px) rotate(-120deg); animation-delay: 1s; }
.hub-orbit-4 { transform: rotate(180deg) translateX(140px) rotate(-180deg); animation-delay: 1.5s; }
.hub-orbit-5 { transform: rotate(240deg) translateX(140px) rotate(-240deg); animation-delay: 2s; }
.hub-orbit-6 { transform: rotate(300deg) translateX(140px) rotate(-300deg); animation-delay: 2.5s; }

@keyframes orbit-float {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); box-shadow: 0 0 20px rgba(34, 211, 238, 0.3); }
}

/* ── Features grid ── */
.scene-features {
  min-height: auto;
  padding-bottom: 120px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 960px;
  width: 100%;
  margin: 48px auto 0;
  padding: 0 var(--scene-pad);
}

.feature-card {
  padding: 28px 24px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--cyan);
}

.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Automation flow ── */
.auto-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.auto-step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  padding: 24px 16px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  background: rgba(15, 23, 42, 0.6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.auto-pulse {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.auto-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.auto-step p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.auto-arrow {
  font-size: 1.5rem;
  color: rgba(99, 102, 241, 0.5);
  flex-shrink: 0;
}

/* ── Control rings ── */
.control-rings {
  position: relative;
  width: min(400px, 85vw);
  height: min(400px, 85vw);
  margin: 48px auto 0;
}

.control-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: ring-rotate 20s linear infinite;
}

.control-ring span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

.control-ring small {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 4px;
}

.control-ring-1 {
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent);
  border-color: rgba(34, 211, 238, 0.4);
  animation-direction: normal;
  z-index: 3;
}

.control-ring-2 {
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  animation-direction: reverse;
  animation-duration: 30s;
  z-index: 2;
}

.control-ring-3 {
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  animation-duration: 45s;
  z-index: 1;
  border-color: rgba(168, 85, 247, 0.25);
}

@keyframes ring-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── CTA ── */
.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 40px 0 24px;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--bg-0);
  box-shadow: 0 4px 24px rgba(34, 211, 238, 0.25);
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(34, 211, 238, 0.4), 0 0 60px rgba(99, 102, 241, 0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.35);
}

.cta-note {
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.5);
  letter-spacing: 0.05em;
}

/* ── Pricing ── */
.scene-tag-dump {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.1);
  animation: dump-pulse 2s ease-in-out infinite;
}

@keyframes dump-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(74, 222, 128, 0); }
  50% { box-shadow: 0 0 20px rgba(74, 222, 128, 0.2); }
}

.scene-pricing {
  min-height: auto;
  padding-bottom: 100px;
}

.scene-pricing .scene-inner { max-width: 720px; }

.pricing-compare {
  max-width: 820px;
  width: 100%;
  margin: 40px auto 48px;
  padding: 0 var(--scene-pad);
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.compare-header,
.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 0.8fr;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
}

.compare-header {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  background: rgba(5, 8, 16, 0.4);
}

.compare-row {
  border-bottom: 1px solid rgba(99, 102, 241, 0.08);
  font-size: 0.9rem;
  transition: background 0.2s;
}

.compare-row:last-child { border-bottom: none; }

.compare-row:hover { background: rgba(34, 211, 238, 0.04); }

.compare-name { color: var(--text); font-weight: 500; }

.compare-them {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.5);
}

.compare-them small,
.compare-us small {
  font-size: 0.7rem;
  opacity: 0.7;
}

.compare-us {
  color: var(--cyan);
  font-weight: 700;
  font-family: var(--font-display);
}

.compare-save {
  color: #4ade80;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: right;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--scene-pad);
}

.pricing-card {
  position: relative;
  padding: 32px 24px 28px;
  border-radius: 20px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  border-color: rgba(34, 211, 238, 0.35);
  transform: translateY(-4px);
}

.pricing-card-featured {
  border-color: rgba(34, 211, 238, 0.45);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.08), rgba(99, 102, 241, 0.06));
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.12);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-0);
  background: var(--gradient);
  white-space: nowrap;
}

.pricing-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.pricing-was {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.4);
  margin-bottom: 4px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.price-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.price-cur {
  font-size: 0.9rem;
  color: var(--muted);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.12);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features li {
  position: relative;
  padding: 7px 0 7px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}

.btn-pricing {
  display: block;
  text-align: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-pricing:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.12);
}

.btn-pricing-glow {
  background: var(--gradient);
  color: var(--bg-0);
  border: none;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
}

.btn-pricing-glow:hover {
  box-shadow: 0 8px 32px rgba(34, 211, 238, 0.4);
  background: var(--gradient);
  color: var(--bg-0);
}

.pricing-footnote {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 0 var(--scene-pad);
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(148, 163, 184, 0.55);
}

.pricing-footnote strong { color: #4ade80; }

/* ── Footer ── */
.landing-footer {
  position: relative;
  z-index: 10;
  padding: 40px var(--scene-pad);
  border-top: 1px solid rgba(99, 102, 241, 0.12);
  background: rgba(5, 8, 16, 0.9);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: 0.12em;
}

.footer-brand-text small {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.55);
  text-transform: none;
}

.footer-site {
  color: var(--cyan);
  text-decoration: none;
}

.footer-site:hover {
  text-decoration: underline;
}

.footer-inner p {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.5);
}

.footer-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-link:hover { text-decoration: underline; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.reveal { transition-delay: calc(var(--delay, 0) * 0.1s); }

/* ── Scene-specific tints ── */
.scene-chaos .warp-overlay { opacity: 0.85; }
.scene-connect .scene-inner { max-width: 800px; }
.scene-auto .scene-inner { max-width: 800px; }
.scene-control .scene-inner { max-width: 680px; }
.scene-pricing .scene-inner { max-width: 720px; }
.scene-cta .scene-inner { max-width: 720px; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-right {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 24px;
    gap: 16px;
    background: rgba(5, 8, 16, 0.97);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-right.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .lang-switch {
    align-self: center;
  }

  .nav-links {
    position: static;
    flex-direction: column;
    padding: 0;
    gap: 20px;
    background: none;
    border: none;
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-burger { display: flex; }

  .install-btns {
    width: 100%;
    justify-content: stretch;
  }

  .install-btn {
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .hero-nexus { letter-spacing: 0.15em; }

  .hub-orbit {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    font-size: 0.55rem;
  }

  .hub-orbit-1 { transform: rotate(0deg) translateX(110px) rotate(0deg); }
  .hub-orbit-2 { transform: rotate(60deg) translateX(110px) rotate(-60deg); }
  .hub-orbit-3 { transform: rotate(120deg) translateX(110px) rotate(-120deg); }
  .hub-orbit-4 { transform: rotate(180deg) translateX(110px) rotate(-180deg); }
  .hub-orbit-5 { transform: rotate(240deg) translateX(110px) rotate(-240deg); }
  .hub-orbit-6 { transform: rotate(300deg) translateX(110px) rotate(-300deg); }

  .auto-arrow { display: none; }

  .auto-flow { flex-direction: column; }

  .compare-header { display: none; }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 20px;
    text-align: center;
  }

  .compare-row .compare-name {
    font-weight: 700;
    margin-bottom: 4px;
  }

  .compare-save { text-align: center; }

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

  .footer-inner { flex-direction: column; text-align: center; }

  .depth-marker { display: none; }
}

/* ── Hero SEO line ── */
.hero-seo {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ── SEO content block ── */
.seo-block {
  position: relative;
  z-index: 5;
  padding: clamp(48px, 8vw, 96px) var(--scene-pad);
  background: linear-gradient(180deg, transparent, rgba(5, 8, 16, 0.95) 8%, var(--bg-1));
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.seo-inner {
  max-width: 960px;
  margin: 0 auto;
}

.seo-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.25;
}

.seo-lead {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
  font-size: 1rem;
}

.seo-lead strong { color: var(--text); }

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.seo-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.6);
}

.seo-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--cyan);
}

.seo-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.seo-faq h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.seo-faq-item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  padding: 12px 0;
}

.seo-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.seo-faq-item summary::-webkit-details-marker { display: none; }

.seo-faq-item p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.seo-faq-item a {
  color: var(--cyan);
}

/* ── Performance: below-fold scenes ── */
.scene:not(.scene-hero):not(.scene-cta) {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

@media (max-width: 768px) {
  html.neural-mobile {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  html.neural-mobile .scene {
    scroll-snap-align: none;
  }

  html.neural-scrolling .warp-overlay {
    transition: none;
  }

  body {
    background:
      radial-gradient(ellipse 90% 55% at 50% 12%, rgba(99, 102, 241, 0.18), transparent 55%),
      radial-gradient(ellipse 70% 45% at 85% 75%, rgba(34, 211, 238, 0.12), transparent 50%),
      var(--bg-0);
  }

  .scanlines { display: none; }

  .warp-overlay {
    opacity: 0.5;
    background: radial-gradient(ellipse 95% 70% at 50% 45%, transparent 0%, var(--bg-0) 88%);
  }

  html.neural-mobile #neural-canvas {
    opacity: 1;
    filter: saturate(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #neural-canvas, .scanlines { display: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-scroll, .hub-center, .hub-orbit, .control-ring, .auto-pulse, .scene-tag-dump { animation: none; }
}
