/* ============================================================
   Hencera Official Website - Design System
   Based on ui-ux-pro-max: Trust & Authority style
   Font: Lexend (heading) + Source Sans 3 (body)
   ============================================================ */
  

/* --- Design Tokens --- */
:root {
  /* Colors - 52TOYS Style: Bold Yellow + Black + White */
  --color-primary: #1A1A1A;
  --color-on-primary: #FFFFFF;
  --color-secondary: #333333;
  --color-on-secondary: #FFFFFF;
  --color-brand: #FFC107;
  --color-brand-dark: #E5AC00;
  --color-brand-light: #FFF8E1;
  --color-accent: #FFC107;
  --color-accent-hover: #FFD54F;
  --color-on-accent: #1A1A1A;
  --color-warm: #FFB300;
  --color-warm-light: #FFF8E1;
  --color-teal-light: #FFF8E1;
  --color-pink: #FF5252;
  --color-teal: #4CAF50;
  --color-yellow: #FFC107;
  --color-background: #F8F5F2;
  --color-foreground: #1A1A1A;
  --color-card: #FFFFFF;
  --color-card-foreground: #1A1A1A;
  --color-muted: #F5F5F5;
  --color-muted-foreground: #666666;
  --color-border: #EEEEEE;
  --color-border-light: #F5F5F5;
  --color-destructive: #FF5252;
  --color-success: #4CAF50;
  --color-ring: #FFC107;
  --color-creamy-white:‌‌#e6e4d4;

  /* Typography - Bold & Fun */
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;

  /* Font Scale */
  --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;

  /* Spacing (8px base) */
  --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;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Layout */
  --container-max: 1280px;
  --nav-height: 72px;
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; }

/* --- Container --- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-6); }
@media (min-width: 1440px) { .container { padding: 0 var(--space-10); } }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(0,0,0,0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}
.navbar.scrolled {
  background: rgba(0,0,0,0.85);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo { display: flex; align-items: center; gap: var(--space-3); }
.nav-logo .logo-mark {
  width: 40px;
  height: 40px;
  /* background: var(--color-brand); */
  background: var(--color-teal-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.nav-logo:hover .logo-mark {
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 4px 16px rgba(255,193,7,0.5);
}
.nav-logo .logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xl);
  color: #FFFFFF;
  transition: color var(--transition-base);
}
.nav-logo:hover .logo-text { color: var(--color-brand); }
.nav-menu { display: flex; align-items: center; gap: var(--space-1); flex: 1; justify-content: center; }
.nav-menu a {
  position: relative;
  padding: var(--space-2) var(--space-2);
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  border-radius: var(--radius-sm);
  transition: color var(--transition-base), transform var(--transition-fast);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width var(--transition-base) cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu a:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
}
.nav-menu a:hover::after {
  width: 100%;
}
.nav-menu a.active {
  color: #FFFFFF;
  font-weight: 700;
}
.nav-menu a.active::after {
  width: 100%;
  height: 2px;
  background: var(--color-brand);
}
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.lang-switcher:hover { border-color: #FFFFFF; color: #FFFFFF; }
.lang-switcher svg { width: 16px; height: 16px; }
.lang-switcher .lang-arrow { width: 12px; height: 12px; transition: transform var(--transition-fast); }
.lang-switcher.open .lang-arrow { transform: rotate(180deg); }
.lang-switcher { position: relative; }
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: 1001;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-foreground);
  transition: background var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
}
.lang-option:hover { background: var(--color-muted); color: var(--color-primary); }
.lang-option.active { color: var(--color-accent); font-weight: 600; }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-brand);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(255,193,7,0.3);
  transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255,193,7,0.4);
  background: var(--color-accent-hover);
}
.btn-cta:active { transform: translateY(0) scale(0.98); }

/* Mobile menu */
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #FFFFFF; position: relative; transition: var(--transition-fast); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; width: 100%; height: 100%; background: inherit; left: 0; transition: inherit;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background: var(--color-brand);
  overflow: hidden;
}
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s ease, transform 1s ease;
}
.hero-slide--active {
  opacity: 1;
  transform: scale(1);
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.05);
}
.hero-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 10, 20, 0.35) 0%, rgba(7, 10, 20, 0.16) 50%, rgba(7, 10, 20, 0.06) 100%);
  pointer-events: none;
}
.hero-slideshow-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-slideshow-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.8);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.hero-slideshow-dots .dot.active,
.hero-slideshow-dots .dot:hover {
  transform: scale(1.15);
  background: #FFFFFF;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: linear-gradient(135deg, rgba(255,193,7,0.25) 0%, rgba(255,179,0,0.18) 50%, rgba(255,160,0,0.12) 100%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 400px;
  height: 400px;
  z-index: 0;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: var(--space-16); align-items: center; max-width: 100%; padding-left: 8%; }
