/* ==============================================================
   ILERDA 伊勒达 — 企业官网 v2
   方法论: Double Diamond + Atomic Design + B2B工业最佳实践
   技能整合: Impeccable (Persuade mode) + UI-UX-Pro-Max + React-Bits
   设计风格: Industrial Modern × Swiss Precision
   ============================================================== */

/* ==============================================================
   1. DESIGN TOKENS (Quarks)
   ============================================================== */

:root {
  /* ── Brand Core ── */
  --ink: #0b1622;
  --steel: #162b3f;
  --navy: #0d2135;

  /* ── Primary Blues ── */
  --blue: #0059e6;
  --blue-hover: #1a6fff;
  --blue-pale: #eaf2ff;
  --blue-surface: #f4f8fe;

  /* ── Industrial Accent ── */
  --orange: #e0731a;
  --orange-hover: #f0852e;
  --orange-pale: #fff6ef;

  /* ── Tinted Neutrals (never pure black/white) ── */
  --warm-white: #f5f3f0;
  --silver: #e8e5e0;
  --stone: #c4c0b8;
  --warm-gray: #f0eeea;

  /* ── Text Hierarchy (all tinted) ── */
  --text-primary: #0b1622;
  --text-secondary: #3d464f;
  --text-tertiary: #6b7680;
  --text-inverse: #efece8;
  --text-muted: #8b959e;

  /* ── Typography ── */
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;

  /* Type Scale (1.25 major third) ── */
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Line Heights ── */
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* ── Spacing (8px base grid) ── */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ── Motion Tokens ── */
  --duration-micro: 100ms;
  --duration-fast: 150ms;
  --duration-standard: 250ms;
  --duration-emphasis: 400ms;
  --duration-page: 500ms;

  /* Easing Curves ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Borders & Shadows ── */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 34, 0.06);
  --shadow-md: 0 4px 12px rgba(11, 22, 34, 0.08);
  --shadow-lg: 0 12px 32px rgba(11, 22, 34, 0.12);
  --shadow-xl: 0 20px 48px rgba(11, 22, 34, 0.16);

  /* ── Layout ── */
  --max-width: 1200px;
  --header-height: 72px;
}

/* ==============================================================
   2. RESET & BASE (Atoms)
   ============================================================== */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background: var(--warm-white);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

::selection {
  background: var(--blue);
  color: #fff;
}

/* Focus ring — accessible but subtle */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

/* ==============================================================
   3. TYPOGRAPHY SYSTEM
   ============================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

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

/* Section heading pattern */
.section-head {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--space-3);
  position: relative;
}

/* Geometric line accent under section tag */
.section-head::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--blue);
  margin: var(--space-4) auto 0;
}

.section-head h2 {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.section-sub {
  font-size: var(--text-base);
  color: var(--text-tertiary);
  max-width: 560px;
  margin: 0 auto;
}

/* ==============================================================
   4. HEADER / NAVIGATION (Organism)
   ============================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  padding: 0 var(--space-8);
  transition:
    background var(--duration-standard) var(--ease-out),
    box-shadow var(--duration-standard) var(--ease-out),
    backdrop-filter var(--duration-standard) var(--ease-out);
}

.header.scrolled {
  background: rgba(245, 243, 240, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: 0 1px 0 rgba(11, 22, 34, 0.06);
}

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

/* ── Logo ── */
.logo {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  z-index: 1001;
}

.logo-main {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-inverse);
  letter-spacing: 0.02em;
  transition: color var(--duration-standard) var(--ease-out);
}

.logo-sub {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(239, 236, 232, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color var(--duration-standard) var(--ease-out);
}

.header.scrolled .logo-main {
  color: var(--ink);
}

.header.scrolled .logo-sub {
  color: var(--text-tertiary);
}

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

.nav-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: rgba(239, 236, 232, 0.8);
  letter-spacing: 0.02em;
  position: relative;
  padding: var(--space-1) 0;
  transition: color var(--duration-fast) var(--ease-out);
}

/* Geometric underline on hover — not a typical rounded pill */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-inverse);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-standard) var(--ease-out);
}

