/* ============================================================
   PICTORYX — Professional Design System
   Light default · Dark mode toggle · Gradient accents
   ============================================================ */

/* ── Brand tokens (theme-independent) ───────────────────── */
:root {
  --accent:         #7c3aed;
  --accent-2:       #2563eb;
  --gradient:       linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);

  /* Radius */
  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-full: 9999px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-med:  0.25s ease;
  --t-slow: 0.4s ease;
}

/* ── LIGHT THEME (default) ───────────────────────────────── */
:root,
[data-theme="light"] {
  color-scheme: light;

  /* Backgrounds */
  --bg-base:        #ffffff;
  --bg-surface:     #f7f5ff;
  --bg-elevated:    #ede9fe;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f9f7ff;

  /* Text */
  --text-primary:   #13111a;
  --text-secondary: #4b4669;
  --text-muted:     #8b87a8;
  --text-dim:       #c2bfd8;

  /* Brand colours (richer in light mode) */
  --accent-glow:    rgba(124,58,237,0.20);
  --gradient-text:  linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --gradient-glow:  linear-gradient(135deg, rgba(124,58,237,0.08), rgba(37,99,235,0.08));

  /* Borders */
  --border:         rgba(124,58,237,0.10);
  --border-strong:  rgba(124,58,237,0.20);
  --border-accent:  rgba(124,58,237,0.35);

  /* Shadows */
  --shadow-sm:   0 1px 4px rgba(60,40,120,0.07);
  --shadow-md:   0 6px 24px rgba(60,40,120,0.10);
  --shadow-lg:   0 16px 48px rgba(60,40,120,0.13);
  --shadow-glow: 0 0 32px rgba(124,58,237,0.18);
}

/* ── DARK THEME ──────────────────────────────────────────── */
[data-theme="dark"] {
  color-scheme: dark;

  /* Backgrounds */
  --bg-base:        #070710;
  --bg-surface:     #0e0e1c;
  --bg-elevated:    #141428;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-hover:  rgba(255,255,255,0.07);

  /* Text */
  --text-primary:   #ffffff;
  --text-secondary: rgba(255,255,255,0.70);
  --text-muted:     rgba(255,255,255,0.40);
  --text-dim:       rgba(255,255,255,0.20);

  /* Brand */
  --accent-glow:    rgba(124,58,237,0.35);
  --gradient-text:  linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
  --gradient-glow:  linear-gradient(135deg, rgba(124,58,237,0.15), rgba(37,99,235,0.15));

  /* Borders */
  --border:         rgba(255,255,255,0.08);
  --border-strong:  rgba(255,255,255,0.14);
  --border-accent:  rgba(124,58,237,0.40);

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.25);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Override Bootstrap text/bg defaults */
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

/* ── Theme transition ────────────────────────────────────── */
body, .px-navbar, .glass-card, .step-card, .feature-card,
.pricing-card, .faq-item-px, .cta-banner, .px-footer,
.auth-card, .account-section, .dash-sidebar, .stat-card, .job-card {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.display-1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; }
.display-2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 800; }
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }

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

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.30);
  color: #a78bfa;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
}

/* ── Navbar ─────────────────────────────────────────────── */
.px-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, border-color 0.3s ease;
  padding: 0;
  height: 68px;
  display: flex;
  align-items: center;
}

[data-theme="dark"] .px-navbar {
  background: rgba(7,7,16,0.85);
}

.px-navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.px-navbar .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.px-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary) !important;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.px-logo img { height: 30px; filter: brightness(1.1); }

.px-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.px-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}

.px-nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

/* Dropdown */
.px-dropdown { position: relative; }
.px-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px;
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  z-index: 100;
}
.px-dropdown:hover .px-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.px-dropdown-menu a {
  display: block;
  padding: 9px 12px;
  color: var(--text-secondary);
  font-size: 14px;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.px-dropdown-menu a:hover { background: rgba(255,255,255,0.07); color: var(--text-primary); }

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn-px-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--gradient);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(124,58,237,0.30);
}
.btn-px-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.45);
}

.btn-px-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--text-secondary) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn-px-ghost:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary) !important;
  border-color: rgba(255,255,255,0.25);
}

.btn-px-lg {
  font-size: 16px;
  padding: 14px 32px;
}

/* ── Cards (Glassmorphism) ──────────────────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Sections ───────────────────────────────────────────── */
.px-section { padding: 100px 0; }
.px-section-sm { padding: 64px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .label-tag { margin-bottom: 16px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p {
  color: var(--text-secondary);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Hero ───────────────────────────────────────────────── */
.px-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-blob,
.hero-blob-1,
.hero-blob-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #7c3aed, transparent 70%);
  top: -200px; left: -200px;
}
.hero-blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #2563eb, transparent 70%);
  bottom: -100px; right: -100px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.px-hero > .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.30);
  border-radius: var(--r-full);
  padding: 6px 14px 6px 8px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 500;
  color: #c4b5fd;
}
.hero-badge .badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 8px #7c3aed;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.6; transform:scale(1.4); }
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.hero-stat { }
.hero-stat .stat-num {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Model viewer showcase */
.model-showcase {
  position: relative;
}
.model-showcase::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--r-xl);
  background: var(--gradient);
  opacity: 0.15;
  filter: blur(20px);
  z-index: 0;
}
.model-showcase model-viewer {
  width: 100%;
  height: 500px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-surface) !important;
  position: relative;
  z-index: 1;
}

/* ── Logos Bar ──────────────────────────────────────────── */
.logos-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.logos-bar .label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}
.logos-bar .logo-item {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  transition: color var(--t-fast);
}
.logos-bar .logo-item:hover { color: var(--text-muted); }

/* ── How It Works ───────────────────────────────────────── */
.step-card {
  padding: 32px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-med), box-shadow var(--t-med);
}
.step-card:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 30px rgba(124,58,237,0.1);
}
.step-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7c3aed;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: var(--r-full);
  padding: 3px 10px;
  display: inline-block;
  margin-bottom: 16px;
}
.step-icon {
  width: 52px; height: 52px;
  background: var(--gradient);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(124,58,237,0.30);
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── Feature Cards ──────────────────────────────────────── */
.feature-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  height: 100%;
  transition: background var(--t-med), border-color var(--t-med), transform var(--t-med);
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(124,58,237,0.25);
  transform: translateY(-3px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #a78bfa;
  margin-bottom: 16px;
}
.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* ── Pricing ────────────────────────────────────────────── */
.pricing-card {
  padding: 36px 28px;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.popular {
  border-color: rgba(124,58,237,0.50);
  background: linear-gradient(160deg, rgba(124,58,237,0.08) 0%, rgba(37,99,235,0.05) 100%);
  box-shadow: 0 0 40px rgba(124,58,237,0.12);
}

.pricing-card .plan-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pricing-card.popular .plan-name { color: #a78bfa; }

.pricing-card .plan-price {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.pricing-card .plan-price sup {
  font-size: 22px;
  vertical-align: super;
  font-weight: 600;
}
.pricing-card .plan-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pricing-card .plan-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.popular-tag {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.plan-features li:last-child { border: none; }
.plan-features li .check {
  color: #7c3aed;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-features li.na { color: var(--text-dim); }
.plan-features li.na .check { color: var(--text-dim); }

.plan-cta {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--r-full);
  text-decoration: none;
  transition: all var(--t-fast);
  cursor: pointer;
  border: none;
  width: 100%;
}
.plan-cta-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-strong);
}
.plan-cta-outline:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.25);
}
.plan-cta-gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.30);
}
.plan-cta-gradient:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(124,58,237,0.45);
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-item-px {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item-px:hover { border-color: var(--border-strong); }

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
  transition: background var(--t-fast);
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question .faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-muted);
  transition: transform var(--t-med), background var(--t-med), border-color var(--t-med);
}
.faq-item-px.open .faq-question .faq-icon {
  transform: rotate(45deg);
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.4);
  color: #a78bfa;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 0 24px;
}
.faq-item-px.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  position: relative;
  border-radius: var(--r-xl);
  padding: 72px 48px;
  overflow: hidden;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.20), transparent 70%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }

/* ── Footer ─────────────────────────────────────────────── */
.px-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.px-footer .footer-brand { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 18px; }
.px-footer .footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 260px;
  margin-top: 8px;
  line-height: 1.6;
}
.px-footer h6 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.px-footer ul { list-style: none; padding: 0; margin: 0; }
.px-footer ul li { margin-bottom: 10px; }
.px-footer ul a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--t-fast);
}
.px-footer ul a:hover { color: var(--text-primary); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
.social-links { display: flex; gap: 8px; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.social-links a:hover {
  background: rgba(124,58,237,0.15);
  color: #a78bfa;
  border-color: rgba(124,58,237,0.30);
}

/* ── Lang Toggle ─────────────────────────────────────────── */
.lang-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all var(--t-fast);
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ── Mobile Nav ─────────────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(7,7,16,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 80px 32px 32px;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast);
}
.mobile-nav-overlay a:hover { color: var(--text-primary); }
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all var(--t-fast);
}

/* ── Utilities ──────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

.scroll-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .px-hero { padding-top: 88px; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .model-showcase model-viewer { height: 320px; }
  .cta-banner { padding: 48px 24px; }
}

@media (max-width: 767px) {
  .px-section { padding: 72px 0; }
  .section-header { margin-bottom: 48px; }
  .hero-stats { gap: 20px; }
  .logo-strip .strip-logos { gap: 16px; }
}

/* ── MOBILE OPTIMIZATIONS (≤767px) ──────────────────────── */
@media (max-width: 767px) {

  /* --- Hero --- */
  .px-hero {
    padding-top: 80px;
    min-height: auto;
    padding-bottom: 40px;
  }
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.8rem);
    text-align: center;
  }
  .hero-badge {
    display: flex;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }
  .hero-subtitle {
    font-size: 15px;
    text-align: center;
    max-width: 100%;
    margin-bottom: 28px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-actions .btn-px-primary,
  .hero-actions .btn-px-ghost {
    width: 100%;
    justify-content: center;
    font-size: 15px;
    padding: 15px 24px;
    min-height: 52px;
  }
  .hero-stats {
    justify-content: center;
    gap: 0;
    padding-top: 20px;
  }
  .hero-stats .stat-item {
    flex: 1;
    padding: 0 8px;
  }
  .hero-stats .stat-divider {
    display: block;
  }
  .stat-number { font-size: 18px; }
  .stat-label { font-size: 10px; }

  /* Hero viewer — stack below text on mobile */
  .hero-viewer-wrapper {
    margin-top: 32px;
  }
  .viewer-frame model-viewer {
    height: 300px !important;
  }

  /* --- Section spacing --- */
  .section-gap { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }
  .section-subtitle { font-size: 15px; }

  /* --- Step cards --- */
  .step-card {
    padding: 24px 20px;
  }

  /* --- Feature cards --- */
  .feature-card {
    padding: 20px;
  }

  /* --- Demo section --- */
  .demo-card-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
  }
  .btn-ar-demo {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 10px 16px;
    min-height: 44px;
  }

  /* --- Pricing cards --- */
  .pricing-card {
    padding: 28px 20px;
  }
  .pricing-card .plan-price {
    font-size: 40px;
  }
  .plan-cta {
    min-height: 48px;
    font-size: 15px;
  }

  /* --- FAQ --- */
  .faq-question {
    font-size: 14px;
    padding: 18px 16px;
    min-height: 60px;
  }
  .faq-answer {
    padding: 0 16px;
  }
  .faq-item-px.open .faq-answer {
    padding: 0 16px 16px;
  }

  /* --- CTA Banner --- */
  .cta-banner {
    padding: 40px 20px;
    border-radius: var(--r-lg);
  }
  .cta-banner h2 { font-size: 1.6rem; }
  .cta-banner .btn-px-primary {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
    font-size: 15px;
  }

  /* --- Footer --- */
  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  .footer-brand { max-width: 100%; }
  .footer-links {
    gap: 28px;
  }
  .footer-col {
    min-width: calc(50% - 14px);
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-top: 32px;
  }

  /* --- Logo strip --- */
  .marquee-inner { gap: 32px; }

  /* --- General buttons touch target --- */
  .btn-px-primary,
  .btn-px-ghost {
    min-height: 44px;
  }
  .btn-sm.btn-px-primary,
  .btn-sm.btn-px-ghost {
    min-height: 40px;
  }
}

/* ── MOBILE OPTIMIZATIONS (≤575px — extra small) ────────── */
@media (max-width: 575px) {
  .hero-stats {
    flex-wrap: nowrap;
  }
  .hero-stats .stat-item {
    padding: 0 6px;
  }
  .stat-number { font-size: 16px; }

  .section-gap { padding: 48px 0; }

  /* Pricing: make cards feel less cramped */
  .pricing-card { padding: 24px 16px; }

  /* Footer links 2-col */
  .footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-col { min-width: unset; }
}

/* ── TABLET (768px – 991px) ──────────────────────────────── */
@media (min-width: 768px) and (max-width: 991px) {
  .px-hero { padding-top: 84px; }
  .hero-title { font-size: clamp(2.2rem, 5vw, 3rem); }
  .hero-actions .btn-px-primary,
  .hero-actions .btn-px-ghost {
    min-height: 48px;
  }
  .section-gap { padding: 72px 0; }
  .demo-card-footer { gap: 8px; }
  .viewer-frame model-viewer { height: 380px !important; }
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ── Navbar (index.html variant) ────────────────────────── */
.px-navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.beta-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-icon {
  width: 34px; height: 34px;
  background: var(--gradient);
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(124,58,237,0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.06); }

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

.navbar-toggler-px {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all var(--t-fast);
}
.navbar-toggler-px:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }

[data-theme="dark"] .px-navbar.scrolled { background: rgba(7,7,16,0.97); }
[data-theme="light"] .px-navbar.scrolled { background: rgba(255,255,255,0.97); }

/* Mobile nav links panel */
.nav-links.open {
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(7,7,16,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: stretch;
  padding: 12px 20px 24px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
  gap: 2px;
  /* Smooth open animation */
  animation: slideDown 0.22s ease forwards;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-links.open a {
  padding: 14px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  min-height: 52px;
  display: flex;
  align-items: center;
}
.nav-links.open a:last-child { border-bottom: none; }

/* Mobile CTA buttons inside nav panel */
.nav-links.open .mobile-nav-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nav-links.open .mobile-nav-cta .btn-px-primary,
.nav-links.open .mobile-nav-cta .btn-px-ghost {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 14px 24px;
  min-height: 52px;
}

@media (min-width: 992px) { .navbar-toggler-px { display: none !important; } }
@media (max-width: 991px) {
  .nav-links:not(.open) { display: none; }
  /* Hamburger at far right */
  .navbar-toggler-px { order: 10; }
  /* Hide Sign In / Get Started in nav-actions on mobile (they appear inside the panel) */
  .nav-actions [data-auth="guest"] { display: none !important; }
  .nav-actions .lang-toggle { display: flex; }
}

/* Light theme: mobile nav panel */
[data-theme="light"] .nav-links.open,
:root:not([data-theme="dark"]) .nav-links.open {
  background: rgba(255,255,255,0.99);
  border-color: rgba(124,58,237,0.10);
}

/* ── Button size modifiers ───────────────────────────────── */
.btn-px-primary.btn-sm, .btn-px-ghost.btn-sm { font-size: 13px; padding: 8px 18px; }
.btn-px-primary.btn-lg, .btn-px-ghost.btn-lg { font-size: 16px; padding: 14px 32px; }
.btn-px-primary.w-100, .btn-px-ghost.w-100,
.btn-px-primary[style*="width:100%"], .btn-px-ghost[style*="width:100%"] {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ── Section helpers ─────────────────────────────────────── */
.section-gap { padding: 96px 0; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.30);
  color: #a78bfa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 0; }

/* ── Hero extras ─────────────────────────────────────────── */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 44px;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  align-self: center;
}

/* Hero viewer */
.hero-viewer-wrapper { position: relative; }
.viewer-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.18), transparent 65%);
  pointer-events: none;
}
.viewer-frame {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg-surface);
}
.viewer-badge {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  background: rgba(7,7,16,0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.viewer-badge i { color: #a78bfa; }

/* ── Logo strip / Marquee ─────────────────────────────────── */
.logo-strip {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
  overflow: hidden;
}
.strip-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}
/* Marquee container */
.marquee-track {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  animation: marquee-scroll 28s linear infinite;
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.marquee-item i { font-size: 16px; }
.marquee-item:hover { color: var(--text-muted); }

/* Legacy strip-logos kept for fallback */
.strip-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}
.strip-logos .logo-item {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: -0.01em;
  transition: color var(--t-fast);
}
.strip-logos .logo-item:hover { color: var(--text-muted); }

/* ── Demo section ─────────────────────────────────────────── */
.demo-card { padding: 0; overflow: hidden; }
.demo-label {
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}

/* Demo card footer with AR button */
.demo-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}
.demo-model-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}
.btn-ar-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: opacity var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(124,58,237,0.30);
  -webkit-tap-highlight-color: transparent;
}
.btn-ar-demo:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.45);
}
.btn-ar-demo:active { opacity: 0.75; transform: scale(0.97); }
.btn-ar-demo i { font-size: 13px; }

.see-all-link {
  color: #a78bfa;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color var(--t-fast);
}
.see-all-link:hover { color: #c4b5fd; }

/* ── Pricing extras ───────────────────────────────────────── */
.popular-badge {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: var(--r-full);
  margin-bottom: 14px;
}
.plan-features li.muted { color: var(--text-dim); }
.plan-features li.muted i { color: var(--text-dim); }

/* ── CTA Banner extras ───────────────────────────────────── */
.cta-blob-1, .cta-blob-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.cta-blob-1 {
  width: 300px; height: 300px;
  background: rgba(124,58,237,0.15);
  top: -60px; left: -60px;
}
.cta-blob-2 {
  width: 250px; height: 250px;
  background: rgba(37,99,235,0.12);
  bottom: -40px; right: -40px;
}
.cta-content { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 12px; }
.cta-banner p { color: var(--text-secondary); font-size: 16px; margin-bottom: 28px; }

/* ── Footer (index.html layout) ──────────────────────────── */
.footer-top {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.footer-socials a:hover { background: rgba(124,58,237,0.15); color: #a78bfa; border-color: rgba(124,58,237,0.30); }
.footer-links {
  display: flex;
  gap: 48px;
  flex: 1;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-made { display: flex; align-items: center; gap: 5px; }

/* Feature card h3 fix (index uses h3 not h4) */
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

@media (max-width: 767px) {
  .section-gap { padding: 64px 0; }
  .footer-top { gap: 40px; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn-px-primary,
  .hero-actions .btn-px-ghost {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 15px;
  }
  .hero-content { text-align: center; }
  .hero-subtitle { font-size: 15px; max-width: 100%; }
  .hero-stats { justify-content: center; gap: 16px; }
  .strip-logos { gap: 20px; }
  .cta-banner { padding: 40px 20px; }
}

@media (max-width: 575px) {
  .hero-title { font-size: clamp(2.0rem, 8vw, 2.6rem); letter-spacing: -0.02em; }
  .hero-badge { font-size: 11px; padding: 5px 12px; }
}

/* ═══════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   (when :root / [data-theme="light"])
═══════════════════════════════════════════════════════════ */

/* Hero blobs — softer in light mode */
[data-theme="light"] .hero-blob-1,
:root:not([data-theme="dark"]) .hero-blob-1 {
  opacity: 0.12;
}
[data-theme="light"] .hero-blob-2,
:root:not([data-theme="dark"]) .hero-blob-2 {
  opacity: 0.10;
}
[data-theme="light"] .hero-grid,
:root:not([data-theme="dark"]) .hero-grid {
  background-image:
    linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
}

/* Cards — white with shadow in light */
[data-theme="light"] .glass-card,
:root:not([data-theme="dark"]) .glass-card {
  background: #ffffff;
  border-color: rgba(124,58,237,0.10);
  box-shadow: var(--shadow-sm);
  backdrop-filter: none;
}
[data-theme="light"] .glass-card:hover,
:root:not([data-theme="dark"]) .glass-card:hover {
  border-color: rgba(124,58,237,0.22);
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

/* Step / Feature cards */
[data-theme="light"] .step-card,
:root:not([data-theme="dark"]) .step-card,
[data-theme="light"] .feature-card,
:root:not([data-theme="dark"]) .feature-card {
  background: #ffffff;
  border-color: rgba(124,58,237,0.10);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .step-card:hover,
:root:not([data-theme="dark"]) .step-card:hover,
[data-theme="light"] .feature-card:hover,
:root:not([data-theme="dark"]) .feature-card:hover {
  border-color: rgba(124,58,237,0.25);
  box-shadow: var(--shadow-md);
  background: #faf8ff;
}

/* Pricing cards */
[data-theme="light"] .pricing-card,
:root:not([data-theme="dark"]) .pricing-card {
  background: #ffffff;
  border-color: rgba(124,58,237,0.12);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .pricing-card.popular,
:root:not([data-theme="dark"]) .pricing-card.popular {
  background: linear-gradient(160deg, #faf7ff 0%, #f3f0ff 100%);
  border-color: rgba(124,58,237,0.35);
  box-shadow: 0 8px 32px rgba(124,58,237,0.14);
}

/* Section backgrounds — alternating for visual rhythm */
[data-theme="light"] #how-it-works,
:root:not([data-theme="dark"]) #how-it-works {
  background: #f7f5ff;
}
[data-theme="light"] .logo-strip,
:root:not([data-theme="dark"]) .logo-strip {
  background: #f7f5ff;
  border-color: rgba(124,58,237,0.10);
}
[data-theme="light"] .demo-section,
:root:not([data-theme="dark"]) .demo-section {
  background: #f7f5ff;
}

/* Viewer frame in light */
[data-theme="light"] .viewer-frame,
:root:not([data-theme="dark"]) .viewer-frame {
  background: #f0ecff;
  border-color: rgba(124,58,237,0.15);
}
[data-theme="light"] .viewer-badge,
:root:not([data-theme="dark"]) .viewer-badge {
  background: rgba(255,255,255,0.92);
  border-color: rgba(124,58,237,0.15);
  color: var(--text-secondary);
}

/* FAQ */
[data-theme="light"] .faq-item-px,
:root:not([data-theme="dark"]) .faq-item-px {
  background: #ffffff;
  border-color: rgba(124,58,237,0.10);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .faq-question,
:root:not([data-theme="dark"]) .faq-question {
  color: var(--text-primary);
}
[data-theme="light"] .faq-question:hover,
:root:not([data-theme="dark"]) .faq-question:hover {
  background: #faf8ff;
}

/* CTA banner */
[data-theme="light"] .cta-banner,
:root:not([data-theme="dark"]) .cta-banner {
  background: linear-gradient(135deg, #f3f0ff 0%, #e9f0ff 100%);
  border-color: rgba(124,58,237,0.18);
}

/* Footer */
[data-theme="light"] .px-footer,
:root:not([data-theme="dark"]) .px-footer {
  background: #f7f5ff;
  border-color: rgba(124,58,237,0.10);
}

/* Logo / strip items */
[data-theme="light"] .strip-logos .logo-item,
:root:not([data-theme="dark"]) .strip-logos .logo-item {
  color: var(--text-muted);
}

/* Section tag pill in light */
[data-theme="light"] .section-tag,
:root:not([data-theme="dark"]) .section-tag {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.20);
  color: #7c3aed;
}

/* Hero badge */
[data-theme="light"] .hero-badge,
:root:not([data-theme="dark"]) .hero-badge {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.20);
  color: #6d28d9;
}

/* Ghost button in light */
[data-theme="light"] .btn-px-ghost,
:root:not([data-theme="dark"]) .btn-px-ghost {
  color: var(--text-secondary) !important;
  border-color: rgba(124,58,237,0.20);
}
[data-theme="light"] .btn-px-ghost:hover,
:root:not([data-theme="dark"]) .btn-px-ghost:hover {
  background: rgba(124,58,237,0.06);
  color: var(--accent) !important;
  border-color: rgba(124,58,237,0.35);
}

/* Nav links in light */
[data-theme="light"] .nav-links a,
:root:not([data-theme="dark"]) .nav-links a {
  color: var(--text-secondary);
}
[data-theme="light"] .nav-links a:hover,
:root:not([data-theme="dark"]) .nav-links a:hover {
  color: var(--accent);
  background: rgba(124,58,237,0.06);
}

/* Lang toggle */
[data-theme="light"] .lang-toggle,
:root:not([data-theme="dark"]) .lang-toggle {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.18);
  color: var(--text-secondary);
}

/* ── Modal backdrop (SSO + Auth Gate) ───────────────────── */
.sso-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.sso-backdrop.open { display: flex; }
.sso-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.sso-modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.sso-modal p  { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.sso-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none;
  color: var(--text-muted); font-size: 20px;
  cursor: pointer; line-height: 1; padding: 4px;
  border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.sso-close:hover { color: var(--text-primary); background: var(--bg-card); }

/* Theme toggle button */
.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(124,58,237,0.10);
  color: var(--accent);
  border-color: rgba(124,58,237,0.30);
}

/* Auth pages */
[data-theme="light"] .auth-card,
:root:not([data-theme="dark"]) .auth-card {
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

/* Dashboard sidebar */
[data-theme="light"] .dash-sidebar,
:root:not([data-theme="dark"]) .dash-sidebar {
  background: #f7f5ff;
  border-color: rgba(124,58,237,0.10);
}
[data-theme="light"] .stat-card,
:root:not([data-theme="dark"]) .stat-card,
[data-theme="light"] .params-panel,
:root:not([data-theme="dark"]) .params-panel,
[data-theme="light"] .credit-pill,
:root:not([data-theme="dark"]) .credit-pill {
  background: #ffffff;
  border-color: rgba(124,58,237,0.10);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .job-card,
:root:not([data-theme="dark"]) .job-card {
  background: #ffffff;
  border-color: rgba(124,58,237,0.10);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .job-preview,
:root:not([data-theme="dark"]) .job-preview {
  background: #f7f5ff;
}
[data-theme="light"] .upload-zone,
:root:not([data-theme="dark"]) .upload-zone {
  background: #faf8ff;
  border-color: rgba(124,58,237,0.20);
}
[data-theme="light"] .upload-zone:hover,
:root:not([data-theme="dark"]) .upload-zone:hover,
[data-theme="light"] .upload-zone.drag-over,
:root:not([data-theme="dark"]) .upload-zone.drag-over {
  background: rgba(124,58,237,0.04);
  border-color: rgba(124,58,237,0.50);
}

/* Account page */
[data-theme="light"] .account-section,
:root:not([data-theme="dark"]) .account-section {
  background: #ffffff;
  border-color: rgba(124,58,237,0.10);
  box-shadow: var(--shadow-sm);
}

/* Param inputs in light */
[data-theme="light"] .param-input,
:root:not([data-theme="dark"]) .param-input {
  background: #f7f5ff;
  border-color: rgba(124,58,237,0.15);
  color: var(--text-primary);
}

/* Mobile nav */
[data-theme="light"] .nav-links.open,
:root:not([data-theme="dark"]) .nav-links.open {
  background: rgba(255,255,255,0.98);
  border-color: rgba(124,58,237,0.10);
}

/* Scrollbar in light */
[data-theme="light"] ::-webkit-scrollbar-track,
:root:not([data-theme="dark"]) ::-webkit-scrollbar-track {
  background: #f7f5ff;
}
[data-theme="light"] ::-webkit-scrollbar-thumb,
:root:not([data-theme="dark"]) ::-webkit-scrollbar-thumb {
  background: rgba(124,58,237,0.20);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover,
:root:not([data-theme="dark"]) ::-webkit-scrollbar-thumb:hover {
  background: rgba(124,58,237,0.35);
}

/* ============================================================
   AR (Augmented Reality) — model-viewer AR button & banner
   ============================================================ */

/* AR button — standalone, always rendered (browser check done in JS) */
.ar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #059669, #0ea5e9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(5,150,105,0.30);
  transition: opacity var(--t-fast), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.ar-btn:active { opacity: 0.82; transform: scale(0.95); }
.ar-btn i { font-size: 14px; }
.ar-btn i { font-size: 15px; }

/* Floating AR badge shown on mobile over model cards */
.ar-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(124,58,237,0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: var(--r-full);
  pointer-events: none;
  display: none;
}
/* Show badge hint on touch devices */
@media (hover: none) and (pointer: coarse) {
  .ar-badge { display: block; }
}

/* AR info strip (shown above model on AR-capable pages) */
.ar-strip {
  display: none;
  align-items: center;
  gap: 10px;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.20);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.ar-strip i { color: #a78bfa; font-size: 18px; flex-shrink: 0; }
/* Only show on mobile */
@media (max-width: 767px) {
  .ar-strip { display: flex; }
}

/* Full-width AR CTA button used in placement sidebar (mobile) */
.btn-ar-cta {
  display: none; /* hidden on desktop */
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #059669, #0ea5e9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 13px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: opacity var(--t-fast);
  margin-top: 12px;
  -webkit-tap-highlight-color: transparent;
}
.btn-ar-cta:hover { opacity: 0.90; }
.btn-ar-cta:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 991px) {
  .btn-ar-cta { display: flex; }
}

/* Light-theme adjustments for AR strip */
[data-theme="light"] .ar-strip,
:root:not([data-theme="dark"]) .ar-strip {
  background: rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.15);
}

/* ── Footer "Coming Soon" badge ──────────────────────── */
.badge-soon {
  font-size: 9px;
  font-weight: 700;
  background: rgba(124,58,237,0.15);
  color: #7c3aed;
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0.03em;
}
.footer-link-soon { pointer-events: none; opacity: 0.7; }

/* ── Hero model-viewer shimmer loading ───────────────── */
model-viewer::part(default-progress-bar) { display: none; }
.viewer-frame model-viewer:not([loaded]) {
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-elevated) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: px-shimmer 1.5s infinite;
}
@keyframes px-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ════════════════════════════════════════════════════════ */
/* PICTORYX REDESIGN - Visual Simplification               */
/* ════════════════════════════════════════════════════════ */

/* Hide decorative blobs */
.hero-blob-1,
.hero-blob-2,
.hero-grid,
.cta-blob-1,
.cta-blob-2 {
  display: none !important;
}

/* Increase whitespace */
.px-hero {
  padding: 100px 0 !important;
}

.feature-section,
.pricing-section,
.how-it-works-section {
  padding: 100px 0 !important;
}

/* Simplify feature cards */
.feature-card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Clean CTA styling */
.btn-px-primary {
  padding: 14px 48px;
  font-size: 1rem;
  border-radius: 6px;
  font-weight: 600;
}

/* Remove secondary buttons */
.btn-px-secondary,
.secondary-cta {
  display: none !important;
}
