/* ============================================
   MAILLARD DEV — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- TOKENS ---------- */
:root {
  --blue: #0047FF;
  --blue-soft: #4D7FFF;
  --blue-wash: rgba(0, 71, 255, 0.08);
  --red: #FF4757;
  --red-soft: #FF7A85;
  --red-wash: rgba(255, 71, 87, 0.08);

  --bg: #F7F7F4;
  --bg-alt: #EDEDE8;
  --surface: #FFFFFF;
  --line: #DEDED6;
  --line-strong: #C4C4BA;
  --ink: #0A0C12;
  --ink-2: #4A4F5C;
  --ink-3: #82889A;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1280px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-theme="dark"] {
  --bg: #06070B;
  --bg-alt: #0B0D14;
  --surface: #0F121C;
  --line: #1E2231;
  --line-strong: #2E3446;
  --ink: #F4F5F7;
  --ink-2: #A0A7BA;
  --ink-3: #6B7285;
  --blue: #4D7FFF;
  --blue-soft: #7FA3FF;
  --blue-wash: rgba(77, 127, 255, 0.12);
  --red: #FF6B78;
  --red-wash: rgba(255, 107, 120, 0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}

body.locked { overflow: hidden; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; }

/* ---------- LOADER ---------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #06070B;
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s var(--ease);
}
#loader.done { transform: translateY(-100%); }
.boot {
  font-family: var(--font-mono);
  font-size: 0.8rem; color: #4D7FFF;
  width: min(520px, 88vw); line-height: 2;
}
.boot-line { opacity: 0; }
.boot-line.on { opacity: 1; }
.boot-line .ok { color: #2ED47A; }
.boot-line .dim { color: #5A6379; }
.boot-bar {
  margin-top: 1.25rem; height: 2px;
  background: rgba(77,127,255,0.2); overflow: hidden;
}
.boot-bar i { display: block; height: 100%; width: 0; background: #4D7FFF; }

/* ---------- CURSOR ---------- */
#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9998;
  pointer-events: none; border-radius: 50%;
  mix-blend-mode: difference;
}
#cursor-dot { width: 6px; height: 6px; background: #fff; }
#cursor-ring {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.5);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s;
}
#cursor-ring.grow { width: 72px; height: 72px; border-color: rgba(255,255,255,0.9); }
@media (hover: none), (max-width: 900px) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ---------- PAGE TRANSITION ---------- */
#curtain {
  position: fixed; inset: 0; z-index: 9990;
  background: var(--blue); transform: translateY(100%);
  pointer-events: none;
}
#curtain.in { animation: curtainIn 0.7s var(--ease-io) forwards; }
#curtain.out { animation: curtainOut 0.7s var(--ease-io) forwards; }
@keyframes curtainIn { to { transform: translateY(0); } }
@keyframes curtainOut { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* ---------- NAV ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 1.1rem 0;
  transition: all 0.4s var(--ease);
}
header.scrolled {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wrap); margin: 0 auto; padding: 0 2rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.05rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand svg { width: 26px; height: 26px; }
.brand .sq { fill: var(--red); }
.brand .cr { stroke: var(--blue); }

.nav-menu { display: flex; align-items: center; gap: 0.35rem; list-style: none; }
.nav-menu a {
  font-family: var(--font-mono); font-size: 0.74rem;
  font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none;
  padding: 0.5rem 0.85rem; border-radius: 6px;
  transition: all 0.25s;
}
.nav-menu a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-menu a.active { color: var(--blue); }

.nav-tools { display: flex; align-items: center; gap: 0.5rem; }

.lang-switch {
  display: flex; gap: 1px; background: var(--line);
  border-radius: 6px; overflow: hidden; padding: 1px;
}
.lang-switch button {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  padding: 0.35rem 0.5rem; border: 0; cursor: pointer;
  background: var(--bg); color: var(--ink-3);
  transition: all 0.2s;
}
.lang-switch button.on { background: var(--ink); color: var(--bg); }

