/* Static Site Styles — Stitch-Level Quality */
:root {
  --primary: #2563eb;
  --accent: #f59e0b;
  --font-heading: 'system-ui, sans-serif', system-ui, sans-serif;
  --font-body: 'system-ui, sans-serif', system-ui, sans-serif;

  /* Derived colors */
  --primary-light: color-mix(in srgb, #2563eb 12%, transparent);
  --primary-dark: color-mix(in srgb, #2563eb 85%, #000);
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-muted: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --border-subtle: #f1f5f9;
  --border-default: #e2e8f0;

  /* Shadow scale — multi-layer for depth */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.15);

  /* Radius scale */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
  --radius-pill: 9999px;

  /* Timing */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.4s;
}

/* ── Scroll Animations ── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: translateY(0); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .section { opacity: 1; }
  .feature-card:hover, .product-card:hover, .catalog-product:hover, .testimonial-card:hover, .cert-card:hover { transform: none; }
}



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

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

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

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

.animate-fadeIn {
  animation: fadeIn var(--duration-normal) var(--ease-out-expo) forwards;
  opacity: 0;
}

body {
  font-family: var(--font-body);
  color: var(--fg); /* Adjusted to use --fg */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--bg); /* Adjusted to use --bg */
}

img { max-width: 100%; height: auto; display: block; }

a { text-decoration: none; color: inherit; transition: color var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

/* Focus styles for accessibility */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }

/* Utility classes */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }

.container-sm { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

.container-md { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 6rem 0; opacity: 0; /* Initial state for animation */
  transform: translateY(20px); /* Initial state for animation */
  transition: opacity var(--duration-normal) var(--ease-out-expo), transform var(--duration-normal) var(--ease-out-expo);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section.visible > * {
  animation: fadeIn var(--duration-normal) var(--ease-out-expo) forwards;
  opacity: 0; /* Ensure elements start hidden */
}

/* Staggered animation for direct children of .section.visible */
.section.visible > *:nth-child(1) { animation-delay: 0s; }

.section.visible > *:nth-child(2) { animation-delay: var(--stagger); }

.section.visible > *:nth-child(3) { animation-delay: calc(2 * var(--stagger)); }

.section.visible > *:nth-child(4) { animation-delay: calc(3 * var(--stagger)); }

.section.visible > *:nth-child(5) { animation-delay: calc(4 * var(--stagger)); }

.section.visible > *:nth-child(6) { animation-delay: calc(5 * var(--stagger)); }

.section.visible > *:nth-child(7) { animation-delay: calc(6 * var(--stagger)); }

.section-label { display: inline-block; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 0.75rem; }

.section-title { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 1rem; letter-spacing: -0.025em; line-height: 1.2; color: var(--fg); /* Adjusted to use --fg */ }

.section-subtitle { color: var(--muted); /* Adjusted to use --muted */ text-align: center; margin-bottom: 3.5rem; max-width: 42rem; margin-left: auto; margin-right: auto; line-height: 1.75; font-size: 1.0625rem; }

@media (min-width: 768px) {
  .section { padding: 7rem 0; }
  .section-title { font-size: 2.5rem; }
}

/* Grid */
.grid { display: grid; gap: 1.5rem; }

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

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

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

@media (min-width: 768px) {
  .grid { gap: 2rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2-layout { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Navbar ─── */
.navbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); border-bottom: 1px solid var(--border); transition: background var(--duration-normal) var(--ease-out-expo), box-shadow var(--duration-normal) var(--ease-out-expo), border-color var(--duration-normal) var(--ease-out-expo); /* Updated ease */ }

.navbar-inner { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; height: 4.25rem; display: flex; align-items: center; justify-content: space-between; }

.navbar-logo { display: flex; align-items: center; gap: 0.625rem; }

.navbar-logo img { height: 2rem; }

.navbar-logo span { font-size: 1.25rem; font-weight: 700; font-family: var(--font-heading); letter-spacing: -0.02em; }

.navbar-links { display: none; align-items: center; gap: 2rem; }

.navbar-links a { font-size: 0.875rem; color: var(--muted); /* Adjusted to use --muted */ font-weight: 500; transition: color var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.navbar-links a:hover { color: var(--fg); /* Adjusted to use --fg */ }

.navbar-cta { display: none; padding: 0.5rem 1.25rem; color: #fff; font-size: 0.875rem; font-weight: 500; border-radius: var(--radius-pill); background: var(--primary); box-shadow: var(--shadow-sm); transition: all var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.navbar-cta:hover { opacity: 0.92; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.navbar-toggle { display: block; padding: 0.5rem; color: var(--muted); /* Adjusted to use --muted */ background: none; border: none; cursor: pointer; }

.navbar-toggle svg { width: 1.5rem; height: 1.5rem; }

.navbar-mobile { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 1rem 1.5rem; }

.navbar-mobile.open { display: block; }

.navbar-mobile a { display: block; padding: 0.625rem 0; font-size: 0.875rem; color: var(--muted); /* Adjusted to use --muted */ font-weight: 500; }

.navbar-mobile .mobile-cta { display: block; text-align: center; margin-top: 0.75rem; padding: 0.625rem 1.25rem; color: #fff; font-size: 0.875rem; font-weight: 500; border-radius: var(--radius-pill); background: var(--primary); }

@media (min-width: 768px) {
  .navbar-links { display: flex; }
  .navbar-cta { display: inline-block; }
  .navbar-toggle { display: none; }
}

/* ─── Hero ─── */
.hero { position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%); }

.hero-content { position: relative; z-index: 10; max-width: 56rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }

.hero h1 { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.15; letter-spacing: -0.03em; }

.hero p.sub { font-size: 1.125rem; margin-bottom: 2.5rem; max-width: 42rem; margin-left: auto; margin-right: auto; line-height: 1.7; }

.hero-badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.375rem 1rem; border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 600; margin-bottom: 1.5rem; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); color: #fff; border: 1px solid rgba(255,255,255,0.2); }

.hero:not(.has-bg) .hero-badge { background: var(--primary-light); color: var(--primary); border-color: transparent; }

.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

.hero-ctas .btn-primary { padding: 0.875rem 2.25rem; color: #fff; border-radius: var(--radius-pill); font-weight: 600; background: var(--primary); box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent); transition: all var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.hero-ctas .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 40%, transparent); }

.hero-ctas .btn-secondary { padding: 0.875rem 2.25rem; border: 1.5px solid var(--border); border-radius: var(--radius-pill); font-weight: 600; transition: all var(--duration-fast) var(--ease-out-expo); /* Updated ease */ background: var(--surface); }

.hero-ctas .btn-secondary:hover { background: var(--surface-elevated); /* Adjusted to use --surface-elevated */ transform: translateY(-2px); }

.hero.has-bg h1, .hero.has-bg p.sub { color: #fff; }

.hero.has-bg p.sub { color: rgba(255,255,255,0.85); }

.hero.has-bg .btn-secondary { border-color: rgba(255,255,255,0.4); color: #fff; background: transparent; }

.hero.has-bg .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

.hero-stats { margin-top: 3.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; }

.hero-stat-item { padding: 0.75rem 1.25rem; border-radius: var(--radius-lg); }

.hero.has-bg .hero-stat-item { background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); }

.hero-stat-value { font-family: var(--font-heading); font-size: 1.875rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.hero-stat-label { font-size: 0.8125rem; margin-top: 0.125rem; font-weight: 500; }

.hero.has-bg .hero-stat-value { color: #fff; }

.hero.has-bg .hero-stat-label { color: rgba(255,255,255,0.7); }

.hero:not(.has-bg) .hero-stat-value { color: var(--primary); }

.hero:not(.has-bg) .hero-stat-label { color: var(--muted); /* Adjusted to use --muted */ }

.hero:not(.has-bg) .hero-stat-item { background: var(--surface-elevated); /* Adjusted to use --surface-elevated */ border: 1px solid var(--border); }

@media (min-width: 768px) {
  .hero h1 { font-size: 4rem; }
  .hero p.sub { font-size: 1.25rem; }
  .hero-stat-value { font-size: 2.25rem; }
  .hero-stats { gap: 1rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 4.5rem; }
}

/* ─── Feature Grid ─── */
.feature-card { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; transition: all var(--duration-normal) var(--ease-out-expo); /* Updated ease */ background: var(--surface); box-shadow: var(--shadow-xs); position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px; /* create border effect */
  background: linear-gradient(45deg, var(--primary), var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
  pointer-events: none;
}

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

.feature-card:hover::before { opacity: 1; }

/* Show glowing border on hover */


.feature-card-body { padding: 1.75rem; }

.feature-card img { width: 100%; height: 12rem; object-fit: cover; }

.feature-icon { width: 3.25rem; height: 3.25rem; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; background: var(--primary-light); color: var(--primary); /* Added color for icon */ }

.feature-card h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; color: var(--fg); /* Adjusted to use --fg */ }

.feature-card p { color: var(--muted); /* Adjusted to use --muted */ font-size: 0.9375rem; line-height: 1.65; }

/* ─── Logo Wall ─── */
.logo-wall { padding: 4rem 0; background: var(--surface-elevated); /* Adjusted to use --surface-elevated */ }

.logo-wall-title { text-align: center; font-size: 0.875rem; color: var(--muted); /* Adjusted to use --muted */ margin-bottom: 2rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

.logo-wall-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; }

@media (min-width: 768px) { .logo-wall-grid { gap: 4rem; } }

.logo-wall-grid img { height: 2rem; object-fit: contain; filter: grayscale(100%); opacity: 0.5; transition: all var(--duration-normal) var(--ease-out-expo); /* Updated ease */ }

.logo-wall-grid img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }

/* Added subtle scale on hover */

.logo-wall-grid .logo-text { display: inline-flex; align-items: center; height: 2rem; padding: 0 1rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); /* Adjusted to use --muted */ letter-spacing: 0.05em; transition: color var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.logo-wall-grid .logo-text:hover { color: var(--fg); /* Adjusted to use --fg */ }

@media (min-width: 768px) { .logo-wall-grid img { height: 2.5rem; } .logo-wall-grid .logo-text { height: 2.5rem; } }

/* ─── Testimonial ─── */
.testimonial-card { position: relative; padding: 2rem; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all var(--duration-normal) var(--ease-out-expo); /* Updated ease */ }

.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.testimonial-card::before { content: '"'; position: absolute; top: 1rem; right: 1.5rem; font-size: 4rem; font-family: Georgia, serif; line-height: 1; color: var(--primary); opacity: 0.08; pointer-events: none; }

.testimonial-card .quote { color: var(--fg); /* Adjusted to use --fg */ line-height: 1.7; margin-bottom: 1.5rem; font-size: 0.9375rem; }

.testimonial-card .stars { color: var(--accent); /* Adjusted to use --accent */ font-size: 0.875rem; margin-bottom: 1rem; letter-spacing: 0.1em; }

.testimonial-author { display: flex; align-items: center; gap: 0.875rem; }

.testimonial-author img { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; ring: 2px solid var(--primary-light); box-shadow: 0 0 0 2px var(--primary-light); }

.testimonial-author .name { font-weight: 700; font-size: 0.9375rem; color: var(--fg); }

.testimonial-author .meta { font-size: 0.8125rem; color: var(--muted); /* Adjusted to use --muted */ }

/* ─── FAQ ─── */
.faq-item { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; transition: box-shadow var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.faq-item:hover { box-shadow: var(--shadow-sm); }

.faq-question { width: 100%; padding: 1.25rem 1.5rem; text-align: left; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-family: var(--font-heading); background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--fg); /* Adjusted to use --fg */ transition: background var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.faq-question:hover { background: var(--surface-elevated); /* Adjusted to use --surface-elevated */ }

.faq-question .arrow { transition: transform var(--duration-normal) var(--ease-out-expo); /* Updated ease */ font-size: 0.75rem; color: var(--muted); /* Adjusted to use --muted */ }

.faq-question .arrow.open { transform: rotate(180deg); }

.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--muted); /* Adjusted to use --muted */ font-size: 0.9375rem; line-height: 1.7; display: none; }

.faq-answer.open { display: block; }

/* ─── CTA ─── */
.cta-section { text-align: center; position: relative; overflow: hidden; }

.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 70%), radial-gradient(ellipse at 70% 50%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%); pointer-events: none; animation: pulse 4s infinite var(--ease-out-expo);
}

.cta-section h2 { font-family: var(--font-heading); font-size: 2rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.025em; position: relative; color: var(--fg); }

@media (min-width: 768px) { .cta-section h2 { font-size: 2.5rem; } }

.cta-section p { font-size: 1.125rem; margin-bottom: 2.5rem; position: relative; line-height: 1.7; color: var(--muted); }

.cta-section .cta-btn { display: inline-block; padding: 0.875rem 2.5rem; border-radius: var(--radius-pill); font-weight: 600; transition: all var(--duration-fast) var(--ease-out-expo); /* Updated ease */ position: relative; box-shadow: var(--shadow-md); background: var(--primary); color: #fff; }

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

/* ─── Footer ─── */
.site-footer { background: var(--fg); /* Adjusted to use --fg */ color: #fff; padding: 5rem 0 0; }

.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-bottom: 3.5rem; }

@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-logo { display: flex; align-items: center; gap: 0.625rem; margin-bottom: 1rem; }

.footer-logo img { height: 2rem; filter: brightness(0) invert(1); /* Ensure white logo on dark background */ }

.footer-logo h3 { font-size: 1.25rem; font-weight: 700; font-family: var(--font-heading); letter-spacing: -0.02em; }

.footer-socials { display: flex; gap: 0.5rem; margin-top: 1.25rem; }

.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; font-size: 0.8125rem; color: var(--muted); /* Adjusted to use --muted */ background: rgba(255,255,255,0.06); transition: all var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.footer-socials a:hover { color: #fff; background: rgba(255,255,255,0.12); transform: translateY(-1px); }

.footer-col h4 { font-family: var(--font-heading); font-weight: 600; font-size: 0.875rem; margin-bottom: 1.25rem; color: var(--surface-elevated); /* Adjusted to use --surface-elevated as lighter text */ letter-spacing: -0.01em; }

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 0.625rem; }

.footer-col a { font-size: 0.875rem; color: var(--muted); /* Adjusted to use --muted */ transition: color var(--duration-fast) var(--ease-out-expo); /* Updated ease */ position: relative; display: inline-block; }

.footer-col a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1px; background: #fff; transition: width var(--duration-normal) var(--ease-out-expo); /* Updated ease */ }

.footer-col a:hover { color: #fff; }

.footer-col a:hover::after { width: 100%; }

.footer-copyright { border-top: 1px solid rgba(255,255,255,0.08); padding: 2rem 0; text-align: center; color: var(--muted); /* Adjusted to use --muted */ font-size: 0.8125rem; }

.site-footer { opacity: 1 !important; visibility: visible !important; transform: none !important; }

.navbar, nav { opacity: 1 !important; visibility: visible !important; transform: none !important; }

/* ─── Comparison Table ─── */
.comparison-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }

.comparison-table thead tr { background: var(--primary); }

.comparison-table th { padding: 1rem 1.5rem; font-weight: 600; color: #fff; text-align: center; font-size: 0.875rem; }

.comparison-table th:first-child { text-align: left; }

.comparison-table td { padding: 1rem 1.5rem; color: var(--fg); /* Adjusted to use --fg */ font-size: 0.9375rem; }

.comparison-table td:first-child { font-weight: 600; }

.comparison-table td:not(:first-child) { text-align: center; color: var(--muted); /* Adjusted to use --muted */ }

.comparison-table tr:nth-child(even) { background: var(--surface-elevated); /* Adjusted to use --surface-elevated */ }

/* ─── Product Gallery ─── */
.product-card { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--duration-normal) var(--ease-out-expo); /* Updated ease */ position: relative;
}

.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.product-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  transform: translateY(4px);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-out-expo), opacity var(--duration-normal) var(--ease-out-expo);
}

.product-card:hover::after {
  transform: translateY(0);
  opacity: 1;
}

.product-card img { width: 100%; height: 16rem; object-fit: cover; }

.product-card-body { padding: 1.5rem; }

.product-card h3 { font-weight: 700; font-size: 1.125rem; color: var(--fg); /* Adjusted to use --fg */ }

.product-card .desc { color: var(--muted); /* Adjusted to use --muted */ font-size: 0.875rem; margin-top: 0.5rem; line-height: 1.6; }

.product-card .bottom { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; }

.product-card .price { font-size: 1.125rem; font-weight: 800; color: var(--fg); /* Adjusted to use --fg */ }

.product-card .link { font-size: 0.875rem; color: var(--primary); font-weight: 500; }

.product-card .link:hover { text-decoration: underline; }

/* ─── Rich Content ─── */
.rich-content h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; color: var(--fg); /* Adjusted to use --fg */ }

.rich-content p { color: var(--muted); /* Adjusted to use --muted */ line-height: 1.75; }

.rich-content img { width: 100%; border-radius: var(--radius-lg); }

.rich-side-by-side { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }

@media (min-width: 768px) { .rich-side-by-side { grid-template-columns: repeat(2, 1fr); } }

.rich-side-by-side img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transition: transform var(--duration-normal) var(--ease-out-expo); }

.rich-side-by-side img:hover { transform: scale(1.02); }

/* ─── Spec Table ─── */
.spec-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }

.spec-row { display: flex; }

.spec-row:nth-child(odd) { background: var(--surface-elevated); /* Adjusted to use --surface-elevated */ }

.spec-row:nth-child(even) { background: var(--surface); }

.spec-label { width: 33%; padding: 1rem 1.5rem; font-weight: 600; color: var(--fg); /* Adjusted to use --fg */ border-right: 1px solid var(--border); font-size: 0.9375rem; }

.spec-value { width: 67%; padding: 1rem 1.5rem; color: var(--muted); /* Adjusted to use --muted */ font-size: 0.9375rem; }

/* ─── Stats Grid ─── */
.stat-item { text-align: center; padding: 2rem 1.5rem; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: all var(--duration-normal) var(--ease-out-expo); }

.stat-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }

.stat-icon { font-size: 1.875rem; margin-bottom: 0.75rem; color: var(--primary); }

.stat-value { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; color: var(--primary); letter-spacing: -0.02em; }

@media (min-width: 768px) { .stat-value { font-size: 3rem; } }

.stat-label { font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem; color: var(--fg); /* Adjusted to use --fg */ margin-bottom: 0.25rem; }

.stat-desc { font-size: 0.8125rem; color: var(--muted); /* Adjusted to use --muted */ margin-top: 0.25rem; }

/* ─── Team ─── */
.team-member { text-align: center; animation: fadeIn var(--duration-normal) var(--ease-out-expo) forwards; opacity: 0; transition: all var(--duration-normal) var(--ease-out-expo); /* Added for overall transition */
}

