/* ============================================================
   NECSIAM — Homepage
   Brand-locked: Inter Tight + JetBrains Mono
   Navy #1E2247 · Ink #0B0E24 · Lime #CCFF44 · Mist #EDEEF5
   ============================================================ */

:root {
  --navy: #1E2247;
  --ink:  #0B0E24;
  --ink-2:#080A1C;
  --lime: #CCFF44;
  --lime-dim: #B8E639;
  --paper:#FAFAF7;
  --mist: #EDEEF5;
  --graphite:#4A4F6E;
  --muted:#A0A8C0;
  --b100:#B8BDD4;
  --b200:#7880A8;
  --b300:#4A527E;
  --b400:#2C3262;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 36px;

  --max: 1360px;
  --pad: 56px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: var(--navy); }

/* Background grid (global subtle) */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(204,255,68,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(204,255,68,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 45%, transparent 85%);
}

/* Layout */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 2; }
section { position: relative; z-index: 2; }

/* Eyebrow */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px; background: var(--lime);
  display: inline-block;
}
.eyebrow.no-line::before { display: none; }

/* Typography helpers */
.h-display {
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.h1 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.h2 { font-size: clamp(28px, 3vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); line-height: 1.55; max-width: 58ch; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 18px 24px 0;
  pointer-events: none;
  transition: padding 0.35s var(--ease);
}
.nav.scrolled { padding-top: 10px; }
.nav-inner {
  pointer-events: auto;
  width: 100%;
  max-width: var(--max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 14px 14px 24px;
  border: 1px solid rgba(204,255,68,0.14);
  border-radius: 999px;
  background: rgba(11,14,36,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled .nav-inner {
  background: rgba(11,14,36,0.85);
  border-color: rgba(204,255,68,0.22);
}
.logo {
  font-size: 22px; font-weight: 800; letter-spacing: -0.04em;
  color: var(--paper);
  display: flex; align-items: center; gap: 10px;
}
.logo .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px var(--lime); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.25); }
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--b100);
  padding: 8px 14px; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--paper); background: rgba(255,255,255,0.04); }

/* Language switch (CA/ES) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 3px;
  margin: 0 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--b100);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--paper); background: rgba(255,255,255,0.05); }
.lang-switch a[aria-current="page"] {
  background: var(--lime);
  color: var(--navy);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease), box-shadow 0.3s var(--ease), background 0.25s;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: var(--lime);
  color: var(--navy);
  box-shadow: 0 0 0 0 rgba(204,255,68,0.6);
  animation: ctaPulse 3s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: #D9FF5C;
  box-shadow: 0 0 0 8px rgba(204,255,68,0.12), 0 10px 40px -10px rgba(204,255,68,0.5);
  animation: none;
}
.btn-primary .arrow { transition: transform 0.25s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(204,255,68,0.55), 0 0 18px -4px rgba(204,255,68,0.3); }
  50%      { box-shadow: 0 0 0 10px rgba(204,255,68,0), 0 0 36px -4px rgba(204,255,68,0.55); }
}
.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(204,255,68,0.05);
}
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Btn label swap (long on desktop, short on mobile) */
.btn-label-short { display: none; }
.btn-label-long { display: inline; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  padding: 160px 0 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
#neural-canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(11,14,36,0.9), transparent 70%);
  pointer-events: none;
  z-index: 1;
}
.hero .wrap { z-index: 3; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(204,255,68,0.06);
  border: 1px solid rgba(204,255,68,0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 28px;
}
.hero-tag .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 10px var(--lime);
  animation: pulseDot 1.8s ease-in-out infinite;
}
.hero h1 { max-width: 18ch; margin: 0 0 24px; }
.hero h1 .accent { color: var(--lime); }
.hero h1 .cursor {
  display: inline-block;
  width: 0.55ch; height: 0.85em;
  background: var(--lime);
  margin-left: 4px;
  vertical-align: -0.08em;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero .lead { margin: 0 0 44px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero-stats {
  display: flex; gap: 44px;
  margin-top: 80px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat .num { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--paper); line-height: 1; }
.stat .num .plus { color: var(--lime); }
.stat .lbl { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--b200); margin-top: 8px; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--b200);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 3;
}
.scroll-hint .line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, transparent, var(--lime));
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.1% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Generic section chrome ---------- */
section.section { padding: 140px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; margin-bottom: 72px; }
.section-head .title { margin: 14px 0 0; max-width: 20ch; }
.section-head .meta { color: var(--muted); max-width: 42ch; justify-self: end; }

/* Reveal on scroll — only hides when JS has signalled readiness (progressive enhancement) */
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js-ready .reveal { opacity: 0; transform: translateY(24px); }
html.js-ready .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

