/* ============================================================
   Zhejiang ETEI — Design System
   Color Space: OKLCH | Spacing: 4pt | Typography: Fluid
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* --- Color Palette: 户外淡青色 (Outdoor Sage Teal) --- */
  --color-primary:       oklch(62% 0.09 175);
  --color-primary-dark:  oklch(42% 0.10 175);
  --color-primary-light: oklch(82% 0.05 175);
  --color-primary-ghost: oklch(92% 0.03 175);
  --color-primary-deep:  oklch(30% 0.08 175);

  /* Accent: warm terracotta for CTAs */
  --color-accent:        oklch(58% 0.13 35);
  --color-accent-dark:   oklch(42% 0.12 35);
  --color-accent-light:  oklch(78% 0.08 35);

  /* Tinted neutrals (sage-cast, not dead gray) */
  --color-surface:       oklch(97% 0.006 170);
  --color-surface-alt:   oklch(99% 0.003 170);
  --color-surface-dark:  oklch(94% 0.008 170);
  --color-border:        oklch(88% 0.01 170);
  --color-border-light:  oklch(92% 0.008 170);

  /* Text (warm dark, not pure black) */
  --color-text:          oklch(22% 0.01 170);
  --color-text-secondary:oklch(40% 0.01 170);
  --color-text-muted:    oklch(58% 0.008 170);
  --color-text-inverse:  oklch(97% 0.002 170);

  /* Semantic */
  --color-success:       oklch(55% 0.15 150);
  --color-warning:       oklch(65% 0.15 85);
  --color-error:         oklch(50% 0.18 25);

  /* --- Typography --- */
  --font-heading:  'Outfit', 'Noto Sans SC', system-ui, sans-serif;
  --font-body:     'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Fluid type scale (perfect fourth: 1.333) */
  --text-xs:   clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm:   clamp(0.82rem, 0.77rem + 0.25vw, 0.92rem);
  --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1.05rem);
  --text-md:   clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  --text-lg:   clamp(1.3rem, 1.15rem + 0.75vw, 1.6rem);
  --text-xl:   clamp(1.6rem, 1.35rem + 1.25vw, 2.1rem);
  --text-2xl:  clamp(2rem, 1.6rem + 2vw, 2.8rem);
  --text-3xl:  clamp(2.5rem, 1.8rem + 3.5vw, 4rem);
  --text-hero: clamp(3rem, 2rem + 5vw, 5.5rem);

  /* --- Spacing (4pt base) --- */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* --- Layout --- */
  --max-width:   75rem;
  --max-width-narrow: 45rem;
  --radius-sm:   0.5rem;
  --radius-md:   0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* --- Shadows (subtle, no harsh blacks) --- */
  --shadow-sm:   0 1px 3px oklch(0% 0 0 / 0.06);
  --shadow-md:   0 4px 16px oklch(0% 0 0 / 0.08);
  --shadow-lg:   0 12px 40px oklch(0% 0 0 / 0.10);
  --shadow-xl:   0 20px 60px oklch(0% 0 0 / 0.13);

  /* --- Transitions --- */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 150ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* --- Z-Index --- */
  --z-header:   100;
  --z-overlay:  200;
  --z-modal:    300;
  --z-toast:    400;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-surface-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: var(--z-modal);
  font-weight: 500;
  transition: top var(--duration-fast);
}
.skip-link:focus {
  top: var(--space-md);
}

