/* ============================================================
   SHOWCASE3D — STYLE.CSS
   Obsidian Aurora — Futuristic SaaS Design System
   ============================================================ */

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

:root {
  /* Obsidian Aurora Surfaces */
  --bg-base:       #08090D;
  --bg-surface:    #0D0F14;
  --bg-card:       #11131A;
  --bg-elevated:   #171A22;
  --bg-card-hover: #171A22;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(139, 92, 246, 0.5);
  --border-bright: rgba(139, 92, 246, 0.5);

  /* Primary Palette */
  --purple:        #8B5CF6;
  --purple-dim:    rgba(139, 92, 246, 0.15);
  --purple-dark:   #6d28d9;

  /* Secondary & Accent */
  --blue:          #06B6D4;
  --blue-dim:      rgba(6, 182, 212, 0.12);
  --accent:        #A78BFA;

  /* Status Pops */
  --pink:          #f43f5e;
  --green:         #34d399;
  --orange:        #fb923c;
  --gold:          #fbbf24;

  /* High-Contrast Typography */
  --text:          #F8FAFC;
  --text-sub:      #CBD5E1;
  --text-muted:    #94A3B8;

  /* Spacing Scale */
  --space-4:       4px;
  --space-8:       8px;
  --space-12:      12px;
  --space-16:      16px;
  --space-24:      24px;
  --space-32:      32px;
  --space-48:      48px;
  --space-64:      64px;
  --space-96:      96px;

  /* Border Radius */
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --radius-2xl:    24px;

  /* Shadows & Glow */
  --shadow-card:   0 4px 20px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --shadow-glow:   0 0 25px rgba(139, 92, 246, 0.2);
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Geist', 'Outfit', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 70% 50% at 15% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 85%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
ul { list-style: none; }
canvas { display: block; }

.gradient-text {
  background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 60%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(139,92,246,0.4); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,15,20,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 32px; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.3px; }
.brand-accent { color: var(--purple); }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-link {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: var(--text-sub);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-elevated); }

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

.btn-ghost {
  padding: 8px 18px; border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-sub); font-size: 0.875rem; font-weight: 500;
  transition: var(--transition);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.04); border-color: var(--border-bright); }

.btn-secondary {
  padding: 8px 18px; border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text); font-size: 0.875rem; font-weight: 500;
  transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--border-hover); background: rgba(139,92,246,0.1); }

.btn-primary {
  padding: 8px 20px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);
  color: var(--text); font-size: 0.875rem; font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.25);
  transition: var(--transition);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.45);
}

/* ============================================================
   SECTION SHARED
   ============================================================ */
section { padding: 100px 32px; max-width: 1280px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; padding: 5px 14px;
  background: linear-gradient(135deg,rgba(139,92,246,0.1),rgba(74,222,128,0.06));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  color: var(--purple); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.section-sub { font-size: 1rem; color: var(--text-sub); max-width: 520px; margin: 0 auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px 32px 60px;
  max-width: 100%; overflow: hidden;
}

/* BG layers */
.hero-bg { position: absolute; inset: 0; z-index: 0; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite alternate;
}
.glow-1 { width: 600px; height: 400px; background: rgba(124,58,237,0.18); top: -10%; left: -10%; animation-delay: 0s; }
.glow-2 { width: 500px; height: 350px; background: rgba(34,197,94,0.10); bottom: -10%; right: -5%; animation-delay: 2s; }
.glow-3 { width: 400px; height: 300px; background: rgba(74,222,128,0.06); top: 30%; left: 40%; animation-delay: 4s; }

@keyframes glowPulse {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.15); }
}

/* Content */
.hero-content {
  position: relative; z-index: 1;
  flex: 1; max-width: 560px;
  padding-top: 40px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(139,92,246,0.07);
  border: 1px solid rgba(139,92,246,0.22);
  font-size: 0.75rem; color: var(--purple); font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(139,92,246,0.5); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.05rem; color: var(--text-sub);
  line-height: 1.7; margin-bottom: 36px;
  max-width: 480px;
}
.hero-subtitle strong { color: var(--text); }

