/* ═══════════════════════════════════════════════════════
   XTech Consultant — Cinematic Dark Experience
   Not a landing page. An experience.
   ═══════════════════════════════════════════════════════ */

/* ── GPU-ACCELERATED TRANSITIONS REGISTER ───────────── */
@property --ambient-glow {
  syntax: '<color>';
  inherits: true;
  initial-value: rgba(255, 255, 255, 0.02);
}

/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --bg: #F8FAFC; /* Clean off-white slate background */
  --bg-alt: #FFFFFF; /* Pure white containers */
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.85);
  --text: #0F172A; /* Slate Charcoal Text */
  --text-mid: #334155; /* Mid-slate gray */
  --text-dim: #64748B; /* Muted Slate */
  --accent: #2563EB; /* Vibrant Cobalt */
  --sky: #475569; /* Slate Gray */
  --cyan: #2563EB; /* Vibrant Cobalt */
  --emerald: #059669; /* Vibrant Emerald */
  --violet: #4F46E5; /* Dynamic Indigo */
  --amber: #D97706; /* Muted Gold */
  --rose: #DC2626; /* Alert Rose */
  --gradient: linear-gradient(135deg, #2563EB 0%, #4F46E5 50%, #059669 100%);
  --gradient-text: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #2563EB 100%);
  --border: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  --radius: 12px;
  --radius-full: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1100px;
  --pad: clamp(20px, 5vw, 48px);
  --ambient-glow: rgba(37, 99, 235, 0.02);
}

.ambient-glow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.03) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.015) 0%, transparent 50%);
  pointer-events: none;
  z-index: -2;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

/* ── RESET ──────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto !important; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { color: var(--text); font-weight: 600; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ── NOISE OVERLAY ──────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── SCROLL PROGRESS ────────────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient);
  z-index: 100001;
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* ── PAGE OVERLAY ───────────────────────────────────── */
#page-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  opacity: 1;
  transition: opacity 1s var(--ease);
  pointer-events: none;
}
#page-overlay.loaded { opacity: 0; }

/* ── NAVBAR ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 20px 0;
  transition: all 0.5s var(--ease);
}

#navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.logo-svg {
  flex-shrink: 0;
  transition: transform 0.4s var(--ease), filter 0.4s var(--ease);
}

.nav-logo:hover .logo-svg {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all 0.4s var(--ease);
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: #FFFFFF;
  color: #070913;
  border-color: #FFFFFF;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.4s var(--ease);
}

.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px var(--pad) 32px;
  border-bottom: 1px solid var(--border);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s var(--ease);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:hover { color: var(--text); }

.mobile-cta {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 16px 28px !important;
  background: var(--text) !important;
  color: var(--bg) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-full);
  border-bottom: none !important;
}

/* ── HERO ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 100px;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, var(--bg) 85%);
  pointer-events: none;
}

/* Premium ambient light ray */
.hero-light-ray {
  position: absolute;
  top: -20%;
  left: 25%;
  width: 75%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.04) 0%, rgba(99, 102, 241, 0.015) 50%, transparent 80%);
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  max-width: var(--container);
  width: 100%;
  padding: 0 var(--pad);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.hero-centered-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 840px;
  margin-bottom: 48px;
}

.hero-widget-block {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 56px;
  z-index: 10;
}

.hero-proof-block {
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

/* ── AUTOMATION BLUEPRINT WIDGET ─────────────────────── */
/* ── SECTOR DEMO WIDGET ─────────────────────────────── */
.sector-demo {
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  box-shadow:
    0 30px 60px rgba(15, 23, 42, 0.05),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  animation: blueprintFloat 6s ease-in-out infinite;
}

.sd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(248, 250, 252, 0.8);
}

.sd-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-mid);
}

.sd-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  position: relative;
  flex-shrink: 0;
}

.sd-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--emerald);
  animation: pulseDot 1.8s ease-out infinite;
}

.sd-hint {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 500;
  font-style: italic;
}

/* Sector Tabs */
.sd-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.sd-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 6px 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.2s ease;
  position: relative;
}

.sd-tab:hover {
  color: var(--text-mid);
  background: rgba(37, 99, 235, 0.03);
}

.sd-tab.active {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  background: rgba(37, 99, 235, 0.05);
}

.sd-tab-svg {
  width: 16px;
  height: 16px;
}

/* Progress bar on active tab */
.sd-tab.active::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  animation: sdTabProgress 5s linear;
  animation-fill-mode: forwards;
  width: 0;
}

@keyframes sdTabProgress {
  from { width: 0% }
  to   { width: 100% }
}

