/* ============================================
   VS INFRA & CRANES — DESIGN SYSTEM
   Premium B2B Industrial Website
   ============================================ */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- CUSTOM PROPERTIES (LIGHT MODE DEFAULT) ---------- */
:root {
  /* Brand Colors */
  --color-primary: #E8630A;
  --color-primary-hover: #D4580A;
  --color-primary-light: rgba(232, 99, 10, 0.1);
  --color-primary-glow: rgba(232, 99, 10, 0.3);
  --color-secondary: #1A1A2E;
  --color-secondary-light: #2D2D44;

  /* Neutrals */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F5F7;
  --color-bg-elevated: #FFFFFF;
  --color-surface: #F8F9FA;
  --color-surface-hover: #F0F1F3;
  --color-border: #E5E5E7;
  --color-border-subtle: #F0F0F2;

  /* Text */
  --color-text: #111827;
  --color-text-secondary: #4B5563;
  --color-text-tertiary: #9CA3AF;
  --color-text-inverse: #FFFFFF;
  --color-text-on-primary: #FFFFFF;

  /* Status */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(232, 99, 10, 0.15);
  --shadow-card-hover: 0 12px 40px rgba(0,0,0,0.12);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(20px);

  /* Spacing (8px grid) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Typography Scale — Fluid (clamp-based) */
  --text-xs:  clamp(0.7rem,  0.65rem + 0.25vw, 0.75rem);
  --text-sm:  clamp(0.8rem,  0.75rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
  --text-lg:  clamp(1rem,    0.925rem + 0.375vw, 1.125rem);
  --text-xl:  clamp(1.1rem,  1rem + 0.5vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-3xl: clamp(1.5rem,  1.25rem + 1.25vw, 1.875rem);
  --text-4xl: clamp(1.75rem, 1.35rem + 2vw, 2.25rem);
  --text-5xl: clamp(2rem,    1.5rem + 2.5vw, 3rem);
  --text-6xl: clamp(2.5rem,  1.75rem + 3.75vw, 3.75rem);
  --text-7xl: clamp(3rem,    2rem + 5vw, 4.5rem);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-tooltip: 600;

  /* Container */
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-narrow: 720px;
  --container-padding: clamp(1rem, 0.5rem + 2vw, 1.5rem);

  /* Header */
  --header-height: 80px;
}

/* ---------- DARK MODE ---------- */
[data-theme="dark"] {
  --color-bg: #0A0A0F;
  --color-bg-alt: #111118;
  --color-bg-elevated: #16161E;
  --color-surface: #1A1A24;
  --color-surface-hover: #22222E;
  --color-border: #2A2A36;
  --color-border-subtle: #1E1E28;

  --color-text: #F0F0F5;
  --color-text-secondary: #A0A0B0;
  --color-text-tertiary: #606070;
  --color-text-inverse: #111827;

  --color-primary-light: rgba(232, 99, 10, 0.15);

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.7);
  --shadow-glow: 0 0 40px rgba(232, 99, 10, 0.2);
  --shadow-card-hover: 0 12px 40px rgba(232, 99, 10, 0.1);

  --glass-bg: rgba(15, 15, 25, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* ---------- BODY STYLING ---------- */
body {
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

h1 { font-size: var(--text-6xl); font-weight: 800; }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-4xl); font-weight: 600; }
h4 { font-size: var(--text-2xl); font-weight: 600; }
h5 { font-size: var(--text-xl); font-weight: 600; }
h6 { font-size: var(--text-lg); font-weight: 600; }

p { color: var(--color-text-secondary); line-height: 1.7; }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--color-primary);
}

.section-title {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-wide {
  max-width: var(--container-wide);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-24) 0;
  position: relative;
}

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

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { justify-content: space-between; align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.text-center { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: 'Inter', sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #D4580A);
  color: var(--color-text-on-primary);
  box-shadow: 0 4px 16px rgba(232, 99, 10, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 99, 10, 0.4);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-text-inverse);
  border: 1px solid transparent;
}

[data-theme="dark"] .btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-primary);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card-image {
  transform: scale(1.05);
}

.card-image-wrapper {
  overflow: hidden;
  position: relative;
}

.card-body {
  padding: var(--space-6);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.card-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Stat Card */
.stat-card {
  padding: var(--space-8);
  text-align: center;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ---------- NAVIGATION ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-sticky);
  transition: all var(--transition-base);
}