.hero-cta { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }

.btn-hero {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  color: #ecfdf5; font-size: 1rem; font-weight: 700;
  border: 1px solid rgba(139,92,246,0.45);
  box-shadow: 0 0 30px rgba(124,58,237,0.4), 0 4px 16px rgba(0,0,0,0.4);
  transition: var(--transition);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 0 50px rgba(139,92,246,0.55), 0 8px 24px rgba(0,0,0,0.5); }

.btn-outline {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  color: var(--text); font-size: 1rem; font-weight: 600;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--border-bright); }

.hero-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.stat-item { display: flex; flex-direction: column; }
.stat-item > *:first-child { display: flex; align-items: baseline; gap: 2px; }
.stat-num { font-size: 1.9rem; font-weight: 900; color: var(--purple); line-height: 1; font-variant-numeric: tabular-nums; }
.stat-k { font-size: 1rem; font-weight: 700; color: var(--blue); }
.stat-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* â”€â”€ 3D STAGE (Motion Frame) â”€â”€ */
.hero-3d-stage {
  position: relative; z-index: 1;
  flex-shrink: 0;
  display: flex; justify-content: center; align-items: center;
  padding-top: 40px;
}

.stage-frame {
  position: relative;
  width: 520px; height: 480px;
  background: rgba(8,6,20,0.75);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 60px rgba(124,58,237,0.2), 0 20px 60px rgba(0,0,0,0.7);
}

