/* ═══════════════════════════════════════════════════════════════
   TECHNIFY LABS — Premium CSS
   Fonts: Rajdhani (display) · DM Sans (body) · JetBrains Mono (code)
   Theme: Industrial Dark — Orange Accent
═══════════════════════════════════════════════════════════════ */

/* ─── CSS Variables ──────────────────────────────────────────── */
:root {
  /* Core palette */
  --clr-bg:          #070d18;
  --clr-bg-2:        #0d1624;
  --clr-bg-3:        #111e30;
  --clr-surface:     rgba(255,255,255,0.03);
  --clr-surface-2:   rgba(255,255,255,0.06);
  --clr-border:      rgba(255,255,255,0.07);
  --clr-border-2:    rgba(255,255,255,0.12);

  /* Brand */
  --clr-orange:      #FF6B00;
  --clr-orange-dim:  rgba(255,107,0,0.15);
  --clr-orange-mid:  rgba(255,107,0,0.4);
  --clr-orange-glow: rgba(255,107,0,0.25);

  /* Accents */
  --clr-blue:        #3B82F6;
  --clr-green:       #22C55E;
  --clr-purple:      #A855F7;
  --clr-red:         #EF4444;
  --clr-cyan:        #06B6D4;

  /* Text */
  --clr-text:        #E2E8F0;
  --clr-text-muted:  #94A3B8;
  --clr-text-dim:    #64748B;
  --clr-white:       #FFFFFF;

  /* Typography */
  --font-display:    'Rajdhani', sans-serif;
  --font-body:       'DM Sans', sans-serif;
  --font-mono:       'JetBrains Mono', monospace;

  /* Spacing */
  --section-pad:     120px;
  --container-max:   1280px;

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  32px;

  /* Transitions */
  --ease-out: cubic-bezier(0.22,1,0.36,1);
  --ease-in-out: cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ─── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--clr-bg-2); }
::-webkit-scrollbar-thumb { background: var(--clr-orange-mid); border-radius: 3px; }

/* ─── Selection ──────────────────────────────────────────────── */
::selection { background: var(--clr-orange-mid); color: var(--clr-white); }

/* ─── Global Utilities ───────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-orange) 0%, #FF9A00 60%, #FFD000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glass-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.section {
  padding: var(--section-pad) 0;
  position: relative;
}
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}
.section-header {
  text-align: center;
  margin-bottom: 72px;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--clr-orange);
  background: var(--clr-orange-dim);
  border: 1px solid var(--clr-orange-mid);
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Reveal Animations ──────────────────────────────────────── */
.reveal, .reveal-left, .reveal-right, .reveal-up, .reveal-scale {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal { transform: translateY(24px); }
.reveal-up { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal-scale { transform: scale(0.9) translateY(20px); }

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed,
.reveal-scale.revealed {
  opacity: 1;
  transform: none;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out);
}
.btn:hover::before { transform: translateX(0); }
.btn-primary {
  background: var(--clr-orange);
  color: var(--clr-white);
  box-shadow: 0 0 30px var(--clr-orange-glow), 0 4px 16px rgba(255,107,0,0.3);
}
.btn-primary:hover {
  background: #ff7a1a;
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--clr-orange-glow), 0 8px 24px rgba(255,107,0,0.4);
}
.btn-ghost {
  background: var(--clr-surface-2);
  color: var(--clr-text);
  border: 1px solid var(--clr-border-2);
}
.btn-ghost:hover {
  background: var(--clr-orange-dim);
  border-color: var(--clr-orange-mid);
  color: var(--clr-orange);
  transform: translateY(-2px);
}
.btn-arrow { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid var(--clr-orange-mid);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--clr-orange);
  letter-spacing: 0.04em;
  transition: all 0.3s;
}
.btn-outline-sm:hover {
  background: var(--clr-orange);
  color: var(--clr-white);
  border-color: var(--clr-orange);
}
.btn-text {
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
  padding: 7px 0;
}
.btn-text:hover { color: var(--clr-orange); }

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}
.navbar.scrolled {
  background: rgba(7,13,24,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--clr-border);
  padding: 14px 0;
}
.navbar.hide { transform: translateY(-100%); }
.navbar.show { transform: translateY(0); }
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon { width: 36px; height: 36px; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--clr-white);
}
.logo-accent { color: var(--clr-orange); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--clr-text-muted);
  transition: color 0.3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--clr-orange);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out);
}
.nav-link:hover, .nav-link.active { color: var(--clr-white); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  padding: 5px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: all 0.3s;
  letter-spacing: 0.05em;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--clr-orange);
  color: var(--clr-white);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  background: var(--clr-orange);
  color: var(--clr-white);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 0 20px rgba(255,107,0,0.2);
}
.nav-cta:hover {
  background: #ff7a1a;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(255,107,0,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   NAV SOCIAL DROPDOWN
═══════════════════════════════════════════════════════════════ */
.nav-social-dropdown {
  position: relative;
}
.nav-social-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--clr-text);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.nav-social-trigger svg:first-child { width: 16px; height: 16px; }
.social-chevron { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.nav-social-dropdown.open .social-chevron { transform: rotate(180deg); }
.nav-social-trigger:hover {
  border-color: var(--clr-orange-mid);
  color: var(--clr-orange);
  background: var(--clr-orange-dim);
}
.nav-social-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--ease-out);
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
}
.nav-social-dropdown.open .nav-social-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-social-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  color: var(--clr-text-muted);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-social-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-social-item:hover {
  background: var(--clr-orange-dim);
  color: var(--clr-orange);
}
html.light-theme .nav-social-trigger {
  background: rgba(255,255,255,0.8);
  border-color: rgba(26,35,51,0.15);
  color: #1A2333;
}
html.light-theme .nav-social-menu {
  background: rgba(255,255,255,0.95);
  border-color: rgba(26,35,51,0.12);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
html.light-theme .nav-social-item { color: #4A5568; }
html.light-theme .nav-social-item:hover { color: var(--clr-orange); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 6px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 1px;
  transition: all 0.3s var(--ease-out);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 120px 40px 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  overflow: hidden;
}
.hero-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2;
  opacity: 0.7;
}
.hero-grid-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,107,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
}
.hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,0,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  bottom: 0; left: 0;
}
.hero-content { grid-column: 1; z-index: 1; }
.hero-visual { grid-column: 2; display: flex; justify-content: center; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--clr-orange-dim);
  border: 1px solid var(--clr-orange-mid);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--clr-orange);
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-orange);
  box-shadow: 0 0 10px var(--clr-orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.title-line { display: block; }
.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--clr-text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  padding: 0 32px;
}
.hero-stat:first-child { padding-left: 0; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--clr-orange);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--clr-border-2);
  flex-shrink: 0;
}