/* Flow steps */
.sd-flow {
  padding: 14px 16px 8px;
  min-height: 190px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sd-step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(6px);
  animation: sdStepReveal 0.35s ease forwards;
  position: relative;
}

.sd-step + .sd-step {
  margin-top: 12px;
}

/* Connector line between steps */
.sd-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 28px;
  height: calc(100% + 6px);
  width: 1px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), transparent);
}

@keyframes sdStepReveal {
  to { opacity: 1; transform: translateY(0); }
}

.sd-step-num {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.sd-step.sd-step-done .sd-step-num {
  background: var(--cyan);
  border-color: var(--cyan);
  color: white;
}

.sd-step-content { padding-top: 3px; }

.sd-step-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.sd-step-desc {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 2px;
  line-height: 1.45;
}

/* Result badge */
.sd-result {
  margin: 4px 16px 12px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sd-result.visible {
  opacity: 1;
  transform: translateY(0);
}

.sd-result-icon {
  font-size: 14px;
  color: #059669;
  font-weight: 800;
  flex-shrink: 0;
}

.sd-result-metric {
  font-size: 20px;
  font-weight: 800;
  color: #059669;
  line-height: 1;
  flex-shrink: 0;
}

.sd-result-label {
  font-size: 10.5px;
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.3;
}

/* Footer universalidad */
.sd-footer {
  padding: 8px 16px 11px;
  font-size: 9.5px;
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  letter-spacing: 0.01em;
}



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

.blueprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  padding-bottom: 12px;
}

.bp-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
}

.bp-pulse-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
}

.bp-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid #10b981;
  animation: pulseDot 1.6s ease-out infinite;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

.bp-latency {
  font-family: monospace;
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
}

.blueprint-canvas-mockup {
  position: relative;
  height: 240px;
  border: 1px dashed rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.bp-grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 16px 16px;
}

.bp-svg-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.bp-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 2;
  transition: transform 0.4s var(--ease);
}

.bp-node:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.bp-node-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  transition: all 0.4s var(--ease);
}

.bp-node:hover .bp-node-icon {
  border-color: rgba(15, 23, 42, 0.25);
  box-shadow: 0 0 15px rgba(15, 23, 42, 0.1);
}

/* Custom individual nodes visual states */
.node-email .bp-node-icon { border-color: rgba(59, 130, 246, 0.2); color: #3B82F6; }
.node-ai .bp-node-icon { border-color: rgba(99, 102, 241, 0.2); color: #6366F1; }
.node-db .bp-node-icon { border-color: rgba(16, 185, 129, 0.2); color: #10B981; }
.node-whatsapp .bp-node-icon { border-color: rgba(16, 185, 129, 0.2); color: #10B981; }

.bp-node-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.bp-node-status {
  font-size: 8px;
  font-family: monospace;
  font-weight: 600;
}

.text-emerald { color: #10b981; }
.text-sky { color: #3b82f6; }

.bp-metric-chart {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.chart-header {
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.chart-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 2px;
  width: 85%;
  animation: chartBarAnim 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes chartBarAnim {
  from { width: 0%; }
}

.blueprint-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-title {
  font-family: monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.log-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.log-line {
  font-family: monospace;
  font-size: 9px;
  color: var(--text-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--text);
  text-align: center;
  max-width: 900px;
}

.title-line {
  display: inline;
}

.title-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shimmer 5s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-sub {
  font-size: clamp(14.5px, 1.8vw, 16px);
  color: var(--text-mid);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 36px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--text);
  color: var(--bg-alt);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid var(--text);
  font-family: inherit;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: transparent;
  color: var(--text);
  border-color: var(--text);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 15px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  background: transparent;
  color: var(--text-mid);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(15, 23, 42, 0.12);
  font-family: inherit;
  transition: all 0.4s var(--ease);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.25);
  background: rgba(15, 23, 42, 0.03);
  transform: translateY(-2px);
}

/* ── HERO PROOF ─────────────────────────────────────── */
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
  width: 100%;
  max-width: 900px;
  margin: 24px auto 0;
}

.proof-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.proof-number {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proof-suffix {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.proof-label {
  display: block;
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 1px;
}

.proof-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-cue span {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollAnim 2.5s ease-in-out infinite;
}

@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 1; }
}

/* ── REVEAL ANIMATIONS ──────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}

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

/* ── INTERSTITIAL (Cinematic Text) ──────────────────── */
.interstitial {
  padding: clamp(100px, 15vw, 200px) 0;
  position: relative;
}

.interstitial::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--border));
  transform: translateX(-50%);
}

.cinema-text {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cinema-text .word {
  display: inline-block;
  opacity: 0.12;
  transition: opacity 0.5s ease, color 0.5s ease;
  margin-right: 0.25em;
}

.cinema-text .word.lit {
  opacity: 1;
}

.cinema-small {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-mid);
}

.cinema-small .word.lit {
  color: var(--text);
}

.interstitial-accent::before {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15));
}

/* ── SECTIONS ───────────────────────────────────────── */
.section {
  padding: clamp(80px, 12vw, 150px) 0;
  position: relative;
}

.section-dark {
  background: var(--bg-alt);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.text-muted { color: var(--text-mid); }

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

.section-desc {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ── PAIN SECTION ───────────────────────────────────── */
.pain-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 56px;
}

.pain-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.pain-row:first-child { border-top: 1px solid var(--border); }

.pain-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.pain-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  padding-top: 4px;
}

.pain-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}

.pain-body p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 500px;
}

.pain-stat {
  text-align: right;
  min-width: 120px;
}

.pain-big {
  display: block;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.pain-unit {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pain-caption {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  font-weight: 500;
}

/* ── SOLUTION ───────────────────────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.sol-card {
  padding: 32px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all 0.5s var(--ease);
  position: relative;
  overflow: hidden;
}

.sol-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.sol-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  background: var(--bg-card-hover);
}

.sol-card:hover::after { opacity: 1; }

.sol-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-bottom: 18px;
}

.sol-icon-1 { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-mid); }
.sol-icon-2 { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-mid); }
.sol-icon-3 { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-mid); }

.sol-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sol-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
  display: block;
}

.sol-card > p:last-of-type {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* Result bar */
.result-bar {
  display: flex;
  justify-content: space-between;
  padding: 28px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.result-item { text-align: center; flex: 1; }

.result-num {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.result-suf {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-mid);
}

.result-lbl {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* ── SERVICES ───────────────────────────────────────── */
.services-list {
  margin-top: 56px;
}

.service-row {
  display: block;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
  padding: 0;
}

.service-row:first-child { border-top: 1px solid var(--border); }

.service-row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.service-row-main {
  display: grid;
  grid-template-columns: 56px 1.2fr 1fr 40px;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  cursor: pointer;
  position: relative;
}

.service-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.service-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.service-info p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.65;
}

.service-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.pill-sky { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-mid); }
.pill-emerald { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-mid); }
.pill-violet { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-mid); }
.pill-rose { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-mid); }
.pill-amber { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.05); color: var(--text-mid); }

.service-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: transform 0.4s var(--ease), color 0.3s ease;
}

.service-row.open .service-toggle-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.service-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s var(--ease), opacity 0.4s ease;
  will-change: max-height, opacity;
}

.service-row.open .service-detail {
  opacity: 1;
}

.service-detail-inner {
  padding: 0 0 32px 56px;
}

.sd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
}

.sd-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sd-card h5 {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.sd-card p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 0;
}

.sd-card p strong {
  color: var(--text);
}

.sd-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.sd-val.text-sky { color: var(--sky); }
.sd-val.text-emerald { color: var(--emerald); }
.sd-val.text-violet { color: var(--violet); }
.sd-val.text-rose { color: var(--rose); }
.sd-val.text-amber { color: var(--amber); }

/* ── PROJECTS ───────────────────────────────────────── */
.projects-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.project {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--bg-card);
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.project::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
}

.project:hover::before { opacity: 0.4; }

.project-header { margin-bottom: 14px; }

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.project-tag {
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
}

.tag-emerald { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); color: #065f46; }
.tag-cyan { background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(59, 130, 246, 0.2); color: #1e40af; }
.tag-amber { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.2); color: #92400e; }
.tag-violet { background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.2); color: #3730a3; }

.project-status {
  font-size: 10px;
  color: var(--emerald);
  font-weight: 600;
}

.project-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.project-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.project-result {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project-big {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-what {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-stack span {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.05);
  color: var(--text-dim);
  border-radius: var(--radius-full);
}

/* Project enter button */
.project-enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  color: var(--text-mid);
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.project-enter:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════
   PROJECT MODAL — Immersive Full-Screen Experience
   ═══════════════════════════════════════════════════════ */
.pm {
  position: fixed;
  inset: 0;
  z-index: 50000;
  pointer-events: none;
  visibility: hidden;
}

.pm.open {
  pointer-events: all;
  visibility: visible;
}

.pm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.pm.open .pm-backdrop { opacity: 1; }

.pm-container {
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--bg);
  overflow: hidden;
}

.pm.open .pm-container {
  transform: translateY(0);
}

.pm-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 50001;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  opacity: 0;
  transform: scale(0.8) rotate(-90deg);
  transition: all 0.5s var(--ease);
  transition-delay: 0.3s;
}

.pm.open .pm-close {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.pm-close:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.pm-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Modal Hero */
.pm-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px var(--pad) 60px;
}

#pm-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pm-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.pm-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 700px;
}

.pm-tag {
  display: inline-flex;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease);
  transition-delay: 0.3s;
}

.pm.open .pm-tag {
  opacity: 1;
  transform: translateY(0);
}

.pm-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s var(--ease);
  transition-delay: 0.4s;
}

.pm.open .pm-title {
  opacity: 1;
  transform: translateY(0);
}

.pm-subtitle {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease);
  transition-delay: 0.5s;
}

.pm.open .pm-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.pm-hero-stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.7s var(--ease);
  transition-delay: 0.6s;
}

.pm.open .pm-hero-stat {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pm-big {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.pm-what {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Modal Body */
.pm-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 var(--pad) 100px;
}

.pm-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.pm-section:last-child { border-bottom: none; }

.pm-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.pm-section-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 14px;
}

.pm-section-text {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* Modal Steps */
.pm-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pm-step-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: all 0.4s var(--ease);
}

.pm-step-card:hover {
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.pm-step-num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.pm-step-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.pm-step-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* Modal Metrics */
.pm-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.pm-metric {
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-align: center;
  transition: all 0.4s var(--ease);
}

.pm-metric:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.pm-metric-val {
  display: block;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.pm-metric-label {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

/* Modal Tech */
.pm-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--bg-card);
  transition: all 0.3s var(--ease);
}

.pm-tech-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* Modal CTA */
.pm-cta-section {
  text-align: center;
  padding: 64px 0 !important;
  border-bottom: none !important;
}

.pm-cta-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.pm-cta-desc {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 28px;
  line-height: 1.7;
}

.pm-cta-btn {
  display: inline-flex !important;
}

/* Body lock when modal open */
body.modal-open {
  overflow: hidden;
}

/* ── PROCESS TIMELINE ───────────────────────────────── */
.process-timeline {
  margin-top: 56px;
  max-width: 650px;
}

.process-step {
  display: flex;
  gap: 28px;
  margin-bottom: 48px;
  position: relative;
}

.process-step:last-child { margin-bottom: 0; }

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.step-n {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.step-line {
  width: 1px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
  margin-top: 8px;
}

.step-content {
  padding-top: 4px;
}

.step-time {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.step-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
}

/* ── DIFFERENTIATORS TABLE ──────────────────────────── */
.diff-table {
  margin-top: 56px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.diff-header {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.diff-us {
  color: var(--accent) !important;
}

.diff-row {
  display: grid;
  grid-template-columns: 140px 1fr 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.diff-row:hover { background: rgba(255, 255, 255, 0.015); }

.diff-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  padding-top: 1px;
}

.diff-them {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: rgba(251, 113, 133, 0.3);
}

.diff-ours {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

/* ── TESTIMONIALS ───────────────────────────────────── */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.testimonial {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  background: var(--bg-card);
  transition: all 0.5s var(--ease);
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 56px;
  font-weight: 900;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.2;
}

.testimonial:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.testi-text {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 24px;
  margin-top: 20px;
  font-style: normal;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.av-1 { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-mid); }
.av-2 { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-mid); }
.av-3 { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-mid); }

.testi-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
}

.testi-role {
  display: block;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ── FAQ ────────────────────────────────────────────── */
.faq-list {
  max-width: 680px;
  margin: 56px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  transition: color 0.3s ease;
}

.faq-item summary::-webkit-details-marker,
.faq-item summary::marker { display: none; content: ''; }

.faq-item summary:hover { color: var(--accent); }

.faq-plus {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-plus span {
  position: absolute;
  background: var(--text-mid);
  border-radius: 1px;
  transition: all 0.4s var(--ease);
}

.faq-plus span:first-child {
  top: 50%;
  left: 3px;
  width: 12px;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-plus span:last-child {
  left: 50%;
  top: 3px;
  width: 1.5px;
  height: 12px;
  transform: translateX(-50%);
}

.faq-item[open] .faq-plus span:last-child {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  padding-bottom: 22px;
  animation: faqSlide 0.4s var(--ease);
}

.faq-answer p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 580px;
}

@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── FINAL CTA ──────────────────────────────────────── */
/* ── FINAL CTA & BOOKING SYSTEM ───────────────────────── */
.section-cta-final {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 100px 0;
}

#cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.booking-left {
  text-align: left;
}

.booking-left .section-label {
  margin-bottom: 12px;
}

.booking-left .cta-title {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.booking-left .cta-desc {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 32px;
  line-height: 1.75;
}

.booking-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.booking-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.booking-features .bf-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.booking-features .bf-content strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.booking-features .bf-content p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

.booking-trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-mid);
  border-radius: 100px;
}

/* Booking Card (Right Side) */
.booking-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.booking-card:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.booking-progress {
  height: 4px;
  background: var(--border);
  width: 100%;
}

.bp-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  width: 33%;
  transition: width 0.4s var(--ease);
}

.booking-step {
  padding: 32px;
  display: none;
}

.booking-step.active {
  display: block;
  animation: stepFadeIn 0.4s var(--ease);
}

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

.booking-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.booking-step-desc {
  font-size: 13px;
  color: var(--text-mid);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Step 1: Calendar */
.booking-calendar-wrapper {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg);
  margin-bottom: 20px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}

.calendar-nav-btn {
  background: none;
  border: none;
  color: var(--text-mid);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.calendar-nav-btn:hover:not(:disabled) {
  background: var(--border);
  color: var(--text);
}

.calendar-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.calendar-spacer {
  aspect-ratio: 1;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.calendar-day:hover:not(.disabled) {
  background: var(--border);
  color: var(--text);
}

.calendar-day.disabled {
  color: var(--text-dim);
  opacity: 0.25;
  cursor: not-allowed;
}

.calendar-day.today {
  border: 1.5px solid var(--cyan);
  font-weight: 700;
}

.calendar-day.selected {
  background: var(--cyan) !important;
  color: white !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Slots Grid */
.booking-slots-container {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg);
  margin-bottom: 20px;
  animation: slotFadeIn 0.3s var(--ease);
}

@keyframes slotFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.slots-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.slot-btn {
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
}

.slot-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(37, 99, 235, 0.02);
}

.slot-btn.selected {
  background: var(--cyan);
  border-color: var(--cyan);
  color: white;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

/* Slot ocupado — bloqueado */
.slot-btn.slot-booked {
  opacity: 0.38;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border);
  color: var(--text-faint);
  pointer-events: none;
  font-style: italic;
}

/* Skeleton loader mientras consulta Supabase */
.slot-skeleton {
  padding: 10px 14px;
  border-radius: 8px;
  height: 40px;
  background: linear-gradient(90deg, var(--bg-card) 25%, rgba(148,163,184,0.1) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: slot-shimmer 1.2s infinite ease-in-out;
  border: 1px solid var(--border);
}

@keyframes slot-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Form Styles */
.booking-form-element {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.booking-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.booking-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.booking-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  font-family: inherit;
  transition: all 0.2s var(--ease);
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
  background: var(--bg-card);
}

.booking-field textarea {
  resize: vertical;
}

.booking-actions {
  margin-top: 12px;
}

.booking-actions.multi-actions {
  display: grid;
  grid-template-columns: 0.3fr 0.7fr;
  gap: 12px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-flex {
  width: 100%;
  justify-content: center;
}

.btn-primary.disabled, 
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Success step */
.booking-success-wrapper {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.success-checkmark {
  animation: checkRotate 0.5s var(--ease) forwards;
}

@keyframes checkRotate {
  from { transform: scale(0.6) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.success-details-card {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 24px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.success-details-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
}

/* ── RESPONSIVENESS FOR BOOKING ──────────────────────── */
@media (max-width: 1024px) {
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .booking-left {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
  }

  .booking-left .cta-desc {
    margin-bottom: 24px;
  }

  .booking-features {
    align-items: center;
    margin-bottom: 28px;
  }

  .booking-features li {
    text-align: left;
    max-width: 480px;
  }

  .booking-trust-badges {
    justify-content: center;
  }

  .booking-card {
    max-width: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 580px) {
  .booking-step {
    padding: 20px;
  }

  .booking-field-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .calendar-weekdays {
    font-size: 10px;
  }

  .calendar-day {
    font-size: 12px;
  }

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

/* ── FOOTER ─────────────────────────────────────────── */
#footer {
  padding: 56px 0 28px;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 48px;
}

.footer-cols h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mid);
  margin-bottom: 12px;
}

.footer-cols li { margin-bottom: 6px; }

.footer-cols a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 11px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .testimonials,
  .solution-grid { grid-template-columns: 1fr 1fr; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-left {
    align-items: center;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-proof {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor { display: none; }
  a, button { cursor: auto; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  .pain-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pain-num { display: none; }
  .pain-stat {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .pain-big { font-size: 28px; }

  .solution-grid,
  .projects-showcase,
  .testimonials {
    grid-template-columns: 1fr;
  }

  .service-row-main {
    grid-template-columns: 1fr 40px;
    gap: 16px;
    padding: 24px 0;
  }
  .service-num,
  .service-pills {
    display: none;
  }
  .service-detail-inner {
    padding: 0 0 24px 0;
  }
  .sd-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .diff-header,
  .diff-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .diff-header span:first-child,
  .diff-label { display: none; }

  .result-bar {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  #hero {
    padding: 110px 0 60px;
  }

  .hero-proof {
    gap: 20px;
    justify-content: center;
  }
  .proof-sep { display: none; }

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

  .hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .automation-blueprint {
    padding: 16px;
    gap: 16px;
  }

  .blueprint-canvas-mockup {
    height: 200px;
  }

  .footer-top {
    flex-direction: column;
  }
  .footer-cols {
    flex-wrap: wrap;
    gap: 32px;
  }

  /* Modal responsive */
  .pm-close {
    top: 12px;
    right: 12px;
    cursor: auto;
  }
  .pm-hero { min-height: 60vh; }
  .pm-metrics { grid-template-columns: 1fr; }
  .project-enter { cursor: auto; }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.4rem;
  }
}

/* ═══════════════════════════════════════════════════════
   COOKIE CONSENT BANNER & LEGAL MODAL
   ═══════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  padding: 20px 24px;
  z-index: 99990;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: translateY(120px) translate3d(0,0,0);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s var(--ease), opacity 0.6s ease;
  will-change: transform, opacity;
}

.cookie-banner.show {
  transform: translateY(0) translate3d(0,0,0);
  opacity: 1;
  pointer-events: all;
}

.cb-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cb-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cb-text {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
}

.cb-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cb-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cb {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  font-family: inherit;
  transition: all 0.3s var(--ease);
}

.btn-cb-primary {
  background: var(--text);
  color: var(--bg);
  border: none;
}

.btn-cb-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.btn-cb-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cb-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Legal Modal Specifics */
.legal-modal .pm-container {
  max-width: 800px;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  padding: 32px 32px 16px;
  border-bottom: 1px solid var(--border);
}

.legal-title-area {
  margin-bottom: 16px;
}

.legal-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.legal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
}

.legal-tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  font-family: inherit;
  position: relative;
  transition: color 0.3s ease;
}

.legal-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.legal-tab-btn.active {
  color: var(--text);
}

.legal-tab-btn.active::after {
  transform: scaleX(1);
}

.legal-body {
  padding: 32px;
}

.legal-tab-content {
  display: none;
}

.legal-tab-content.active {
  display: block;
  animation: legalFade 0.4s var(--ease);
}

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

.legal-tab-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.legal-intro {
  font-size: 13.5px;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.legal-tab-content h4 {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 10px;
}

.legal-tab-content p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.legal-card {
  padding: 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-card strong {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.legal-card span {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.legal-card p {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
  margin: 4px 0 0;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-list-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.li-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-list-item h5 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.legal-list-item p {
  font-size: 12.5px;
  color: var(--text-mid);
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.footer-legal-links a {
  font-size: 11px;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   ROI CALCULATOR STYLES
   ═══════════════════════════════════════════════════════ */
.roi-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-top: 56px;
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.roi-control {
  display: flex;
  flex-direction: column;
}

.roi-control-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.roi-control-header label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.roi-val-display {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  font-family: inherit;
}

.roi-control-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Custom Range Input */
.roi-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.08);
  outline: none;
  transition: background 0.3s ease;
}

.roi-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s var(--ease), background-color 0.2s ease;
}

.roi-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent);
}

.roi-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s var(--ease);
}

.roi-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: var(--accent);
}

.roi-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.roi-slider-labels span {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 500;
}

/* Results Card */
.roi-results-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(15, 23, 42, 0.02);
}

.roi-card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.01) 0%, transparent 70%);
  pointer-events: none;
}

.roi-result-item-big {
  margin-bottom: 24px;
}

.roi-res-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.roi-res-val-group {
  display: flex;
  align-items: baseline;
}

.roi-res-val {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.roi-res-unit {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-left: 2px;
}

.roi-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  margin-bottom: 24px;
}

.roi-sub-result {
  display: flex;
  flex-direction: column;
}

.roi-sub-lbl {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.roi-sub-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.roi-sub-val.text-emerald {
  color: var(--emerald);
}

.roi-cta-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.roi-cta-box p {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   LUXURY AESTHETIC ENHANCEMENTS — Linear/Vercel Style
   ═══════════════════════════════════════════════════════ */

/* Elegant dotted mesh grid background */
.grid-mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

/* Elegant micro progress and stat bar elements */
.stat-bar {
  width: 100%;
  height: 2px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-full);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.stat-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.85));
  border-radius: var(--radius-full);
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: width;
}

/* Animate stats reveal in viewport */
.visible .stat-bar-fill {
  width: var(--w) !important;
}

/* Additional styling for pain row bars */
.pain-bar {
  height: 3px;
  background: rgba(15, 23, 42, 0.05);
}

.pain-bar .stat-bar-fill {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.3), rgba(15, 23, 42, 0.95));
}

/* Visual Node Connections */
.visual-node-net {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  width: 100%;
  max-width: 140px;
}

.visual-node-net .node {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  display: inline-block;
  flex-shrink: 0;
}

.visual-node-net .node.active {
  background: var(--text);
  box-shadow: 0 0 8px rgba(15, 23, 42, 0.2);
}

.visual-node-net .node.warning {
  background: var(--rose);
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
  animation: nodePulse 2s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.visual-node-net .line {
  flex-grow: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.visual-node-net .line.disconnected {
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 2px, transparent 2px, transparent 4px);
}

/* Visual Scale Lane */
.visual-scale {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 140px;
  margin-top: 12px;
}

.visual-scale .scale-lane {
  height: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.visual-scale .scale-lane::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  border-radius: var(--radius-full);
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.visible .visual-scale .scale-lane::before {
  width: var(--w) !important;
}

.scale-lane.competitor::before {
  background: var(--text-dim);
}

.scale-lane.ours::before {
  background: linear-gradient(90deg, var(--cyan), var(--text));
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Card glassmorphic hover enhancements */
.sol-card, .project, .testimonial {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.025);
}

.sol-card:hover, .project:hover, .testimonial:hover {
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.16) !important;
}

/* Glassmorphic Navigation bar enhancements */
#navbar.scrolled {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04);
}

/* ═══════════════════════════════════════════════════════
   ADDITIONAL RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .roi-container {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 16px 20px;
  }
  
  .legal-modal .pm-container {
    height: 90vh;
  }
  
  .legal-header {
    padding: 24px 20px 12px;
  }
  
  .legal-body {
    padding: 20px;
  }
  
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

/* ── PREFERS REDUCED MOTION ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg);
  transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.25);
}

.pm-scroll::-webkit-scrollbar {
  width: 6px;
}
.pm-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.02);
}
.pm-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(15, 23, 42, 0.02);
}

/* Premium Card hover glowing shadows */
.project[data-project="clinicnova"]:hover {
  box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3) !important;
}
.project[data-project="kontai"]:hover {
  box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3) !important;
}
.project[data-project="4stancias"]:hover {
  box-shadow: 0 20px 40px -15px rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3) !important;
}
.project[data-project="staysync"]:hover {
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3) !important;
}

.sol-card:nth-child(1):hover {
  box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2) !important;
}
.sol-card:nth-child(2):hover {
  box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2) !important;
}
.sol-card:nth-child(3):hover {
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2) !important;
}

.testimonial:nth-child(1):hover {
  box-shadow: 0 20px 40px -15px rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2) !important;
}
.testimonial:nth-child(2):hover {
  box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2) !important;
}
.testimonial:nth-child(3):hover {
  box-shadow: 0 20px 40px -15px rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2) !important;
}

/* ═══════════════════════════════════════════════════════
   INTERACTIVE AUTOMATION SIMULATOR
   ═══════════════════════════════════════════════════════ */

.sim-wrapper {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 28px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.sim-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.04), transparent 70%);
  pointer-events: none;
}

/* Header */
.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.sim-live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--emerald);
  text-transform: uppercase;
}

.sim-live-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.sim-live-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--emerald);
  animation: simPulse 2s ease-out infinite;
}

@keyframes simPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.8); opacity: 0; }
}

.sim-replay-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 6px 14px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-replay-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.15);
}

/* Sector tabs */
.sim-sectors {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.03);
  border-radius: 12px;
  position: relative;
  z-index: 2;
}

.sim-sector {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.sim-sector.active {
  background: white;
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.sim-sector:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-mid);
}

.sim-sector svg { flex-shrink: 0; }

/* Flow title */
.sim-flow-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s var(--ease);
  position: relative;
  z-index: 2;
}

.sim-flow-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Pipeline */
.sim-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 16px 0 24px;
  min-height: 140px;
  position: relative;
  z-index: 2;
}

/* Nodes */
.sim-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: scale(0.5) translateY(16px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
  min-width: 80px;
}

.sim-node.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.sim-node-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: white;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: all 0.5s var(--ease);
  position: relative;
}

.sim-node.active .sim-node-icon {
  border-color: var(--node-color, rgba(37, 99, 235, 0.3));
  box-shadow: 0 4px 24px var(--node-glow, rgba(37, 99, 235, 0.1));
}

.sim-node.processing .sim-node-icon {
  animation: simNodeProcess 0.6s ease infinite alternate;
}

@keyframes simNodeProcess {
  from { box-shadow: 0 4px 20px var(--node-glow, rgba(37, 99, 235, 0.1)); transform: scale(1); }
  to { box-shadow: 0 4px 36px var(--node-glow, rgba(37, 99, 235, 0.2)); transform: scale(1.05); }
}

.sim-node-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.sim-node-detail {
  font-size: 10.5px;
  color: var(--text-dim);
  text-align: center;
  max-width: 90px;
  line-height: 1.35;
}

/* Connectors */
.sim-connector {
  width: 48px;
  display: flex;
  align-items: center;
  z-index: 1;
  margin-top: 22px;
  flex-shrink: 0;
}

.sim-connector-line {
  width: 100%;
  height: 2px;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.sim-connector.active .sim-connector-line {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(5, 150, 105, 0.15));
}

.sim-connector.active .sim-connector-line::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -16px;
  width: 16px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--emerald), transparent);
  box-shadow: 0 0 12px var(--accent);
  animation: simParticleH 1.2s ease-in-out infinite;
}

@keyframes simParticleH {
  0% { left: -16px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% + 16px); opacity: 0; }
}

/* Status bar */
.sim-status-bar {
  margin: 8px 0 20px;
  position: relative;
  z-index: 2;
}

.sim-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

.sim-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--emerald));
  border-radius: 2px;
  transition: width 0.6s var(--ease);
}

.sim-status-text {
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-weight: 500;
  min-height: 18px;
  letter-spacing: -0.01em;
}

/* Comparison */
.sim-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s var(--ease);
  position: relative;
  z-index: 2;
}

.sim-comparison.visible {
  opacity: 1;
  transform: translateY(0);
}

.sim-col {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  padding: 16px 20px;
}

.sim-col-before {
  border: 1px solid rgba(220, 38, 38, 0.12);
}