/* Corner brackets */
.frame-corner {
  position: absolute; width: 24px; height: 24px; z-index: 10; pointer-events: none;
}
.frame-corner.tl { top: 12px; left: 12px; border-top: 2px solid #a78bfa; border-left: 2px solid #a78bfa; border-radius: 4px 0 0 0; }
.frame-corner.tr { top: 12px; right: 12px; border-top: 2px solid #22d3ee; border-right: 2px solid #22d3ee; border-radius: 0 4px 0 0; }
.frame-corner.bl { bottom: 12px; left: 12px; border-bottom: 2px solid #22d3ee; border-left: 2px solid #22d3ee; border-radius: 0 0 0 4px; }
.frame-corner.br { bottom: 12px; right: 12px; border-bottom: 2px solid #a78bfa; border-right: 2px solid #a78bfa; border-radius: 0 0 4px 0; }

/* Scan line */
.frame-scan {
  position: absolute; left: 0; right: 0; height: 2px; z-index: 9; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.9), rgba(34,211,238,0.7), transparent);
  box-shadow: 0 0 14px rgba(124,58,237,0.5), 0 0 30px rgba(139,92,246,0.2);
  animation: scanLine 3s ease-in-out infinite;
}
@keyframes scanLine {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

#product3DCanvas { width: 100%; height: 100%; position: relative; z-index: 1; }

/* HUD overlay */
.stage-hud {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 14px; z-index: 10; pointer-events: none;
}
.hud-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.68rem; font-weight: 600; color: var(--text-sub);
  font-family: 'JetBrains Mono', monospace;
  background: rgba(7,8,15,0.7); padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--border);
}
.hud-dot { width: 5px; height: 5px; border-radius: 50%; }
.hud-dot.active { background: var(--green); box-shadow: 0 0 6px var(--green); animation: hudBlink 1.5s ease infinite; }
@keyframes hudBlink { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hud-fps { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }

/* Stage controls */
.stage-controls {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.ctrl-btn {
  width: 36px; height: 36px;
  background: rgba(7,8,15,0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-sub); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.ctrl-btn:hover, .ctrl-btn.active {
  background: rgba(124,58,237,0.3);
  border-color: rgba(139,92,246,0.55);
  color: #a78bfa;
  box-shadow: 0 0 14px rgba(139,92,246,0.35);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding-top: 60px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(34,197,94,0.04), transparent);
  opacity: 0; transition: var(--transition);
}
.feature-card:hover { border-color: rgba(167,139,250,0.25); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.feature-card:hover::before { opacity: 1; }

.feature-large {
  grid-column: 1; grid-row: 1 / 3;
  display: flex; flex-direction: column;
}
.feature-visual {
  width: 100%; height: 180px;
  background: rgba(7,8,15,0.6);
  border-radius: var(--radius);
  overflow: hidden; margin-bottom: 24px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.mini-canvas { width: 100%; height: 100%; }

.feature-tag {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple); margin-bottom: 8px;
  padding: 3px 8px; background: var(--purple-dim);
  border-radius: 4px; display: inline-block;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.875rem; color: var(--text-sub); line-height: 1.6; margin-bottom: 14px; }

.feature-spec { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-pill {
  font-size: 0.68rem; font-weight: 600; color: var(--text-muted);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 100px;
}

.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon-purple { background: rgba(167,139,250,0.1); border: 1px solid rgba(167,139,250,0.2); }
.feature-icon-pink   { background: rgba(244,114,182,0.1); border: 1px solid rgba(244,114,182,0.2); }
.feature-icon-green  { background: rgba(52,211,153,0.1);  border: 1px solid rgba(52,211,153,0.2); }
.feature-icon-orange { background: rgba(251,146,60,0.1);  border: 1px solid rgba(251,146,60,0.2); }
.feature-icon-blue   { background: rgba(96,165,250,0.1);  border: 1px solid rgba(96,165,250,0.2); }

/* ============================================================
   BUILDER
   ============================================================ */
.builder { padding-top: 60px; }
.builder-app {
  display: flex; gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 680px;
  box-shadow: var(--shadow-card);
}

/* Sidebar */
.builder-sidebar {
  width: 280px; flex-shrink: 0;
  background: rgba(7,8,15,0.8);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto;
}

.sidebar-tabs {
  display: flex; gap: 2px; padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  position: sticky; top: 0; z-index: 5;
}
.stab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted); font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: var(--transition);
}
.stab svg { flex-shrink: 0; }
.stab:hover { color: var(--text); background: var(--bg-card); }
.stab.active {
  background: rgba(124,58,237,0.2);
  color: var(--purple);
  border: 1px solid rgba(167,139,250,0.25);
}

.tab-content { display: none; flex-direction: column; gap: 0; padding: 12px; flex: 1; }
.tab-content.active { display: flex; }

.panel-group { margin-bottom: 16px; }
.panel-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 10px; }

/* Upload zone */
.upload-zone {
  border: 1.5px dashed rgba(139,92,246,0.3);
  border-radius: var(--radius);
  padding: 24px 16px; text-align: center;
  cursor: pointer; transition: var(--transition);
  margin-bottom: 12px;
}
.upload-zone:hover { border-color: #a78bfa; background: rgba(139,92,246,0.07); }
.upload-icon { margin-bottom: 8px; display: flex; justify-content: center; }
.upload-text { font-size: 0.8rem; font-weight: 600; color: var(--text-sub); }
.upload-sub  { font-size: 0.68rem; color: var(--text-muted); margin-top: 3px; }

/* Presets */
.preset-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 6px; }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.preset-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-sub); font-size: 0.6rem; font-weight: 600;
  transition: var(--transition);
}
.preset-btn:hover { color: var(--purple); border-color: rgba(167,139,250,0.3); }
.preset-btn.active { color: var(--purple); border-color: rgba(167,139,250,0.5); background: rgba(124,58,237,0.15); }

