/* ============================================
   SCAN3D — Design System 2026
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #18181b;
  --color-text-secondary: #52525b;
  --color-text-tertiary: #a1a1aa;
  --color-accent: #059669;
  --color-accent-hover: #047857;
  --color-accent-light: #d1fae5;
  --color-accent-subtle: rgba(5, 150, 105, 0.06);
  --color-border: #e4e4e7;
  --color-border-subtle: rgba(228, 228, 231, 0.5);
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-2xl: 2.5rem;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 20px 40px -15px rgba(0,0,0,0.1);
  --shadow-nav: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 60px rgba(5, 150, 105, 0.12);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

body {
  font-family: 'Satoshi', system-ui, -apple-system, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
}

/* --- Grain Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' 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: 256px 256px;
}

/* --- Glassmorphism Navigation --- */
.nav-glass {
  background: rgba(250, 250, 250, 0.7);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid rgba(228, 228, 231, 0.4);
  transition: var(--transition-fast);
}

.nav-glass.scrolled {
  background: rgba(250, 250, 250, 0.92);
  box-shadow: var(--shadow-nav);
}

/* --- Gradient Mesh Backgrounds --- */
.mesh-hero {
  position: relative;
}

.mesh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 45%, rgba(5, 150, 105, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 25%, rgba(16, 185, 129, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 90%, rgba(5, 150, 105, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.mesh-accent {
  background:
    radial-gradient(ellipse 50% 50% at 20% 50%, rgba(5, 150, 105, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 80% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
}

/* --- Dot Grid Pattern --- */
.dot-grid {
  background-image: radial-gradient(circle, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- Card System --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-2xl);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-card);
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: rgba(5, 150, 105, 0.15);
}

.card-flat {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  transition: var(--transition-fast);
}

.card-flat:hover {
  border-color: var(--color-accent);
}

/* --- Glass Card --- */
.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-card);
  border-radius: var(--radius-2xl);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-primary:active {
  transform: scale(0.98) translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 9999px;
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--color-text);
  background: var(--color-text);
  color: #fff;
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-ghost:hover {
  color: var(--color-text);
  background: rgba(0,0,0,0.04);
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
}

.badge-accent {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

.badge-available {
  background: rgba(5, 150, 105, 0.08);
  color: #059669;
}

.badge-available::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #059669;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* --- Scanner Product Image Placeholder --- */
.scanner-visual {
  background: linear-gradient(135deg, #18181b 0%, #27272a 50%, #3f3f46 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.scanner-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(5, 150, 105, 0.15), transparent 60%);
  pointer-events: none;
}

/* --- Section Dividers --- */
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  will-change: transform, opacity;
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  will-change: transform, opacity;
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  will-change: transform, opacity;
}

/* --- Text Split Animation --- */
.split-line {
  overflow: hidden;
  display: block;
}

.split-line-inner {
  display: block;
  transform: translateY(105%);
  will-change: transform;
}

/* --- Counter --- */
.counter {
  font-variant-numeric: tabular-nums;
}

/* --- Availability Calendar Indicator --- */
.cal-available { background: var(--color-accent-light); color: var(--color-accent); }
.cal-booked { background: #fecaca; color: #dc2626; }

/* --- Stepper --- */
.step-indicator {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.step-indicator.active {
  background: var(--color-accent);
  color: #fff;
}

.step-indicator.completed {
  background: var(--color-accent);
  color: #fff;
}

.step-indicator.pending {
  background: #f4f4f5;
  color: #a1a1aa;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: #e4e4e7;
  transition: var(--transition-fast);
}

.step-connector.active {
  background: var(--color-accent);
}

/* --- Form Inputs --- */
.input-field {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: var(--transition-fast);
  outline: none;
}

.input-field:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.input-field::placeholder {
  color: var(--color-text-tertiary);
}

/* --- Range Slider --- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e4e4e7;
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(0.95);
}

/* --- Checkbox Custom --- */
.checkbox-custom {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--color-border);
  border-radius: 0.375rem;
  cursor: pointer;
  transition: var(--transition-fast);
  accent-color: var(--color-accent);
}

.checkbox-custom:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* --- Comparison Table --- */
.comparison-table th {
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 10;
}

.comparison-highlight {
  position: relative;
}

.comparison-highlight::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--color-border-subtle);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
}

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

.faq-trigger svg {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-trigger[aria-expanded="true"] svg {
  transform: rotate(45deg);
}

.faq-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content.open {
  max-height: 500px;
}

.faq-content-inner {
  padding-bottom: 1.5rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Sticky CTA Bar (Product pages) --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--color-border-subtle);
  padding: 1rem 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cta.visible {
  transform: translateY(0);
}

/* --- Keyframes --- */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

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

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Floating Badges (Hero) --- */
.float-badge {
  animation: float 4s ease-in-out infinite;
}

.float-badge:nth-child(2) {
  animation-delay: -1.5s;
}

.float-badge:nth-child(3) {
  animation-delay: -3s;
}

/* --- Loading Skeleton --- */
.skeleton {
  background: linear-gradient(90deg, #f4f4f5 25%, #e4e4e7 50%, #f4f4f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

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

.mobile-menu a {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--color-accent);
  padding-left: 1rem;
}

/* --- Marquee --- */
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .card:hover {
    transform: none;
  }

  .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* ============================================
   ENHANCED VISUALS — 2026 Upgrade
   ============================================ */

/* --- Hero 3D Container (legacy) --- */
.hero-3d-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0f0d 0%, #0d1a15 50%, #071210 100%);
  box-shadow: 0 25px 80px -20px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.08);
}
.hero-3d-container canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
.hero-3d-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}
.hero-3d-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse-dot 2s infinite;
}

/* --- Hero BIM Transition Container --- */
.hero-bim-container {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  border-radius: 2rem;
  overflow: hidden;
  background: #09090b;
  box-shadow:
    0 25px 80px -20px rgba(6, 182, 212, 0.12),
    0 0 0 1px rgba(6, 182, 212, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hero-bim-container canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Status label — bottom left */
.hero-bim-label {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(6, 182, 212, 0.12);
  border-radius: 999px;
  color: rgba(6, 182, 212, 0.8);
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-bim-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06b6d4;
  animation: pulse-dot 1.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(6, 182, 212, 0.5);
}
.hero-bim-sep {
  color: rgba(255, 255, 255, 0.15);
  font-weight: 300;
}

/* Mode badges — corners */
.hero-bim-badge-real,
.hero-bim-badge-bim {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-bim-badge-real {
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
}
.hero-bim-badge-bim {
  top: 1rem;
  left: 1rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: rgba(6, 182, 212, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-bim-container {
    min-height: 300px;
    border-radius: 1.25rem;
  }
}

/* --- Dark Visual Sections --- */
.section-dark {
  background: linear-gradient(180deg, #09090b 0%, #0c1410 50%, #09090b 100%);
  color: #fafafa;
  position: relative;
  overflow: hidden;
}
.section-dark .particles-bg canvas {
  opacity: 0.6;
}
.section-dark-accent {
  background: linear-gradient(135deg, #022c22 0%, #064e3b 30%, #065f46 60%, #022c22 100%);
  color: #fafafa;
  position: relative;
  overflow: hidden;
}

/* --- Gradient Backgrounds --- */
.bg-gradient-dark {
  background: linear-gradient(180deg, #18181b 0%, #09090b 100%);
}
.bg-gradient-mesh-dark {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, #09090b 0%, #0a0f0d 100%);
}

/* --- Scanner Image Cards --- */
.scanner-img-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #18181b 0%, #0d1a15 100%);
  aspect-ratio: 4/3;
}
.scanner-img-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}
.scanner-img-card:hover img {
  transform: scale(1.08) translateY(-4px);
}
.scanner-img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

/* --- 3D Scanner Viewer Container (legacy Three.js) --- */
.scanner-3d-viewer {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #0a0f0d 0%, #0d1a15 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  cursor: grab;
}
.scanner-3d-viewer:active {
  cursor: grabbing;
}

/* --- Scanner Product Photo Showcase --- */
.scanner-showcase {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #f0f0f2 0%, #e8e8ec 40%, #f0f0f2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}
.scanner-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.scanner-showcase::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.04) 100%);
  pointer-events: none;
  z-index: 1;
}
.scanner-showcase-inner {
  position: relative;
  z-index: 2;
  width: 70%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  animation: scanner-float 6s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.scanner-showcase-inner img {
  max-width: 100%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 0.75rem;
  transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.scanner-showcase:hover .scanner-showcase-inner {
  animation-play-state: paused;
}
.scanner-showcase:hover .scanner-showcase-inner img {
  transform: scale(1.03);
}

/* Subtle reflection */
.scanner-showcase .reflection {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleY(-1);
  width: 70%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0.12;
  mask-image: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 35%);
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}
.scanner-showcase .reflection img {
  max-width: 100%;
  max-height: 85%;
  object-fit: contain;
  border-radius: 0.75rem;
}

@keyframes scanner-float {
  0%, 100% {
    transform: rotateY(-8deg) rotateX(2deg) translateY(0);
  }
  25% {
    transform: rotateY(4deg) rotateX(-1deg) translateY(-4px);
  }
  50% {
    transform: rotateY(8deg) rotateX(2deg) translateY(0);
  }
  75% {
    transform: rotateY(-4deg) rotateX(-1deg) translateY(4px);
  }
}

/* Scanner showcase in cards (homepage) */
.card-scanner .scanner-showcase {
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
}

/* Scanner showcase large (product pages) */
.scanner-showcase-lg {
  aspect-ratio: 4/3;
  min-height: 350px;
}

/* Dot ring subtle decoration */
.scanner-showcase .dot-ring {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 1px dashed rgba(0,0,0,0.04);
  border-radius: 50%;
  top: 10%;
  left: 10%;
  pointer-events: none;
  z-index: 0;
  animation: dot-ring-spin 30s linear infinite;
}
@keyframes dot-ring-spin {
  to { transform: rotate(360deg); }
}

/* --- Visual Imagery Sections --- */
.img-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-reveal.revealed {
  clip-path: inset(0 0 0 0);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.visual-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.visual-grid img:hover {
  transform: scale(1.05);
}

/* --- Scan Line Animation --- */
.scan-line-effect {
  position: relative;
  overflow: hidden;
}
.scan-line-effect::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #10b981 30%, #6ee7b7 50%, #10b981 70%, transparent 100%);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4), 0 0 60px rgba(16, 185, 129, 0.15);
  animation: scan-sweep 4s ease-in-out infinite;
  z-index: 5;
  pointer-events: none;
}
@keyframes scan-sweep {
  0%, 100% { top: -2px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* --- Glow Effects --- */
.glow-accent {
  position: relative;
}
.glow-accent::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: float 8s ease-in-out infinite;
}
.glow-orb-emerald {
  background: rgba(16, 185, 129, 0.15);
}
.glow-orb-cyan {
  background: rgba(6, 182, 212, 0.1);
}

/* --- Use Case Image Cards --- */
.usecase-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.usecase-card:hover {
  transform: translateY(-4px);
}
.usecase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.usecase-card:hover img {
  transform: scale(1.06);
}
.usecase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}
.usecase-card > * {
  position: relative;
  z-index: 2;
}

/* --- Media Background (full section with video/image bg) --- */
.media-bg {
  position: relative;
  overflow: hidden;
}
.media-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.media-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.85) 0%, rgba(9, 9, 11, 0.95) 100%);
  z-index: 1;
}
.media-bg > .relative {
  position: relative;
  z-index: 2;
}

/* --- Enhanced Scanner Cards with Imagery --- */
.card-scanner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f4f4f5 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}
.card-scanner:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateY(-4px);
}
.card-scanner .scanner-3d-viewer {
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
}

/* --- Stats/Numbers with visual flair --- */
.stat-card-dark {
  background: linear-gradient(135deg, #18181b 0%, #27272a 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-card-dark::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Image Showcase for BIM/Point Cloud Examples --- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.showcase-grid .showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
  background: #18181b;
}
.showcase-grid .showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.showcase-grid .showcase-item:hover img {
  transform: scale(1.08);
}
.showcase-grid .showcase-item .label {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Particles Background Container --- */
.particles-bg {
  position: relative;
  overflow: hidden;
}
.particles-bg > *:not(canvas) {
  position: relative;
  z-index: 1;
}

/* --- Responsive for new visuals --- */
@media (max-width: 768px) {
  .hero-3d-container {
    min-height: 300px;
    border-radius: 1.25rem;
  }
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .usecase-card {
    min-height: 220px;
  }
  .visual-grid img {
    height: 140px;
  }
}

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

/* --- Print Styles (for PDF devis) --- */
@media print {
  body::after { display: none; }
  .nav-glass, .sticky-cta, .mobile-menu { display: none; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}
