/* ═══════════════════════════════════════════
   Morwa Trade — Design System with Themes
   ═══════════════════════════════════════════ */

/* ─── Dark Theme (default) ─── */
:root, [data-theme="dark"] {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --bg-card-glass: rgba(17, 17, 17, 0.7);
  --surface: #161616;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-glass: rgba(255, 255, 255, 0.1);
  --text: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #6e6e73;
  --accent: #2997ff;
  --accent-hover: #0077ed;
  --accent-glow: rgba(41, 151, 255, 0.15);
  --gradient-2: linear-gradient(135deg, #2997ff 0%, #30d158 100%);
  --gradient-hero: linear-gradient(180deg, #0a0a1a 0%, #000000 50%, #0a0512 100%);
  --gradient-title: linear-gradient(180deg, #ffffff 0%, #a1a1a6 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.6);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --nav-bg-scroll: rgba(0, 0, 0, 0.72);
  --select-arrow: %2386868b;
  --scrollbar-thumb: #222;
  --shatter-bg: rgba(255, 255, 255, 0.06);
  --shatter-border: rgba(255, 255, 255, 0.15);
}

/* ─── Light Theme ─── */
[data-theme="light"] {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-glass: rgba(255, 255, 255, 0.6);
  --surface: #f0f0f2;
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --border-glass: rgba(255, 255, 255, 0.5);
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0071e3;
  --accent-hover: #0058b0;
  --accent-glow: rgba(0, 113, 227, 0.12);
  --gradient-2: linear-gradient(135deg, #0071e3 0%, #34c759 100%);
  --gradient-hero: linear-gradient(180deg, #e8eaf0 0%, #f5f5f7 50%, #f0eef5 100%);
  --gradient-title: linear-gradient(180deg, #1d1d1f 0%, #6e6e73 100%);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  --nav-bg-scroll: rgba(255, 255, 255, 0.72);
  --select-arrow: %236e6e73;
  --scrollbar-thumb: #ccc;
  --shatter-bg: rgba(255, 255, 255, 0.7);
  --shatter-border: rgba(0, 0, 0, 0.08);
}

/* ─── Global Transition for theme ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.5s ease;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════
   Glass Shatter Overlay
   ═══════════════════════════════════════════ */
.glass-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10000;
  pointer-events: none;
  perspective: 1000px;
}

.glass-overlay .shard {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--shatter-bg);
  border: 1px solid var(--shatter-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform-origin: center center;
  transition: none;
}

.glass-overlay.active .shard {
  animation: shatter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes shatter {
  0% { opacity: 1; transform: translate(0, 0) rotateX(0) rotateY(0) scale(1); }
  30% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0px), var(--ty, 200px)) rotateX(var(--rx, 20deg)) rotateY(var(--ry, 30deg)) scale(0.6);
  }
}

/* ═══════════════════════════════════════════
   Glass Card & 3D Tilt
   ═══════════════════════════════════════════ */
.glass-card {
  background: var(--bg-card-glass);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="light"] .glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.8);
}

.tilt-card {
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: var(--shadow-lg);
}

/* ═══════════════════════════════════════════
   Typography
   ═══════════════════════════════════════════ */
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-top: 12px;
  font-weight: 400;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-subtitle { margin: 12px auto 0; }

/* ═══════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════ */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.animate-in.visible { opacity: 1; transform: translateY(0); }
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }
.animate-in:nth-child(5) { transition-delay: 0.4s; }
.animate-in:nth-child(6) { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════
   Navbar
   ═══════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 16px 0;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  background: transparent;
}

.navbar.scrolled {
  background: var(--nav-bg-scroll);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-2); border-radius: 10px; font-weight: 800; font-size: 18px; color: #000;
}
.logo-text { font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 400;
  transition: color 0.3s; letter-spacing: -0.01em;
}
.nav-link:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.theme-toggle:hover { border-color: var(--border-hover); color: var(--text); }

.lang-switcher {
  display: flex; background: var(--surface);
  border-radius: 8px; overflow: hidden; border: 1px solid var(--border);
}
.lang-btn {
  background: none; border: none; color: var(--text-secondary);
  padding: 6px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.3s; font-family: inherit; letter-spacing: 0.05em;
}
.lang-btn.active { background: var(--accent); color: #fff; }

.nav-cta {
  background: var(--accent); color: #fff; text-decoration: none;
  padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 500;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--accent-hover); transform: scale(1.02); }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   Hero
   ═══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center; background: var(--gradient-hero); overflow: hidden;
  transition: background 0.5s;
}
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.08) 0%, transparent 70%); pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 24px; }
.hero-tagline {
  display: inline-block; font-size: 14px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 700; letter-spacing: -0.04em;
  line-height: 1.05; margin-bottom: 24px;
  background: var(--gradient-title); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem); color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 980px; font-size: 16px; font-weight: 500;
  text-decoration: none; transition: all 0.3s; cursor: pointer; border: none; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: scale(1.03); box-shadow: 0 4px 30px var(--accent-glow); }