#theme-btn {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center;
  transition: all 0.25s;
}
#theme-btn:hover { border-color: var(--ink); color: var(--ink); }
#theme-btn svg { width: 16px; height: 16px; }
[data-theme="dark"] .sun { display: none; }
[data-theme="light"] .moon, :root:not([data-theme="dark"]) .moon { display: none; }

.burger {
  display: none; width: 36px; height: 36px;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; cursor: pointer;
  flex-direction: column; gap: 4px; align-items: center; justify-content: center;
}
.burger span { width: 16px; height: 1.5px; background: var(--ink); transition: 0.3s; }
.burger.on span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.95rem 1.6rem; border-radius: 8px;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.35s var(--ease);
}
.btn span { position: relative; z-index: 2; }
.btn-fill { background: var(--blue); color: #fff; }
.btn-fill::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: var(--ink); transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn-fill:hover::before { transform: translateY(0); }
[data-theme="dark"] .btn-fill::before { background: #fff; }
[data-theme="dark"] .btn-fill:hover { color: var(--ink); }

.btn-line { border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }

.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(1.1); }

/* ---------- TYPE ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue);
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--red);
}
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.035em; line-height: 1.02; font-weight: 800;
}
.h-xl { font-size: clamp(2.9rem, 8.5vw, 6.8rem); }
.h-lg { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
.h-md { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.08; }
.h-sm { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.2; font-weight: 700; }

.lead { font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }

.accent-red { color: var(--red); }
.accent-blue { color: var(--blue); }
.outline-txt {
  -webkit-text-stroke: 1.5px var(--ink);
  -webkit-text-fill-color: transparent;
}

/* ---------- SECTION ---------- */
section { position: relative; padding: 8rem 0; }
section.tight { padding: 5rem 0; }
.sec-head { max-width: 780px; margin-bottom: 4rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.rule { height: 1px; background: var(--line); width: 100%; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding: 8rem 0 4rem; position: relative; overflow: hidden;
}
#neural { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.hero-grid {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem; align-items: center;
  max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; width: 100%;
}
.hero h1 { margin-bottom: 1.6rem; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { margin-bottom: 2.4rem; }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.hero-meta {
  display: flex; gap: 2rem; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--ink-3); letter-spacing: 0.04em;
}
.hero-meta i { color: var(--red); font-style: normal; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0.9rem; border-radius: 99px;
  border: 1px solid var(--line-strong); color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(10px); margin-bottom: 1.6rem;
}
.status-pill .dot {
  width: 6px; height: 6px; border-radius: 50%; background: #2ED47A;
  box-shadow: 0 0 0 0 rgba(46,212,122,0.6); animation: ping 2s infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(46,212,122,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(46,212,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(46,212,122,0); }
}

/* ---------- TERMINAL ---------- */
.terminal {
  background: #0A0D16; border: 1px solid #1D2334;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
}
.term-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1rem; border-bottom: 1px solid #1D2334;
  background: #0D1120;
}
.term-bar .d { width: 9px; height: 9px; border-radius: 50%; }
.term-title {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: #5A6379; margin-left: 0.5rem; letter-spacing: 0.05em;
}
.term-badge {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.6rem;
  color: #2ED47A; border: 1px solid rgba(46,212,122,0.3);
  padding: 0.15rem 0.5rem; border-radius: 4px; letter-spacing: 0.08em;
}
.term-body {
  padding: 1.4rem; font-family: var(--font-mono); font-size: 0.78rem;
  line-height: 1.85; min-height: 340px; color: #C7CEDD;
}
.t-line { margin-bottom: 0.85rem; opacity: 0; transform: translateY(6px); }
.t-line.on { opacity: 1; transform: none; transition: all 0.4s var(--ease); }
.t-who {
  font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  display: block; margin-bottom: 0.15rem;
}
.t-user .t-who { color: #FF6B78; }
.t-bot .t-who { color: #4D7FFF; }
.t-bot .t-msg { color: #E4E9F2; }
.t-sys { color: #5A6379; font-size: 0.72rem; }
.t-sys .ok { color: #2ED47A; }
.cursor-blink {
  display: inline-block; width: 7px; height: 14px;
  background: #4D7FFF; vertical-align: -2px; animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- MARQUEE ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 1.5rem 0; overflow: hidden; background: var(--bg-alt);
}
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: slide 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); display: flex; align-items: center; gap: 3.5rem;
  white-space: nowrap;
}
.marquee-item::after { content: '◆'; color: var(--red); font-size: 0.55rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- CARDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
}
.card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transition: width 0.55s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 24px 50px -24px rgba(0,0,0,0.22); }
.card:hover::after { width: 100%; }
.card-num {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  color: var(--ink-3); letter-spacing: 0.14em; margin-bottom: 1.4rem;
  display: block;
}
.card-ic {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--blue-wash); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1.3rem;
}
.card-ic.red { background: var(--red-wash); color: var(--red); }
.card-ic svg { width: 21px; height: 21px; }
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--ink-2); font-size: 0.93rem; }
.card ul {
  list-style: none; margin-top: 1.2rem;
  padding-top: 1.2rem; border-top: 1px solid var(--line);
}
.card ul li {
  font-family: var(--font-mono); font-size: 0.73rem; color: var(--ink-2);
  padding: 0.35rem 0 0.35rem 1.1rem; position: relative;
}
.card ul li::before {
  content: '→'; position: absolute; left: 0; color: var(--blue);
}