/* Controls */
.control-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.control-row:last-child { border-bottom: none; }
.ctrl-label { font-size: 0.72rem; color: var(--text-muted); flex: 1; min-width: 68px; }
.range-input {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 3px; border-radius: 2px;
  background: linear-gradient(to right, var(--purple) 0%, var(--purple) var(--val,50%), rgba(255,255,255,0.08) var(--val,50%), rgba(255,255,255,0.08) 100%);
  outline: none; cursor: pointer;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--purple); border: 2px solid var(--bg-base);
  box-shadow: 0 0 6px rgba(167,139,250,0.5); cursor: pointer;
}
.range-val { font-size: 0.65rem; color: var(--purple); font-weight: 600; min-width: 30px; text-align: right; font-family: 'JetBrains Mono', monospace; }
.color-input { width: 30px; height: 28px; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; background: none; padding: 1px; }

/* Toggle */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.toggle-switch { position: relative; display: inline-block; width: 34px; height: 18px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(255,255,255,0.08); border-radius: 9px;
  transition: var(--transition);
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--text-muted); left: 2.5px; bottom: 2.5px;
  transition: var(--transition);
}
input:checked + .toggle-slider { background: rgba(124,58,237,0.5); }
input:checked + .toggle-slider::before { transform: translateX(16px); background: var(--purple); }

/* Animate grid */
.anim-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.anim-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 6px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  transition: var(--transition); cursor: pointer;
}
.anim-btn:hover { color: var(--purple); border-color: rgba(167,139,250,0.3); }
.anim-btn.active { background: rgba(124,58,237,0.2); border-color: rgba(167,139,250,0.5); color: var(--purple); box-shadow: 0 0 10px rgba(124,58,237,0.2); }

/* Environment */
.env-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.env-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 4px;
  color: var(--text-muted); font-size: 0.62rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.env-btn:hover { border-color: rgba(167,139,250,0.3); }
.env-btn.active { border-color: rgba(167,139,250,0.5); box-shadow: 0 0 10px rgba(124,58,237,0.2); }
.env-preview { width: 100%; height: 28px; border-radius: 5px; }

/* Publish */
.publish-status {
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  margin-bottom: 10px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.status-dot.live { background: var(--green); box-shadow: 0 0 8px var(--green); animation: hudBlink 2s ease infinite; }
#publishLabel { font-size: 0.75rem; color: var(--text-muted); }

.btn-publish {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: #ecfdf5; font-size: 0.8rem; font-weight: 700;
  border: 1px solid rgba(139,92,246,0.35);
  transition: var(--transition);
}
.btn-publish:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(139,92,246,0.4); }

.code-block {
  background: rgba(0,0,0,0.4); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; position: relative; margin-bottom: 10px;
}
.code-block code { font-size: 0.62rem; color: var(--blue); font-family: 'JetBrains Mono', monospace; line-height: 1.6; word-break: break-all; display: block; padding-right: 40px; }
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.3);
  color: var(--purple); font-size: 0.65rem; font-weight: 700;
  padding: 3px 8px; border-radius: 5px; cursor: pointer; transition: var(--transition);
}
.copy-btn:hover { background: rgba(167,139,250,0.3); }

.platform-btns { display: flex; gap: 6px; }
.platform-btn {
  flex: 1; padding: 7px 4px; border-radius: var(--radius-sm);
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.platform-btn:hover { color: var(--text); border-color: var(--border-bright); }
.platform-btn.shopify:hover { color: #96bf48; border-color: rgba(150,191,72,0.4); }
.platform-btn.woo:hover { color: #9b59b6; border-color: rgba(155,89,182,0.4); }
.platform-btn.html:hover { color: var(--orange); border-color: rgba(251,146,60,0.4); }

/* Viewport */
.builder-viewport { flex: 1; display: flex; flex-direction: column; }

.viewport-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}
.viewport-title { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; color: var(--text-sub); }
.vp-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); animation: hudBlink 2s ease infinite; }