.nav-link:hover {
  color: var(--text-inverse);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header.scrolled .nav-link {
  color: var(--text-secondary);
}

.header.scrolled .nav-link::after {
  background: var(--blue);
}

.header.scrolled .nav-link:hover {
  color: var(--ink);
}

/* Language switcher */
.nav-link.lang {
  border: 1px solid rgba(239, 236, 232, 0.25);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  transition: all var(--duration-fast) var(--ease-out);
}

.nav-link.lang::after {
  display: none;
}

.nav-link.lang:hover {
  border-color: var(--text-inverse);
  background: rgba(255, 255, 255, 0.1);
}

.header.scrolled .nav-link.lang {
  border-color: var(--silver);
  color: var(--text-secondary);
}

.header.scrolled .nav-link.lang:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

/* ── Mobile Menu Button ── */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: var(--space-2);
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-inverse);
  transition: all var(--duration-standard) var(--ease-out);
  transform-origin: center;
}

.header.scrolled .menu-btn span {
  background: var(--ink);
}

/* Hamburger → X */
.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==============================================================
   5. HERO SECTION (Organism) — Persuade Mode
   ============================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-inverse);
  overflow: hidden;
}

/* Layer 1: Deep navy gradient base */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, #1a3a5c 0%, var(--navy) 50%, var(--ink) 100%);
  z-index: 0;
}

/* Layer 2: Subtle radial glow */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 89, 230, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

/* Layer 3: Geometric grid overlay (Industrial feel) */
.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 1;
  animation: gridShift 24s linear infinite;
}

@keyframes gridShift {
  0%   { transform: perspective(600px) rotateX(50deg) translateY(0); }
  100% { transform: perspective(600px) rotateX(50deg) translateY(80px); }
}

/* Layer 4: Canvas particles (injected by JS) */

/* ── Hero Content ── */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 var(--space-6);
}

.hero-eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 236, 232, 0.5);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-6);
  color: var(--text-inverse);
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, #fff 20%, rgba(255, 255, 255, 0.7) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(var(--text-base), 1.8vw, var(--text-lg));
  color: rgba(239, 236, 232, 0.6);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── CTA Buttons ── */
.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition:
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(224, 115, 26, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-inverse);
  border: 1.5px solid rgba(239, 236, 232, 0.35);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(239, 236, 232, 0.7);
  transform: translateY(-1px);
}

/* ── Scroll Indicator ── */
.hero-scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll span {
  display: block;
  width: 20px;
  height: 34px;
  border: 2px solid rgba(239, 236, 232, 0.3);
  border-radius: 10px;
  position: relative;
}

.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  background: rgba(239, 236, 232, 0.5);
  border-radius: 2px;
  animation: scrollBounce 2s var(--ease-in-out) infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 7px; opacity: 1; }
  50%      { top: 15px; opacity: 0.2; }
}

/* ==============================================================
   6. SECTION LAYOUT
   ============================================================== */

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

.section-dark {
  background: var(--ink);
  color: var(--text-inverse);
}

.section-dark .section-tag {
  color: rgba(239, 236, 232, 0.45);
}

.section-dark .section-head h2 {
  color: var(--text-inverse);
}

.section-dark .section-sub {
  color: var(--text-muted);
}

.section-dark .section-head::after {
  background: var(--orange);
}

.section-alt {
  background: var(--warm-gray);
}

/* Geometric top border for dark sections */
.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* ==============================================================
   7. PRODUCT CARDS (Molecule)
   ============================================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: var(--space-6);
}

.product-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid var(--silver);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-6) var(--space-8);
  transition:
    transform var(--duration-standard) var(--ease-out),
    box-shadow var(--duration-standard) var(--ease-out),
    border-color var(--duration-standard) var(--ease-out);
  overflow: hidden;
  color: inherit;
}

/* Top-line accent — geometric, not rounded glow */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-emphasis) var(--ease-out);
}

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

.product-card:hover::before {
  transform: scaleX(1);
}

a.product-card:hover {
  color: inherit;
}

/* Card number watermark */
.product-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(0, 89, 230, 0.04);
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  line-height: 1;
  pointer-events: none;
  transition: color var(--duration-standard) var(--ease-out);
}

.product-card:hover .product-num {
  color: rgba(0, 89, 230, 0.08);
}

/* Product icon area */
.product-icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
}

.product-icon svg {
  width: 100%;
  height: 100%;
}

/* Card typography */
.product-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.product-card p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
}

.product-brands {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  position: relative;
  z-index: 1;
}