/* Cable visual */
.hero-cable-visual {
  display: flex;
  align-items: center;
  gap: 0;
  filter: drop-shadow(0 0 40px rgba(255,107,0,0.3));
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.cable-connector {
  width: 80px; height: 56px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  position: relative;
  flex-shrink: 0;
}
.cable-connector::before {
  content: '';
  position: absolute;
  right: -12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  top: 50%;
  transform: translateY(-50%);
}
.sc-apc {
  background: linear-gradient(135deg, #166534, #22C55E);
  color: #DCFCE7;
  border: 1px solid #22C55E;
}
.sc-upc {
  background: linear-gradient(135deg, #1e3a8a, #3B82F6);
  color: #DBEAFE;
  border: 1px solid #3B82F6;
}
.cable-fiber {
  flex: 1;
  height: 12px;
  min-width: 200px;
  position: relative;
  background: linear-gradient(90deg, #1a2333, #FF6B00 50%, #1a2333);
  border-radius: 6px;
  overflow: visible;
}
.fiber-glow {
  position: absolute;
  inset: -4px;
  background: linear-gradient(90deg, transparent, rgba(255,107,0,0.4), transparent);
  border-radius: 10px;
  filter: blur(6px);
  animation: fiberPulse 2s ease-in-out infinite;
}
.fiber-pulse {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -20px;
  width: 30px;
  height: 4px;
  background: white;
  border-radius: 2px;
  animation: fiberMove 1.8s linear infinite;
  opacity: 0.8;
}
@keyframes fiberPulse { 0%,100%{opacity:0.4} 50%{opacity:1} }
@keyframes fiberMove { 0%{left:-20px;opacity:0} 10%{opacity:1} 90%{opacity:1} 100%{left:calc(100% + 20px);opacity:0} }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  animation: fadeInHint 2s 1.5s forwards;
}
@keyframes fadeInHint { to { opacity: 0.4; } }
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-orange), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop { 0%{transform:scaleY(0);transform-origin:top} 50%{transform:scaleY(1);transform-origin:top} 51%{transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }
.hero-scroll-hint span { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--clr-text-muted); }

/* ═══════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════ */
.about-section { background: var(--clr-bg-2); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}
.about-card {
  padding: 36px 32px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}
.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--clr-orange-mid);
}
.about-card-icon {
  width: 52px;
  height: 52px;
  background: var(--clr-orange-dim);
  border: 1px solid var(--clr-orange-mid);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--clr-orange);
}
.about-card-icon svg { width: 24px; height: 24px; }
.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.about-card p { font-size: 0.9rem; color: var(--clr-text-muted); }

