/* ==========================================================================
   MyNextSpot — Landing Page Design System & Stylesheet
   Luxury Obsidian Mode, Zero Overflow, 100% Mobile Responsive
   ========================================================================== */

:root {
  --bg-deep: #06080d;
  --bg-surface: #0d121c;
  --bg-card: rgba(15, 23, 38, 0.7);
  --bg-card-hover: rgba(24, 34, 56, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-heavy: rgba(10, 14, 24, 0.88);

  --brand-primary: #6366f1;
  --brand-violet: #8b5cf6;
  --brand-magenta: #d946ef;
  --brand-emerald: #10b981;
  --brand-amber: #f59e0b;
  --brand-rose: #f43f5e;
  --brand-cyan: #06b6d4;

  --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-text: linear-gradient(135deg, #ffffff 15%, #cbd5e1 65%, #94a3b8 100%);
  --grad-text-glow: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #e879f9 100%);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(99, 102, 241, 0.4);
  --border-emerald: rgba(16, 185, 129, 0.35);

  --text-main: #f8fafc;
  --text-sub: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 50px -10px rgba(99, 102, 241, 0.35);
  --shadow-glow-emerald: 0 0 40px -10px rgba(16, 185, 129, 0.35);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --max-w: 1200px;
  --nav-h: 74px;
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient Background Mesh */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.25;
  animation: floatOrb 22s ease-in-out infinite alternate;
}

.mesh-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: -100px;
  left: 10%;
}

.mesh-blob-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #d946ef 0%, transparent 70%);
  top: 40%;
  right: -80px;
  animation-delay: -7s;
}

.mesh-blob-3 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  bottom: 0;
  left: -100px;
  opacity: 0.16;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(35px) scale(1.06) translateX(20px); }
  100% { transform: translateY(-25px) scale(0.96) translateX(-15px); }
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Navigation Header */
.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-header.scrolled {
  background: rgba(6, 8, 13, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  display: block;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-main);
}

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

/* Language Switcher in Navbar */
.lang-switcher-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  gap: 2px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.45);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 6px 20px -4px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(99, 102, 241, 0.7);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-medium);
  color: var(--text-main);
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  padding-top: calc(var(--nav-h) + 50px);
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid var(--border-accent);
  color: #a5b4fc;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
  max-width: 100%;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 10px var(--brand-emerald);
  flex-shrink: 0;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2.1rem, 4.8vw, 3.7rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-word;
}