/* Card-specific accent colors — preserved from original design intent */
.product-card:nth-child(1) { --card-accent: #0059e6; }
.product-card:nth-child(2) { --card-accent: #e0731a; }
.product-card:nth-child(3) { --card-accent: #0d7a3e; }
.product-card:nth-child(4) { --card-accent: #7c3aed; }

.product-card:nth-child(2)::before { background: var(--orange); }
.product-card:nth-child(3)::before { background: #0d7a3e; }
.product-card:nth-child(4)::before { background: #7c3aed; }

.product-card:nth-child(2) .product-num { color: rgba(224, 115, 26, 0.05); }
.product-card:nth-child(3) .product-num { color: rgba(13, 122, 62, 0.05); }
.product-card:nth-child(4) .product-num { color: rgba(124, 58, 237, 0.05); }

.product-card:nth-child(2):hover .product-num { color: rgba(224, 115, 26, 0.1); }
.product-card:nth-child(3):hover .product-num { color: rgba(13, 122, 62, 0.1); }
.product-card:nth-child(4):hover .product-num { color: rgba(124, 58, 237, 0.1); }

.product-card:nth-child(2) .product-brands { color: var(--orange); }
.product-card:nth-child(3) .product-brands { color: #0d7a3e; }
.product-card:nth-child(4) .product-brands { color: #7c3aed; }

/* ==============================================================
   8. BRANDS SECTION (Organism)
   ============================================================== */

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(239, 236, 232, 0.7);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration-standard) var(--ease-spring),
    background var(--duration-standard) var(--ease-out),
    border-color var(--duration-standard) var(--ease-out),
    box-shadow var(--duration-standard) var(--ease-out);
  cursor: pointer;
}

.brand-item > * {
  position: relative;
  z-index: 1;
}

/* Geometric corner accent instead of full-left-bar */
.brand-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-top: 2px solid transparent;
  border-left: 2px solid transparent;
  transition: all var(--duration-standard) var(--ease-out);
  opacity: 0;
}

.brand-item:hover::before {
  opacity: 1;
}

.brand-item small {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  opacity: 0.45;
  margin-top: var(--space-1);
  letter-spacing: 0.04em;
  transition: opacity var(--duration-standard) var(--ease-out);
}

.brand-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  border-color: transparent;
  color: #fff;
}

.brand-item:hover small {
  opacity: 0.7;
}

/* Brand-specific hover colors */
.brand-rafi:hover  { background: rgba(0, 89, 230, 0.25); border-color: #0059e6; }
.brand-rafi:hover::before { border-color: #0059e6; }

.brand-wago:hover  { background: rgba(0, 157, 223, 0.25); border-color: #009ddf; }
.brand-wago:hover::before { border-color: #009ddf; }

.brand-conta:hover { background: rgba(0, 150, 57, 0.25); border-color: #009639; }
.brand-conta:hover::before { border-color: #009639; }

.brand-wiska:hover { background: rgba(220, 50, 35, 0.25); border-color: #dc3223; }
.brand-wiska:hover::before { border-color: #dc3223; }

.brand-other:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.3); }
.brand-other:hover::before { border-color: rgba(255, 255, 255, 0.4); }

/* ==============================================================
   9. STATS ROW (Molecule)
   ============================================================== */

.stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-20);
  flex-wrap: wrap;
  text-align: center;
}

.stat {
  min-width: 120px;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, rgba(224, 115, 26, 0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: var(--text-xs);
  color: rgba(239, 236, 232, 0.4);
  margin-top: var(--space-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ==============================================================
   10. ABOUT SECTION
   ============================================================== */

.about-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.about-text h2 {
  margin-bottom: var(--space-6);
  font-size: var(--text-4xl);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

/* Contact info — SVG icons, no emoji */
.about-contact {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.info-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.info-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--blue);
}

/* ── Value Cards ── */
.about-values {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.value-card {
  background: #fff;
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  position: relative;
  transition:
    transform var(--duration-standard) var(--ease-out),
    box-shadow var(--duration-standard) var(--ease-out);
}

/* Left accent for value cards */
.value-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: var(--space-4);
  bottom: var(--space-4);
  width: 3px;
  background: var(--blue);
  border-radius: 0 2px 2px 0;
}

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

.value-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: var(--space-1);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  line-height: var(--leading-normal);
}

/* About section background decoration */
#about {
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 89, 230, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

/* ==============================================================
   11. CONTACT FORM
   ============================================================== */

.contact-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.contact-form {
  background: #fff;
  padding: var(--space-10);
  border-radius: var(--radius-lg);
  border: 1px solid var(--silver);
  box-shadow: var(--shadow-sm);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--silver);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--warm-white);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 89, 230, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--stone);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
  margin-bottom: var(--space-5);
}

.contact-form .btn {
  width: 100%;
  padding: 16px;
}

/* ==============================================================
   12. FOOTER
   ============================================================== */

.footer {
  background: var(--ink);
  color: rgba(239, 236, 232, 0.45);
  padding: var(--space-12) 0 var(--space-6);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.footer-brand p {
  font-size: var(--text-sm);
  margin-top: var(--space-1);
  color: rgba(239, 236, 232, 0.35);
}

.footer-brand .logo-main {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--text-inverse);
}

.footer-brand .logo-sub {
  color: rgba(239, 236, 232, 0.3);
}

.footer-nav {
  display: flex;
  gap: var(--space-8);
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(239, 236, 232, 0.45);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-nav a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-5);
  text-align: center;
  font-size: var(--text-xs);
}

/* ==============================================================
   13. ANIMATION SYSTEM (from React-Bits + Motion Design Research)
   ============================================================== */

/* ── Scroll Reveal (Intersection Observer) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}

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

/* Staggered reveals — 80ms delays between siblings */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }
.reveal:nth-child(8) { transition-delay: 0.56s; }

/* ── Magnetic Hover (JS-driven) ── */
.magnetic {
  transition: transform var(--duration-fast) var(--ease-out);
}

/* ── Spotlight / Card Glow effect (pure CSS) ── */
.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 89, 230, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-standard) var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

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

/* ── Float Animation ── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ── Shimmer loading / CTA button shine ── */
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 60%);
  animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
  0%, 100% { transform: translate(-100%, -100%); }
  50%      { transform: translate(100%, 100%); }
}

/* ==============================================================
   14. ACCESSIBILITY
   ============================================================== */

/* Reduced motion — respect user preference (~35% of users) */
@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;
  }
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--blue);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 10000;
  font-size: var(--text-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-4);
}

