/* ==========================================================================
   NILA ELEKTRIK — Design System
   Dark, neon-industrial. Deep violet + electric yellow on near-black.
   ========================================================================== */

/* ----- Tokens ----- */
:root {
  /* Brand */
  --violet-900: #2b0f5c;
  --violet-700: #4c1d95;
  --violet-600: #6d28d9;
  --violet-500: #7c3aed;
  --violet-400: #9560ff;
  --violet-300: #b794ff;
  --yellow:     #ffe11c;
  --yellow-soft:#f5e56b;

  /* Neutrals */
  --bg:         #08070d;
  --bg-2:       #0e0c17;
  --surface:    #141020;
  --surface-2:  #1b1630;
  --line:       rgba(255,255,255,0.08);
  --line-2:     rgba(255,255,255,0.14);

  --text:       #f4f2fb;
  --text-2:     #b9b4cf;
  --text-3:     #837e9b;

  /* Type */
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Grotesk", "Inter", sans-serif;

  /* Layout */
  --wrap: 1200px;
  --wrap-wide: 1360px;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(20px, 5vw, 40px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  --glow: 0 0 40px -6px rgba(124,58,237,0.55);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

/* Background ambience */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(60vw 60vw at 82% -8%, rgba(124,58,237,0.18), transparent 60%),
    radial-gradient(50vw 50vw at -10% 110%, rgba(255,225,28,0.06), transparent 55%);
  pointer-events: none; z-index: 0;
}

/* ----- Layout helpers ----- */
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; position: relative; z-index: 1; }
.wrap-wide { width: min(100% - var(--gutter) * 2, var(--wrap-wide)); margin-inline: auto; position: relative; z-index: 1; }
.section { padding: clamp(64px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(48px, 7vw, 90px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--panel { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border-top: 1px solid var(--line); }
.center { text-align: center; }

/* ----- Typography ----- */
h1, h2, h3, h4 { line-height: 1.12; font-weight: 700; letter-spacing: -0.01em; }
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.h3 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); }
.muted { color: var(--text-2); }
.muted-3 { color: var(--text-3); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--violet-300);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--violet-400), transparent);
}
.eyebrow.center-mark { justify-content: center; }
.text-yellow { color: var(--yellow); }
.text-violet { color: var(--violet-400); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.9em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn .arw { transition: transform 0.35s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--primary {
  background: linear-gradient(120deg, var(--violet-600), var(--violet-400));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124,58,237,0.8);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(124,58,237,0.9); }
.btn--yellow {
  background: var(--yellow); color: #16130a;
  box-shadow: 0 10px 30px -12px rgba(255,225,28,0.7);
}
.btn--yellow:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(255,225,28,0.8); }
.btn--ghost {
  border: 1px solid var(--line-2); color: var(--text);
  background: rgba(255,255,255,0.02);
}
.btn--ghost:hover { border-color: var(--violet-400); color: #fff; transform: translateY(-2px); }
.btn--sm { padding: 0.7em 1.2em; font-size: 0.85rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5em; color: var(--violet-300); font-weight: 600; }
.link-arrow .arw { transition: transform 0.35s var(--ease); }
.link-arrow:hover { color: var(--yellow); }
.link-arrow:hover .arw { transform: translateX(4px); }

/* ==========================================================================
   Loading screen
   ========================================================================== */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #16112b, #050409 70%);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; place-items: center; gap: 26px; }
.loader-logo {
  width: 96px; height: 96px;
  filter: drop-shadow(0 0 26px rgba(124,58,237,0.75));
  animation: loaderPulse 1.8s var(--ease) infinite;
}
@keyframes loaderPulse {
  0%,100% { transform: scale(0.94); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; filter: drop-shadow(0 0 40px rgba(255,225,28,0.5)); }
}
.loader-bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.1); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; border-radius: 3px;
  background: linear-gradient(90deg, var(--violet-500), var(--yellow));
  animation: loaderSlide 1.2s var(--ease) infinite; }
@keyframes loaderSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }
.loader-word { font-family: var(--font-mono); letter-spacing: 0.4em; font-size: 0.7rem; text-transform: uppercase; color: var(--text-3); }