.header-scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 48px;
  width: 48px; /* Force square for circular logo */
  flex-shrink: 0;
}

/* Force all logo images to be circular */
img[src*="logo.png"] {
  border-radius: 50% !important;
  aspect-ratio: 1 !important;
  object-fit: contain !important;
  background: white !important;
  padding: 4px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Admin Link Button */
.admin-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition-fast);
  text-decoration: none;
  flex-shrink: 0;
}

.admin-link:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.admin-link svg {
  width: 18px;
  height: 18px;
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.theme-toggle:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.theme-toggle svg { width: 20px; height: 20px; }

/* Mobile Nav */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: var(--z-modal);
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--color-bg);
  z-index: var(--z-overlay);
  transition: right var(--transition-slow);
  padding: calc(var(--header-height) + var(--space-8)) var(--space-8) var(--space-8);
  overflow-y: auto;
  border-left: 1px solid var(--color-border);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: calc(var(--z-overlay) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-primary);
}

/* ---------- HERO ---------- */
.hero-scroll-track {
  position: relative;
  width: 100%;
  height: 350vh;
}

.hero-scroll-track[data-hero-mode="video"],
.hero-scroll-track[data-hero-mode="static"] {
  height: auto !important;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  padding-bottom: 80px;
}

.hero-scroll-track > .hero {
  position: sticky !important;
  top: 0 !important;
  width: 100%;
  height: 100vh !important;
  height: 100svh !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
}

.hero-scroll-track[data-hero-mode="video"] > .hero,
.hero-scroll-track[data-hero-mode="static"] > .hero {
  position: relative !important;
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
}

.hero-image-parallax {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  z-index: 0;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.hero-frame-canvas,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.hero-video {
  object-fit: cover;
  object-position: center center;
}

.hero-image-parallax::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15,15,26,0.92) 0%, rgba(15,15,26,0.75) 35%, rgba(15,15,26,0.3) 65%, rgba(15,15,26,0.1) 100%),
    linear-gradient(180deg, rgba(15,15,26,0.55) 0%, transparent 30%, transparent 70%, rgba(15,15,26,0.75) 100%);
}

.hero-orange-glow {
  position: absolute;
  width: 600px; height: 600px;
  right: 15%; top: 30%;
  background: radial-gradient(circle, rgba(232,99,10,0.15) 0%, rgba(232,99,10,0.05) 40%, transparent 70%);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

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

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(26, 26, 46, 0.7) 50%,
    rgba(26, 26, 46, 0.4) 100%
  );
}

[data-theme="dark"] .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(10, 10, 15, 0.95) 0%,
    rgba(10, 10, 15, 0.8) 50%,
    rgba(10, 10, 15, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(232, 99, 10, 0.15);
  border: 1px solid rgba(232, 99, 10, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #FF8C42;
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-bottom: var(--space-4);
}

.hero-stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.4);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  animation: scrollBounce 2s infinite;
  z-index: 5;
}

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

/* ---------- FORMS ---------- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-tertiary);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

.form-success {
  color: var(--color-success);
  font-size: var(--text-sm);
  margin-top: var(--space-1);
}

/* ---------- ACCORDION ---------- */
.accordion-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: all var(--transition-base);
}

.accordion-item:hover {
  border-color: var(--color-primary);
}

.accordion-trigger {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.accordion-trigger:hover {
  color: var(--color-primary);
}

.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-base);
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion-content-inner {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ---------- TABS ---------- */
.tabs-nav {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  background: none;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ---------- BADGE / TAG ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-success);
}

/* ---------- TESTIMONIAL ---------- */
.testimonial-card {
  padding: var(--space-8);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial-quote {
  font-size: var(--text-5xl);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-4);
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--color-secondary);
  color: rgba(255,255,255,0.8);
  padding: var(--space-20) 0 var(--space-8);
}

[data-theme="dark"] .footer {
  background: #050508;
  border-top: 1px solid var(--color-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer-brand-desc {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  margin: var(--space-4) 0 var(--space-6);
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: white;
  margin-bottom: var(--space-6);
}

.footer-link {
  display: block;
  padding: var(--space-1) 0;
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}

/* ---------- FLOATING CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  right: calc(var(--space-6) + env(safe-area-inset-right, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  z-index: var(--z-sticky);
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  cursor: pointer;
}

.floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.floating-whatsapp {
  background: #25D366;
  color: white;
}

.floating-phone {
  background: var(--color-primary);
  color: white;
}

.floating-ai {
  background: linear-gradient(135deg, #1A1A2E 0%, #2a1506 100%);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.floating-top {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-base);
}

.floating-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* ---------- PRELOADER SUPPRESSION ---------- */
.preloader,
.preloader.loaded,
.preloader-logo,
.preloader-bar,
.preloader-bar-fill {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  z-index: -9999 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* ---------- ANIMATIONS (Base Classes) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

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

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  .section-title { font-size: var(--text-4xl); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: var(--space-6); }
  .nav-desktop { display: none; }
  .mobile-toggle { display: flex; }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --header-height: 64px;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  .section-title { font-size: var(--text-3xl); }
  .section { padding: var(--space-16) 0; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-subtitle { font-size: var(--text-base); }
  .hero-stats { flex-direction: column; gap: var(--space-4); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .stat-number { font-size: var(--text-4xl); }

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom > div { justify-content: center; }

  .floating-cta {
    bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
    right: calc(var(--space-4) + env(safe-area-inset-right, 0px));
  }
  .floating-btn { width: 48px; height: 48px; }
}

@media (max-width: 480px) {
  h1 { font-size: var(--text-3xl); }
  .hero-title { font-size: 2rem; }
  .stat-number { font-size: var(--text-3xl); }
  .btn-lg { padding: var(--space-3) var(--space-6); font-size: var(--text-base); }
}

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

  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
  }
}

/* ---------- SELECTION ---------- */
::selection {
  background: var(--color-primary);
  color: white;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* ---------- UTILITY CLASSES ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.overflow-hidden { overflow: hidden; }
.relative { position: relative; }

/* Page specific top margin for non-hero pages */
.page-top {
  padding-top: calc(var(--header-height) + var(--space-16));
}


/* =======================================================
   RESPONSIVE ENHANCEMENTS — MOBILE & CHROME DESKTOP-SITE
   ======================================================= */

/* Portrait orientation & Chrome "Desktop site" mode on mobile devices (980px - 1024px) */
@media (orientation: portrait) and (max-width: 1024px) {
  .hero {
    min-height: 100vh !important;
    min-height: 100svh !important;
    padding-top: calc(var(--header-height) + var(--space-6)) !important;
    padding-bottom: var(--space-8) !important;
  }
  .page-hero {
    min-height: clamp(280px, 35vh, 420px) !important;
  }
  .timeline::before {
    left: 20px !important;
  }
  .timeline-item {
    padding-right: 0 !important;
    padding-left: 50px !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .timeline-dot {
    left: 20px !important;
  }
  .product-gallery {
    position: static !important;
  }
}

/* Tablet & Moderate Viewports (max-width: 992px) */
@media (max-width: 992px) {
  .product-gallery {
    position: static !important;
  }
  .timeline::before {
    left: 20px !important;
  }
  .timeline-item {
    padding-right: 0 !important;
    padding-left: 50px !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }
  .timeline-dot {
    left: 20px !important;
  }
}

/* Low viewport height fallback for sticky elements & landscape phones */
@media (max-height: 700px) {
  .product-gallery {
    position: static !important;
  }
}

@media (max-height: 550px) and (orientation: landscape) {
  .hero {
    padding-top: calc(var(--header-height) + var(--space-2)) !important;
    padding-bottom: var(--space-3) !important;
  }
  .hero-badge {
    margin-bottom: var(--space-2) !important;
    padding: 2px 10px !important;
    font-size: 0.7rem !important;
  }
  .hero-title {
    font-size: clamp(1.4rem, 3.5vw, 2rem) !important;
    margin-bottom: var(--space-2) !important;
  }
  .hero-subtitle {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;
    margin-bottom: var(--space-3) !important;
  }
  .hero-actions {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: var(--space-2) !important;
  }
  .hero-actions .btn-lg {
    padding: 0.45rem 0.9rem !important;
    font-size: 0.8rem !important;
    width: auto !important;
  }
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    margin-top: var(--space-3) !important;
    padding-top: var(--space-2) !important;
    gap: var(--space-2) !important;
  }
  .hero-stat-number {
    font-size: 1.2rem !important;
  }
  .hero-stat-label {
    font-size: 0.68rem !important;
  }
  .scroll-indicator {
    display: none !important;
  }
}

/* Mobile Viewports (max-width: 768px) */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh !important;
    min-height: 100svh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-top: calc(var(--header-height) + var(--space-4)) !important;
    padding-bottom: var(--space-6) !important;
  }
  .hero-image-parallax {
    background-position: center center !important;
    background-size: cover !important;
  }
  .hero-image-parallax::after {
    background:
      linear-gradient(180deg, rgba(15,15,26,0.82) 0%, rgba(15,15,26,0.55) 45%, rgba(15,15,26,0.88) 100%),
      linear-gradient(90deg, rgba(15,15,26,0.80) 0%, rgba(15,15,26,0.35) 100%) !important;
  }
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-3) !important;
    width: 100% !important;
    margin-top: var(--space-5) !important;
    padding-top: var(--space-4) !important;
  }
  .hero-stat-number {
    font-size: 1.5rem !important;
  }
  .hero-stat-label {
    font-size: 0.75rem !important;
  }
  .page-hero {
    min-height: clamp(280px, 42svh, 380px) !important;
    display: flex !important;
    align-items: center !important;
    padding-top: calc(var(--header-height) + var(--space-6)) !important;
    padding-bottom: var(--space-8) !important;
  }
  /* Neutralize horizontal animation translation offsets that trigger overflow */
  .reveal-left, .reveal-right {
    transform: translateY(20px) !important;
  }
  .reveal-left.revealed, .reveal-right.revealed {
    transform: translateY(0) !important;
  }
  /* Process Timeline vertical flow */
  .process-timeline {
    flex-direction: column !important;
    gap: var(--space-4) !important;
    padding: var(--space-4) 0 !important;
    align-items: stretch !important;
  }
  .process-line {
    display: none !important;
  }
  .process-step {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    padding: var(--space-4) var(--space-3) !important;
    background: var(--color-bg-elevated) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
  }
  .process-step-desc {
    max-width: 100% !important;
    margin: 0 auto !important;
    font-size: var(--text-sm) !important;
    line-height: 1.5 !important;
  }
  /* 3D / Media Canvas touch guard */
  #crane-viewer-container, #product-viewer-container,
  #crane-viewer-container canvas, #product-viewer-container canvas {
    touch-action: pan-y;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-image-parallax {
    background-position: center center !important;
  }
  .hero-badge {
    margin-bottom: var(--space-3) !important;
  }
  .hero-title {
    margin-bottom: var(--space-3) !important;
  }
  .hero-subtitle {
    margin-bottom: var(--space-4) !important;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: var(--space-2) !important;
  }
  .hero-actions .btn-lg {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem !important;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .admin-link, .theme-toggle {
    width: 38px;
    height: 38px;
  }
  .admin-link svg, .theme-toggle svg {
    width: 17px;
    height: 17px;
  }
}