/* ---------- COMPARE ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.cmp {
  border-radius: 16px; padding: 2.2rem; border: 1px solid var(--line);
  background: var(--surface);
}
.cmp.bad { opacity: 0.78; }
.cmp.good { border-color: var(--blue); border-width: 2px; }
.cmp-tag {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 5px; display: inline-block;
  margin-bottom: 1.3rem;
}
.cmp.bad .cmp-tag { background: var(--bg-alt); color: var(--ink-3); }
.cmp.good .cmp-tag { background: var(--blue); color: #fff; }
.cmp-row {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.cmp-row:last-child { border: 0; }
.cmp-row .mk { font-family: var(--font-mono); font-weight: 700; flex-shrink: 0; }
.cmp.bad .mk { color: var(--ink-3); }
.cmp.good .mk { color: #2ED47A; }

/* ---------- TIMELINE (pinned) ---------- */
.pin-wrap { position: relative; }
.pin-sticky {
  position: sticky; top: 0; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.pin-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 2rem; width: 100%;
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: center;
}
.steps { position: relative; }
.step {
  padding: 1.4rem 0 1.4rem 2.6rem; position: relative;
  opacity: 0.25; transition: opacity 0.5s var(--ease);
  border-left: 1px solid var(--line);
}
.step.on { opacity: 1; }
.step::before {
  content: ''; position: absolute; left: -5px; top: 2.05rem;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
  transition: all 0.4s;
}
.step.on::before { border-color: var(--blue); background: var(--blue); transform: scale(1.3); }
.step-n {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  color: var(--blue); margin-bottom: 0.35rem; display: block;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-2); font-size: 0.93rem; max-width: 46ch; }

.pin-visual {
  aspect-ratio: 4/3; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.pv-slide {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: scale(0.94); transition: all 0.6s var(--ease);
  padding: 2rem;
}
.pv-slide.on { opacity: 1; transform: none; }
.pv-big {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(3rem, 9vw, 7rem); letter-spacing: -0.05em;
  line-height: 0.9; text-align: center;
}
.pv-lbl {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); text-align: center;
  margin-top: 0.8rem;
}

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat { background: var(--surface); padding: 2.2rem 1.6rem; text-align: left; }
.stat b {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900; letter-spacing: -0.04em; display: block; line-height: 1;
}
.stat b i { font-style: normal; color: var(--red); }
.stat span {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); display: block; margin-top: 0.7rem;
}