.team-member:hover { transform: translateY(-5px); }

.team-avatar { width: 8rem; height: 8rem; margin: 0 auto 1.25rem; border-radius: 50%; overflow: hidden; background: var(--surface-elevated); /* Adjusted to use --surface-elevated */ box-shadow: var(--shadow-md); border: 3px solid var(--primary-light); }

.team-avatar img { width: 100%; height: 100%; object-fit: cover; }

.team-avatar .initials { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.875rem; font-weight: 700; color: #fff; background: var(--primary); }

.team-member h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; color: var(--fg); /* Adjusted to use --fg */ }

.team-member .role { font-size: 0.875rem; margin-top: 0.25rem; color: var(--primary); font-weight: 500; }

.team-member .bio { font-size: 0.875rem; color: var(--muted); /* Adjusted to use --muted */ margin-top: 0.5rem; max-width: 20rem; margin-left: auto; margin-right: auto; line-height: 1.6; }

.team-socials { display: flex; justify-content: center; gap: 0.75rem; margin-top: 0.75rem; }

.team-socials a { font-size: 0.75rem; color: var(--muted); /* Adjusted to use --muted */ transition: color var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.team-socials a:hover { color: var(--fg); /* Adjusted to use --fg */ }

/* ─── Timeline ─── */
.timeline { position: relative; }

.timeline-line { position: absolute; left: 1.5rem; top: 0; bottom: 0; width: 2px; background: var(--border); /* Changed to use --border for a softer look */ }

@media (min-width: 768px) { .timeline-line { left: 50%; transform: translateX(-50%); } }

.timeline-item { position: relative; margin-bottom: 3rem; }

.timeline-desktop { display: none; }

@media (min-width: 768px) { .timeline-desktop { display: flex; align-items: center; } .timeline-mobile { display: none; } }

.timeline-mobile { display: flex; align-items: flex-start; gap: 1rem; }

.timeline-dot { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.875rem; font-weight: 700; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-md); flex-shrink: 0; z-index: 10; transform: scale(1); transition: transform var(--duration-fast) var(--ease-out-expo); }