/* ==========================================================================
   Topbar + Navbar
   ========================================================================== */
.topbar {
  background: linear-gradient(90deg, var(--violet-700), var(--violet-500));
  color: #fff; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  text-align: center; padding: 7px 16px; font-weight: 500;
  position: relative; z-index: 60;
}
.topbar b { color: var(--yellow); font-weight: 700; }

.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
  padding: 14px 0;
}
.nav.scrolled {
  background: rgba(10,8,18,0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  padding: 9px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(124,58,237,0.6)); transition: transform 0.4s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-name { font-size: 1.05rem; line-height: 1; }
.brand-name small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.24em; color: var(--violet-300); text-transform: uppercase; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > li > a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 0.86rem; font-weight: 500; color: var(--text-2);
  transition: color 0.25s, background 0.25s;
  position: relative;
}
.nav-links > li > a:hover, .nav-links > li.current > a { color: #fff; }
.nav-links > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--violet-400), var(--yellow)); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.38s var(--ease);
}
.nav-links > li > a:hover::after, .nav-links > li.current > a::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: rgba(20,16,32,0.96); backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px; min-width: 260px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: all 0.28s var(--ease); z-index: 40;
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.85rem; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.drop a:hover { background: var(--surface-2); color: #fff; }
.drop-head { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-300); padding: 8px 12px 4px; }
.drop-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }

/* Language switcher — dropdown with flags */
.lang { position: relative; }
.lang-toggle { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 0.82rem;
  transition: border-color 0.25s, background 0.25s; }
.lang-toggle:hover { border-color: var(--violet-400); }
.flag-ic { width: 24px; height: 16px; border-radius: 3px; display: block; flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16); overflow: hidden; }
.lang-caret { width: 13px; height: 13px; stroke: var(--text-3); transition: transform 0.3s var(--ease); }
.lang.open .lang-caret { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 186px;
  background: rgba(20,16,32,0.98); backdrop-filter: blur(18px); border: 1px solid var(--line);
  border-radius: 12px; padding: 6px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.25s var(--ease); z-index: 60; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  font-size: 0.88rem; color: var(--text-2); cursor: pointer; }
.lang-opt .flag { font-size: 1.2rem; }
.lang-opt:hover { background: var(--surface-2); color: #fff; }
.lang-opt.on { color: #fff; }
.lang-opt.on::after { content: "✓"; margin-left: auto; color: var(--violet-400); font-weight: 700; }

.lang-toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--violet-500); color: #fff; padding: 12px 22px;
  border-radius: 12px; font-size: 0.85rem; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: all 0.3s var(--ease); z-index: 300; }
.lang-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* Burger */
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); place-items: center; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: 0.3s var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s var(--ease); }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
body.menu-open .burger span { background: transparent; }
body.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(8,7,13,0.97); backdrop-filter: blur(16px);
  padding: 100px var(--gutter) 40px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { display: block; padding: 16px 0; font-size: 1.3rem; font-family: var(--font-display); border-bottom: 1px solid var(--line); }
.mobile-menu .sub a { font-family: var(--font-sans); font-size: 1rem; padding: 11px 0 11px 18px; color: var(--text-2); }
.mobile-lang { margin-top: 28px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(90px, 13vw, 170px) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(circle at 60% 40%, #000 20%, transparent 75%); }

/* Hero background slideshow */
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0;
  animation-name: heroFade; animation-timing-function: var(--ease); animation-iteration-count: infinite; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
/* each slide occupies one 1/6 (16.67%) window: slow fade in, hold, slow fade out */
@keyframes heroFade {
  0% { opacity: 0; } 3% { opacity: 1; } 11% { opacity: 1; } 16.67% { opacity: 0; } 100% { opacity: 0; }
}
.hero-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,7,13,0.94) 0%, rgba(8,7,13,0.82) 40%, rgba(8,7,13,0.5) 100%),
    linear-gradient(180deg, rgba(8,7,13,0.6) 0%, rgba(8,7,13,0.35) 45%, var(--bg) 98%); }