/* --- Utility: Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}

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

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: oklch(98% 0.002 170 / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-light);
  transition: background var(--duration-base), box-shadow var(--duration-base);
}

.site-header.scrolled {
  background: oklch(98% 0.003 170 / 0.95);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(3.5rem, 3rem + 2vw, 4.5rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 800;
}

/* Desktop nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-links a {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform var(--duration-base) var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary-dark);
}

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

.nav-cta {
  background: var(--color-primary-dark) !important;
  color: var(--color-text-inverse) !important;
  padding: var(--space-xs) var(--space-lg) !important;
  border-radius: var(--radius-full) !important;
  font-weight: 600 !important;
  transition: background var(--duration-fast), transform var(--duration-fast) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--color-primary-deep) !important;
  transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-sm);
  padding: 2px;
  background: var(--color-surface-dark);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--color-text-secondary);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.lang-btn:hover {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.lang-btn.active {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: var(--z-overlay);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out-expo);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary-deep);
  color: oklch(85% 0.02 170);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid oklch(60% 0.04 170 / 0.2);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  line-height: 1.7;
  opacity: 0.75;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col a {
  display: block;
  font-size: var(--text-sm);
  padding: var(--space-xs) 0;
  opacity: 0.7;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}

.footer-col a:hover {
  opacity: 1;
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  font-size: var(--text-xs);
  opacity: 0.6;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  border: 1px solid oklch(60% 0.04 170 / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast), border-color var(--duration-fast);
}

.social-links a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  padding: clamp(7rem, 6rem + 8vw, 12rem) 0 var(--space-4xl);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, oklch(88% 0.06 175 / 0.4), transparent 60%),
    radial-gradient(ellipse 40% 50% at 85% 80%, oklch(82% 0.05 175 / 0.2), transparent),
    var(--color-surface-alt);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, oklch(90% 0.04 175 / 0.3) 0%, transparent 50%),
    radial-gradient(circle at 75% 60%, oklch(88% 0.06 170 / 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 40rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-primary-ghost);
  color: var(--color-primary-dark);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  border: 1px solid var(--color-primary-light);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

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

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.hero h1 .accent {
  color: var(--color-primary-dark);
  position: relative;
}

.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  width: 100%;
  height: 0.15em;
  background: var(--color-primary-light);
  border-radius: 1px;
  z-index: -1;
}

.hero-desc {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 36rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out-expo);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary-dark);
  color: white;
  box-shadow: 0 4px 20px oklch(42% 0.1 175 / 0.25);
}

.btn-primary:hover {
  background: var(--color-primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px oklch(30% 0.08 175 / 0.35);
}

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

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-arrow {
  transition: transform var(--duration-fast);
}

.btn-outline:hover .btn-arrow {
  transform: translateX(4px);
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
}

.hero-stat h3 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}

.hero-stat p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hero-visual-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-2xl);
  position: relative;
  border: 1px solid var(--color-border-light);
}

.hero-image-placeholder {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, var(--color-primary-ghost), oklch(94% 0.03 170)),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      oklch(90% 0.02 170 / 0.3) 8px,
      oklch(90% 0.02 170 / 0.3) 9px
    );
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-image-placeholder svg {
  width: 40%;
  height: auto;
  opacity: 0.6;
}

/* Floating badges */
.hero-float-badge {
  position: absolute;
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-md);
  font-size: var(--text-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--color-border-light);
  animation: float-badge 6s ease-in-out infinite;
}

.hero-float-badge:nth-child(2) {
  top: -1.5rem;
  right: -1.5rem;
  animation-delay: 0s;
}

.hero-float-badge:nth-child(3) {
  bottom: -1rem;
  left: -1rem;
  animation-delay: 2s;
}

.hero-float-badge:nth-child(4) {
  top: 30%;
  left: -2rem;
  animation-delay: 4s;
}

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

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.badge-dot.green { background: var(--color-success); }
.badge-dot.amber { background: var(--color-warning); }
.badge-dot.teal  { background: var(--color-primary); }

/* ============================================================
   TRUSTED BY / CLIENTS
   ============================================================ */
.trusted {
  padding: var(--space-3xl) 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
}

.trusted-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: var(--space-xl);
}

.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3xl);
}

.trusted-logos span {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  opacity: 0.5;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section {
  padding: var(--space-5xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-header p {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
  max-width: 45ch;
  margin-inline: auto;
}

/* ============================================================
   PRODUCT PREVIEW GRID
   ============================================================ */
.products-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out-expo);
  position: relative;
}

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

.product-card-image {
  aspect-ratio: 4/3;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-image .card-svg {
  width: 35%;
  height: auto;
  opacity: 0.5;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

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

.product-card-tag {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--color-primary-dark);
  color: white;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--space-sm);
  border-radius: var(--radius-sm);
}

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

.product-card-body h3 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.product-card-body p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

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

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

/* ============================================================
   FEATURES / ADVANTAGES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-2xl);
}

.feature-item {
  text-align: left;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: var(--color-primary-ghost);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--color-primary-dark);
}

.feature-item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.feature-item p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================================
   STATS BANNER
   ============================================================ */
.stats-banner {
  background: var(--color-primary-dark);
  padding: var(--space-4xl) 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3xl);
  text-align: center;
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
}

.stat-item p {
  font-size: var(--text-sm);
  margin-top: var(--space-sm);
  opacity: 0.7;
}

.stat-divider {
  width: 2rem;
  height: 3px;
  background: var(--color-primary-light);
  border-radius: 1px;
  margin: var(--space-md) auto 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: var(--space-5xl) 0;
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary-deep));
  border-radius: var(--radius-xl);
  padding: var(--space-4xl) var(--space-3xl);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, oklch(70% 0.08 175 / 0.15), transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  position: relative;
}

.cta-card p {
  font-size: var(--text-md);
  opacity: 0.85;
  margin-bottom: var(--space-2xl);
  max-width: 40ch;
  margin-inline: auto;
  position: relative;
}

.cta-card .btn-primary {
  background: white;
  color: var(--color-primary-deep);
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.15);
  position: relative;
}

.cta-card .btn-primary:hover {
  background: var(--color-primary-ghost);
  box-shadow: 0 8px 30px oklch(0% 0 0 / 0.2);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.page-hero {
  padding: clamp(8rem, 7rem + 6vw, 11rem) 0 var(--space-4xl);
  background: linear-gradient(180deg, var(--color-primary-ghost), var(--color-surface-alt));
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.page-hero p {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  margin-top: var(--space-md);
  max-width: 50ch;
  margin-inline: auto;
}

.about-content {
  padding: var(--space-5xl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-visual {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, var(--color-primary-ghost), oklch(94% 0.03 170)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      oklch(88% 0.02 170 / 0.3) 12px,
      oklch(88% 0.02 170 / 0.3) 13px
    );
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual svg {
  width: 30%;
  opacity: 0.45;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.about-text p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.value-card {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  text-align: center;
}

.value-card .value-icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-primary-ghost);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--color-primary-dark);
}

.value-card h4 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

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

/* Timeline */
.timeline {
  padding: var(--space-4xl) 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
  position: relative;
}

.timeline-item:nth-child(even) {
  direction: rtl;
}
.timeline-item:nth-child(even) .timeline-content {
  direction: ltr;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  background: var(--color-primary);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: right;
  direction: ltr;
}

.timeline-item:nth-child(even) .timeline-year {
  text-align: left;
}

.timeline-content {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.timeline-content h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.timeline-content p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-3xl);
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  background: white;
  border: 1px solid var(--color-border-light);
  transition: all var(--duration-fast);
}

.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

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

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-xl);
}

.product-card-full {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out-expo);
  cursor: pointer;
}

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

.product-card-full.hidden {
  display: none;
}

.product-card-image.full {
  aspect-ratio: 1/1;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card-image.full .card-svg {
  width: 40%;
  opacity: 0.45;
  transition: transform var(--duration-slow);
}

.product-card-full:hover .card-svg {
  transform: scale(1.1);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: oklch(30% 0.08 175 / 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--duration-base);
}

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

.product-card-overlay span {
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: var(--space-sm) var(--space-xl);
  border: 2px solid white;
  border-radius: var(--radius-full);
}

.product-card-info {
  padding: var(--space-lg);
}

.product-card-info h3 {
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xs);
}

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

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

/* --- Inquiry Button --- */
.btn-inquiry {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: white;
  margin-top: var(--space-md);
  transition: all var(--duration-fast) var(--ease-out-expo);
  cursor: pointer;
  border: none;
}