.btn-secondary { background: transparent; color: var(--accent); border: 1.5px solid rgba(41, 151, 255, 0.4); }
.btn-secondary:hover { border-color: var(--accent); background: rgba(41, 151, 255, 0.08); transform: scale(1.03); }
.btn-full { width: 100%; padding: 16px; }

.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 2; }
.scroll-indicator { width: 24px; height: 40px; border: 2px solid rgba(128,128,128,0.3); border-radius: 12px; position: relative; }
.scroll-indicator::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; background: rgba(128,128,128,0.5); border-radius: 2px;
  animation: scroll-bounce 2s infinite;
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* ═══════════════════════════════════════════
   Stats
   ═══════════════════════════════════════════ */
.stats { padding: 80px 0; border-bottom: 1px solid var(--border); transition: border-color 0.5s; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-item { padding: 24px; }
.stat-value {
  display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em;
  background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { display: block; font-size: 14px; color: var(--text-secondary); margin-top: 8px; }

/* ═══════════════════════════════════════════
   Services
   ═══════════════════════════════════════════ */
.services { padding: 120px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.service-card {
  border-radius: 20px; padding: 40px 32px; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 151, 255, 0), transparent); transition: all 0.4s;
}
.service-card:hover::before {
  background: linear-gradient(90deg, transparent, rgba(41, 151, 255, 0.5), transparent);
}
.service-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--accent); }
.service-icon svg { width: 32px; height: 32px; }
.service-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 12px; }
.service-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.service-features { list-style: none; margin-bottom: 28px; }
.service-feature { font-size: 13px; color: var(--text-tertiary); padding: 6px 0 6px 20px; position: relative; }
.service-feature::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); transform: translateY(-50%); opacity: 0.6;
}
.service-link {
  display: inline-flex; align-items: center; gap: 6px; color: var(--accent);
  text-decoration: none; font-size: 14px; font-weight: 500;
}
.service-link::after { content: '\2192'; transition: transform 0.3s; }
.service-link:hover::after { transform: translateX(4px); }

/* ═══════════════════════════════════════════
   Configurator
   ═══════════════════════════════════════════ */
.configurator { padding: 120px 0; background: var(--bg-elevated); transition: background 0.5s; }

.cfg-tabs {
  display: flex; justify-content: center; gap: 8px; margin-bottom: 32px;
}
.cfg-tab-btn {
  background: var(--surface); border: 1px solid var(--border); color: var(--text-secondary);
  padding: 12px 32px; border-radius: 980px; font-size: 15px; font-weight: 500;
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.cfg-tab-btn:hover { border-color: var(--border-hover); color: var(--text); }
.cfg-tab-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.cfg-filters {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap;
}
.cfg-select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 10px 40px 10px 16px; border-radius: 12px; font-size: 14px; font-family: inherit;
  cursor: pointer; transition: all 0.3s; outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='var(--select-arrow)' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.cfg-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.cfg-select option { background: var(--bg-card); color: var(--text); }

.config-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.config-card {
  border-radius: 20px; padding: 32px 24px;
}
.config-card-header { margin-bottom: 24px; }
.config-card-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.config-card-location { font-size: 12px; color: var(--text-tertiary); font-weight: 500; }
.config-card-badge {
  display: inline-block; margin-top: 8px;
  font-size: 11px; color: var(--accent); border: 1px solid rgba(41, 151, 255, 0.3);
  padding: 3px 10px; border-radius: 980px; font-weight: 500;
}
.config-specs { margin-bottom: 24px; }
.config-spec {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.config-spec:last-child { border-bottom: none; }
.config-spec-label { font-size: 12px; color: var(--text-tertiary); font-weight: 500; flex-shrink: 0; margin-right: 12px; }
.config-spec-value { font-size: 12px; color: var(--text); text-align: right; font-weight: 500; }

.config-request-btn {
  width: 100%; padding: 12px; background: transparent;
  border: 1.5px solid rgba(41, 151, 255, 0.4); color: var(--accent);
  border-radius: 12px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.3s; font-family: inherit;
}
.config-request-btn:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.cfg-empty {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--text-secondary); font-size: 16px;
}
.cfg-note {
  text-align: center; color: var(--text-tertiary); font-size: 13px;
  margin-top: 24px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ═══════════════════════════════════════════
   Selected Config Panel
   ═══════════════════════════════════════════ */
.selected-config-box {
  border-radius: 16px; padding: 20px; margin-top: 24px; margin-bottom: 12px;
}
.selected-config-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.selected-config-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 600; }
.selected-config-change {
  background: none; border: none; color: var(--accent); font-size: 13px;
  font-weight: 500; cursor: pointer; font-family: inherit; text-decoration: underline;
}
.selected-config-name { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.selected-config-details {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
}
.selected-config-details li {
  font-size: 12px; color: var(--text-secondary);
  padding-left: 14px; position: relative;
}
.selected-config-details li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.5;
}

/* ═══════════════════════════════════════════
   Infrastructure
   ═══════════════════════════════════════════ */
.infrastructure { padding: 120px 0; }
.infra-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 48px; }
.infra-card { border-radius: 20px; padding: 40px 32px; }
.infra-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent); }
.infra-icon svg { width: 28px; height: 28px; }
.infra-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.02em; }
.infra-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.cert-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cert-badge {
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 20px; border-radius: 980px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.02em; transition: background 0.5s, border 0.5s;
}