/* ═══════════════════════════════════════════════════════════════
   PRODUCTS
═══════════════════════════════════════════════════════════════ */
.products-section { background: var(--clr-bg); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), border-color 0.3s, box-shadow 0.4s;
  will-change: transform;
}
.product-card:hover {
  border-color: var(--clr-orange-mid);
  box-shadow: 0 0 40px rgba(255,107,0,0.1), 0 20px 60px rgba(0,0,0,0.4);
}
.product-card-bg {
  position: absolute;
  top: -20px; right: -20px;
  width: 160px; height: 100px;
  opacity: 0.12;
  pointer-events: none;
}
.product-card-featured {
  border-color: var(--clr-orange-mid);
  background: linear-gradient(135deg, rgba(255,107,0,0.05), var(--clr-surface));
}
.product-icon-wrap {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.product-icon-wrap svg { width: 24px; height: 24px; }
.product-icon-wrap.orange { background: var(--clr-orange-dim); color: var(--clr-orange); border: 1px solid var(--clr-orange-mid); }
.product-icon-wrap.blue { background: rgba(59,130,246,0.12); color: var(--clr-blue); border: 1px solid rgba(59,130,246,0.3); }
.product-icon-wrap.green { background: rgba(34,197,94,0.12); color: var(--clr-green); border: 1px solid rgba(34,197,94,0.3); }
.product-icon-wrap.purple { background: rgba(168,85,247,0.12); color: var(--clr-purple); border: 1px solid rgba(168,85,247,0.3); }
.product-icon-wrap.red { background: rgba(239,68,68,0.12); color: var(--clr-red); border: 1px solid rgba(239,68,68,0.3); }
.product-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.product-desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tag {
  padding: 4px 12px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--clr-text-muted);
  letter-spacing: 0.04em;
}
.tag-featured {
  background: var(--clr-orange-dim);
  border-color: var(--clr-orange-mid);
  color: var(--clr-orange);
}
.product-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
}

/* Product visuals */
.patchcord-visual {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pc-body {
  width: 32px; height: 20px;
  border-radius: 4px;
}
.sc-apc-color { background: #22C55E; }
.sc-upc-color { background: #3B82F6; }
.pc-fiber-mid {
  flex: 1;
  height: 6px;
  background: linear-gradient(90deg, #22C55E, #FF6B00 50%, #3B82F6);
  border-radius: 3px;
}
.light-beam {
  position: absolute;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, transparent, #FF6B00, transparent);
  border-radius: 2px;
  top: 30%;
  animation: beamMove 2s linear infinite;
}
.lb2 { top: 60%; animation-delay: 1s; background: linear-gradient(90deg, transparent, #3B82F6, transparent); }
@keyframes beamMove { 0%{left:-20%} 100%{left:120%} }

/* ═══════════════════════════════════════════════════════════════
   QUALITY
═══════════════════════════════════════════════════════════════ */
.quality-section { background: var(--clr-bg); }
.quality-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 72px;
}
.quality-point {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--clr-border);
  margin-bottom: 16px;
  transition: all 0.3s;
}
.quality-point:hover {
  border-color: var(--clr-orange-mid);
  background: var(--clr-orange-dim);
}
.qp-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  color: var(--clr-orange);
}
.qp-icon svg { width: 100%; height: 100%; }
.quality-point h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.quality-point p { font-size: 0.85rem; color: var(--clr-text-muted); }
.quality-certs { display: flex; flex-direction: column; gap: 16px; }
.cert-card {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s;
}
.cert-card:hover { border-color: var(--clr-orange-mid); transform: translateX(8px); }
.cert-badge {
  width: 40px; height: 40px;
  background: var(--clr-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(255,107,0,0.4);
}
.cert-card h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.cert-card p { font-size: 0.82rem; color: var(--clr-text-muted); }
/* Quality stages */
.quality-stages { text-align: center; }
.stages-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 40px;
}
.stages-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.stage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 140px;
  position: relative;
}
.stage-num {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--clr-orange);
  color: white;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255,107,0,0.4);
  flex-shrink: 0;
  z-index: 1;
}
.stage-connector {
  position: absolute;
  top: 26px;
  left: calc(50% + 26px);
  right: calc(-50% + 26px);
  height: 2px;
  background: linear-gradient(90deg, var(--clr-orange), rgba(255,107,0,0.3));
}
.stage-item p { font-size: 0.82rem; color: var(--clr-text-muted); text-align: center; max-width: 120px; }

/* ═══════════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════════ */
.contact-section { background: var(--clr-bg); }
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  transition: all 0.3s;
  text-decoration: none;
}
.contact-item:hover {
  border-color: var(--clr-orange-mid);
  background: var(--clr-orange-dim);
  transform: translateX(8px);
}
.contact-icon {
  width: 44px; height: 44px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-orange);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-icon-wa { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.3); color: #25D366; }
