/* ==========================================================================
   PhotoRoland v3 Design System — 精密光学 · 品牌调性
   ==========================================================================
   芬创科技 · Sigma Koki (西格玛光机) Distributor
   Design: Clean, spacious, premium — inspired by Zeiss/Leica/Nikon
   ----------------------------------------------------------------------- */

/* ==========================================================================
   1. CSS Reset + Custom Properties
   ========================================================================== */

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

:root {
  /* --- Colors: Primary --- */
  --primary-100: #e8f0ff;
  --primary-200: #b3ccff;
  --primary-300: #6699ff;
  --primary-400: #3366ff;
  --primary-500: #0052D9;
  --primary-600: #0040a8;
  --primary-700: #002e7a;
  --primary-gradient: linear-gradient(135deg, #0052D9 0%, #667eea 100%);
  --primary-gradient-reverse: linear-gradient(135deg, #667eea 0%, #0052D9 100%);
  --primary-glow: rgba(0, 82, 217, 0.35);
  --primary-glow-strong: rgba(0, 82, 217, 0.55);

  /* --- Colors: Accent Green --- */
  --accent-100: #e6faf4;
  --accent-200: #a8f0d8;
  --accent-300: #5ce0b4;
  --accent-400: #20c990;
  --accent-500: #06D6A0;
  --accent-600: #00A870;
  --accent-700: #007a50;
  --accent-gradient: linear-gradient(135deg, #06D6A0 0%, #00A870 100%);

  /* --- Colors: Neutral --- */
  --white: #ffffff;
  --gray-50: #f8faff;
  --gray-100: #f0f4ff;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --dark-bg: #0a0e1a;
  --dark-bg-2: #12162a;
  --dark-bg-3: #1a1f3a;
  --light-bg: #f8faff;

  /* --- Typography --- */
  --font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.8;

  /* --- Spacing --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Layout --- */
  --container-max: 1280px;
  --container-narrow: 960px;
  --header-height: 72px;

  /* --- Borders & Radius --- */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 30px var(--primary-glow);
  --shadow-glow-strong: 0 0 50px var(--primary-glow-strong);

  /* --- Transitions --- */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Z-index --- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
}

/* ==========================================================================
   2. Typography System
   ========================================================================== */

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-800);
  background-color: var(--white);
  overflow-x: hidden;
}

::selection {
  background: var(--primary-500);
  color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--gray-900);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.025em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-3xl); letter-spacing: -0.015em; }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

a {
  color: var(--primary-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-600);
}

small, .text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }

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

.text-muted { color: var(--gray-500); }
.text-primary { color: var(--primary-500); }
.text-accent { color: var(--accent-500); }
.text-white { color: var(--white); }

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

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

.gradient-text-white {
  background: linear-gradient(135deg, #ffffff 0%, #c8d6ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.font-light { font-weight: 300; }
.leading-relaxed { line-height: var(--leading-relaxed); }

/* ==========================================================================
   3. Container + Grid System
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
}

.row-gap {
  margin-bottom: calc(-1 * var(--space-8));
}

.row-gap > [class*="col-"] {
  padding-bottom: var(--space-8);
}

[class*="col-"] {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
  width: 100%;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-11 { flex: 0 0 91.666%; max-width: 91.666%; }
.col-10 { flex: 0 0 83.333%; max-width: 83.333%; }
.col-9  { flex: 0 0 75%; max-width: 75%; }
.col-8  { flex: 0 0 66.666%; max-width: 66.666%; }
.col-7  { flex: 0 0 58.333%; max-width: 58.333%; }
.col-6  { flex: 0 0 50%; max-width: 50%; }
.col-5  { flex: 0 0 41.666%; max-width: 41.666%; }
.col-4  { flex: 0 0 33.333%; max-width: 33.333%; }
.col-3  { flex: 0 0 25%; max-width: 25%; }
.col-2  { flex: 0 0 16.666%; max-width: 16.666%; }
.col-1  { flex: 0 0 8.333%; max-width: 8.333%; }

/* Flexbox helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ==========================================================================
   4. Header — Glassmorphism, Sticky, Nav
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 14, 26, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.header-logo img,
.header-logo svg {
  height: 36px;
  width: auto;
}

.header-logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-logo-sub {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.header-nav a {
  position: relative;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-300);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 2rem);
  height: 2px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: transform var(--transition-base);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Header actions (search, language, CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

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

.header-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--gray-300);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-search-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: var(--space-2);
  gap: 5px;
  z-index: calc(var(--z-header) + 1);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

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

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* ==========================================================================
   5. Hero Section — Full-screen, Video BG, Particles
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark-bg);
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Gradient overlay: dark edges, lighter center */
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 82, 217, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 214, 160, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, rgba(10, 14, 26, 0.85) 0%, rgba(10, 14, 26, 0.50) 40%, rgba(10, 14, 26, 0.60) 70%, rgba(10, 14, 26, 0.95) 100%);
}