@media (prefers-reduced-motion: reduce) { .hero-slide { animation: none; } .hero-slide:first-child { opacity: 1; } }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none; }
.hero-orb.v { width: 460px; height: 460px; background: rgba(124,58,237,0.4); top: -120px; right: -60px; }
.hero-orb.y { width: 300px; height: 300px; background: rgba(255,225,28,0.12); bottom: -100px; left: -40px; }
.hero-content { position: relative; z-index: 2; max-width: 860px; }
.hero h1 { margin: 22px 0 24px; }
.hero .lead { max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); margin-top: 60px; position: relative; z-index: 2; }
.stat .n { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); color: #fff; line-height: 1; }
.stat .n b { color: var(--yellow); }
.stat .l { font-size: 0.82rem; color: var(--text-3); margin-top: 8px; max-width: 150px; }

/* Page hero (interior) */
.phero { position: relative; padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 70px); overflow: hidden; }
.phero.has-bg { padding-top: clamp(90px, 12vw, 160px); }
.phero-bg { position: absolute; inset: 0; z-index: 0; }
.phero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.phero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,13,0.55), var(--bg) 92%); }
.phero-content { position: relative; z-index: 2; max-width: 820px; }
.phero h1 { margin: 18px 0 20px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.04em; }
.breadcrumb a:hover { color: var(--violet-300); }
.breadcrumb .sep { color: var(--violet-500); }

/* ==========================================================================
   Section header
   ========================================================================== */
.sec-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin: 16px 0 14px; }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,7,13,0.55)); }
.card-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; background: rgba(8,7,13,0.7); border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(8px); }
.card-body { padding: 22px 22px 24px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-body p { color: var(--text-2); font-size: 0.92rem; margin-bottom: 16px; }
.card-index { position: absolute; top: 14px; right: 16px; z-index: 2; font-family: var(--font-display); font-size: 0.9rem; color: var(--yellow); opacity: 0.9; }

/* Feature card (why choose) */
.feature {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.4s var(--ease), border-color 0.4s, background 0.4s;
  position: relative; overflow: hidden;
}
.feature:hover { transform: translateY(-6px); border-color: var(--violet-500); }
.feature-num { font-family: var(--font-display); font-size: 2.4rem; color: rgba(255,255,255,0.08); line-height: 1; }
.feature .ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin: 0 0 18px; background: linear-gradient(140deg, var(--violet-600), var(--violet-400)); box-shadow: var(--glow); }
.feature .ic svg { width: 26px; height: 26px; stroke: #fff; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 0.9rem; }

/* Split / media rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-media.tall img { aspect-ratio: 3/4; }
.frame-accent { position: absolute; inset: 0; border-radius: var(--radius); pointer-events: none; box-shadow: inset 0 0 0 1px var(--line-2); }

.prose p { color: var(--text-2); margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }

/* Checklist */
.ticks { display: grid; gap: 12px; margin-top: 8px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  background: var(--violet-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks.yellow li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2316130a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }

/* Detail spec cards */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.spec {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color 0.3s, transform 0.3s var(--ease);
}
.spec:hover { border-color: var(--violet-500); transform: translateY(-4px); }
.spec-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.spec h4 { font-size: 1.05rem; margin-bottom: 10px; }
.spec p { color: var(--text-2); font-size: 0.9rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text-2); }
.chip:hover { border-color: var(--violet-400); color: #fff; }

/* Steps / production timeline */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; transition: border-color 0.3s; }
.step:hover { border-color: var(--violet-500); }
.step-n { counter-increment: step; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.1rem; background: linear-gradient(140deg, var(--violet-600), var(--violet-400)); color: #fff; }
.step-n::before { content: counter(step, decimal-leading-zero); }
.step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 0.9rem; }

/* ==========================================================================
   Gallery + lightbox
   ========================================================================== */
.gallery { columns: 3; column-gap: 16px; }
.gallery .gitem { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; position: relative; }
.gallery .gitem img { width: 100%; transition: transform 0.6s var(--ease), opacity 0.3s; }
.gallery .gitem::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(124,58,237,0.25)); opacity: 0; transition: opacity 0.4s; }
.gallery .gitem:hover img { transform: scale(1.05); }
.gallery .gitem:hover::after { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,4,9,0.94); backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 40px; opacity: 0; visibility: hidden; transition: opacity 0.35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow); }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line-2); display: grid; place-items: center; transition: background 0.25s; }
.lb-btn:hover { background: var(--violet-600); }
.lb-btn svg { width: 24px; height: 24px; stroke: #fff; }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-close { top: 24px; right: 24px; transform: none; }
.lb-count { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2); letter-spacing: 0.1em; }