.sim-col-after {
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.sim-col-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.sim-compare-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.sim-col-before .sim-compare-label { color: var(--rose); }
.sim-col-after .sim-compare-label { color: var(--emerald); }

.sim-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
}

.sim-metric-row + .sim-metric-row {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.sim-metric-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.sim-col-after .sim-metric-val {
  color: var(--emerald);
}

.sim-metric-desc {
  font-size: 11px;
  color: var(--text-dim);
  text-align: right;
  font-weight: 500;
}

/* Bottom CTA */
.sim-bottom-cta {
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s var(--ease);
  position: relative;
  z-index: 2;
  padding-top: 4px;
}

.sim-bottom-cta.visible {
  opacity: 1;
  transform: translateY(0);
}

.sim-bottom-cta p {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.sim-bottom-cta strong {
  color: var(--emerald);
  font-weight: 700;
}

/* ── SIMULATOR RESPONSIVE ─────────────────────────── */
@media (max-width: 768px) {
  .sim-wrapper { padding: 20px 16px; }
  .sim-sectors { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .sim-sector { padding: 8px 12px; font-size: 12px; min-width: 0; }
  .sim-sector span { display: none; }
  .sim-sector svg { width: 20px; height: 20px; }
  .sim-sector.active span { display: inline; }

  .sim-pipeline {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .sim-connector {
    width: 2px;
    height: 32px;
    margin-top: 0;
    flex-direction: column;
  }

  .sim-connector-line {
    width: 2px;
    height: 100%;
  }

  .sim-connector.active .sim-connector-line::after {
    top: -12px;
    left: -3px;
    width: 8px;
    height: 12px;
    animation-name: simParticleV;
  }

  @keyframes simParticleV {
    0% { top: -12px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% + 12px); opacity: 0; }
  }

  .sim-node { min-width: auto; }
  .sim-node-icon { width: 52px; height: 52px; font-size: 22px; }

  .sim-comparison {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sim-col-vs {
    padding: 2px 0;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .sim-flow-title { font-size: 15px; }
  .sim-node-label { font-size: 11px; }
  .sim-node-detail { font-size: 10px; }
  .sim-metric-val { font-size: 15px; }
}