/* ---------- CALCULATOR ---------- */
.calc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 2.6rem;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem;
}
.calc-field { margin-bottom: 1.8rem; }
.calc-field label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-2);
  display: flex; justify-content: space-between; margin-bottom: 0.8rem;
}
.calc-field label b { color: var(--blue); font-weight: 700; }
.calc-field input[type=range] {
  width: 100%; -webkit-appearance: none; height: 3px;
  background: var(--line-strong); border-radius: 2px; outline: none;
}
.calc-field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue); cursor: pointer; border: 3px solid var(--surface);
  box-shadow: 0 2px 10px rgba(0,71,255,0.35);
}
.calc-field input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--blue);
  cursor: pointer; border: 3px solid var(--surface);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em;
  padding: 0.5rem 0.85rem; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-2);
  transition: all 0.25s;
}
.chip:hover { border-color: var(--line-strong); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.calc-out {
  background: var(--ink); border-radius: 16px; padding: 2.2rem;
  display: flex; flex-direction: column; justify-content: center;
}
[data-theme="dark"] .calc-out { background: var(--bg-alt); border: 1px solid var(--line); }
.calc-out .lbl {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 0.6rem;
}
[data-theme="dark"] .calc-out .lbl { color: var(--ink-3); }
.calc-out .big {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.04em;
  color: #fff; line-height: 1;
}
[data-theme="dark"] .calc-out .big { color: var(--ink); }
.calc-out .big em { font-style: normal; font-size: 0.45em; color: var(--red); }
.calc-out hr { border: 0; border-top: 1px solid rgba(255,255,255,0.12); margin: 1.6rem 0; }
[data-theme="dark"] .calc-out hr { border-color: var(--line); }
.calc-out .sub { color: rgba(255,255,255,0.65); font-size: 0.85rem; }
[data-theme="dark"] .calc-out .sub { color: var(--ink-2); }

/* ---------- SECTORS ---------- */
.sector-list { border-top: 1px solid var(--line); }
.sector {
  border-bottom: 1px solid var(--line); padding: 2rem 0;
  display: grid; grid-template-columns: 60px 1fr 1.3fr auto; gap: 2rem;
  align-items: center; cursor: pointer; position: relative;
  transition: padding 0.4s var(--ease);
}
.sector:hover { padding-left: 1.2rem; }
.sector::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--blue-wash); transition: width 0.45s var(--ease); z-index: -1;
}
.sector:hover::before { width: 100%; }
.sector-n { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); }
.sector h3 { font-size: 1.5rem; }
.sector p { color: var(--ink-2); font-size: 0.9rem; }
.sector .arw {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-3);
  transition: all 0.35s var(--ease);
}
.sector:hover .arw { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-45deg); }

/* ---------- AGENTS ---------- */
.agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.agent {
  border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem;
  background: var(--surface); position: relative;
}
.agent .av {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem;
  margin-bottom: 1rem;
}
.agent h4 { font-size: 1rem; font-family: var(--font-display); font-weight: 700; margin-bottom: 0.2rem; }
.agent .role {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.8rem;
}
.agent p { font-size: 0.85rem; color: var(--ink-2); }

/* ---------- STACK ---------- */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stack-cell {
  background: var(--surface); padding: 1.5rem 1.2rem;
  transition: background 0.3s;
}
.stack-cell:hover { background: var(--bg-alt); }
.stack-cell .k {
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.45rem;
}
.stack-cell .v { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }

/* ---------- CTA BAND ---------- */
.band {
  background: var(--ink); color: var(--bg); border-radius: 24px;
  padding: 5rem 3rem; text-align: center; position: relative; overflow: hidden;
}
[data-theme="dark"] .band { background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); }
.band h2 { color: inherit; margin-bottom: 1.2rem; }
.band p { color: rgba(255,255,255,0.65); max-width: 52ch; margin: 0 auto 2.2rem; }
[data-theme="dark"] .band p { color: var(--ink-2); }
.band .btn-line { border-color: rgba(255,255,255,0.3); color: #fff; }
.band .btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
[data-theme="dark"] .band .btn-line { border-color: var(--line-strong); color: var(--ink); }

/* ---------- CONTACT PANEL ---------- */
#contact-fab {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 880;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--red); color: #fff; border: 0; cursor: pointer;
  padding: 0.95rem 1.4rem; border-radius: 99px;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 12px 34px -8px rgba(255,71,87,0.55);
  transition: transform 0.35s var(--ease);
}
#contact-fab:hover { transform: translateY(-3px) scale(1.03); }
#contact-fab svg { width: 15px; height: 15px; }