/* ---------- PROBLEM ---------- */
.problem { background: var(--ink); }
.problem .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pain {
  padding: 36px 32px 40px;
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.07);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.pain:hover { border-color: rgba(204,255,68,0.35); transform: translateY(-4px); }
.pain:hover .pain-glow { opacity: 1; }
.pain-glow {
  position: absolute; inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,0%), rgba(204,255,68,0.10), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
}
.pain .idx {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; color: var(--b200);
  margin-bottom: 28px; display: flex; justify-content: space-between;
}
.pain .glyph {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(204,255,68,0.08);
  border: 1px solid rgba(204,255,68,0.25);
  color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
}
.pain h3 { margin: 0 0 12px; color: var(--paper); }
.pain p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---------- SERVICES ---------- */
.services { background: var(--navy); padding: 160px 0; }
.services .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(204,255,68,0.12);
  border: 1px solid rgba(204,255,68,0.12);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.service {
  background: var(--navy);
  padding: 44px 36px 40px;
  min-height: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.35s;
  cursor: pointer;
}
.service:hover { background: #252a55; }
.service:hover .svc-arrow { transform: translate(4px,-4px); color: var(--lime); }
.service .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em; color: var(--lime);
}
.service h3 { margin: 24px 0 10px; max-width: 14ch; }
.service p { margin: 0; color: var(--b100); font-size: 14px; line-height: 1.5; max-width: 32ch; }
.svc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.svc-arrow {
  color: var(--b200);
  transition: transform 0.3s var(--ease), color 0.3s;
}
.service .tags {
  margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px;
}
.service .tags span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(204,255,68,0.08); color: var(--lime);
}

/* ---------- HOW WE WORK ---------- */
.how { background: var(--ink); padding: 160px 0; }
.how-track {
  display: grid;
  grid-template-columns: 1fr 80px 1fr 80px 1fr;
  gap: 0;
  align-items: stretch;
}
.step {
  padding: 40px 32px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  position: relative;
  min-height: 320px;
  display: flex; flex-direction: column;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--lime);
  margin-bottom: 24px;
}
.step h3 { margin: 0 0 12px; color: var(--paper); font-size: 26px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 0 0 20px; }
.step ul { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-direction: column; gap: 6px; }
.step ul li { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--b100); letter-spacing: 0.05em; padding-left: 16px; position: relative; }
.step ul li::before { content: '→'; position: absolute; left: 0; color: var(--lime); }
.arrow-connector {
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.arrow-connector svg { color: var(--lime); opacity: 0.9; }
.arrow-connector::before {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.4;
}

/* ---------- CASE STUDY ---------- */
.case { background: var(--ink-2); padding: 160px 0; position: relative; overflow: hidden; }
.case::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px circle at 15% 30%, rgba(204,255,68,0.08), transparent 60%),
    radial-gradient(500px circle at 85% 80%, rgba(204,255,68,0.05), transparent 60%);
  pointer-events: none;
}
.case-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; position: relative; }
.case .logo-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--paper); letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.case .logo-chip .sq { width: 16px; height: 16px; border-radius: 4px; background: var(--lime); }
.case h2 { margin: 8px 0 20px; max-width: 16ch; }
.case-body p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 54ch; }
.case-body p + p { margin-top: 14px; }
.case-quote {
  margin-top: 36px;
  padding: 24px 28px;
  border-left: 2px solid var(--lime);
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--paper);
  max-width: 56ch;
}
.case-quote cite { display: block; margin-top: 14px; font-style: normal; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--b100); letter-spacing: 0.1em; }

.metrics {
  background: var(--navy);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid rgba(204,255,68,0.15);
  position: relative;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.8);
}
.metrics::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(204,255,68,0.35), transparent 40%, transparent 60%, rgba(204,255,68,0.15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.metrics .m-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em;
  color: var(--b100); margin-bottom: 28px;
}
.metrics .m-head .live {
  display: inline-flex; align-items: center; gap: 8px; color: var(--lime);
}
.metrics .m-head .live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulseDot 1.8s ease-in-out infinite; }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.metric {
  padding: 24px;
  background: rgba(11,14,36,0.6);
  border-radius: var(--radius-m);
  border: 1px solid rgba(255,255,255,0.06);
}
.metric .val { font-size: 48px; font-weight: 800; letter-spacing: -0.035em; color: var(--lime); line-height: 1; }
.metric .val .suf { font-size: 28px; }
.metric .tag-row { margin-top: 8px; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.18em; color: var(--lime); opacity: 0.7; text-transform: lowercase; }
.metric .lbl { margin-top: 14px; font-size: 13px; color: var(--b100); line-height: 1.45; }
.metric .delta {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.15em; color: var(--lime);
  display: flex; align-items: center; gap: 6px;
}
.metrics-disclaimer {
  margin: 24px 4px 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--b200);
  font-style: normal;
}