.contact-icon-tg { background: rgba(41,182,246,0.12); border-color: rgba(41,182,246,0.3); color: #29B6F6; }
.contact-label { display: block; font-size: 0.74rem; color: var(--clr-text-muted); font-family: var(--font-mono); letter-spacing: 0.08em; }
.contact-value { display: block; font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin-top: 2px; }

/* Form */
.contact-form-wrap {}
.contact-form { padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { position: relative; }
.form-group-full { grid-column: 1 / -1; margin-bottom: 24px; }
.form-input {
  width: 100%;
  padding: 16px 18px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-sm);
  color: var(--clr-text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: all 0.3s;
  outline: none;
  resize: none;
}
.form-input::placeholder { color: var(--clr-text-dim); }
.form-input:focus {
  border-color: var(--clr-orange);
  background: rgba(255,107,0,0.04);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.1);
}
.form-label {
  display: none; /* Labels are placeholders-based; kept for semantics */
}
.form-textarea { min-height: 120px; }
.form-destination {
  margin: -6px 0 18px;
  color: var(--clr-text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}
.form-submit-btn {
  width: 100%;
  justify-content: center;
  position: relative;
}
.btn-loading { display: none; }
.form-submit-btn.loading .btn-label { visibility: hidden; }
.form-submit-btn.loading .btn-loading { display: flex; position: absolute; }
.spin { width: 22px; height: 22px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success {
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: var(--r-md);
  margin-top: 16px;
  color: #4ade80;
  font-family: var(--font-display);
  font-weight: 600;
}
.form-success svg { width: 24px; height: 24px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
}
.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}
.footer-top { padding: 72px 0 48px; }
.footer-top .footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
}
.footer-logo { margin-bottom: 16px; }
.footer-desc {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 12px; }
.social-btn {
  width: 40px; height: 40px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition: all 0.3s;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { background: var(--clr-orange); border-color: var(--clr-orange); color: white; transform: translateY(-3px); }
.footer-links-col h4, .footer-contact-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-text);
  margin-bottom: 20px;
}
.footer-links-col ul, .footer-contact-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links-col a, .footer-contact-col a, .footer-contact-col li {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  transition: color 0.3s;
}
.footer-links-col a:hover, .footer-contact-col a:hover { color: var(--clr-orange); }
.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--clr-text-dim);
}
.footer-bottom a:hover { color: var(--clr-orange); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .hero-section { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-layout { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top .footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }
  .section-container { padding: 0 20px; }
  .nav-container { padding: 0 20px; }
  .nav-menu {
    position: fixed;
    top: 0; right: -280px;
    width: 280px; height: 100vh;
    background: rgba(13,22,36,0.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 32px 40px;
    gap: 4px;
    border-left: 1px solid var(--clr-border);
    transition: right 0.4s var(--ease-out);
    z-index: 999;
  }
  .nav-menu.open { right: 0; }
  .nav-link { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero-section { padding: 100px 20px 60px; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat { padding: 0; }
  .stat-divider { display: none; }
  .about-grid, .products-grid { grid-template-columns: 1fr; }
  .stages-flow { flex-direction: column; align-items: center; gap: 16px; }
  .stage-connector { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-top .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .btn { padding: 13px 24px; }
  .products-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.75rem; }
  .contact-form { padding: 24px; }
}

/* ─── Print ──────────────────────────────────────────────────── */
@media print {
  .navbar, .hero-canvas, .hero-grid-overlay, .hero-glow { display: none; }
  body { background: white; color: black; }
}
/* ═══════════════════════════════════════════════════════════════
   PRODUCTION SECTION — Parallax + Features
═══════════════════════════════════════════════════════════════ */
.production-section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  background: var(--clr-bg-2);
  isolation: isolate;
}

/* Parallax background layer */
.production-parallax-bg {
  position: absolute;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.production-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.production-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  pointer-events: none;
}
.production-bg-glow-1 {
  width: 600px; height: 600px;
  background: var(--clr-orange);
  top: -100px; left: -150px;
}
.production-bg-glow-2 {
  width: 500px; height: 500px;
  background: var(--clr-blue);
  bottom: -80px; right: -100px;
}

.production-bg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* Content above parallax */
.production-content {
  position: relative;
  z-index: 1;
}

/* Stats bar */
.production-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,107,0,0.06);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--r-lg);
  padding: 36px 48px;
  margin-bottom: 64px;
  backdrop-filter: blur(20px);
}

.production-stat {
  flex: 1;
  text-align: center;
}