.hero-content { color: #FFFFFF; position: relative; z-index: 2; max-width: 760px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-6);
  color: #FFFFFF;
}
.hero-title { font-size: var(--text-5xl); font-weight: 700; line-height: 1.1; margin-bottom: var(--space-6); }
.hero-title .accent { color: #FFFFFF; text-decoration: none; }
.hero-desc { font-size: var(--text-lg); opacity: 0.9; line-height: 1.7; margin-bottom: var(--space-8); max-width: 700px; color: #FFFFFF; }
.hero-actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: var(--color-accent);
  color: white;
  font-family: var(--font-heading); font-size: var(--text-base); font-weight: 500;
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.btn-hero-primary {
  background: #FFFFFF;
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  font-weight: 600;
}
.btn-hero-primary:hover {
  background: #F5F5F5;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  background: transparent;
  color: white;
  font-family: var(--font-heading); font-size: var(--text-base); font-weight: 500;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.btn-hero-secondary { border-color: rgba(255,255,255,0.6); color: #FFFFFF; }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.15); border-color: #FFFFFF; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-image-placeholder {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-6xl);
  backdrop-filter: blur(8px);
}

/* --- Stats Bar --- */
.stats-bar {
  background: white;
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-10) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}
.stat-item .stat-number .accent {
  color: var(--color-brand-dark);
}
.stat-item {
  transition: transform var(--transition-base);
}
.stat-item:hover {
  transform: scale(1.05);
}
.stat-item .stat-label {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
  font-weight: 500;
}

/* --- Section Common --- */
.section {
  padding: var(--space-20) 0;
}
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--color-brand-light);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-brand);
}
.section-title {
  font-size: var(--text-3xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section-desc {
  font-size: var(--text-lg);
  color: var(--color-muted-foreground);
  line-height: 1.7;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.section-alt { background: var(--color-muted); }

/* --- Capability Cards --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.capability-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 193, 7, 0.5);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.capability-card:hover {
  transform: translateY(-6px);
  background: rgba(229, 172, 0, 0.9);
  border-color: rgba(180, 100, 255, 0.7);
  box-shadow: 0 0 20px rgba(180, 100, 255, 0.7), 0 0 40px rgba(180, 100, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.1);
}
.capability-card:hover h3 {
  color: #fff;
}
.capability-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}
.capability-card:hover .capability-icon {
  border: 0.3px solid #b464ff;
}
.capability-icon {
  width: 52px;
  height: 52px;
  background: var(--color-teal-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-primary);
  transition: transform var(--transition-base), background var(--transition-base), color var(--transition-base);
}
.capability-card:hover .capability-icon {
  background: var(--color-primary);
  color: white;
  transform: scale(1.1) rotate(-5deg);
}
.capability-icon svg { width: 24px; height: 24px; }
.capability-card:nth-child(1) .capability-icon { background: #FFF8E1; color: #F9A825; }
.capability-card:nth-child(2) .capability-icon { background: #FFF3E0; color: #EF6C00; }
.capability-card:nth-child(3) .capability-icon { background: #E8F5E9; color: #388E3C; }
.capability-card:nth-child(4) .capability-icon { background: #E3F2FD; color: #1976D2; }
.capability-card:nth-child(1):hover .capability-icon { background: #F9A825; color: white; }
.capability-card:nth-child(2):hover .capability-icon { background: #EF6C00; color: white; }
.capability-card:nth-child(3):hover .capability-icon { background: #388E3C; color: white; }
.capability-card:nth-child(4):hover .capability-icon { background: #1976D2; color: white; }
.capability-card h3 {
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.capability-card p {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
  line-height: 1.6;
}

/* --- Product Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.product-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
.product-card:hover { box-shadow: 0 12px 24px rgba(255,193,7,0.15); transform: translateY(-6px); border-color: var(--color-brand); }
.product-image {
  aspect-ratio: 4/3;
  background: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-4xl);
  color: var(--color-muted-foreground);
  overflow: hidden;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image img {
  transform: scale(1.1);
}
.product-info { padding: var(--space-5); }
.product-info h3 { font-size: var(--text-base); color: var(--color-primary); margin-bottom: var(--space-2); }
.product-info p { font-size: var(--text-sm); color: var(--color-muted-foreground); }
.product-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  background: var(--color-warm-light);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 500;
  border-radius: var(--radius-sm);
  margin-top: var(--space-3);
}

/* --- Logo Wall --- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
  align-items: center;
}
.logo-wall-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  opacity: 0.6;
  transition: opacity var(--transition-base);
  min-height: 80px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted-foreground);
}
.logo-wall-item:hover { opacity: 1; }

/* --- Certifications --- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 22px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: #1a1a1a;
  box-shadow: 0 0 12px rgba(180, 100, 255, 0.6), 0 0 24px rgba(180, 100, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  width: 100%;
  height: 44px;
  justify-content: center;
}
.cert-badge:hover {
  transform: translateY(-6px);
  background: rgba(229, 172, 0, 0.9);
  border-color: rgba(180, 100, 255, 0.7);
  box-shadow: 0 0 20px rgba(180, 100, 255, 0.7), 0 0 40px rgba(180, 100, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.1);
  color: #fff;
  font-size: 1rem;
}
.cert-badge:hover svg { color: #fff; }
.cert-badge svg { width: 18px; height: 18px; color: var(--color-success); }

/* --- Process Steps --- */
.process-steps {
  display: flex;
  align-items: flex-start;
  width: 100%;
  position: relative;
}

.process-steps::before {
  display: none;
}

.process-step {
  text-align: center;
  position: relative;
  width: 100px;
  flex-shrink: 0;
}

.step-arrow {
  flex: 1;
  display: flex;
  align-items: center;
  height: 80px;
}

.step-arrow svg {
  width: 100%;
  height: 24px;
  overflow: visible;
}

.step-arrow .arrow-line {
  animation: arrowDash 1.5s linear infinite;
}

@keyframes arrowDash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -20; }
}

/* 每个圆点总周期8s，每条线占2s，其余时间隐藏 */
.step-arrow .arrow-dot {
  opacity: 0;
}

.step-arrow:nth-of-type(1) .arrow-dot {
  animation: dotShow 8s linear infinite;
}
.step-arrow:nth-of-type(2) .arrow-dot {
  animation: dotShow 8s linear 2s infinite;
}
.step-arrow:nth-of-type(3) .arrow-dot {
  animation: dotShow 8s linear 4s infinite;
}
.step-arrow:nth-of-type(4) .arrow-dot {
  animation: dotShow 8s linear 6s infinite;
}

@keyframes dotShow {
  0% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

.process-running-dot {
  display: none;
}
.step-number {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-4);
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #1a1a1a;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(180, 100, 255, 0.6), 0 0 24px rgba(180, 100, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.step-number img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.step-num-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  background: none;
  border-radius: 50%;
}
.process-step:hover .step-number {
  transform: translateY(-6px);
  background: rgba(229, 172, 0, 0.9);
  border-color: rgba(180, 100, 255, 0.7);
  box-shadow: 0 0 20px rgba(180, 100, 255, 0.7), 0 0 40px rgba(180, 100, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.1);
  color: #fff;
}
.process-step h4 { font-size: var(--text-sm); font-weight: 600; color: var(--color-primary); margin-bottom: var(--space-2); }
.process-step p { font-size: var(--text-xs); color: var(--color-muted-foreground); text-align: center; }

/* --- CTA Section --- */
.cta-section {
  background: var(--color-primary);
  padding: var(--space-16) 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,193,7,0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-section h2 { font-size: var(--text-3xl); margin-bottom: var(--space-4); }
.cta-section p { font-size: var(--text-lg); opacity: 0.85; margin-bottom: var(--space-8); max-width: 600px; margin-left: auto; margin-right: auto; }

/* --- Footer --- */
.footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.8);
  padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-brand .logo-text { color: white; font-size: var(--text-xl); font-family: var(--font-heading); font-weight: 600; margin-bottom: var(--space-4); }
.footer-brand p { font-size: var(--text-sm); line-height: 1.7; opacity: 0.7; max-width: 300px; }
.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-col a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  padding: var(--space-1) 0;
  transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--color-warm); }
.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;
  font-size: var(--text-xs);
  opacity: 0.6;
  position: relative;
}
.footer-beian {
  display: inline-flex;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.footer-social { display: flex; gap: var(--space-4); }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.footer-social a:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.footer-social a svg { width: 16px; height: 16px; fill: rgba(255,255,255,0.7); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--space-4) 0;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .hero-title { font-size: var(--text-4xl); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .process-steps { flex-wrap: wrap; }
  .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .hero { min-height: 70vh; }
  .hero-title { font-size: var(--text-3xl); }
  .section { padding: var(--space-12) 0; }
  .section-title { font-size: var(--text-2xl); }
  .capabilities-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .process-steps { flex-direction: column; align-items: center; gap: var(--space-4); }
  .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-bottom { flex-direction: column; gap: var(--space-4); }
  .footer-beian { position: static; transform: none; }
}
@media (max-width: 375px) {
  .hero-title { font-size: var(--text-2xl); }
  .stats-grid { grid-template-columns: 1fr; }
}

/* --- RTL Support (Arabic) --- */
[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .nav-menu { direction: rtl; }
[dir="rtl"] .hero .container { direction: rtl; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .process-steps { direction: rtl; }
[dir="rtl"] .hero-actions { justify-content: flex-end; }
@media (max-width: 1024px) {
  [dir="rtl"] .hero-actions { justify-content: center; }
}

/* --- Animations (respects reduced-motion) --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .capability-card, .product-card {
    animation: fadeInUp 0.6s ease both;
  }
  .capability-card:nth-child(1), .product-card:nth-child(1) { animation-delay: 0.05s; }
  .capability-card:nth-child(2), .product-card:nth-child(2) { animation-delay: 0.1s; }
  .capability-card:nth-child(3), .product-card:nth-child(3) { animation-delay: 0.15s; }
  .capability-card:nth-child(4), .product-card:nth-child(4) { animation-delay: 0.2s; }
  .product-card:nth-child(5) { animation-delay: 0.25s; }
  .product-card:nth-child(6) { animation-delay: 0.3s; }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.05s; }
.reveal:nth-child(3) { transition-delay: 0.1s; }
.reveal:nth-child(4) { transition-delay: 0.15s; }
.reveal:nth-child(5) { transition-delay: 0.2s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }

/* --- Utility --- */
.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;
}