/* ---------- WHY NECSIAM ---------- */
.why { background: var(--ink); padding: 160px 0; }
.why .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-l); overflow: hidden; }
.why-col {
  background: var(--ink);
  padding: 48px 40px;
  min-height: 320px;
  display: flex; flex-direction: column;
  transition: background 0.35s;
}
.why-col:hover { background: #0F1230; }
.why-col .tag { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--lime); margin-bottom: 20px; }
.why-col h3 { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; color: var(--paper); }
.why-col p { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.why-col .ft { margin-top: auto; padding-top: 28px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--b200); letter-spacing: 0.1em; border-top: 1px dashed rgba(255,255,255,0.08); }

/* ---------- FINAL CTA ---------- */
.final {
  padding: 160px 0 140px;
  background: var(--ink);
}
.final-inner {
  background: var(--lime);
  color: var(--navy);
  border-radius: var(--radius-xl);
  padding: 96px 72px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.final-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(30,34,71,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,34,71,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 140%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 140%);
  pointer-events: none;
}
.final-inner::after {
  content: '';
  position: absolute;
  right: -140px; bottom: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(30,34,71,0.12), transparent 70%);
  pointer-events: none;
}
.final h2 {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 16px 0 0;
  max-width: 14ch;
  position: relative;
}
.final .eyebrow { color: var(--navy); }
.final .eyebrow::before { background: var(--navy); }
.final-right { position: relative; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.final-right .subline { font-size: 17px; max-width: 38ch; line-height: 1.5; color: var(--navy); opacity: 0.8; }
.btn-navy {
  background: var(--navy); color: var(--lime);
  padding: 18px 28px;
  font-size: 16px;
  box-shadow: 0 0 0 0 rgba(30,34,71,0.3);
  animation: navyPulse 3s ease-in-out infinite;
}
.btn-navy:hover { background: #151832; transform: translateY(-1px); animation: none; box-shadow: 0 12px 40px -10px rgba(30,34,71,0.6); }
@keyframes navyPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(30,34,71,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(30,34,71,0); }
}
.final-meta { margin-top: 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.15em; color: var(--navy); opacity: 0.65; display: flex; gap: 18px; flex-wrap: wrap; }
.final-meta span::before { content: '→ '; color: var(--navy); opacity: 0.5; }

/* ---------- FOOTER ---------- */
footer { background: var(--ink-2); padding: 80px 0 40px; border-top: 1px solid rgba(255,255,255,0.06); }
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.foot .brand { max-width: 38ch; }
.foot .brand .logo { font-size: 32px; margin-bottom: 18px; }
.foot .brand p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.foot-col h4 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--lime); margin: 8px 0 18px; font-weight: 500; text-transform: uppercase; }
.foot-col a { display: block; font-size: 14px; color: var(--b100); padding: 6px 0; transition: color 0.2s; }
.foot-col a:hover { color: var(--paper); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  color: var(--b200);
}
.foot-bottom .loc { display: inline-flex; gap: 8px; align-items: center; color: var(--b100); }
.foot-bottom .loc .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.foot-bottom .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-bottom .legal-links a { color: var(--b100); transition: color 0.2s; text-transform: none; letter-spacing: 0.05em; }
.foot-bottom .legal-links a:hover { color: var(--paper); }
@media (max-width: 760px) {
  .foot-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}

/* ---------- TWEAKS PANEL ---------- */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  width: 300px;
  background: rgba(11,14,36,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(204,255,68,0.25);
  border-radius: 18px;
  padding: 20px;
  color: var(--paper);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8);
  display: none;
  font-size: 13px;
}
.tweaks-panel.show { display: block; }
.tweaks-panel h5 { margin: 0 0 14px; font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.2em; color: var(--lime); font-weight: 500; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.tweaks-panel h5 .close { cursor: pointer; color: var(--b200); font-size: 16px; }
.tweak-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.tweak-row:first-of-type { border-top: none; }
.tweak-row label { color: var(--b100); font-size: 12px; }
.tweak-row input[type="color"] { width: 36px; height: 24px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; background: none; cursor: pointer; }
.tweak-row select, .tweak-row input[type="range"] { background: rgba(255,255,255,0.05); color: var(--paper); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 4px 8px; font-family: inherit; font-size: 12px; }
.tweak-row input[type="range"] { width: 120px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .meta { justify-self: start; }
  .problem .grid, .services .grid, .why .grid { grid-template-columns: 1fr; }
  .how-track { grid-template-columns: 1fr; gap: 16px; }
  .arrow-connector { transform: rotate(90deg); height: 40px; }
  .case-wrap { grid-template-columns: 1fr; }
  .final-inner { grid-template-columns: 1fr; padding: 56px 32px; }
  .foot { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .btn-label-long { display: none; }
  .btn-label-short { display: inline; }
  .lang-switch { margin: 0 6px; padding: 2px; }
  .lang-switch a { min-width: 24px; padding: 3px 6px; font-size: 10px; }
  .btn-sm { padding: 9px 14px; font-size: 13px; gap: 6px; }
  .hero { padding: 120px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
}