.hero-title-highlight {
  background: var(--grad-text-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* Hero Visual Showcase */
.hero-visual-wrap,
.hero-phone-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.hero-showcase-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.showcase-switcher {
  display: inline-flex;
  background: rgba(15, 23, 38, 0.88);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  box-sizing: border-box;
}

.showcase-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.showcase-tab.active {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.showcase-pane {
  display: none;
  width: 100%;
}

.showcase-pane.active {
  display: block;
  animation: paneFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Floating Badges (Desktop Only) */
.float-card-badge {
  position: absolute;
  background: rgba(10, 14, 24, 0.94);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.float-badge-1 {
  top: -15px;
  left: -20px;
}

.float-badge-2 {
  bottom: 25px;
  right: -20px;
  animation-delay: -2s;
}

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

@media (max-width: 768px) {
  .float-card-badge {
    display: none !important;
  }
}

.hero-image-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1.5px solid var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 440px;
  width: 100%;
}

.hero-image-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.hero-image-card:hover img {
  transform: scale(1.02);
}

.hero-image-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-emerald);
  box-shadow: 0 0 10px var(--brand-emerald);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

/* Interactive Phone Card Widget */
.phone-card {
  width: 100%;
  max-width: 400px;
  background: rgba(15, 23, 38, 0.9);
  border: 1.5px solid var(--border-accent);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.phone-speaker {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  margin: 0 auto 12px;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.phone-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.phone-title {
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.phone-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

/* Demo services */
.demo-services-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 14px;
}

.demo-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-service-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.demo-service-item.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--brand-primary);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
}

.demo-service-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.demo-service-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.demo-service-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.demo-service-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.demo-service-price {
  font-size: 0.92rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  margin-left: 8px;
}

.demo-slots {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.demo-slot-btn {
  flex: 1;
  padding: 7px 4px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.demo-slot-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
}

.demo-book-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--grad-brand);
  border: none;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Demo QR Pass Result Popup */
.demo-pass-result {
  display: none;
  background: rgba(10, 14, 24, 0.97);
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: 28px;
  padding: 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.demo-pass-result.show {
  display: flex;
}

.qr-mock-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}

.qr-mock-grid {
  width: 120px;
  height: 120px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
}

.qr-cell {
  background: #0f172a;
  border-radius: 2px;
}

.qr-cell.blank {
  background: transparent;
}

/* Section Common */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-violet);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.7rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-word;
}

.section-desc {
  font-size: 1.02rem;
  color: var(--text-muted);
}

/* Personas Section */
.personas-section {
  padding: 80px 0;
}

.persona-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.persona-tab-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.persona-tab-btn.active {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 24px -6px rgba(99, 102, 241, 0.6);
}

.persona-content-pane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.persona-content-pane.active {
  display: grid;
  animation: paneFade 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes paneFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.persona-feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0;
}

.persona-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.persona-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.persona-feature-title {
  font-size: 0.94rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.persona-feature-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.persona-visual-card {
  background: rgba(10, 14, 24, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.persona-image-preview {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-top: 14px;
  box-shadow: var(--shadow-sm);
}

.persona-image-preview img {
  width: 100%;
  height: auto;
  display: block;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.feature-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.feature-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Calculator Section */
.calc-section {
  padding: 80px 0;
}

.calc-box {
  background: var(--bg-card);
  border: 1.5px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.calc-slider-wrap {
  margin: 28px 0;
}

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

.calc-slider-val {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--brand-violet);
}

.calc-range {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  -webkit-appearance: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-primary);
  border: 3px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 14px var(--brand-primary);
}

.calc-results-card {
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.calc-result-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calc-result-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-emerald);
  flex-shrink: 0;
}

/* Download Section */
.download-section {
  padding: 70px 0;
}

.download-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16) 0%, rgba(217, 70, 239, 0.16) 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
}

.download-banner-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.download-banner-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 28px;
}

.download-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* FAQ Section */
.faq-section {
  padding: 70px 0;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--border-accent);
}

.faq-question {
  padding: 18px 20px;
  font-size: 0.98rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.faq-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-violet);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 280px;
  padding-bottom: 20px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(6, 8, 13, 0.96);
  padding: 60px 0 30px;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand-desc {
  font-size: 0.86rem;
  color: var(--text-dim);
  max-width: 320px;
  margin: 14px 0 18px;
}

.footer-col-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-main);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-dim);
  gap: 14px;
}

/* ==========================================================================
   Mobile-Specific Media Queries (Zero Overflow Guarantees)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-subtitle {
    margin: 0 auto 28px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .persona-content-pane {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }

  .calc-box {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-h: 66px;
  }

  .container {
    padding: 0 16px;
  }

  .nav-menu, .nav-actions .btn-secondary {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(6, 8, 13, 0.98);
    border-bottom: 1px solid var(--border-medium);
    padding: 20px;
    gap: 18px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .hero-stats {
    flex-direction: column;
    gap: 14px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 580px) {
  .brand-logo {
    font-size: 1.1rem;
  }

  .brand-icon {
    width: 32px;
    height: 32px;
  }

  .nav-actions .btn-primary {
    padding: 8px 12px;
    font-size: 0.76rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6.5vw, 2.3rem);
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 100%;
    padding: 13px 18px;
    font-size: 0.92rem;
  }

  .download-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .download-ctas .btn {
    width: 100%;
    max-width: 100%;
    padding: 13px 18px;
    font-size: 0.92rem;
  }

  .persona-tab-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 0.86rem;
  }

  .persona-content-pane {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }

  .persona-visual-card {
    padding: 16px 12px;
  }

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

  .feature-card {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }

  .phone-card {
    padding: 16px 12px;
    border-radius: 20px;
  }

  .calc-box {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }

  .calc-results-card {
    padding: 18px 14px;
  }

  .calc-result-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .calc-result-num {
    margin-top: 2px;
    font-size: 1.15rem;
  }

  .download-banner {
    padding: 36px 16px;
    border-radius: var(--radius-md);
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .faq-answer {
    padding: 0 16px;
    font-size: 0.85rem;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 16px;
  }
}

@media (max-width: 420px) {
  .container {
    padding: 0 12px;
  }

  .nav-inner {
    gap: 6px;
  }

  .brand-logo {
    font-size: 1.05rem;
    gap: 6px;
  }

  .brand-icon {
    width: 28px;
    height: 28px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-actions .btn-primary {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
  }

  .showcase-switcher {
    width: 100%;
  }

  .showcase-tab {
    flex: 1;
    justify-content: center;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .hero-image-badge {
    padding: 8px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .hero-image-badge .btn {
    width: 100%;
  }

  .demo-slots {
    flex-direction: column;
  }
}

/* ==========================================================================
   Planes Oficiales por País & Tiendas de Onboarding
   ========================================================================== */
.plans-section {
  padding: 80px 0;
  position: relative;
}

.country-nav-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.country-pill-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.country-pill-btn:hover {
  background: var(--bg-card-hover);
  color: #fff;
  border-color: var(--border-accent);
}

.country-pill-btn.active {
  background: var(--grad-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

.onboarding-info-banner {
  max-width: 820px;
  margin: 0 auto 36px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.onboarding-info-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: var(--brand-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.onboarding-info-text {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 1050px) {
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.plan-card.plan-featured {
  border-color: var(--brand-primary);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.12) 0%, rgba(15, 23, 38, 0.85) 100%);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.4);
}

.plan-tag-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
}

.plan-name {
  font-size: 1.18rem;
  font-weight: 900;
  margin-bottom: 4px;
}

.plan-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 18px;
  min-height: 48px;
  line-height: 1.5;
}

.plan-price-wrap {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.plan-price {
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.plan-period {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}

.plan-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-sub);
}

.plan-feature-item i {
  color: var(--brand-emerald);
  font-size: 0.85rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ==========================================================================
   Visual Editor HUD (Exclusivo mynextspotapp@gmail.com)
   ========================================================================== */
.editor-hud-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: rgba(10, 14, 24, 0.96);
  border-bottom: 2px solid var(--brand-violet);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.editor-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

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

.editor-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.editor-btn:hover {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}

.editor-btn-save {
  background: var(--grad-emerald);
  border: none;
  color: #fff;
}

.editor-btn-save:hover {
  filter: brightness(1.15);
}

/* Edit Mode active styling */
body.editor-mode-active {
  padding-top: 52px;
}

body.editor-mode-active [contenteditable="true"] {
  outline: 1px dashed rgba(99, 102, 241, 0.6);
  transition: all 0.2s ease;
  cursor: text;
}

body.editor-mode-active [contenteditable="true"]:hover {
  outline: 1.5px solid var(--brand-magenta);
  background: rgba(217, 70, 239, 0.08);
}

body.editor-mode-active [contenteditable="true"]:focus {
  outline: 2px solid var(--brand-emerald);
  background: rgba(16, 185, 129, 0.1);
}

body.editor-mode-active img {
  cursor: pointer;
  transition: outline 0.2s ease;
}

body.editor-mode-active img:hover {
  outline: 3px solid var(--brand-violet);
}

/* R2 Image Modal */
.r2-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.r2-modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