/* Subtle grid pattern overlay */
.hero-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Animated gradient orb */
.hero-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  top: 10%;
  right: -5%;
  z-index: 1;
  background: radial-gradient(circle, rgba(0, 82, 217, 0.20) 0%, rgba(102, 126, 234, 0.08) 40%, transparent 70%);
  animation: heroOrbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  bottom: -5%;
  left: -5%;
  z-index: 1;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.12) 0%, transparent 60%);
  animation: heroOrbFloat 10s ease-in-out infinite reverse;
  pointer-events: none;
}

/* CSS-only floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

.hero-particle:nth-child(1) { left: 10%; top: 20%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: 0s; }
.hero-particle:nth-child(2) { left: 25%; top: 60%; width: 5px; height: 5px; animation-duration: 16s; animation-delay: 1s; opacity: 0.3; }
.hero-particle:nth-child(3) { left: 45%; top: 15%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 2s; }
.hero-particle:nth-child(4) { left: 65%; top: 70%; width: 6px; height: 6px; animation-duration: 18s; animation-delay: 0.5s; opacity: 0.2; }
.hero-particle:nth-child(5) { left: 80%; top: 30%; width: 4px; height: 4px; animation-duration: 13s; animation-delay: 3s; }
.hero-particle:nth-child(6) { left: 15%; top: 80%; width: 3px; height: 3px; animation-duration: 15s; animation-delay: 1.5s; }
.hero-particle:nth-child(7) { left: 55%; top: 45%; width: 5px; height: 5px; animation-duration: 17s; animation-delay: 2.5s; opacity: 0.25; }
.hero-particle:nth-child(8) { left: 90%; top: 55%; width: 3px; height: 3px; animation-duration: 11s; animation-delay: 0.8s; }
.hero-particle:nth-child(9) { left: 35%; top: 90%; width: 4px; height: 4px; animation-duration: 19s; animation-delay: 1.2s; opacity: 0.15; }
.hero-particle:nth-child(10) { left: 72%; top: 10%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 3.5s; opacity: 0.2; }

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-6);
  padding-top: calc(var(--header-height) + var(--space-8));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--gray-300);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-500);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: var(--text-6xl);
  font-weight: 800;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  color: var(--white);
}

.hero h1 .gradient-text {
  display: inline-block;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--gray-300);
  max-width: 640px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--gray-400);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 1.5s both;
}

.hero-scroll-indicator .scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  position: relative;
}

.hero-scroll-indicator .scroll-mouse::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 10px;
  background: var(--white);
  border-radius: var(--radius-full);
  animation: scrollMouse 2s ease-in-out infinite;
}

/* ==========================================================================
   6. Section Layouts
   ========================================================================== */

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

.section-sm {
  padding: var(--space-12) 0;
}

.section-lg {
  padding: var(--space-32) 0;
}

.section-dark {
  background: var(--dark-bg);
  color: var(--gray-300);
}

.section-dark-2 {
  background: var(--dark-bg-2);
  color: var(--gray-300);
}

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

.section-white {
  background: var(--white);
}

/* Dark section inner text overrides */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark-2 h1,
.section-dark-2 h2,
.section-dark-2 h3,
.section-dark-2 h4 {
  color: var(--white);
}

.section-dark p,
.section-dark-2 p {
  color: var(--gray-400);
}

/* Decorative top-left corner accent */
.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top left, rgba(0, 82, 217, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.section-dark::before {
  background: radial-gradient(circle at top left, rgba(0, 82, 217, 0.12) 0%, transparent 70%);
}

.section-dark-2::before {
  background: radial-gradient(circle at top left, rgba(6, 214, 160, 0.08) 0%, transparent 70%);
}

/* Subtle shape in corner for visual interest */
.section-corner-accent {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(0, 82, 217, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.section-dark .section-corner-accent {
  border-color: rgba(255, 255, 255, 0.03);
}

/* ==========================================================================
   7. Section Title Component
   ========================================================================== */

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header-left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

.section-header-left p {
  margin-left: 0;
}

/* Gradient underline for section titles */
.section-title-line {
  display: inline-block;
  position: relative;
  margin-bottom: var(--space-4);
}

.section-title-line::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

.section-header-left .section-title-line::after {
  left: 0;
  transform: none;
}

/* Section subtitle with subtle decorative bar */
.section-subtitle-bar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.section-subtitle-bar::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
}

.section-dark .section-subtitle-bar {
  color: var(--primary-300);
}

/* ==========================================================================
   8. Product Cards — 3D Perspective Hover, Glassmorphism
   ========================================================================== */

.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  transform-style: preserve-3d;
  perspective: 1000px;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Product card image area */
.product-card-image {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: var(--gray-100);
}

.product-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

/* Image overlay on hover */
.product-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 82, 217, 0.85) 100%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: var(--space-6);
}

.product-card:hover .product-card-image-overlay {
  opacity: 1;
}

.product-card-image-overlay .btn {
  width: 100%;
}

/* Category tag */
.product-card-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--white);
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.product-card-tag-accent {
  background: var(--accent-gradient);
}

/* Product card body */
.product-card-body {
  padding: var(--space-6);
}

.product-card-category {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}

.product-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--gray-900);
  transition: color var(--transition-fast);
}

.product-card:hover h3 {
  color: var(--primary-500);
}

.product-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: 0;
  line-height: var(--leading-normal);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--gray-100);
}

.product-card-price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--primary-500);
}

.product-card-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-500);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  transition: gap var(--transition-fast);
}

.product-card-link:hover {
  gap: var(--space-2);
}

/* Glassmorphism product card variant (for dark sections) */
.product-card-glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.product-card-glass .product-card-body h3 {
  color: var(--white);
}

.product-card-glass .product-card-body p {
  color: var(--gray-400);
}

.product-card-glass .product-card-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.product-card-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   9. Product Center / Filter Bar
   ========================================================================== */

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--gray-200);
}

.section-dark .filter-bar {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.filter-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-right: var(--space-2);
  white-space: nowrap;
}

.section-dark .filter-label {
  color: var(--gray-300);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.filter-tab {
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  background: transparent;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font-family);
}

.filter-tab:hover {
  color: var(--primary-500);
  border-color: var(--primary-300);
  background: var(--primary-100);
}

.filter-tab.active {
  color: var(--white);
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.section-dark .filter-tab {
  color: var(--gray-400);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .filter-tab:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.section-dark .filter-tab.active {
  color: var(--white);
  background: var(--primary-gradient);
  border-color: transparent;
}

/* Filter dropdown */
.filter-select {
  padding: var(--space-2) var(--space-5);
  padding-right: var(--space-8);
  font-size: var(--text-sm);
  font-family: var(--font-family);
  color: var(--gray-700);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition-fast);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.1);
}

/* ==========================================================================
   10. Solutions Cards — Icon + Title + Description
   ========================================================================== */

.solution-card {
  position: relative;
  padding: var(--space-8);
  background: var(--white);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--primary-500);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at top right, rgba(0, 82, 217, 0.04), transparent 70%);
  pointer-events: none;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-left-color: var(--accent-500);
}

.solution-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--primary-100);
  margin-bottom: var(--space-5);
  font-size: var(--text-2xl);
  transition: all var(--transition-base);
  color: var(--primary-500);
}

.solution-card:hover .solution-card-icon {
  background: var(--primary-gradient);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.solution-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--gray-900);
}

.solution-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: 0;
  line-height: var(--leading-relaxed);
}

/* Dark variant */
.solution-card-dark {
  background: rgba(255, 255, 255, 0.04);
  border-left-color: var(--primary-400);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left-width: 3px;
}

.solution-card-dark h3 {
  color: var(--white);
}

.solution-card-dark p {
  color: var(--gray-400);
}

.solution-card-dark .solution-card-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--primary-300);
}