/* Small Mobile (320px - 360px) Refinements */
@media (max-width: 360px) {
  :root {
    --container-padding: 0.75rem;
  }
  .hero-title {
    font-size: 1.75rem !important;
  }
  .hero-subtitle {
    font-size: 0.875rem !important;
  }
  .hero-stat-number, .stat-number {
    font-size: 1.35rem !important;
  }
  .hero-stat-label {
    font-size: 0.7rem !important;
  }
  .btn-sm {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }
  .header-inner {
    padding: 0 0.35rem;
  }
  .nav-actions {
    gap: 4px;
  }
  .admin-link, .theme-toggle {
    width: 32px;
    height: 32px;
  }
  .admin-link svg, .theme-toggle svg {
    width: 15px;
    height: 15px;
  }
  .floating-cta {
    bottom: var(--space-3);
    right: var(--space-3);
    gap: var(--space-2);
  }
  .floating-btn {
    width: 42px;
    height: 42px;
  }
}

/* ---------- MOBILE EXPERIENCE TIP POPUP ---------- */
/* Strict desktop concealment: NEVER visible on desktop/laptop (>768px) */
@media (min-width: 769px) {
  .vs-desktop-tip {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Mobile & Tablet floating presentation (<=768px) */
@media (max-width: 768px) {
  .vs-desktop-tip {
    position: fixed;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    z-index: 998;
    max-width: min(340px, calc(100vw - 84px));
    pointer-events: none;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .vs-desktop-tip.vs-tip-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .vs-desktop-tip-card {
    pointer-events: auto;
    position: relative;
    background: var(--color-bg-elevated, #ffffff);
    color: var(--color-text, #1e293b);
    border: 1px solid var(--color-border, #e2e8f0);
    border-left: 3.5px solid var(--color-primary, #E8630A);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.22), 0 4px 12px -2px rgba(0, 0, 0, 0.1);
    padding: 12px 14px 12px 12px;
    font-family: inherit;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .vs-desktop-tip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-text-tertiary, #94a3b8);
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .vs-desktop-tip-close:hover,
  .vs-desktop-tip-close:active {
    background: rgba(0, 0, 0, 0.08);
    color: var(--color-text, #0f172a);
  }

  [data-theme="dark"] .vs-desktop-tip-close:hover,
  [data-theme="dark"] .vs-desktop-tip-close:active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
  }

  .vs-desktop-tip-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    padding-right: 24px;
  }

  .vs-desktop-tip-icon {
    font-size: 14px;
    line-height: 1;
  }

  .vs-desktop-tip-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary, #E8630A);
    background: var(--color-primary-light, rgba(232, 99, 10, 0.1));
    padding: 2px 7px;
    border-radius: 9999px;
  }

  .vs-desktop-tip-text {
    font-size: 12px;
    line-height: 1.45;
    color: var(--color-text-secondary, #475569);
    margin: 0 0 10px 0;
  }

  .vs-desktop-tip-text strong {
    display: block;
    color: var(--color-text, #0f172a);
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 3px;
  }

  [data-theme="dark"] .vs-desktop-tip-text strong {
    color: #ffffff;
  }

  [data-theme="dark"] .vs-desktop-tip-text {
    color: rgba(255, 255, 255, 0.78);
  }

  .vs-desktop-tip-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .vs-desktop-tip-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--color-primary, #E8630A);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(232, 99, 10, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .vs-desktop-tip-cta:active {
    transform: scale(0.97);
  }

  .vs-desktop-tip-dismiss {
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary, #64748b);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    transition: color 0.15s ease;
  }

  [data-theme="dark"] .vs-desktop-tip-dismiss {
    color: rgba(255, 255, 255, 0.65);
  }

  .vs-desktop-tip-feedback {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--color-primary, #E8630A);
    background: var(--color-primary-light, rgba(232, 99, 10, 0.1));
    padding: 6px 10px;
    border-radius: 6px;
    text-align: center;
    margin-top: 6px;
  }
}

@media (max-width: 360px) {
  .vs-desktop-tip {
    left: 8px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 72px);
  }
  .vs-desktop-tip-card {
    padding: 10px 12px 10px 10px;
  }
  .vs-desktop-tip-text {
    font-size: 11.5px;
  }
  .vs-desktop-tip-text strong {
    font-size: 12px;
  }
  .vs-desktop-tip-cta {
    font-size: 11.5px;
    padding: 5px 10px;
  }
}

/* =======================================================
   GLOBAL RESPONSIVE ENGINEERING ENHANCEMENTS
   ======================================================= */

/* Touch-hover guard — prevent sticky hover states on touch screens */
@media (hover: none) {
  .card:hover {
    transform: none;
    box-shadow: none;
  }
  .btn-primary:hover,
  .btn-secondary:hover,
  .btn-outline:hover {
    transform: none;
  }
}

/* Breadcrumb wrapping on narrow screens */
.breadcrumb {
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .breadcrumb {
    font-size: var(--text-xs);
    gap: var(--space-1);
  }
}

/* Spec table mobile optimization */
@media (max-width: 480px) {
  .spec-table th,
  .spec-table td {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
  .spec-table th {
    width: 38%;
  }
}

/* Sticky gallery viewport-height guard (for pages with embedded videos) */
@media (max-height: 850px) {
  .product-gallery {
    position: static !important;
  }
}

/* 360 Product Viewer touch scroll-trap fix on mobile */
@media (max-width: 992px) {
  .pv-viewer-area {
    touch-action: pan-y !important;
  }
}

/* Product details grid intermediate gap reduction */
@media (max-width: 1200px) and (min-width: 993px) {
  .product-details-grid {
    gap: var(--space-6);
  }
}

/* Feature list collapse at tablet portrait */
@media (max-width: 768px) {
  .feature-list {
    grid-template-columns: 1fr !important;
  }
  .hero-video {
    object-position: center center;
  }
}

@media (max-width: 480px) {
  .hero-video {
    object-position: center center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-track {
    height: auto !important;
  }
  .hero-scroll-track > .hero {
    position: relative !important;
  }
}

/* Related equipment & services crawlable internal-link section */
.related-links-section {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.related-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--space-6);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
}

.related-link-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.related-link-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.related-link-card p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.related-link-cta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