.timeline-dot:hover { transform: scale(1.1); }

.timeline-content .date { font-size: 0.875rem; font-weight: 600; color: var(--primary); }

.timeline-content h3 { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; margin-top: 0.25rem; color: var(--fg); /* Adjusted to use --fg */ }

.timeline-content p { font-size: 0.875rem; color: var(--muted); /* Adjusted to use --muted */ margin-top: 0.25rem; line-height: 1.6; }

.timeline-left { width: 41.67%; text-align: right; padding-right: 2rem; }

.timeline-center { width: 16.67%; display: flex; justify-content: center; }

.timeline-right { width: 41.67%; }

.timeline-item:nth-child(even) .timeline-desktop { flex-direction: row-reverse; }

.timeline-item:nth-child(even) .timeline-left { text-align: left; padding-left: 2rem; padding-right: 0; }

/* ─── Product Catalog ─── */
.catalog-sidebar { width: 100%; }

@media (min-width: 768px) { .catalog-sidebar { width: 16rem; flex-shrink: 0; } }

.catalog-cat-btn { display: block; width: 100%; text-align: left; padding: 0.625rem 1rem; border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 500; border: none; cursor: pointer; background: none; color: var(--fg); /* Adjusted to use --fg */ transition: all var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.catalog-cat-btn:hover { background: var(--surface-elevated); /* Adjusted to use --surface-elevated */ }

.catalog-cat-btn.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }

.catalog-sub-btn { display: block; width: 100%; text-align: left; padding: 0.375rem 0.75rem; margin-left: 1rem; border-radius: 0.25rem; font-size: 0.875rem; border: none; cursor: pointer; background: none; color: var(--muted); /* Adjusted to use --muted */ transition: color var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.catalog-sub-btn.active { color: var(--primary); font-weight: 600; }

.catalog-product { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--duration-normal) var(--ease-out-expo); /* Updated ease */ }

.catalog-product:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }

.catalog-product img { width: 100%; height: 12rem; object-fit: cover; }

.catalog-product-body { padding: 1.25rem; }

.catalog-product h3 { font-weight: 700; font-size: 1rem; color: var(--fg); /* Adjusted to use --fg */ }

.catalog-product .desc { color: var(--muted); /* Adjusted to use --muted */ font-size: 0.875rem; margin-top: 0.25rem; }

.catalog-spec { display: flex; font-size: 0.75rem; margin-top: 0.25rem; }

.catalog-spec .spec-k { color: var(--muted); /* Adjusted to use --muted */ width: 5rem; flex-shrink: 0; }

.catalog-spec .spec-v { color: var(--muted); /* Adjusted to use --muted */ }

/* ─── Inquiry Form ─── */
.inquiry-form { background: var(--surface); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-md); border: 1px solid var(--border); }

.inquiry-field label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--fg); /* Adjusted to use --fg */ margin-bottom: 0.375rem; }

.inquiry-field input, .inquiry-field textarea { width: 100%; padding: 0.625rem 0.875rem; border: 1.5px solid var(--border); border-radius: var(--radius-md); font-size: 0.875rem; transition: border-color var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-out-expo); /* Updated ease */ background: var(--surface); }

.inquiry-field input:focus, .inquiry-field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }

.inquiry-field textarea { height: 7rem; resize: none; }

.inquiry-submit { width: 100%; padding: 0.75rem; border-radius: var(--radius-pill); border: none; color: #fff; font-weight: 600; font-size: 0.9375rem; cursor: pointer; background: var(--primary); box-shadow: var(--shadow-sm); transition: all var(--duration-fast) var(--ease-out-expo); /* Updated ease */ }

.inquiry-submit:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.inquiry-contact { background: var(--surface); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }

.inquiry-contact h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--fg); /* Adjusted to use --fg */ }

.inquiry-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }

.inquiry-contact-item .label { font-size: 0.875rem; font-weight: 600; color: var(--fg); /* Adjusted to use --fg */ }

.inquiry-contact-item .value { font-size: 0.875rem; color: var(--muted); /* Adjusted to use --muted */ }

/* ─── Certification Wall ─── */
.cert-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; text-align: center; box-shadow: var(--shadow-xs); transition: all var(--duration-normal) var(--ease-out-expo); }

.cert-card:hover { box-shadow: var(--shadow-lg); border-color: var(--primary-light); /* Changed to use primary-light for a subtle highlight */ transform: translateY(-4px); }

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

@media (min-width: 768px) {
  h1 {
    font-size: 4rem;
  }
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--duration-normal) var(--ease-out-expo);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-on-primary);
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background-color: var(--surface-elevated);
  color: var(--text-secondary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--muted);
  border-color: var(--border);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: rgba(var(--primary-rgb), 0.05); /* Assuming --primary-rgb is defined or can be inferred */
  color: var(--primary-dark);
}

.section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  opacity: 0;
}

.section.visible {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
  animation-delay: calc(var(--stagger, 0) * 0.08s);
}

.section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(var(--primary-rgb), 0.03) 0%, rgba(var(--primary-rgb), 0) 70%);
  z-index: -1;
  opacity: 0;
  transition: opacity 1s var(--ease-out-expo);
}

.section.visible::before {
  opacity: 1;
}

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

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

/* Navbar */
.navbar {
  background-color: var(--surface-elevated);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.navbar-logo span {
  color: var(--primary);
  margin-left: 0.25rem;
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.navbar-links {
  display: none;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
    gap: 1.5rem;
  }
  .navbar-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 0.25rem 0;
  }
  .navbar-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--duration-fast) var(--ease-out-expo);
  }
  .navbar-links a:hover {
    color: var(--primary);
  }
  .navbar-links a:hover::after {
    width: 100%;
  }
}

.navbar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--muted);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out-expo), color var(--duration-fast) var(--ease-out-expo);
}

.navbar-toggle:hover {
  background-color: var(--border);
  color: var(--text-primary);
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }
}

.navbar-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--surface-elevated);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.navbar-mobile.is-active {
  display: flex;
}

.navbar-mobile a {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: background-color var(--duration-fast) var(--ease-out-expo), color var(--duration-fast) var(--ease-out-expo);
}

.navbar-mobile a:hover {
  background-color: var(--muted);
  color: var(--primary);
}

.navbar-mobile .mobile-cta {
  margin: 0 1.5rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 8rem 0;
  background-color: var(--bg);
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.05) 0%, transparent 75%); /* Assuming --primary-rgb */
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 5rem;
  }
}

.hero p.sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stats .stat-item {
  text-align: center;
}

.hero-stats .stat-item .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-stats .stat-item .label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* Feature Card */
.feature-card {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out-expo);
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(var(--primary-rgb), 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out-expo);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

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

.feature-card-icon {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--text-on-primary);
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Call to Action (CTA) */
.cta {
  background-color: var(--primary);
  color: var(--text-on-primary);
  padding: 4rem 0;
  text-align: center;
  border-radius: var(--radius-xl);
  margin: 4rem 0;
  overflow: hidden;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='30' cy='30' r='30'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.2;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--text-on-primary);
  margin-bottom: 1.5rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.cta .btn {
  background-color: var(--accent);
  color: var(--fg);
  border-color: var(--accent);
}

.cta .btn:hover {
  background-color: #4ce0c2;
  border-color: #4ce0c2;
}

/* Testimonial Card */
.testimonial-card {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out-expo);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.testimonial-card .quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
  box-shadow: var(--shadow-xs);
}

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

.testimonial-author-info .title {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  background-color: var(--muted);
  padding: 4rem 0 2rem;
  color: var(--text-secondary);
}

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: var(--text-secondary);
  position: relative;
}

.footer-col a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width var(--duration-fast) var(--ease-out-expo);
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-col a:hover::after {
  width: 100%;
}

.footer-copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: flex-start;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background-color: var(--border);
  color: var(--text-secondary);
  transition: background-color var(--duration-fast) var(--ease-out-expo), color var(--duration-fast) var(--ease-out-expo), transform var(--duration-fast) var(--ease-out-expo);
}

.footer-socials a:hover {
  background-color: var(--primary);
  color: var(--text-on-primary);
  transform: translateY(-2px) scale(1.05);
}

/* Cert Card */
.cert-card {
  background-color: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(var(--primary-rgb), 0.02) 0%, transparent 50%, rgba(var(--accent-rgb), 0.02) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out-expo);
  pointer-events: none;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.cert-card:hover::before {
  opacity: 1;
}

.cert-badge {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--primary);
  box-shadow: var(--shadow-md);
}

.cert-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.cert-card .issuer {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.cert-card .year {
  font-size: 0.8125rem;
  color: var(--primary);
  margin-top: 0.125rem;
  font-weight: 500;
}

/* ── Variant: Hero Split ── */
.hero--split {
  min-height: auto;
  padding: 5rem 0;
  overflow: visible; /* Ensure content is not cut off by before pseudo-element */
}

.hero--split .hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  text-align: left;
  max-width: 80rem;
}

@media (min-width: 768px) {
  .hero--split .hero-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hero--split h1 {
  text-align: left;
}

.hero--split p.sub {
  text-align: left;
  margin-left: 0;
}

.hero--split .hero-ctas {
  justify-content: flex-start;
}

.hero--split .hero-image {
  width: 100%;
  border-radius: var(--radius-xl); /* Changed to use token */
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  transition: all var(--duration-slow) var(--ease-out-expo);
}

.hero--split .hero-image:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), 0 0 0 4px var(--primary-light);
}

.hero--split .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.hero--split .hero-image:hover img {
  transform: scale(1.05);
}

/* ── Variant: Hero Minimal ── */
.hero--minimal {
  min-height: 60vh;
}

.hero--minimal .hero-ctas .btn-secondary {
  display: none;
}

.hero--minimal .hero-stats {
  display: none;
}

/* ── Variant: Navbar Transparent ── */
.navbar--transparent {
  position: absolute;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  transition: all var(--duration-normal) var(--ease-out-expo); /* Changed to use token */
}

.navbar--transparent .navbar-links a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--duration-fast) var(--ease-out-expo); /* Changed to use token */
}

.navbar--transparent .navbar-links a:hover {
  color: #fff;
}

.navbar--transparent .navbar-logo span {
  color: #fff;
  transition: color var(--duration-fast) var(--ease-out-expo); /* Changed to use token */
}

.navbar--transparent .navbar-toggle {
  color: rgba(255, 255, 255, 0.85);
}

.navbar--transparent .navbar-mobile {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  border-top-color: rgba(255, 255, 255, 0.1);
}

.navbar--transparent .navbar-mobile a {
  color: rgba(255, 255, 255, 0.85);
}

.navbar--transparent .navbar-mobile a:hover {
  color: #fff;
}

.navbar--transparent .navbar-mobile .mobile-cta {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-md);
}

.navbar--transparent .navbar-mobile .mobile-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.navbar--transparent.navbar--scrolled {
  background-color: var(--surface-elevated);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}

.navbar--transparent.navbar--scrolled .navbar-mobile {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-top-color: var(--border); /* Changed to use token */
}

.navbar--transparent.navbar--scrolled .navbar-mobile a {
  color: var(--text-secondary);
}

.navbar--transparent.navbar--scrolled .navbar-mobile a:hover {
  color: var(--text-primary);
}

.navbar--transparent.navbar--scrolled .navbar-mobile .mobile-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-md); /* Added shadow for consistency */
}

/* ── Variant: Navbar Dark ── */
.navbar--dark {
  background: #0f172a;
  border-bottom-color: #1e293b;
  transition: all var(--duration-normal) var(--ease-out-expo); /* Changed to use token */
}

.navbar--dark .navbar-links a {
  color: #cbd5e1;
  transition: color var(--duration-fast) var(--ease-out-expo); /* Changed to use token */
}

.navbar--dark .navbar-links a:hover {
  color: #fff;
}

.navbar--dark .navbar-logo span {
  color: #fff;
}

.navbar--dark .navbar-toggle {
  color: #cbd5e1;
}

.navbar--dark .navbar-mobile {
  background: #0f172a;
  border-top-color: #1e293b;
}

.navbar--dark .navbar-mobile a {
  color: #cbd5e1;
}

.navbar--dark .navbar-mobile a:hover {
  color: #fff;
}

.navbar--dark .navbar-mobile .mobile-cta {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.navbar--dark .navbar-mobile .mobile-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.navbar--dark.navbar--scrolled .navbar-mobile {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  border-top-color: #334155;
}

.navbar--dark.navbar--scrolled .navbar-mobile a {
  color: #e2e8f0;
}

.navbar--dark.navbar--scrolled .navbar-mobile a:hover {
  color: #fff;
}

.navbar--dark.navbar--scrolled .navbar-mobile .mobile-cta {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

/* ── Variant: Feature Grid Bento ── */
.feature-grid--bento .grid {
  grid-template-rows: auto;
}

.feature-grid--bento .feature-card:first-child {
  grid-row: span 2;
}

.feature-grid--bento .feature-card:first-child img {
  height: 100%;
  min-height: 20rem;
}

/* ── Variant: Feature Grid Minimal ── */
.feature-grid--minimal .feature-card {
  border: none;
  box-shadow: none;
  background: transparent;
}

.feature-grid--minimal .feature-card:hover {
  box-shadow: none;
  transform: none;
}

.feature-grid--minimal .feature-card-body {
  padding: 1rem 0;
}

/* ── Variant: Testimonial Single ── */
.testimonial--single .grid {
  grid-template-columns: 1fr !important;
  max-width: 42rem;
  margin: 0 auto;
}

.testimonial--single .testimonial-card {
  padding: 3rem;
  text-align: center;
}

.testimonial--single .testimonial-card .quote {
  font-size: 1.25rem;
  font-style: italic;
}

.testimonial--single .testimonial-author {
  justify-content: center;
}

/* ── Variant: Testimonial Featured ── */
.testimonial--featured .testimonial-card:first-child {
  grid-column: 1 / -1;
  padding: 2.5rem;
}

.testimonial--featured .testimonial-card:first-child .quote {
  font-size: 1.125rem;
}

/* ── Variant: Footer Minimal ── */
.footer--minimal {
  padding: 2.5rem 0;
}

.footer--minimal .footer-grid {
  grid-template-columns: 1fr;
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer--minimal .footer-col {
  display: none;
}

.footer--minimal .footer-socials {
  justify-content: center;
}

/* ── Variant: Footer Light ── */
.footer--light {
  background: var(--muted); /* Changed to use token */
  color: var(--text-primary);
}

.footer--light .footer-col a {
  color: var(--text-secondary);
}

.footer--light .footer-col a:hover {
  color: var(--text-primary);
}

.footer--light .footer-col a::after {
  background: var(--text-primary);
}

.footer--light .footer-copyright {
  border-top-color: var(--border); /* Changed to use token */
  color: var(--text-tertiary);
}

.footer--light .footer-socials a {
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.04);
}

.footer--light .footer-socials a:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.08);
}

/* ── Variant: CTA Split ── */
.cta--split {
  text-align: left;
}

.cta--split .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta--split h2 {
  text-align: left;
  margin-bottom: 0;
}

.cta--split p {
  text-align: left;
  margin-bottom: 0;
  max-width: 32rem;
}

/* ── Variant: Stats Decorated ── */
.stats--decorated .stat-item {
  position: relative;
  padding-top: 2rem;
}

.stats--decorated .stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.stats--decorated .stat-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--text-on-primary);
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-fast) var(--ease-out-expo), box-shadow var(--duration-fast) var(--ease-out-expo);
}

.stats--decorated .stat-icon:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Global section animation additions */
.section {
  opacity: 0;
  transition: all var(--duration-slow) var(--ease-out-expo);
  transform: translateY(20px);
}

.section.visible {
  animation: fadeInUp 0.6s var(--ease-out-expo) both;
  animation-delay: calc(var(--stagger, 0) * 0.12s); /* Increased stagger delay for more noticeable effect */
  transform: translateY(0);
  opacity: 1;
}

/* Image hover effect */
.feature-card img,
.product-card img,
.catalog-product img {
  transition: transform var(--duration-normal) var(--ease-out-expo);
}

.feature-card:hover img,
.product-card:hover img,
.catalog-product:hover img {
  transform: scale(1.03);
}