/* High contrast mode support */
@media (forced-colors: active) {
  .btn-primary { border: 2px solid ButtonText; }
  .product-card { border: 1px solid ButtonText; }
}

/* ==============================================================
   15. RESPONSIVE SYSTEM
   ============================================================== */

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

  .about-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

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

  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3);
  }

  .brand-item {
    padding: var(--space-5) var(--space-2);
    font-size: var(--text-xs);
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  /* Navigation → Off-screen drawer */
  .nav {
    position: fixed;
    inset: 0;
    background: rgba(11, 22, 34, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-8);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-standard) var(--ease-out);
    z-index: 1000;
  }

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

  .nav-link {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: rgba(239, 236, 232, 0.7);
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    color: #fff;
  }

  .nav-link.lang {
    border-color: rgba(239, 236, 232, 0.2);
    font-size: var(--text-base);
    padding: var(--space-2) var(--space-5);
    margin-top: var(--space-4);
  }

  .menu-btn { display: flex; }

  /* Hero */
  .hero {
    min-height: 100svh;
    max-height: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

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

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

  /* Product cards → single column */
  .products-grid {
    grid-template-columns: 1fr;
  }

  /* Brands grid → 3 columns */
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }

  .brand-item {
    padding: var(--space-4) var(--space-1);
    font-size: var(--text-xs);
  }

  /* Stats → tighter */
  .stats-row {
    gap: var(--space-8);
  }

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

  /* About */
  .about-contact {
    flex-direction: column;
    gap: var(--space-3);
  }

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

  .contact-form {
    padding: var(--space-6);
  }

  /* Footer */
  .footer-main {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-5);
  }

  /* Typography scaling */
  .section-head h2 {
    font-size: var(--text-3xl);
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

/* Small mobile (< 400px) */
@media (max-width: 399px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: clamp(1.75rem, 9vw, 2.25rem);
  }
}

/* Wide desktop (> 1440px) */
@media (min-width: 1440px) {
  .hero {
    max-height: 1000px;
  }

  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }
}