.solution-card-dark:hover .solution-card-icon {
  background: var(--primary-gradient);
  color: var(--white);
}

.solution-card-dark:hover {
  border-left-color: var(--accent-400);
}

/* ==========================================================================
   11. Stats Counter — Gradient BG, Animated Numbers
   ========================================================================== */

.stats-section {
  position: relative;
  background: var(--primary-gradient);
  padding: var(--space-20) 0;
  overflow: hidden;
}

/* Decorative background pattern */
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.stats-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.stat-item {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: var(--space-6);
}

.stat-number {
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
}

.stat-number .stat-suffix {
  font-size: var(--text-3xl);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-left: var(--space-1);
}

.stat-label {
  font-size: var(--text-base);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.03em;
}

.stat-divider {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  margin: var(--space-4) auto;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   12. Case Studies — Card Grid with Image Overlay
   ========================================================================== */

.case-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  cursor: pointer;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.case-card-image {
  position: relative;
  width: 100%;
  padding-top: 66%;
  overflow: hidden;
}

.case-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.case-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 82, 217, 0.05) 0%, rgba(0, 82, 217, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-8);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.case-card:hover .case-card-overlay {
  opacity: 1;
}

.case-card-overlay h4 {
  color: var(--white);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.case-card-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.case-card-overlay .case-card-link {
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  opacity: 0.8;
  transition: opacity var(--transition-fast), gap var(--transition-fast);
}

.case-card-overlay .case-card-link:hover {
  opacity: 1;
  gap: var(--space-2);
}

/* Case card with visible content below image */
.case-card-body {
  padding: var(--space-6);
}

.case-card-body h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--gray-900);
}

.case-card-body p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}

.case-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.case-card-tag {
  padding: 2px var(--space-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--primary-500);
  background: var(--primary-100);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   13. News Timeline — Date + Title + Excerpt
   ========================================================================== */

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-300), var(--accent-300), transparent);
  border-radius: var(--radius-full);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-10);
  padding-left: var(--space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Dot indicator */
.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-gradient);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 4px rgba(0, 82, 217, 0.15);
  z-index: 1;
}

.section-dark .timeline-item::before {
  border-color: var(--dark-bg);
  box-shadow: 0 0 0 4px rgba(0, 82, 217, 0.3);
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-500);
  margin-bottom: var(--space-2);
}

.timeline-date svg {
  width: 14px;
  height: 14px;
}

.section-dark .timeline-date {
  color: var(--primary-300);
}

.timeline-item h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--gray-900);
}

.section-dark .timeline-item h4 {
  color: var(--white);
}

.timeline-item p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: 0;
  line-height: var(--leading-relaxed);
}

.section-dark .timeline-item p {
  color: var(--gray-400);
}

.timeline-item .timeline-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-500);
  margin-top: var(--space-3);
  transition: gap var(--transition-fast);
}

.timeline-item .timeline-link:hover {
  gap: var(--space-2);
}

/* ==========================================================================
   14. Partners — Smooth Infinite Scroll Marquee
   ========================================================================== */

.partners-wrapper {
  position: relative;
  overflow: hidden;
  padding: var(--space-8) 0;
}

.partners-track {
  display: flex;
  gap: var(--space-12);
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

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

.partner-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 var(--space-4);
}

.partner-item img {
  height: 100%;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.5) opacity(0.5);
  transition: all var(--transition-base);
}

.partner-item:hover img {
  filter: grayscale(0%) brightness(1) opacity(1);
}

/* Dark section partner variant */
.section-dark .partner-item img {
  filter: grayscale(100%) brightness(0.8) opacity(0.4);
}

.section-dark .partner-item:hover img {
  filter: grayscale(0%) brightness(1) opacity(1);
}

/* Gradient fade on edges */
.partners-wrapper::before,
.partners-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.partners-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--white) 0%, transparent 100%);
}

.partners-wrapper::after {
  right: 0;
  background: linear-gradient(90deg, transparent 0%, var(--white) 100%);
}

.section-dark .partners-wrapper::before {
  background: linear-gradient(90deg, var(--dark-bg) 0%, transparent 100%);
}

.section-dark .partners-wrapper::after {
  background: linear-gradient(90deg, transparent 0%, var(--dark-bg) 100%);
}

/* ==========================================================================
   15. CTA Section — Gradient BG, Big Heading
   ========================================================================== */

.cta-section {
  position: relative;
  background: var(--primary-gradient);
  padding: var(--space-20) 0;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  position: relative;
  z-index: 1;
  line-height: var(--leading-relaxed);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* CTA button with pulse ring */
.cta-btn-pulse {
  position: relative;
}

.cta-btn-pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: ctaPulseRing 2s ease-out infinite;
}

.cta-btn-pulse::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.15);
  animation: ctaPulseRing 2s ease-out 0.5s infinite;
}

/* ==========================================================================
   16. Footer — 4-Column Dark Footer
   ========================================================================== */

.footer {
  position: relative;
  background: var(--dark-bg);
  color: var(--gray-400);
  padding: var(--space-16) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Footer brand column */
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-brand .footer-logo img,
.footer-brand .footer-logo svg {
  height: 32px;
  width: auto;
}

.footer-brand .footer-logo span {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  max-width: 280px;
}

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gray-400);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
}

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

/* Footer link columns */
.footer-column h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links li a {
  font-size: var(--text-sm);
  color: var(--gray-500);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.footer-links li a:hover {
  color: var(--white);
  transform: translateX(4px);
}

/* Footer bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-size: var(--text-sm);
  color: var(--gray-600);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom a {
  color: var(--gray-500);
}

.footer-bottom a:hover {
  color: var(--white);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-6);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow-strong);
}

/* ==========================================================================
   17. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

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

/* Primary button with glow */
.btn-primary {
  color: var(--white);
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(0, 82, 217, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-gradient-reverse);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 82, 217, 0.45);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 82, 217, 0.3);
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

/* Outline button */
.btn-outline {
  color: var(--primary-500);
  background: transparent;
  border-color: var(--primary-500);
}

.btn-outline:hover {
  color: var(--white);
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline-white {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  color: var(--primary-500);
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Accent button */
.btn-accent {
  color: var(--white);
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(6, 214, 160, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 214, 160, 0.45);
}

/* Ghost button */
.btn-ghost {
  color: var(--gray-700);
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--gray-100);
}

.section-dark .btn-ghost {
  color: var(--gray-300);
}

.section-dark .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

/* Button sizes */
.btn-sm {
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

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

.btn-lg.btn-primary {
  box-shadow: 0 6px 25px rgba(0, 82, 217, 0.35);
}

.btn-lg.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(0, 82, 217, 0.5);
}

/* Button icon (icon-only) */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
  width: 32px;
  height: 32px;
}

.btn-icon.btn-lg {
  width: 52px;
  height: 52px;
}

/* Button group */
.btn-group {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ==========================================================================
   18. Animations — Keyframes
   ========================================================================== */

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50% { box-shadow: 0 0 40px var(--primary-glow-strong), 0 0 60px var(--primary-glow); }
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes particleFloat {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

@keyframes scrollMouse {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

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

@keyframes ctaPulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

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

/* Animated shimmer overlay for cards */
.shimmer-overlay {
  position: relative;
  overflow: hidden;
}

.shimmer-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.06) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmerSlide 2s ease-in-out infinite;
  pointer-events: none;
}

/* ==========================================================================
   19. Scroll-triggered Animation Classes
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered reveal delay helpers */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

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

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

/* ==========================================================================
   20. Responsive Design
   ========================================================================== */

/* --- 1200px --- */
@media (max-width: 1200px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .hero h1 {
    font-size: var(--text-5xl);
  }

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

  .cta-section h2 {
    font-size: var(--text-4xl);
  }
}

/* --- 768px (tablet) --- */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }

  .section {
    padding: var(--space-16) 0;
  }

  .section-lg {
    padding: var(--space-20) 0;
  }

  .section-header {
    margin-bottom: var(--space-10);
  }

  /* Typography */
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

  .hero h1 {
    font-size: var(--text-4xl);
  }

  .hero-subtitle {
    font-size: var(--text-lg);
  }

  .cta-section h2 {
    font-size: var(--text-3xl);
  }

  /* Grid */
  [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }

  /* Mobile navigation */
  .header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-height) + var(--space-8)) var(--space-6) var(--space-6);
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: right var(--transition-base);
    gap: var(--space-1);
    z-index: var(--z-overlay);
  }

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

  .header-nav a {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    border-radius: var(--radius-md);
  }

  .header-nav a::after {
    display: none;
  }

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

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

  .hamburger {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

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

  /* Timeline */
  .timeline {
    padding-left: var(--space-6);
  }

  .timeline-item {
    padding-left: var(--space-6);
  }

  .timeline-item::before {
    left: calc(-1 * var(--space-6) - 5px);
    width: 10px;
    height: 10px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* CTA */
  .cta-section {
    padding: var(--space-12) 0;
  }

  .cta-section h2 {
    font-size: var(--text-2xl);
  }

  .cta-section p {
    font-size: var(--text-base);
  }

  /* Case studies */
  .case-card-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 82, 217, 0.7) 100%);
  }

  .case-card-overlay h4 {
    font-size: var(--text-lg);
  }

  /* Product cards - reduce hover effect on touch */
  .product-card:hover {
    transform: translateY(-4px);
  }

  .product-card-image-overlay {
    opacity: 1;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 82, 217, 0.6) 100%);
  }

  /* Partners */
  .partners-track {
    animation-duration: 20s;
  }

  .partners-wrapper::before,
  .partners-wrapper::after {
    width: 40px;
  }

  /* Back to top */
  .back-to-top {
    bottom: var(--space-6);
    right: var(--space-6);
    width: 40px;
    height: 40px;
  }
}