.production-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--clr-orange);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.production-stat-label {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Features grid */
.production-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.production-feat {
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.production-feat:hover {
  transform: translateY(-6px);
  border-color: rgba(255,107,0,0.3);
}

.production-feat-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--clr-orange);
  background: var(--clr-orange-dim);
  border: 1px solid var(--clr-orange-mid);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: background 0.3s, box-shadow 0.3s;
}

.production-feat:hover .production-feat-icon {
  background: rgba(255,107,0,0.2);
  box-shadow: 0 0 24px rgba(255,107,0,0.25);
}

.production-feat h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--clr-white);
}

.production-feat p {
  font-size: 0.88rem;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

/* CTA */
.production-cta {
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .production-features { grid-template-columns: repeat(2, 1fr); }
  .production-stats { flex-wrap: wrap; padding: 28px 24px; gap: 24px; }
  .production-stat { min-width: 120px; }
}

@media (max-width: 600px) {
  .production-features { grid-template-columns: 1fr; }
  .production-stats { flex-direction: column; }
}

/* ─── Navbar scrolled state ──────────────────────────────────── */
.navbar.scrolled {
  background: rgba(7,13,24,0.97);
  box-shadow: 0 1px 0 rgba(255,107,0,0.1);
}

/* ─── Mobile nav open ────────────────────────────────────────── */
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Form loading/success states ───────────────────────────── */
.form-submit-btn.loading .btn-label { opacity: 0; }
.form-submit-btn.loading .btn-loading { display: flex !important; }
.btn-loading { display: none; align-items: center; justify-content: center; position: absolute; inset: 0; }
.form-submit-btn { position: relative; }
.spin { animation: spin 1s linear infinite; width: 22px; height: 22px; }
.form-success { display: flex; align-items: center; gap: 12px; color: #4ade80; font-size: 0.95rem; padding: 16px 0; }
.form-success svg { width: 24px; height: 24px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME
═══════════════════════════════════════════════════════════════ */
html.light-theme {
  --clr-bg:          #F0F4FA;
  --clr-bg-2:        #E8EEF8;
  --clr-bg-3:        #DDE6F4;
  --clr-surface:     rgba(255,255,255,0.75);
  --clr-surface-2:   rgba(255,255,255,0.9);
  --clr-border:      rgba(26,35,51,0.10);
  --clr-border-2:    rgba(26,35,51,0.18);
  --clr-text:        #1A2333;
  --clr-text-muted:  #4A5568;
  --clr-text-dim:    #718096;
  --clr-white:       #1A2333;
}

html.light-theme body {
  background: var(--clr-bg);
  color: var(--clr-text);
}

html.light-theme .navbar.scrolled {
  background: rgba(240,244,250,0.95);
  border-bottom: 1px solid rgba(26,35,51,0.1);
  box-shadow: 0 1px 0 rgba(26,35,51,0.06);
}

html.light-theme .navbar:not(.scrolled) {
  background: rgba(240,244,250,0.6);
  backdrop-filter: blur(12px);
}

html.light-theme .logo-text { color: #1A2333; }
html.light-theme .nav-link { color: #4A5568; }
html.light-theme .nav-link:hover, html.light-theme .nav-link.active { color: var(--clr-orange); }

html.light-theme .lang-dropdown-trigger {
  background: rgba(255,255,255,0.85);
  border-color: rgba(26,35,51,0.15);
  color: #1A2333;
}
html.light-theme .lang-dropdown-menu {
  background: #FFFFFF;
  border-color: rgba(26,35,51,0.12);
  box-shadow: 0 8px 32px rgba(26,35,51,0.12);
}
html.light-theme .lang-option:hover { background: rgba(255,107,0,0.08); }

html.light-theme .theme-toggle {
  background: rgba(255,255,255,0.85);
  border-color: rgba(26,35,51,0.15);
  color: #1A2333;
}

html.light-theme .glass-card {
  background: rgba(255,255,255,0.7);
  border-color: rgba(26,35,51,0.10);
  box-shadow: 0 4px 20px rgba(26,35,51,0.07);
}

html.light-theme .hero-section {
  background: linear-gradient(135deg, #E8EEF8 0%, #F0F4FA 50%, #EAF0FA 100%);
}

html.light-theme .hero-title,
html.light-theme .section-title { color: #1A2333; }
html.light-theme .hero-subtitle { color: #4A5568; }
html.light-theme .hero-badge {
  background: rgba(255,107,0,0.1);
  border-color: rgba(255,107,0,0.3);
  color: var(--clr-orange);
}

html.light-theme .about-section,
html.light-theme .products-section,
html.light-theme .quality-section,
html.light-theme .contact-section { background: var(--clr-bg); }

html.light-theme .production-section { background: var(--clr-bg-2); }

html.light-theme .about-card h3,
html.light-theme .product-title,
html.light-theme .quality-point h4,
html.light-theme .production-feat h3 { color: #1A2333; }

html.light-theme .about-card p,
html.light-theme .product-desc,
html.light-theme .quality-point p,
html.light-theme .production-feat p { color: #4A5568; }

html.light-theme .form-input {
  background: rgba(255,255,255,0.9);
  border-color: rgba(26,35,51,0.18);
  color: #1A2333;
}
html.light-theme .form-input:focus {
  border-color: var(--clr-orange);
  background: #FFFFFF;
}
html.light-theme .form-label { color: #4A5568; }

html.light-theme .contact-item {
  background: rgba(255,255,255,0.7);
  border-color: rgba(26,35,51,0.10);
}
html.light-theme .contact-item:hover { border-color: var(--clr-orange); }
html.light-theme .contact-value { color: #1A2333; }
html.light-theme .contact-label { color: #4A5568; }

html.light-theme .footer { background: #E0E8F4; }
html.light-theme .footer-bottom { background: #D4DEF0; }
html.light-theme .footer-brand p,
html.light-theme .footer-links-col ul li a,
html.light-theme .footer-contact-col ul li a { color: #4A5568; }
html.light-theme .footer-links-col h4,
html.light-theme .footer-contact-col h4 { color: #1A2333; }

html.light-theme .cert-card { background: rgba(255,255,255,0.8); }
html.light-theme .cert-card h4 { color: #1A2333; }
html.light-theme .cert-card p { color: #4A5568; }

html.light-theme .tag { background: rgba(26,35,51,0.07); color: #4A5568; }

html.light-theme .nav-hamburger span { background: #1A2333; }

/* Scrollbar in light mode */
html.light-theme ::-webkit-scrollbar-track { background: #E8EEF8; }

/* ═══════════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
═══════════════════════════════════════════════════════════════ */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--clr-orange-mid);
  color: var(--clr-orange);
  background: var(--clr-orange-dim);
}
.theme-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: opacity 0.3s, transform 0.4s;
}
/* Dark mode: show moon, hide sun */
.sun-icon  { display: block; }
.moon-icon { display: none; }
/* Light mode: show sun, hide moon */
html.light-theme .sun-icon  { display: none; }
html.light-theme .moon-icon { display: block; }

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE DROPDOWN
═══════════════════════════════════════════════════════════════ */
.lang-dropdown {
  position: relative;
}

.lang-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  background: var(--clr-surface-2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  color: var(--clr-text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.lang-dropdown-trigger:hover,
.lang-dropdown-trigger.open {
  border-color: var(--clr-orange-mid);
  color: var(--clr-text);
  background: var(--clr-orange-dim);
}

.lang-current-flag {
  font-size: 1rem;
  line-height: 1;
}
.lang-current-code {
  font-weight: 600;
  color: var(--clr-text);
}

.lang-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}
.lang-dropdown-trigger.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border-2);
  border-radius: 10px;
  padding: 4px;
  z-index: 2000;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.lang-dropdown-menu.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.lang-option:hover { background: var(--clr-orange-dim); color: var(--clr-text); }
.lang-option.active-lang { background: var(--clr-orange-dim); color: var(--clr-orange); }
.lang-option.active-lang .lang-code { color: var(--clr-orange); font-weight: 700; }

.lang-flag { font-size: 1rem; line-height: 1; }
.lang-name { flex: 1; font-family: var(--font-body); font-size: 0.82rem; font-weight: 400; letter-spacing: 0; }
.lang-code { font-weight: 600; font-size: 0.7rem; color: var(--clr-text-dim); letter-spacing: 0.05em; }

/* ═══════════════════════════════════════════════════════════════
   INSTAGRAM CONTACT ICON
═══════════════════════════════════════════════════════════════ */
.contact-icon-ig {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important;
  color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO LOGO OVERLAY
═══════════════════════════════════════════════════════════════ */
.hero-logo-overlay {
  position: absolute;
  bottom: 60px;
  right: 60px;
  z-index: 3;
  pointer-events: none;
}
.hero-company-logo {
  width: 180px;
  height: auto;
  opacity: 0.85;
  filter: drop-shadow(0 4px 24px rgba(255,107,0,0.25));
  animation: logoFloat 4s ease-in-out infinite;
}
html.light-theme .hero-company-logo {
  opacity: 0.9;
  filter: drop-shadow(0 4px 24px rgba(255,107,0,0.3));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@media (max-width: 768px) {
  .hero-logo-overlay {
    bottom: 80px;
    right: 20px;
  }
  .hero-company-logo { width: 120px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE: скрываем lang-dropdown нормально
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .lang-dropdown-menu {
    right: auto;
    left: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TOP SOCIAL BAR
═══════════════════════════════════════════════════════════════ */
.top-social-bar {
  width: 100%;
  background: rgba(255,107,0,0.08);
  border-bottom: 1px solid rgba(255,107,0,0.15);
  padding: 6px 0;
  z-index: 200;
}
html.light-theme .top-social-bar {
  background: rgba(255,107,0,0.06);
  border-bottom: 1px solid rgba(255,107,0,0.18);
}
.top-social-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
.top-social-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--clr-text-muted);
  font-size: 12px;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}
.top-social-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.top-social-link:hover {
  opacity: 1;
  color: var(--clr-orange);
}
html.light-theme .top-social-link {
  color: #4A5568;
}
@media (max-width: 768px) {
  .top-social-inner {
    gap: 12px;
    justify-content: center;
  }
  .top-social-link span {
    display: none;
  }
  .top-social-link svg {
    width: 16px;
    height: 16px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   HERO LOGO — DARK / LIGHT SWITCHING
═══════════════════════════════════════════════════════════════ */
/* Dark mode (default): show transparent logo, hide original */
.hero-logo-dark  { display: block; }
.hero-logo-light { display: none; }

/* Light mode: show original logo, hide transparent */
html.light-theme .hero-logo-dark  { display: none; }
html.light-theme .hero-logo-light { display: block; }

/* YouTube contact icon */
.contact-icon-yt {
  background: rgba(255, 0, 0, 0.12);
  color: #FF0000;
}
html.light-theme .contact-icon-yt {
  background: rgba(255, 0, 0, 0.10);
  color: #CC0000;
}

/* ── Logo light/dark switching ── */
.logo-light { display: block; }
.logo-dark  { display: none;  }

html.light-theme .logo-light { display: block; }
html.light-theme .logo-dark  { display: none;  }

/* dark theme (default) */
html:not(.light-theme) .logo-light { display: none;  }
html:not(.light-theme) .logo-dark  { display: block; }


/* stat1 — длинный текст, адаптируем размер */
.hero-stat:first-child .stat-value {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.15;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE ADAPTIVITY — полная мобильная адаптивность
   Breakpoints: 1024px | 768px | 480px | 360px
═══════════════════════════════════════════════════════════════ */

/* ─── 1024px — планшет альбомный ────────────────────────────── */
@media (max-width: 1024px) {
  .nav-container { gap: 20px; }
  .hero-section {
    grid-template-columns: 1fr;
    padding: 120px 32px 60px;
    min-height: auto;
  }
  .hero-content { max-width: 100%; }
  .hero-title { font-size: clamp(2.6rem, 5vw, 4rem); }
  .hero-subtitle { max-width: 100%; }
  .hero-visual { display: none; }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .production-features { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-top .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ─── 768px — планшет портретный / большой телефон ──────────── */
@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  /* Navbar */
  .nav-container { padding: 0 16px; gap: 12px; }
  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 85vw);
    height: 100dvh;
    background: rgba(7,13,24,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 28px 40px;
    gap: 2px;
    border-left: 1px solid var(--clr-border);
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-link {
    padding: 13px 0;
    font-size: 1.1rem;
    width: 100%;
    border-bottom: 1px solid var(--clr-border);
  }
  .nav-link::after { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .lang-dropdown { margin-left: 0; }

  /* Соцсети — только иконка, текст и стрелка скрыты */
  .nav-social-trigger > span:not([class]),
  .nav-social-trigger .social-chevron { display: none; }
  .nav-social-trigger {
    padding: 8px 10px;
    gap: 0;
  }

  /* Hero */
  .hero-section { padding: 90px 16px 50px; }
  .hero-badge { font-size: 0.68rem; padding: 6px 14px; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3rem); margin-bottom: 18px; }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-ctas { gap: 12px; margin-bottom: 36px; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px 0; }
  .hero-stat { padding: 0 20px; }
  .hero-stat:first-child { padding-left: 0; }
  .stat-value { font-size: 1.8rem; }
  .hero-stat:first-child .stat-value { font-size: clamp(1rem, 4vw, 1.4rem); }
  .stat-divider { height: 36px; }

  /* Sections */
  .section-container { padding: 0 16px; }
  .section-header { margin-bottom: 48px; }
  .section-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .section-desc { font-size: 0.95rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .about-card { padding: 28px 24px; }

  /* Products */
  .products-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-card { padding: 28px 24px; }

  /* Production */
  .production-features { grid-template-columns: 1fr 1fr; gap: 16px; }
  .production-feat { padding: 24px 20px; }
  .production-cta { text-align: center; }

  /* Quality */
  .stages-flow { flex-direction: column; align-items: stretch; gap: 12px; }
  .stage-item { flex-direction: row; align-items: center; gap: 16px; }
  .stage-connector { display: none; }
  .stage-num { flex-shrink: 0; }

  /* Contact */
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-info { gap: 12px; }
  .contact-item { padding: 16px 18px; gap: 14px; }
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }

  /* Footer */
  .footer-top .footer-container { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
  .footer-social { gap: 8px; }

  /* Lang dropdown */
  .lang-dropdown-menu { right: auto; left: 0; min-width: 160px; }
}

/* ─── 480px — телефон стандартный ───────────────────────────── */
@media (max-width: 480px) {
  :root { --section-pad: 48px; }

  /* Navbar */
  .logo-text { font-size: 0.9rem; letter-spacing: 0.1em; }
  .nav-actions { gap: 8px; }
  .lang-dropdown-trigger { padding: 5px 8px; }
  .lang-current-flag { font-size: 0.9rem; }

  /* Hero */
  .hero-section { padding: 80px 14px 44px; }
  .hero-badge { display: none; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .hero-stats { gap: 16px 0; }
  .hero-stat { padding: 0 14px; }
  .stat-value { font-size: 1.5rem; }
  .hero-stat:first-child .stat-value { font-size: clamp(0.9rem, 3.5vw, 1.2rem); }

  /* Sections */
  .section-container { padding: 0 14px; }
  .section-header { margin-bottom: 36px; }
  .section-label { font-size: 0.62rem; letter-spacing: 0.25em; padding: 5px 14px; }

  /* About */
  .about-card { padding: 22px 18px; }
  .about-card-icon svg { width: 36px; height: 36px; }

  /* Products */
  .product-card { padding: 22px 18px; }
  .product-tags { flex-wrap: wrap; gap: 6px; }

  /* Production */
  .production-features { grid-template-columns: 1fr; }
  .production-feat { padding: 20px 18px; }

  /* Quality */
  .quality-stages { padding: 28px 18px; }

  /* Contact */
  .contact-item { padding: 14px 16px; }
  .contact-icon { width: 38px; height: 38px; border-radius: 8px; }
  .contact-form { padding: 20px 16px; }
  .form-submit-btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-brand { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-links-col ul, .footer-contact-col ul { font-size: 0.9rem; }
}

/* ─── 360px — маленький телефон ─────────────────────────────── */
@media (max-width: 360px) {
  .hero-title { font-size: 1.9rem; }
  .nav-container { padding: 0 12px; }
  .section-container { padding: 0 12px; }
  .contact-form { padding: 16px 14px; }
  .stat-value { font-size: 1.3rem; }
  .hero-stat:first-child .stat-value { font-size: 0.85rem; }
  .hero-stat { padding: 0 10px; }
}

/* ─── Overlay при открытом мобильном меню ───────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  backdrop-filter: blur(2px);
}
.nav-overlay.active { display: block; }

/* ─── Touch — убираем hover-эффекты на мобиле ──────────────── */
@media (hover: none) {
  .contact-item:hover { transform: none; }
  .btn-primary:hover { transform: none; }
  .nav-link:hover::after { transform: scaleX(0); }
}

/* ─── Светлая тема — мобильное меню ────────────────────────── */
@media (max-width: 768px) {
  html.light-theme .nav-menu {
    background: rgba(240,244,250,0.98);
    border-left-color: rgba(26,35,51,0.1);
  }
  html.light-theme .nav-link {
    border-bottom-color: rgba(26,35,51,0.08);
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE HERO FIX — убираем пустое пространство
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Hero — убираем min-height 100vh, контент диктует высоту */
  .hero-section {
    min-height: unset !important;
    height: auto !important;
    padding: 90px 16px 48px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  /* Статы — равная сетка 3 в ряд */
  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    flex-wrap: unset;
    width: 100%;
    margin-top: 0;
  }
  .hero-stat {
    padding: 0 !important;
    text-align: left;
  }
  .stat-value { font-size: 1.4rem; }
  .hero-stat:first-child .stat-value {
    font-size: clamp(0.8rem, 3.5vw, 1.1rem);
    line-height: 1.2;
  }
  .stat-label { font-size: 0.72rem; }
  .stat-divider {
    display: block !important;
    width: 1px;
    height: 36px;
    background: var(--clr-border-2);
    margin: 0 12px;
  }

  /* Canvas фон — не фиксированный на мобиле (экономим ресурсы) */
  .hero-canvas { position: absolute; }
  .hero-glow { position: absolute; }
}

@media (max-width: 480px) {
  .hero-section { padding: 80px 14px 40px !important; }

  .hero-stats {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }
  .stat-value { font-size: 1.2rem; }
  .hero-stat:first-child .stat-value {
    font-size: clamp(0.72rem, 3vw, 0.9rem);
  }
  .stat-label { font-size: 0.65rem; }
  .stat-divider { margin: 0 8px; height: 28px; }
}