.btn-inquiry:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px oklch(58% 0.13 35 / 0.3);
}

.btn-inquiry:active {
  transform: translateY(0) scale(0.97);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-4xl);
  align-items: start;
}

.contact-info h2,
.contact-form-wrap h2 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-primary-ghost);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary-dark);
}

.contact-info-text h4 {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

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

/* Contact form */
.contact-form {
  background: white;
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: var(--space-lg);
}

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

.form-group label .required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  background: var(--color-surface-alt);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(62% 0.09 175 / 0.15);
  background: white;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px oklch(50% 0.18 25 / 0.1);
}

.form-error-msg {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-xs);
  display: none;
}

.form-error-msg.visible {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-submit {
  width: 100%;
  padding: var(--space-md) var(--space-2xl);
  background: var(--color-primary-dark);
  color: white;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out-expo);
  box-shadow: 0 4px 16px oklch(42% 0.1 175 / 0.2);
}

.form-submit:hover {
  background: var(--color-primary-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px oklch(30% 0.08 175 / 0.3);
}

.form-submit:active {
  transform: translateY(0) scale(0.98);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-submit.loading {
  pointer-events: none;
}

/* Spinner inside submit button */
.form-submit .spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}

.form-submit.loading .spinner {
  display: inline-block;
}

.form-submit.loading .btn-text {
  display: inline;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form server error banner */
.form-error-banner {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  color: #991b1b;
  font-size: var(--text-xs);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.form-error-banner.visible {
  display: flex;
}

.form-error-banner svg {
  flex-shrink: 0;
  color: #dc2626;
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-3xl);
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-light);
}

.form-success.visible {
  display: block;
}

.form-success .success-icon {
  width: 4rem;
  height: 4rem;
  background: oklch(88% 0.06 150);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  color: var(--color-success);
}

.form-success h3 {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.form-success p {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
}

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

.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; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 3rem;
  height: 3rem;
  background: white;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--duration-base) var(--ease-out-expo);
}

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

.back-to-top:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   RESPONSIVE — Tablet (< 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-desc {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 30rem;
    margin-inline: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    max-width: 30rem;
    margin-inline: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .timeline::before {
    left: 1.5rem;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--space-md);
    padding-left: 3.5rem;
  }

  .timeline-dot {
    left: 1.5rem;
  }

  .timeline-year {
    text-align: left !important;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (< 768px)
   ============================================================ */
@media (max-width: 768px) {
  .container {
    padding-inline: var(--space-lg);
  }

  /* Mobile nav */
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: oklch(97% 0.005 170 / 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-2xl);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base);
    z-index: var(--z-overlay);
  }

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

  .nav-links a {
    font-size: var(--text-lg);
    padding: var(--space-md);
  }

  .lang-switcher {
    margin-left: 0;
    margin-top: var(--space-md);
  }

  /* Hero */
  .hero {
    padding: clamp(5rem, 4rem + 6vw, 8rem) 0 var(--space-3xl);
  }

  .hero h1 {
    font-size: clamp(2rem, 1.5rem + 5vw, 3rem);
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .hero-visual-card {
    padding: var(--space-lg);
  }

  /* Sections */
  .section {
    padding: var(--space-3xl) 0;
  }

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

  /* Grids */
  .features-grid,
  .values-grid,
  .products-grid,
  .products-preview-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-card {
    padding: var(--space-2xl) var(--space-lg);
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    padding-left: 2.5rem;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (< 480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero-stats {
    gap: var(--space-md);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .products-filter {
    gap: var(--space-xs);
  }

  .filter-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
  }

  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
/* Product skeleton loading */
.skeleton-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  display: inline-block;
  animation: skeletonPulse 1.2s ease-in-out infinite;
}

.skeleton-dot:nth-child(2) { animation-delay: 0.2s; }
.skeleton-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .site-header,
  .back-to-top,
  .menu-toggle,
  .nav-cta {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: black;
    background: white;
  }

  .hero,
  .page-hero {
    padding: 2rem 0;
  }
}