/* --- 480px (mobile) --- */
@media (max-width: 480px) {
  .container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .section {
    padding: var(--space-12) 0;
  }

  .section-lg {
    padding: var(--space-16) 0;
  }

  /* Typography */
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
  h3 { font-size: var(--text-xl); }
  h4 { font-size: var(--text-lg); }

  .hero h1 {
    font-size: var(--text-3xl);
  }

  .hero-subtitle {
    font-size: var(--text-base);
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .hero-badge {
    font-size: 0.65rem;
  }

  .cta-section h2 {
    font-size: var(--text-2xl);
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  /* Grid: full width on mobile */
  [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }

  /* Section header */
  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-header p {
    font-size: var(--text-base);
  }

  /* Filter bar */
  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-2);
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab {
    flex-shrink: 0;
  }

  /* Product cards */
  .product-card-body {
    padding: var(--space-4);
  }

  .product-card h3 {
    font-size: var(--text-base);
  }

  .product-card-footer {
    padding: var(--space-3) var(--space-4);
  }

  /* Solutions */
  .solution-card {
    padding: var(--space-6);
  }

  .solution-card h3 {
    font-size: var(--text-lg);
  }

  /* Stats */
  .stats-section {
    padding: var(--space-12) 0;
  }

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

  .stat-item {
    padding: var(--space-4);
  }

  /* Timeline */
  .timeline-item {
    padding-bottom: var(--space-8);
  }

  .timeline-item h4 {
    font-size: var(--text-base);
  }

  /* Case cards */
  .case-card-body {
    padding: var(--space-4);
  }

  .case-card-body h3 {
    font-size: var(--text-base);
  }

  /* Partners */
  .partner-item {
    height: 44px;
  }

  .partner-item img {
    max-width: 100px;
  }

  /* Footer */
  .footer {
    padding-top: var(--space-10);
  }

  .footer-grid {
    gap: var(--space-6);
  }

  .footer-column h4 {
    margin-bottom: var(--space-3);
  }

  .footer-bottom {
    font-size: var(--text-xs);
  }

  .footer-bottom-links {
    gap: var(--space-4);
    flex-wrap: wrap;
  }

  /* Buttons */
  .btn {
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
  }

  .btn-lg {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }

  /* Back to top */
  .back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 36px;
    height: 36px;
  }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }

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

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print styles */
@media print {
  .header,
  .footer,
  .back-to-top,
  .hero-scroll-indicator,
  .hero-particles,
  .hero-orb,
  .hero-orb-2,
  .partners-wrapper::before,
  .partners-wrapper::after {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: var(--space-16) 0;
  }

  .section {
    padding: var(--space-8) 0;
    page-break-inside: avoid;
  }

  .product-card:hover,
  .solution-card:hover,
  .case-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

/* ==========================================================================
   End of PhotoRoland v3 Design System
   ========================================================================== */