/* ==========================================================================
   Projects — client logo grid
   ========================================================================== */
.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.client-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: transparent; aspect-ratio: 16/10;
  display: grid; place-items: center; padding: 26px;
  transition: transform 0.4s var(--ease);
}
.client-card:hover { transform: translateY(-5px); }
.client-logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.client-logo img { max-height: 150px; max-width: 92%; width: auto; object-fit: contain; opacity: 0.95; transition: opacity 0.3s; }
.client-card:hover .client-logo img { opacity: 1; }
.client-logo.text-only { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); text-align: center; }
.client-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(150deg, rgba(76,29,149,0.94), rgba(124,58,237,0.94));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px;
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.client-card:hover .client-overlay { opacity: 1; }
.client-overlay .cc-count { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--yellow); }
.client-overlay h3 { font-size: 1.2rem; color: #fff; }
.client-overlay .link-arrow { color: #fff; }
.client-overlay .link-arrow:hover { color: var(--yellow); }

/* Project list (client page) */
.proj-list { display: grid; gap: 18px; }
.proj-row {
  display: grid; grid-template-columns: 300px 1fr auto; gap: 26px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.proj-row:hover { border-color: var(--violet-500); transform: translateY(-3px); }
.proj-row .pr-media { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/10; }
.proj-row .pr-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.proj-row:hover .pr-media img { transform: scale(1.06); }
.proj-row h3 { font-size: 1.2rem; margin-bottom: 8px; }
.proj-row .pr-count { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

/* ==========================================================================
   Marquee (client logos strip)
   ========================================================================== */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 54px; width: auto; object-fit: contain; opacity: 0.85; transition: opacity 0.3s; }
.marquee img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Articles
   ========================================================================== */
.article-hero { position: relative; padding: clamp(70px,10vw,130px) 0 clamp(30px,4vw,50px); overflow: hidden; }
.article-hero-bg { position: absolute; inset: 0; z-index: 0; }
.article-hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.article-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,7,13,0.4), var(--bg) 92%); }
.article-hero .wrap { position: relative; z-index: 2; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 0.85rem; color: var(--text-3); margin-top: 18px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--violet-400); }
.article-body { max-width: 760px; margin-inline: auto; }
.article-body .cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 40px; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 40px 0 16px; }
.article-body h3 { font-size: 1.3rem; margin: 30px 0 12px; color: var(--violet-300); }
.article-body p { color: var(--text-2); margin-bottom: 20px; font-size: 1.02rem; }
.article-body ul.dotted { display: grid; gap: 10px; margin: 0 0 20px; }
.article-body ul.dotted li { position: relative; padding-left: 22px; color: var(--text-2); }
.article-body ul.dotted li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.article-body blockquote { border-left: 3px solid var(--violet-500); padding: 6px 0 6px 22px; margin: 26px 0; color: var(--text); font-family: var(--font-display); font-size: 1.15rem; }
.source-note { font-size: 0.82rem; color: var(--text-3); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form-card { background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 42px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 0.82rem; color: var(--text-2); font-weight: 500; }
.field label .req { color: var(--yellow); }
.field input, .field textarea, .field select {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px;
  color: var(--text); transition: border-color 0.25s, box-shadow 0.25s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--violet-500); box-shadow: 0 0 0 3px rgba(124,58,237,0.2); }
.field textarea { min-height: 130px; resize: vertical; }

.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.info-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: none; }
.info-item .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.info-item .ic svg { width: 22px; height: 22px; stroke: var(--violet-300); }
.info-item .l { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.info-item .v { color: var(--text); font-size: 0.95rem; }
.info-item a.v:hover { color: var(--violet-300); }
.form-note { margin-top: 16px; font-size: 0.82rem; color: var(--text-3); }
.form-ok { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(124,58,237,0.14); border: 1px solid var(--violet-500); color: var(--text); font-size: 0.9rem; }
.form-ok.show { display: block; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 22px; }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; filter: grayscale(0.3) invert(0.92) hue-rotate(180deg); }

/* ==========================================================================
   Careers
   ========================================================================== */
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.job:hover { border-color: var(--violet-500); transform: translateY(-3px); }
.job h3 { font-size: 1.2rem; margin-bottom: 8px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.job-meta span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.job-meta span.ft { color: var(--yellow); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(120deg, var(--violet-900), #120b26); padding: clamp(40px, 6vw, 70px); text-align: center; }
.cta-band::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(124,58,237,0.4); filter: blur(90px); top: -160px; right: -80px; }
.cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,225,28,0.1); filter: blur(80px); bottom: -140px; left: -40px; }
.cta-band > * { position: relative; z-index: 2; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .btn { margin-top: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { border-top: 1px solid var(--line); padding: clamp(56px, 8vw, 90px) 0 30px; margin-top: 40px; position: relative; z-index: 1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { color: var(--text-2); font-size: 0.9rem; max-width: 280px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet-300); margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: var(--text-2); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { color: var(--text-2); font-size: 0.9rem; margin-bottom: 12px; display: flex; gap: 10px; }
.footer-contact svg { width: 17px; height: 17px; stroke: var(--violet-300); flex: none; margin-top: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; border-top: 1px solid var(--line); margin-top: 46px; padding-top: 26px; font-size: 0.82rem; color: var(--text-3); }
.footer-bottom a:hover { color: var(--violet-300); }

/* ==========================================================================
   WhatsApp widget
   ========================================================================== */
.wa-fab { position: fixed; bottom: 26px; right: 26px; z-index: 120; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 34px -8px rgba(37,211,102,0.6);
  transition: transform 0.3s var(--ease); }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab .pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.6); opacity: 0; } }

.wa-panel { position: fixed; bottom: 100px; right: 26px; z-index: 121; width: min(340px, calc(100vw - 40px));
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.96); transform-origin: bottom right; transition: all 0.35s var(--ease); }
.wa-panel.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.wa-head { background: linear-gradient(120deg, #128c7e, #25d366); padding: 18px 20px; display: flex; gap: 12px; align-items: center; }
.wa-head img { width: 42px; height: 42px; border-radius: 50%; background: #fff; padding: 5px; }
.wa-head .t { color: #fff; font-weight: 600; font-size: 0.95rem; }
.wa-head .s { color: rgba(255,255,255,0.85); font-size: 0.75rem; display: flex; align-items: center; gap: 5px; }
.wa-head .s::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b6ff9c; }
.wa-body { padding: 22px 20px; background:
  linear-gradient(rgba(20,16,32,0.9), rgba(20,16,32,0.9)),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23ffffff10'/%3E%3C/svg%3E"); }
.wa-bubble { background: var(--surface-2); border-radius: 4px 14px 14px 14px; padding: 12px 15px; font-size: 0.88rem; color: var(--text); max-width: 85%; margin-bottom: 8px; }
.wa-bubble .who { font-size: 0.7rem; color: var(--violet-300); font-weight: 600; margin-bottom: 4px; }
.wa-time { font-size: 0.65rem; color: var(--text-3); margin-left: 4px; }
.wa-cta { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 14px 20px 20px; padding: 13px; border-radius: 12px; background: #25d366; color: #05331b; font-weight: 700; font-size: 0.9rem; transition: transform 0.25s; }
.wa-cta svg { width: 20px; height: 20px; flex: none; }
.wa-cta:hover { transform: translateY(-2px); }
.wa-close { margin-left: auto; color: #fff; opacity: 0.8; font-size: 1.3rem; line-height: 1; }
.wa-close:hover { opacity: 1; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { scroll-behavior: auto; } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .gallery { columns: 2; }
  .proj-row { grid-template-columns: 1fr; }
  .proj-row .pr-media { aspect-ratio: 16/9; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .lang, .nav-actions .btn { display: none; }
  .burger { display: grid; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .hero-stats { gap: 24px; }
  .job { grid-template-columns: 1fr; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
}