.viewport-controls { display: flex; gap: 6px; }
.vp-btn {
  width: 30px; height: 30px; border-radius: 7px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.vp-btn:hover { color: #a78bfa; border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.08); }

.viewport-canvas-wrap { flex: 1; position: relative; overflow: hidden; background: radial-gradient(ellipse at center, #070714 0%, #04040b 100%); }
#builderCanvas { width: 100%; height: 100%; display: block; cursor: grab; }
#builderCanvas:active { cursor: grabbing; }

.viewport-overlay {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  pointer-events: none; transition: opacity 0.5s ease;
}
.overlay-hint {
  font-size: 0.72rem; color: var(--text-muted); font-weight: 500;
  background: rgba(7,8,15,0.8); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  backdrop-filter: blur(10px);
}

.viewport-stats {
  position: absolute; top: 12px; right: 12px;
  display: flex; gap: 8px; pointer-events: none;
}
.viewport-stats span {
  font-size: 0.65rem; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  color: var(--accent); background: rgba(8, 9, 13, 0.9);
  border: 1px solid var(--border); padding: 3px 8px; border-radius: 5px;
}

/* ============================================================
   MOTION FRAMES
   ============================================================ */
.motion-frames { padding-top: 60px; }

.frames-timeline { position: relative; }
.timeline-track {
  position: absolute; top: 50px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple) 20%, var(--blue) 80%, transparent);
}

.frames-row {
  display: flex; gap: 16px; overflow-x: auto; padding: 16px 4px 24px;
  scrollbar-width: thin; scrollbar-color: var(--purple-dim) transparent;
}
.frames-row::-webkit-scrollbar { height: 4px; }
.frames-row::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.3); border-radius: 2px; }

.motion-frame {
  flex-shrink: 0; width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.motion-frame:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.motion-frame.active { border-color: var(--purple); box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.12); }

.frame-number {
  position: absolute; top: 8px; left: 10px; z-index: 5;
  font-size: 0.6rem; font-weight: 800; color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  background: rgba(8, 9, 13, 0.9); padding: 2px 7px; border-radius: 4px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.frame-canvas-wrap { position: relative; width: 100%; height: 155px; overflow: hidden; }
.frame-canvas { width: 100%; height: 100%; display: block; }
.frame-overlay-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(8, 9, 13, 0.95), transparent);
  padding: 14px 10px 6px;
  font-size: 0.68rem; font-weight: 700; color: var(--blue);
  letter-spacing: 0.06em; text-transform: uppercase;
}

.frame-meta { padding: 10px 12px 12px; }
.frame-title { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 3px; }
.frame-spec { display: block; font-size: 0.62rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; line-height: 1.4; margin-bottom: 8px; }
.frame-bar { height: 2px; background: rgba(255, 255, 255, 0.05); border-radius: 1px; overflow: hidden; }
.frame-progress { height: 100%; background: linear-gradient(90deg, #8B5CF6, #06B6D4); border-radius: 1px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding-top: 60px; }

.pricing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 48px;
}
.toggle-label { font-size: 0.875rem; font-weight: 600; color: var(--text-sub); }
.price-toggle-wrap { position: relative; display: inline-block; width: 44px; height: 24px; }
.price-toggle-wrap input { opacity: 0; width: 0; height: 0; }
.ptoggle-slider {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(139, 92, 246, 0.25); border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3); transition: var(--transition);
}
.ptoggle-slider::before {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--purple); left: 3px; top: 3px; transition: var(--transition);
}
.price-toggle-wrap input:checked + .ptoggle-slider::before { transform: translateX(20px); }
.save-badge {
  font-size: 0.68rem; font-weight: 700; color: var(--green);
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 2px 7px; border-radius: 100px;
}

.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  align-items: start;
}

.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition); position: relative;
}
.price-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: var(--shadow-card); }

.price-featured {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(6, 182, 212, 0.05));
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
  transform: scale(1.02);
}
.price-featured:hover { transform: scale(1.02) translateY(-3px); }

.price-enterprise {
  background: linear-gradient(160deg, rgba(6, 182, 212, 0.08), rgba(139, 92, 246, 0.08));
  border-color: rgba(6, 182, 212, 0.22);
}

.plan-badge-wrap {
  font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}
.plan-badge-wrap.popular { color: var(--purple); }

.plan-name { font-size: 1.3rem; font-weight: 800; margin-bottom: 10px; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin-bottom: 10px; }
.price-currency { font-size: 1.1rem; font-weight: 700; color: var(--purple); }
.price-num { font-size: 2.4rem; font-weight: 900; color: var(--text); font-variant-numeric: tabular-nums; transition: var(--transition); }
.price-period { font-size: 0.8rem; color: var(--text-muted); }
.plan-desc { font-size: 0.8rem; color: var(--text-sub); margin-bottom: 20px; line-height: 1.5; }

.plan-features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.plan-features li { font-size: 0.8rem; display: flex; align-items: flex-start; gap: 0; }
.feat-on  { color: var(--text-sub); padding-left: 18px; position: relative; }
.feat-off { color: var(--text-muted); padding-left: 18px; position: relative; text-decoration: line-through; opacity: 0.5; }
.feat-on::before  { content: '✓'; position: absolute; left: 0; color: var(--purple); font-weight: 700; font-size: 0.75rem; }
.feat-off::before { content: '✕'; position: absolute; left: 0; color: var(--text-muted); font-size: 0.7rem; }

.plan-btn { width: 100%; padding: 11px; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.plan-btn-primary {
  background: linear-gradient(135deg, #8B5CF6, #06B6D4);
  color: var(--text); border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}
.plan-btn-primary:hover { box-shadow: 0 0 30px rgba(139, 92, 246, 0.5); transform: translateY(-1px); }
.plan-btn-ghost { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-sub); }
.plan-btn-ghost:hover { border-color: var(--border-bright); color: var(--text); }

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.architecture { padding-top: 60px; }

.adr-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
  margin-bottom: 48px;
}

.adr-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.adr-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #8B5CF6, #A78BFA, #06B6D4);
  transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.adr-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.adr-card:hover::after { transform: scaleX(1); }

.adr-id {
  font-size: 0.65rem; font-weight: 800; color: var(--purple);
  font-family: 'JetBrains Mono', monospace; margin-bottom: 8px;
  background: var(--purple-dim); padding: 2px 8px; border-radius: 4px; display: inline-block;
}
.adr-card h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 7px; }
.adr-card p  { font-size: 0.78rem; color: var(--text-sub); line-height: 1.55; margin-bottom: 12px; }
.adr-status {
  font-size: 0.65rem; font-weight: 700; color: var(--green);
  background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 3px 8px; border-radius: 4px; display: inline-block;
}

/* Tech Stack */
.tech-stack {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.tech-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-sub); }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tech-item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-sm);
  border: 1px solid var(--border); transition: var(--transition);
}
.tech-item:hover { border-color: var(--border-hover); }
.tech-layer { font-size: 0.6rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.tech-name { font-size: 0.78rem; font-weight: 600; color: var(--purple); font-family: 'JetBrains Mono', monospace; }

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap { padding-top: 60px; }

.roadmap-timeline { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; }

.roadmap-phase {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition);
}
.roadmap-phase.active { border-color: rgba(139, 92, 246, 0.4); }

.phase-header {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px;
  cursor: pointer; transition: var(--transition);
}
.phase-header:hover { background: rgba(255, 255, 255, 0.03); }

.phase-num {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #8B5CF6, #06B6D4);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 900; color: var(--text);
}

.phase-info { flex: 1; }
.phase-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.phase-weeks { font-size: 0.72rem; color: var(--text-muted); }

.phase-status {
  font-size: 0.65rem; font-weight: 700; padding: 4px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.status-active  { background: rgba(139, 92, 246, 0.15); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.3); }
.status-planned { background: rgba(6, 182, 212, 0.1); color: var(--blue); border: 1px solid rgba(6, 182, 212, 0.25); }
.status-future  { background: rgba(244, 63, 94, 0.1); color: var(--pink); border: 1px solid rgba(244, 63, 94, 0.2); }

.phase-chevron { font-size: 1.1rem; color: var(--text-muted); transition: transform 0.25s ease; flex-shrink: 0; }
.roadmap-phase.open .phase-chevron { transform: rotate(180deg); }

.phase-content { padding: 0 24px 20px; border-top: 1px solid var(--border); padding-top: 20px; }
.phase-deliverables { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.deliverable { font-size: 0.82rem; padding: 7px 12px; border-radius: var(--radius-sm); }
.deliverable.done      { background: rgba(139, 92, 246, 0.12); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.25); }
.deliverable.planned-d { background: rgba(6, 182, 212, 0.05); color: var(--text-sub); border: 1px solid rgba(6, 182, 212, 0.15); }

.phase-milestones { display: flex; flex-direction: column; gap: 8px; }
.milestone { display: flex; gap: 14px; align-items: flex-start; }
.ms-week {
  font-size: 0.65rem; font-weight: 800; color: var(--accent);
  background: rgba(139, 92, 246, 0.12); padding: 2px 8px; border-radius: 4px;
  flex-shrink: 0; margin-top: 2px; font-family: 'JetBrains Mono', monospace;
}
.ms-task { font-size: 0.78rem; color: var(--text-sub); line-height: 1.5; }

/* MRR Chart */
.mrr-chart-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.chart-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; color: var(--text-sub); }
#mrrChart { width: 100%; max-width: 100%; display: block; border-radius: 8px; }
.chart-labels {
  display: flex; justify-content: space-between;
  padding: 8px 10px 0; font-size: 0.68rem; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 60px; padding: 60px 32px 30px;
  max-width: 100%;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 60px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer-brand { flex: 1; min-width: 220px; }
.footer-tagline { font-size: 0.85rem; color: var(--text-muted); margin: 12px 0 14px; line-height: 1.6; }
.footer-spec-row { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-spec {
  font-size: 0.62rem; font-weight: 600; font-family: 'JetBrains Mono', monospace;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); padding: 3px 8px; border-radius: 4px;
}

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.footer-col a { font-size: 0.82rem; color: var(--text-muted); transition: var(--transition); }
.footer-col a:hover { color: var(--purple); }

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
}
.footer-bottom p { font-size: 0.72rem; color: var(--text-muted); }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px; z-index: 1000;
}
.toast {
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600;
  backdrop-filter: blur(20px); min-width: 220px;
  animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
}
.toast.success { background: rgba(139, 92, 246, 0.15); border-color: rgba(139, 92, 246, 0.35); color: var(--purple); }
.toast.info    { background: rgba(6, 182, 212, 0.12);  border-color: rgba(6, 182, 212, 0.3);   color: var(--blue); }
.toast.error   { background: rgba(244, 63, 94, 0.12);  border-color: rgba(244, 63, 94, 0.3);   color: var(--pink); }
.toast.out     { animation: toastOut 0.25s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px;
  max-width: 520px; width: 90%; position: relative;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.modal h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; color: var(--text); }