#panel-bg {
  position: fixed; inset: 0; z-index: 950; background: rgba(4,6,12,0.55);
  backdrop-filter: blur(6px); opacity: 0; pointer-events: none;
  transition: opacity 0.45s var(--ease);
}
#panel-bg.on { opacity: 1; pointer-events: auto; }
#panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 960;
  width: min(520px, 100vw); background: var(--bg);
  border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 0.6s var(--ease);
  overflow-y: auto; padding: 2.6rem;
}
#panel.on { transform: none; }
.panel-close {
  position: absolute; top: 1.6rem; right: 1.6rem;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.panel-close:hover { background: var(--bg-alt); }
.field { margin-bottom: 1.2rem; }
.field label {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2); display: block; margin-bottom: 0.5rem;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font-family: var(--font-body); font-size: 0.92rem;
  transition: border-color 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--ink-3); margin-top: 1rem; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); padding: 4.5rem 0 2rem; background: var(--bg-alt); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3.5rem; }
.foot-col h5 {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1rem;
}
.foot-col a, .foot-col p {
  display: block; color: var(--ink-2); text-decoration: none;
  font-size: 0.9rem; padding: 0.3rem 0; transition: color 0.25s;
}
.foot-col a:hover { color: var(--blue); }
.foot-bot {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ---------- REVEAL ---------- */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }

.split span {
  display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(2deg);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.split.in span { opacity: 1; transform: none; }

/* ---------- PARALLAX BLOBS ---------- */
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0; opacity: 0.4;
}
[data-theme="dark"] .blob { opacity: 0.22; }
.blob.b1 { width: 480px; height: 480px; background: var(--blue); top: -120px; right: -100px; }
.blob.b2 { width: 380px; height: 380px; background: var(--red); bottom: -140px; left: -80px; }

/* ---------- PAGE HEAD ---------- */
.page-head { padding: 12rem 0 5rem; position: relative; overflow: hidden; }
.page-head h1 { margin-bottom: 1.4rem; }
.crumb {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.4rem;
}
.crumb a { color: var(--blue); text-decoration: none; }

/* ---------- FAQ / ACCORDION ---------- */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-q {
  width: 100%; text-align: left; background: transparent; border: 0;
  padding: 1.5rem 0; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 1.5rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--ink);
}
.acc-q .pm { font-family: var(--font-mono); color: var(--blue); font-size: 1.2rem; transition: transform 0.4s var(--ease); }
.acc-item.on .pm { transform: rotate(45deg); }
.acc-a { max-height: 0; overflow: hidden; transition: max-height 0.55s var(--ease); }
.acc-a p { padding-bottom: 1.6rem; color: var(--ink-2); max-width: 70ch; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-grid, .pin-inner, .calc { grid-template-columns: 1fr; }
  .calc { gap: 2rem; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .compare { grid-template-columns: 1fr; }
  .pin-sticky { height: auto; position: relative; padding: 4rem 0; }
}
@media (max-width: 860px) {
  .nav-menu {
    position: fixed; inset: 0; background: var(--bg);
    flex-direction: column; justify-content: center; gap: 1.2rem;
    transform: translateX(100%); transition: transform 0.55s var(--ease);
    z-index: 890;
  }
  .nav-menu.on { transform: none; }
  .nav-menu a { font-size: 1.1rem; }
  .burger { display: flex; z-index: 895; }
  .lang-switch { display: none; }
  section { padding: 5rem 0; }
  .page-head { padding: 9rem 0 3.5rem; }
  .wrap, .nav-inner, .hero-grid { padding: 0 1.25rem; }
  .sector { grid-template-columns: 1fr; gap: 0.6rem; }
  .sector .arw { display: none; }
  .band { padding: 3.5rem 1.5rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  #panel { padding: 2rem 1.5rem; }
  .calc { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rv, .split span { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
