/* ═══════════════════════════════════════════════════════════════
   DRASVE DEV — CATÁLOGO DE PRODUCTOS
   Design System & Animations
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Dark mode is the CSS base (same as drasvedev.com) */
  --bg: #050508;
  --bg-card: #0a0a0f;
  --bg-elevated: #0f0f18;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --text: #e4e4e7;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --accent-1: #6366f1;
  --accent-2: #a855f7;
  --accent-3: #06b6d4;
  --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --section-pad: clamp(80px, 12vh, 140px);
}

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

/* ─── Theme Transitions ─── */
body, .nav-cta, .btn-secondary, .landing-card, .module-canvas-wrapper,
.form-group input, .form-group select, .form-group textarea,
.dashboard-mockup, .kanban-mockup, .chat-mockup, .faq-item,
#main-nav, .mobile-menu, .theme-toggle-btn, .footer-top a {
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection { background: var(--accent-1); color: white; }

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

/* ─── Gradient Text ─── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════════ NAVIGATION ═══════════════════ */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 1000;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
#main-nav.scrolled {
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 900; color: white;
  text-decoration: none; letter-spacing: -0.02em;
}
.logo-bracket { color: var(--accent-1); font-family: var(--mono); }
.logo-highlight { color: var(--accent-2); }
.nav-links { list-style: none; display: flex; gap: 32px; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 500; transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--gradient);
  transition: width 0.3s; border-radius: 99px;
}
.nav-links a:hover { color: white; }
html.light-theme .nav-links a:hover { color: #0F172A; }
.nav-links a:hover::after { width: 100%; }

/* Theme Toggle Button */
.nav-actions { display: flex; align-items: center; gap: 16px; }
.theme-toggle-btn {
  background: none; border: 1px solid var(--border-hover);
  border-radius: 50%; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; transition: all 0.3s;
}
.theme-toggle-btn:hover {
  background: rgba(255,255,255,0.05); color: white; border-color: var(--accent-1);
}
html.light-theme .theme-toggle-btn:hover { background: rgba(0,0,0,0.05); color: #0F172A; }
.theme-toggle-btn svg { width: 18px; height: 18px; transition: transform 0.3s; }
.theme-toggle-btn:hover svg { transform: rotate(15deg); }
.theme-toggle-btn .sun-icon { display: none; }
.theme-toggle-btn .moon-icon { display: block; }
html.light-theme .theme-toggle-btn .sun-icon { display: block; }
html.light-theme .theme-toggle-btn .moon-icon { display: none; }

/* Nav CTA */
.nav-cta {
  padding: 10px 22px; border: 1px solid var(--border-hover);
  border-radius: 999px; color: white; text-decoration: none;
  font-size: 0.8125rem; font-weight: 600; transition: all 0.3s;
  display: flex; align-items: center; gap: 8px;
}
.nav-cta:hover {
  background: var(--accent-1); border-color: var(--accent-1);
  box-shadow: 0 0 24px rgba(99,102,241,0.3);
}
.cta-arrow { transition: transform 0.3s; }
.nav-cta:hover .cta-arrow { transform: translateX(4px); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-hamburger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 99px; transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: flex; flex-direction: column; position: absolute;
  top: var(--nav-h); left: 0; width: 100%;
  padding: 16px 24px 32px;
  background: rgba(5,5,8,0.95); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); border-top: 1px solid var(--border);
  opacity: 0; transform: translateY(-8px);
  pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-link {
  padding: 14px 0; color: var(--text-muted); text-decoration: none;
  font-weight: 500; font-size: 1rem; border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.mobile-link:hover { color: white; }
html.light-theme .mobile-link:hover { color: #0F172A; }
.mobile-cta { margin-top: 8px; color: var(--accent-1) !important; border-bottom: none !important; font-weight: 700; }

/* Mobile Overlay */
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 998; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
}

/* ─── Light Mode Theme Colors ─── */
html.light-theme {
  --bg: #F8FAFC;
  --bg-elevated: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.8);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --text: #0F172A;
  --text-muted: #475569;
  --text-dim: #475569;
}
html.light-theme #main-nav.scrolled { background: rgba(255,255,255,0.85); border-bottom-color: var(--border); }
html.light-theme .mobile-menu { background: rgba(255,255,255,0.95); }
html.light-theme .mobile-link { color: #475569; }
html.light-theme .mobile-link:hover { color: #0F172A; }
html.light-theme .nav-hamburger span { background: #0F172A; }
html.light-theme .nav-logo { color: #0F172A; }
html.light-theme .nav-links a { color: #475569; }
html.light-theme .nav-links a:hover { color: #0F172A; }
html.light-theme .theme-toggle-btn { color: #475569; border-color: rgba(0,0,0,0.15); }
html.light-theme .theme-toggle-btn:hover { background: rgba(0,0,0,0.03); color: #0F172A; border-color: var(--accent-1); }
html.light-theme .nav-cta { color: #0F172A; border-color: rgba(0,0,0,0.15); }
html.light-theme .nav-cta:hover { color: white; background: var(--accent-1); border-color: var(--accent-1); }

/* ═══════════════════ HERO ═══════════════════ */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 60px; overflow: hidden;
  background: var(--bg);
}
html.light-theme #hero {
  background: linear-gradient(180deg, #E8EDF5 0%, #F1F5F9 50%, #F8FAFC 100%);
}
#hero-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 0; opacity: 0.4;
}
.hero-gradient-orb {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none; z-index: 0;
}
.hero-orb-1 {
  width: 600px; height: 600px; background: rgba(99,102,241,0.15);
  top: -200px; left: -100px; animation: float-orb 15s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px; height: 500px; background: rgba(168,85,247,0.1);
  bottom: -150px; right: -100px; animation: float-orb 20s ease-in-out infinite reverse;
}
.hero-orb-3 {
  width: 300px; height: 300px; background: rgba(6,182,212,0.08);
  top: 50%; left: 60%; animation: float-orb 12s ease-in-out infinite 2s;
}
@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 820px; }
.hero-line {
  display: block; font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -0.03em; color: white;
}
html.light-theme .hero-line { color: #0F172A; }
.hero-line--gradient {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2); border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent-1);
  margin-bottom: 32px; letter-spacing: 0.02em;
}
html.light-theme .hero-badge { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.25); }
.badge-dot {
  width: 6px; height: 6px; background: var(--accent-1);
  border-radius: 50%; animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(99,102,241,0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 900;
  line-height: 1.08; letter-spacing: -0.03em; color: white;
  margin-bottom: 24px;
}
html.light-theme .hero-title { color: #0F172A; }
.hero-title span { display: block; }
.hero-title-gradient {
  background: var(--gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text-muted);
  max-width: 580px; margin: 0 auto 40px; line-height: 1.7;
}
html.light-theme .hero-subtitle { color: #334155; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

/* Buttons */
.btn-primary {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; background: var(--accent-1); color: white;
  border: none; border-radius: 999px; font-size: 0.9375rem;
  font-weight: 700; text-decoration: none; cursor: pointer;
  overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.4);
}
.btn-shine {
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: btn-shine-anim 3s infinite;
}
@keyframes btn-shine-anim {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; background: transparent; color: var(--text);
  border: 1px solid var(--border-hover); border-radius: 999px;
  font-size: 0.9375rem; font-weight: 600; text-decoration: none;
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.05); }
html.light-theme .btn-secondary:hover { background: rgba(0,0,0,0.04); }
.btn-arrow { transition: transform 0.3s; }
.btn-secondary:hover .btn-arrow { transform: translateY(3px); }

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute; bottom: 30px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-dim); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em;
  animation: scroll-bounce 2.5s infinite;
}
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 38px; border: 2px solid var(--text-dim);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-indicator-line {
  width: 3px; height: 8px; background: var(--text-muted);
  border-radius: 99px; animation: scroll-wheel-anim 2s infinite;
}
.scroll-mouse {
  width: 24px; height: 38px; border: 2px solid var(--text-dim);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 8px;
}
.scroll-wheel {
  width: 3px; height: 8px; background: var(--text-muted);
  border-radius: 99px; animation: scroll-wheel-anim 2s infinite;
}
@keyframes scroll-wheel-anim {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ═══════════════════ SECTIONS COMMON ═══════════════════ */
section:not(#hero) { padding: var(--section-pad) 24px; position: relative; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; padding: 6px 16px;
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15);
  border-radius: 999px; font-size: 0.75rem; font-weight: 700;
  color: var(--accent-1); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  color: white; letter-spacing: -0.025em; line-height: 1.15;
}
html.light-theme .section-title { color: #0F172A; }
.section-subtitle {
  margin-top: 16px; font-size: 1.05rem; color: var(--text-muted);
  max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.7;
}

/* ═══════════════════ LANDING CARDS ═══════════════════ */
.landing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px; max-width: 900px; margin: 0 auto;
}
.landing-card {
  position: relative; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 32px; text-decoration: none; color: var(--text);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); overflow: hidden;
}
.landing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.card-glow {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(99,102,241,0.06), transparent 50%);
  pointer-events: none; transition: opacity 0.3s; opacity: 0; z-index: 0;
}
.landing-card:hover .card-glow { opacity: 1; }
.landing-card-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  border-radius: 14px; margin-bottom: 24px; position: relative; z-index: 1;
  transition: all 0.4s;
}
.landing-card:hover .landing-card-icon { transform: scale(1.05); }
.landing-card-icon svg { width: 28px; height: 28px; }
.landing-card-title {
  font-size: 1.5rem; font-weight: 800; color: white;
  margin-bottom: 8px; position: relative; z-index: 1;
}
html.light-theme .landing-card-title { color: #0F172A; }
.landing-card-desc {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.65;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.landing-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 700; position: relative; z-index: 1;
  transition: gap 0.3s;
}
.landing-card:hover .landing-card-link { gap: 12px; }

/* Card color variants */
.landing-card--erp .landing-card-icon { background: rgba(99,102,241,0.1); color: var(--accent-1); }
.landing-card--erp .landing-card-link { color: var(--accent-1); }
.landing-card--erp:hover { border-color: rgba(99,102,241,0.3); box-shadow: 0 20px 60px rgba(99,102,241,0.12); }

.landing-card--crm .landing-card-icon { background: rgba(6,182,212,0.1); color: var(--accent-3); }
.landing-card--crm .landing-card-link { color: var(--accent-3); }
.landing-card--crm:hover { border-color: rgba(6,182,212,0.3); box-shadow: 0 20px 60px rgba(6,182,212,0.12); }

.landing-card--web .landing-card-icon { background: rgba(168,85,247,0.1); color: var(--accent-2); }
.landing-card--web .landing-card-link { color: var(--accent-2); }
.landing-card--web:hover { border-color: rgba(168,85,247,0.3); box-shadow: 0 20px 60px rgba(168,85,247,0.12); }

.landing-card--ai .landing-card-icon {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.1));
  color: var(--accent-2);
}
.landing-card--ai .landing-card-link { color: var(--accent-2); }
.landing-card--ai:hover { border-color: rgba(168,85,247,0.3); box-shadow: 0 20px 60px rgba(168,85,247,0.12); }

/* ═══════════════════ PRODUCT HERO ═══════════════════ */
.product-hero {
  padding: calc(var(--nav-h) + 80px) 24px 80px;
  text-align: center; position: relative; overflow: hidden;
  background: var(--bg);
}
html.light-theme .product-hero {
  background: linear-gradient(180deg, #E8EDF5 0%, #F1F5F9 50%, #F8FAFC 100%);
}
.product-hero-canvas {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; z-index: 0; opacity: 0.3;
}
html.light-theme .product-hero-canvas { opacity: 0.5; }
.product-hero .hero-content { max-width: 860px; }
.product-hero .hero-title { margin-bottom: 16px; }
.product-hero .hero-subtitle { max-width: 640px; margin-bottom: 24px; }
.hero-orbs { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none; z-index: 0;
}
.hero-orb--indigo, .orb-1 {
  width: 400px; height: 400px; background: rgba(99,102,241,0.12);
  top: -100px; left: -50px; animation: float-orb 15s ease-in-out infinite;
}
.hero-orb--purple, .orb-2 {
  width: 350px; height: 350px; background: rgba(168,85,247,0.08);
  bottom: -100px; right: -50px; animation: float-orb 20s ease-in-out infinite reverse;
}
.hero-orb--cyan, .orb-3 {
  width: 300px; height: 300px; background: rgba(6,182,212,0.06);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: float-orb 18s ease-in-out infinite;
}
html.light-theme .hero-orb--indigo, html.light-theme .orb-1 { background: rgba(99,102,241,0.15); }
html.light-theme .hero-orb--purple, html.light-theme .orb-2 { background: rgba(168,85,247,0.12); }
html.light-theme .hero-orb--cyan, html.light-theme .orb-3 { background: rgba(6,182,212,0.1); }
.product-audience {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.8rem; color: var(--text-muted);
}
html.light-theme .product-audience { background: rgba(0,0,0,0.03); }
html.light-theme .product-audience { background: rgba(0,0,0,0.03); }

/* ═══════════════════ MODULE SECTIONS ═══════════════════ */
.module-section {
  padding: 80px 24px; position: relative;
  border-top: 1px solid var(--border);
}
.module-section:nth-child(even) { background: var(--bg-elevated); }
.module-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.module-section:nth-child(even) .module-inner { direction: rtl; }
.module-section:nth-child(even) .module-inner > * { direction: ltr; }

.module-info { max-width: 520px; }
.module-number {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700;
  color: var(--accent-1); letter-spacing: 0.1em; margin-bottom: 12px;
  text-transform: uppercase;
}
.module-title {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  color: white; letter-spacing: -0.02em; line-height: 1.2;
  margin-bottom: 16px;
}
html.light-theme .module-title { color: #0F172A; }
.module-desc {
  font-size: 1rem; color: var(--text-muted); line-height: 1.7;
  margin-bottom: 24px;
}
.module-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 20px;
}
.module-badge--included {
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.2);
  color: #10b981;
}
.module-badge--optional {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: var(--text-muted);
}
html.light-theme .module-badge--optional { background: rgba(0,0,0,0.03); }
.module-badge-dot { width: 5px; height: 5px; border-radius: 50%; }
.module-badge--included .module-badge-dot { background: #10b981; }
.module-badge--optional .module-badge-dot { background: var(--text-dim); }

.module-features {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.module-features li {
  font-size: 0.875rem; color: var(--text-muted); display: flex;
  align-items: center; gap: 10px; font-weight: 500;
}
.module-features li::before {
  content: ''; width: 18px; height: 18px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 6px; display: inline-flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}

/* Module Visual / Canvas Area */
.module-visual {
  position: relative; perspective: 1000px;
  display: flex; align-items: center; justify-content: center;
}
.module-canvas-wrapper {
  width: 100%; aspect-ratio: 4/3;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  position: relative;
}
.module-canvas-wrapper canvas { width: 100%; height: 100%; display: block; }

/* ═══════════════════ DASHBOARD MOCKUP ═══════════════════ */
.dashboard-mockup {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.dashboard-header {
  height: 40px; background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 16px; gap: 8px;
}
html.light-theme .dashboard-header { background: #F1F5F9; }
.dashboard-dots { display: flex; gap: 6px; }
.dashboard-dots span { width: 10px; height: 10px; border-radius: 50%; }
.dashboard-dots span:nth-child(1) { background: #ef4444; }
.dashboard-dots span:nth-child(2) { background: #eab308; }
.dashboard-dots span:nth-child(3) { background: #22c55e; }
.dashboard-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.dashboard-row { display: flex; gap: 12px; }
.dashboard-stat {
  flex: 1; padding: 16px; background: rgba(255,255,255,0.02);
  border-radius: 10px; border: 1px solid var(--border);
}
html.light-theme .dashboard-stat { background: #F8FAFC; }
.dashboard-stat-label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: 4px; }
.dashboard-stat-value { font-size: 1.5rem; font-weight: 800; color: white; font-family: var(--mono); }
html.light-theme .dashboard-stat-value { color: #0F172A; }
.dashboard-chart {
  height: 120px; background: rgba(255,255,255,0.02);
  border-radius: 10px; border: 1px solid var(--border);
  overflow: hidden; position: relative;
}
html.light-theme .dashboard-chart { background: #F8FAFC; }

/* ═══════════════════ KANBAN MOCKUP ═══════════════════ */
.kanban-mockup {
  display: flex; gap: 12px; padding: 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow-x: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.kanban-column {
  min-width: 140px; flex: 1; background: rgba(255,255,255,0.02);
  border-radius: 10px; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
html.light-theme .kanban-column { background: #F1F5F9; }
.kanban-card {
  padding: 10px 12px; background: white; border-radius: 8px;
  border: 1px solid var(--border); font-size: 0.75rem;
  color: var(--text); font-weight: 500; cursor: grab;
  transition: all 0.3s; position: relative;
  display: flex; align-items: center; gap: 10px;
}
html.light-theme .kanban-card { background: #FFFFFF; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.kanban-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.kanban-card.card-closed { opacity: 0.5; }
.kanban-card-ai {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent-3); color: white;
  font-size: 0.55rem; padding: 2px 6px; border-radius: 99px;
  font-weight: 700;
}
.kanban-cards { display: flex; flex-direction: column; gap: 8px; }
.card-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: white;
}
.avatar-blue { background: var(--accent-1); }
.avatar-green { background: #10b981; }
.avatar-purple { background: var(--accent-2); }
.avatar-amber { background: #f59e0b; }
.card-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.card-name { font-size: 0.75rem; font-weight: 600; color: var(--text); }
.card-detail { font-size: 0.65rem; color: var(--text-dim); }
.move-btn {
  width: 24px; height: 24px; border: none; background: rgba(99,102,241,0.1);
  color: var(--accent-1); border-radius: 6px; cursor: pointer;
  font-size: 0.8rem; transition: all 0.2s; flex-shrink: 0;
}
.move-btn:hover { background: var(--accent-1); color: white; }
.column-header {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 4px;
  display: flex; justify-content: space-between; align-items: center;
}
.column-count {
  background: var(--border); padding: 2px 8px; border-radius: 99px;
  font-size: 0.65rem; font-weight: 600;
}
.column-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.dot-new { background: var(--accent-1); }
.dot-contacted { background: var(--accent-3); }
.dot-proposal { background: var(--accent-2); }
.dot-closed { background: #10b981; }
.card-ai-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent-3); color: white;
  font-size: 0.55rem; padding: 2px 6px; border-radius: 99px;
  font-weight: 700;
}
.card-won-badge {
  position: absolute; top: -6px; right: -6px;
  background: #10b981; color: white;
  font-size: 0.55rem; padding: 2px 6px; border-radius: 99px;
  font-weight: 700;
}

/* ═══════════════════ EMAIL FLOW ═══════════════════ */
.email-flow-mockup {
  display: flex; align-items: center; gap: 8px; padding: 24px;
  flex-wrap: wrap; justify-content: center;
}
.flow-node {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 16px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 8px; min-width: 100px;
  transition: all 0.3s;
}
html.light-theme .flow-node { background: #F8FAFC; }
.flow-node:hover { border-color: rgba(99,102,241,0.3); }
.flow-trigger { border-color: rgba(16,185,129,0.3); }
.flow-delay { border-color: rgba(245,158,11,0.3); }
.flow-email-active { border-color: rgba(99,102,241,0.5); background: rgba(99,102,241,0.05); }
.flow-email-pending { border-color: rgba(156,163,175,0.3); opacity: 0.7; }
.flow-email-warn { border-color: rgba(239,68,68,0.3); }
.flow-icon { font-size: 1.2rem; }
.flow-label { font-size: 0.7rem; font-weight: 600; color: var(--text); text-align: center; }
.flow-arrow { color: var(--text-dim); font-size: 1.2rem; flex-shrink: 0; }
.flow-branch {
  display: flex; flex-direction: column; gap: 8px; position: relative;
}
.flow-branch-line {
  position: absolute; left: -16px; top: 0; bottom: 0; width: 2px;
  background: var(--border);
}
.flow-branch-option { display: flex; align-items: center; gap: 8px; }
.branch-condition {
  font-size: 0.6rem; font-weight: 700; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap;
}
.flow-status {
  font-size: 0.6rem; font-weight: 600; padding: 2px 6px;
  border-radius: 4px; margin-top: 4px;
}
.status-sent { background: rgba(99,102,241,0.1); color: var(--accent-1); }
.status-pending { background: rgba(156,163,175,0.1); color: var(--text-dim); }
.status-warn { background: rgba(239,68,68,0.1); color: #ef4444; }

/* ═══════════════════ TIMELINE ═══════════════════ */
.timeline-mockup {
  padding: 24px; display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.timeline-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.timeline-contact-name {
  font-size: 0.85rem; font-weight: 700; color: var(--text);
}
.timeline-contact-status {
  font-size: 0.7rem; font-weight: 600; color: var(--accent-1);
  padding: 2px 8px; background: rgba(99,102,241,0.1); border-radius: 99px;
}
.timeline {
  display: flex; flex-direction: column; gap: 0;
  position: relative; padding-left: 20px;
}
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-mockup::before {
  content: ''; position: absolute; left: 20px; top: 32px; bottom: 32px;
  width: 2px; background: var(--border);
}
.timeline-item {
  display: flex; gap: 16px; padding: 12px 0; position: relative;
}
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-1); position: relative; z-index: 1;
  margin-top: 4px;
}
.dot-email { background: var(--accent-1); }
.dot-call { background: #10b981; }
.dot-meeting { background: #f59e0b; }
.dot-note { background: #8b5cf6; }
.timeline-content {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.timeline-event-type {
  font-size: 0.75rem; font-weight: 600; color: var(--text);
}
.timeline-event-time {
  font-size: 0.65rem; color: var(--text-dim);
}
.timeline-event-desc {
  font-size: 0.7rem; color: var(--text-muted); line-height: 1.4;
}
.timeline-event-text {
  font-size: 0.75rem; color: var(--text); line-height: 1.4;
}
.timeline-event-date {
  font-size: 0.65rem; color: var(--text-dim);
}

/* ═══════════════════ CHAT SIMULATOR ═══════════════════ */
.chat-mockup, .chat-simulator {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  display: flex; flex-direction: column;
}
.chat-name {
  font-size: 0.875rem; font-weight: 700; color: white; display: block;
}
html.light-theme .chat-name { color: #0F172A; }
.chat-status {
  font-size: 0.7rem; color: #10b981; font-weight: 500;
  display: flex; align-items: center; gap: 4px;
}
.status-dot {
  width: 6px; height: 6px; background: #10b981;
  border-radius: 50%; display: inline-block;
}
.chat-bubble {
  padding: 0; font-size: 0.85rem; line-height: 1.5;
}
.chat-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient); display: flex;
  align-items: center; justify-content: center;
  color: white; font-size: 0.8rem; font-weight: 700;
}
.chat-header-info h4 { font-size: 0.875rem; font-weight: 700; color: white; }
html.light-theme .chat-header-info h4 { color: #0F172A; }
.chat-header-info span { font-size: 0.7rem; color: #10b981; font-weight: 500; }
.chat-messages {
  flex: 1; padding: 20px; display: flex; flex-direction: column;
  gap: 12px; min-height: 200px; max-height: 320px; overflow-y: auto;
}
.chat-message {
  max-width: 80%; padding: 10px 14px; border-radius: 12px;
  font-size: 0.85rem; line-height: 1.5; animation: msgAppear 0.3s ease;
}
@keyframes msgAppear {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-message.user {
  align-self: flex-end; background: var(--accent-1); color: white;
  border-bottom-right-radius: 4px;
}
.chat-message.bot {
  align-self: flex-start; background: rgba(255,255,255,0.04);
  color: var(--text); border-bottom-left-radius: 4px;
}
html.light-theme .chat-message.bot { background: #F1F5F9; }
.chat-typing {
  align-self: flex-start; padding: 10px 14px;
  background: rgba(255,255,255,0.04); border-radius: 12px;
  display: flex; gap: 4px;
}
html.light-theme .chat-typing { background: #F1F5F9; }
.chat-typing span {
  width: 6px; height: 6px; background: var(--text-dim);
  border-radius: 50%; animation: typingBounce 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}
.chat-input-area {
  padding: 12px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}
.chat-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.85rem; font-family: var(--font);
  background: rgba(255,255,255,0.02); color: var(--text); outline: none;
  transition: border-color 0.3s;
}
html.light-theme .chat-input { background: white; }
.chat-input:focus { border-color: var(--accent-1); }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent-1); color: white; border: none;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; transition: all 0.3s;
}
.chat-send:hover { background: #5558e6; transform: scale(1.05); }
.chat-send svg { width: 18px; height: 18px; }

/* ═══════════════════ GAUGE / METER ═══════════════════ */
.gauge-container {
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
}
.gauge {
  width: 240px; height: 130px; position: relative; overflow: hidden;
}
.gauge-bg, .gauge-fill {
  position: absolute; width: 240px; height: 240px;
  border-radius: 50%; border: 20px solid transparent;
}
.gauge-bg {
  border-top-color: rgba(255,255,255,0.06); border-left-color: rgba(255,255,255,0.06);
  border-right-color: rgba(255,255,255,0.06); transform: rotate(225deg);
}
html.light-theme .gauge-bg { border-top-color: #E2E8F0; border-left-color: #E2E8F0; border-right-color: #E2E8F0; }
.gauge-fill {
  border-top-color: var(--accent-1); border-left-color: var(--accent-1);
  border-right-color: transparent; transform: rotate(225deg);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gauge-value, .gauge-text {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  font-size: 2.5rem; font-weight: 900; font-family: var(--mono); color: white;
}
html.light-theme .gauge-value, html.light-theme .gauge-text { color: #0F172A; }
.gauge-center {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.gauge-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-align: center; }

/* ═══════════════════ SCORE BARS ═══════════════════ */
.score-bars { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.score-bar { display: flex; align-items: center; gap: 12px; }
.score-bar-label { font-size: 0.7rem; font-weight: 600; color: var(--text-dim); width: 80px; flex-shrink: 0; }
.score-bar-track {
  flex: 1; height: 8px; background: rgba(255,255,255,0.05);
  border-radius: 4px; overflow: hidden;
}
html.light-theme .score-bar-track { background: #E2E8F0; }
.score-bar-fill {
  height: 100%; border-radius: 4px; width: 0%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.score-bar-value {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700;
  color: var(--accent-1); width: 40px; text-align: right; flex-shrink: 0;
  font-family: var(--mono);
}

/* ═══════════════════ FUNNEL ═══════════════════ */
.funnel-mockup { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.funnel-step {
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  height: 48px; border-radius: 8px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); transition: all 0.3s;
}
html.light-theme .funnel-step { background: #F8FAFC; }
.funnel-step:hover {
  border-color: rgba(99,102,241,0.3);
  box-shadow: 0 0 20px rgba(99,102,241,0.08);
}
.funnel-label {
  font-size: 0.75rem; font-weight: 600; color: var(--text-dim);
  width: 100px; flex-shrink: 0;
}
.funnel-bar {
  flex: 1; height: 8px; background: rgba(255,255,255,0.05);
  border-radius: 4px; overflow: hidden;
}
html.light-theme .funnel-bar { background: #E2E8F0; }
.funnel-fill {
  height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.funnel-value {
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700;
  color: var(--accent-1); text-align: right; flex-shrink: 0; width: 50px;
  font-family: var(--mono);
}

/* ═══════════════════ WORKFLOW NODES ═══════════════════ */
.workflow-container {
  position: relative; padding: 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.workflow-canvas { width: 100%; height: 280px; }

/* ═══════════════════ RESPONSIVE PREVIEW ═══════════════════ */
.responsive-preview {
  display: flex; align-items: flex-end; justify-content: center;
  gap: 20px; padding: 20px;
}
.device-frame {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.device-frame--desktop { width: 280px; height: 180px; }
.device-frame--tablet { width: 160px; height: 200px; }
.device-frame--mobile { width: 80px; height: 160px; border-radius: 16px; }
.device-frame.active {
  border-color: var(--accent-1);
  box-shadow: 0 0 24px rgba(99,102,241,0.2);
  transform: scale(1.05);
}
.device-frame.active .device-bar { background: rgba(99,102,241,0.1); }
.device-frame.active .device-dot { background: var(--accent-1); }
.device-bar {
  height: 16px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 8px; gap: 4px;
}
html.light-theme .device-bar { background: #F1F5F9; }
.device-bar span { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
.device-content {
  height: calc(100% - 16px); padding: 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.device-line {
  height: 4px; border-radius: 2px; background: var(--border);
}
.device-line--accent { background: var(--accent-1); opacity: 0.3; }
.device-line--short { width: 60%; }
.device-line--medium { width: 80%; }
.device-block {
  width: 100%; height: 40px; border-radius: 6px;
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15);
}
html.light-theme .device-block { background: #F1F5F9; border-color: #E2E8F0; }

/* ═══════════════════ E-COMMERCE MOCKUP ═══════════════════ */
.ecom-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 16px;
}
.ecom-product {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden; transition: all 0.3s;
}
.ecom-product:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.ecom-product-img {
  height: 60px;
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(168,85,247,0.2));
}
.ecom-product-info { padding: 10px; }
.ecom-product-name { font-size: 0.7rem; font-weight: 600; color: white; margin-bottom: 4px; }
html.light-theme .ecom-product-name { color: #0F172A; }
.ecom-product-price { font-size: 0.8rem; font-weight: 800; color: var(--accent-1); }
.ecom-add-btn {
  display: block; width: 100%; margin-top: 8px; padding: 4px;
  background: var(--accent-1); color: white; border: none;
  border-radius: 6px; font-size: 0.65rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
}
.ecom-add-btn:hover { background: #5558e6; }

/* ═══════════════════ DOCUMENT EXTRACTION ═══════════════════ */
.doc-extraction {
  display: flex; align-items: center; gap: 20px; padding: 20px;
}
.doc-source, .doc-target, .doc-result {
  flex: 1; padding: 16px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 12px;
}
.doc-source-title, .doc-target-title, .doc-result-header {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 12px;
}
.doc-mockup {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
}
.doc-header {
  height: 24px; background: rgba(0,0,0,0.02); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 10px; gap: 4px;
}
html.light-theme .doc-header { background: #F1F5F9; }
.doc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--text-dim); }
.doc-body { padding: 12px; }
.doc-line {
  font-size: 0.7rem; color: var(--text-muted); margin-bottom: 4px;
  padding: 2px 0;
}
.doc-line--title { font-weight: 700; color: var(--text); margin-bottom: 8px; font-size: 0.75rem; }
.doc-line--highlight {
  background: rgba(99,102,241,0.08); border-left: 2px solid var(--accent-1);
  padding-left: 6px; border-radius: 0 4px 4px 0;
}
.doc-arrow {
  flex-shrink: 0; color: var(--accent-1);
  animation: arrowPulse 2s infinite;
}
.doc-arrow svg { width: 48px; height: 24px; }
@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 1; }
  50% { transform: translateX(4px); opacity: 0.6; }
}
.doc-field { margin-bottom: 10px; }
.doc-field-label {
  font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 600; margin-bottom: 4px; display: block;
}
.doc-field-value {
  padding: 6px 10px; background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.15); border-radius: 6px;
  font-size: 0.75rem; color: var(--text); font-weight: 500; display: block;
}

/* ═══════════════════ TRAINING CHART ═══════════════════ */
.training-chart {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.training-canvas { width: 100%; height: 200px; display: block; }

/* ═══════════════════ SCORING MOCKUP ═══════════════════ */
.scoring-mockup {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 32px;
}
.scoring-bars { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.scoring-bar-item { display: flex; align-items: center; gap: 12px; }
.scoring-bar-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); min-width: 80px; }
.scoring-bar-track {
  flex: 1; height: 8px; background: rgba(255,255,255,0.04);
  border-radius: 99px; overflow: hidden;
}
html.light-theme .scoring-bar-track { background: #E2E8F0; }
.scoring-bar-fill {
  height: 100%; border-radius: 99px; transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.scoring-bar-value {
  font-size: 0.75rem; font-weight: 700; font-family: var(--mono);
  color: var(--text); min-width: 36px; text-align: right;
}

/* ═══════════════════ CONTACT FORM ═══════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start;
}
.contact-info {
  display: flex; flex-direction: column; gap: 24px;
}
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-1);
}
.contact-info-icon svg { width: 20px; height: 20px; }
.contact-info-text {
  display: flex; flex-direction: column; gap: 2px;
}
.contact-info-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim);
}
.contact-info-value {
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  text-decoration: none; transition: color 0.2s;
}
a.contact-info-value:hover { color: var(--accent-1); }
.contact-form-wrapper {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.contact-details { margin-top: 40px; display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; align-items: center; gap: 16px; }
.contact-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.15);
  border-radius: 12px; color: var(--accent-1);
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label {
  display: block; font-size: 0.7rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700;
  margin-bottom: 2px;
}
.contact-item a, .contact-item span {
  color: var(--text); text-decoration: none; font-weight: 500; transition: color 0.3s;
}
.contact-item a:hover { color: var(--accent-1); }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.9375rem; font-family: var(--font);
  transition: all 0.3s; outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  background-size: 18px; padding-right: 40px;
}
.form-group select option { background: var(--bg-card); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 100px; }
.btn-form { width: 100%; justify-content: center; font-size: 0.9375rem; margin-top: 8px; }
.form-feedback {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; display: none;
}
.form-feedback.success {
  display: block; background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2); color: #10b981;
}
.form-feedback.error {
  display: block; background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2); color: #ef4444;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px 24px; }
}

/* ═══════════════════ FAQ ═══════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item[open] { border-color: var(--border-hover); }
.faq-question {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 24px; font-size: 1rem; font-weight: 600;
  color: var(--text); cursor: pointer; list-style: none;
  user-select: none; -webkit-tap-highlight-color: transparent;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--accent-1); }
.faq-question-text { flex: 1; line-height: 1.4; }
.faq-arrow {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  transition: transform 0.3s ease; color: var(--text-muted);
}
.faq-item[open] .faq-arrow { transform: rotate(90deg); }
.faq-answer {
  padding: 0 24px 20px; color: var(--text-muted);
  font-size: 0.95rem; line-height: 1.7;
}

/* ═══════════════════ BACK TO TOP ═══════════════════ */
#back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 999;
  width: 48px; height: 48px; background: var(--accent-1);
  color: white; border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
#back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: #5558e6; box-shadow: 0 8px 24px rgba(99,102,241,0.45); transform: translateY(-2px); }
#back-to-top.visible:hover { transform: translateY(-2px); }
#back-to-top svg { width: 22px; height: 22px; }

/* ═══════════════════ FOOTER ═══════════════════ */
#footer {
  border-top: 1px solid var(--border); padding: 64px 24px 32px;
  background: var(--bg);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand p { color: var(--text-dim); font-size: 0.875rem; line-height: 1.6; margin-top: 16px; max-width: 320px; }
.footer-links-group h4 {
  color: white; font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px;
}
html.light-theme .footer-links-group h4 { color: #0F172A; }
.footer-links-group a {
  display: block; color: var(--text-dim); text-decoration: none;
  font-size: 0.875rem; padding: 6px 0; transition: color 0.3s;
}
.footer-links-group a:hover { color: var(--accent-1); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ═══════════════════ WEB DEMO KEYFRAMES ═══════════════════ */
@keyframes anim-fade {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
@keyframes anim-slide {
  0%, 100% { transform: translateX(-10px); }
  50% { transform: translateX(10px); }
}
@keyframes anim-scale {
  0%, 100% { transform: scale(0.9); }
  50% { transform: scale(1.1); }
}
@keyframes inventory-fill {
  from { width: 0%; }
}

/* ═══════════════════ RESPONSIVE ═══════════════════ */
@media (max-width: 900px) {
  .landing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .module-inner { grid-template-columns: 1fr; gap: 40px; }
  .module-section:nth-child(even) .module-inner { direction: ltr; }
  .doc-extraction { flex-direction: column; }
}

@media (max-width: 600px) {
  .module-section { padding: 60px 16px; }
  .module-inner { gap: 24px; }
}