.modal p  { font-size: 0.875rem; color: var(--text-sub); line-height: 1.6; margin-bottom: 16px; }
.modal-code {
  background: rgba(0, 0, 0, 0.4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  font-size: 0.75rem; color: var(--blue); font-family: 'JetBrains Mono', monospace;
  line-height: 1.6; white-space: pre; overflow-x: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero { flex-direction: column; align-items: center; text-align: center; gap: 48px; }
  .hero-content { max-width: 100%; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-3d-stage { width: 100%; display: flex; justify-content: center; }
  .stage-frame { width: 440px; height: 400px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-large { grid-column: 1 / -1; grid-row: auto; flex-direction: row; }
  .feature-visual { width: 200px; flex-shrink: 0; height: auto; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  section { padding: 60px 16px; }
  .nav-links { display: none; }
  .stage-frame { width: 340px; height: 320px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-large { flex-direction: column; }
  .feature-visual { width: 100%; height: 160px; }
  .builder-app { flex-direction: column; }
  .builder-sidebar { width: 100%; max-height: 380px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .adr-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 24px; }
  .price-featured { transform: scale(1); }
}

/* ============================================================
   ANALYTICS PREVIEW SECTION & DASHBOARD LINK
   ============================================================ */
.nav-link-dashboard {
  background: var(--purple-dim);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--purple) !important;
  padding: 4px 10px;
  border-radius: 100px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.nav-link-dashboard:hover {
  background: rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.35);
  transform: translateY(-1px);
}

.analytics-preview {
  padding: 90px 24px;
  position: relative;
  z-index: 10;
  background: radial-gradient(circle at 70% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
}
.ap-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.ap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: var(--transition);
}
.ap-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-card);
}
.ap-card-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ap-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}
.ap-title { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.ap-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.ap-badge {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}
.ap-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.ap-metric { text-align: center; }
.ap-val { font-size: 1.35rem; font-weight: 800; display: block; font-family: 'JetBrains Mono', monospace; color: var(--text); }
.ap-lab { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; display: block; }

.ap-chart-placeholder {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 160px;
}
.ap-bar-group {
  display: flex;
  gap: 48px;
  align-items: flex-end;
  height: 100%;
  width: 80%;
  justify-content: center;
}
.ap-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
  flex: 1;
}
.ap-bar-label { font-size: 0.75rem; font-weight: 600; color: var(--text-sub); }
.ap-bar {
  width: 60px;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ap-bar span { font-size: 0.72rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; color: #fff; }
.static-bar { background: linear-gradient(180deg, rgba(139, 92, 246, 0.7), rgba(139, 92, 246, 0.2)); border: 1px solid rgba(139, 92, 246, 0.4); border-bottom: none; }
.interactive-bar { background: linear-gradient(180deg, rgba(6, 182, 212, 0.9), rgba(6, 182, 212, 0.4)); border: 1px solid rgba(6, 182, 212, 0.6); border-bottom: none; box-shadow: 0 0 20px rgba(6, 182, 212, 0.25); }

.ap-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}
.ap-card-side { padding: 18px; }
.ap-icon-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.ap-icon { font-size: 1.5rem; background: var(--purple-dim); width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(139, 92, 246, 0.3); }
.ap-side-title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.ap-side-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.ap-ab-pill { background: var(--purple-dim); color: var(--purple); border: 1px solid rgba(139, 92, 246, 0.3); padding: 6px 12px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; text-align: center; }
.ap-platforms { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-plat { background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text-sub); padding: 4px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 600; }

.ap-cta-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 25px rgba(139, 92, 246, 0.15);
}
.ap-cta-card:hover {
  transform: translateY(-2px);
  border-color: var(--purple);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.3);
}
.ap-cta-title { font-size: 1rem; font-weight: 800; color: #fff; }
.ap-cta-sub { font-size: 0.75rem; color: rgba(248, 250, 252, 0.8); margin-top: 2px; }

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

/* ============================================================
   BUILDER STATES (Loading, Empty, Error)
   ============================================================ */
.builder-loading-state,
.builder-empty-state,
.builder-error-state {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(8, 9, 13, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  gap: 12px;
  animation: fadeIn 0.3s ease;
}

.spinner-3d {
  width: 44px; height: 44px;
  border: 3px solid rgba(139, 92, 246, 0.2);
  border-top-color: var(--purple);
  border-right-color: var(--blue);
  border-radius: 50%;
  animation: spin3D 0.8s linear infinite;
}
@keyframes spin3D { to { transform: rotate(360deg); } }

.empty-icon, .error-icon {
  font-size: 2.8rem;
  margin-bottom: 4px;
}

.builder-empty-state h4,
.builder-error-state h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.builder-empty-state p,
.builder-error-state p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-bottom: 8px;
}