/* ═══════════════════════════════════════════
   About
   ═══════════════════════════════════════════ */
.about { padding: 120px 0; background: var(--bg-elevated); transition: background 0.5s; }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about-description { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-top: 24px; margin-bottom: 36px; }
.about-details { display: grid; gap: 16px; }
.about-detail { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--border); }
.about-detail-label { font-size: 13px; color: var(--text-tertiary); font-weight: 600; min-width: 80px; text-transform: uppercase; letter-spacing: 0.05em; }
.about-detail-value { font-size: 14px; color: var(--text); font-weight: 500; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value-card { border-radius: 12px; padding: 28px 24px; }
.value-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--accent); }
.value-icon svg { width: 24px; height: 24px; }
.value-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ═══════════════════════════════════════════
   Contact
   ═══════════════════════════════════════════ */
.contact { padding: 120px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact-details { margin-top: 40px; display: grid; gap: 20px; }
.contact-detail { display: flex; align-items: flex-start; gap: 16px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.contact-detail svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }

.contact-form { border-radius: 20px; padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; color: var(--text);
  font-size: 14px; font-family: inherit; transition: all 0.3s; outline: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-tertiary); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386868b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-group select option { background: var(--bg-card); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-message { margin-top: 16px; padding: 0; border-radius: 12px; font-size: 14px; text-align: center; }
.form-message.success { padding: 14px; background: rgba(48, 209, 88, 0.1); border: 1px solid rgba(48, 209, 88, 0.3); color: #30d158; }
.form-message.error { padding: 14px; background: rgba(255, 69, 58, 0.1); border: 1px solid rgba(255, 69, 58, 0.3); color: #ff453a; }

/* ═══════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════ */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); background: var(--bg-elevated); transition: background 0.5s; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.7; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 4px; }
.footer-col a, .footer-col span { color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-tertiary); }

/* ═══════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .config-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 24px; opacity: 0; pointer-events: none; transition: opacity 0.3s; z-index: 999;
  }
  [data-theme="light"] .nav-links { background: rgba(255, 255, 255, 0.95); }
  .nav-links.open { opacity: 1; pointer-events: all; }
  .nav-links .nav-link { font-size: 24px; font-weight: 500; }
  .mobile-toggle { display: flex; z-index: 1001; }
  .nav-cta { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .services-grid, .config-grid { grid-template-columns: 1fr; }
  .cfg-tabs { flex-direction: column; align-items: center; }
  .cfg-tab-btn { width: 100%; max-width: 300px; }
  .infra-grid { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 4rem); }
  .section-header { margin-bottom: 40px; }
  .services, .configurator, .infrastructure, .about, .contact { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; width: 100%; padding: 0 16px; }
  .hero-actions .btn { width: 100%; }
  .lang-switcher { position: absolute; right: 60px; }
  .nav-actions .theme-toggle { position: absolute; right: 100px; }
}

/* ═══════════════════════════════════════════
   Scrollbar & Selection
   ═══════════════════════════════════════════ */
::selection { background: rgba(41, 151, 255, 0.3); color: var(--text); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }
