/* ============================================================
   FONTS — self-hosted Space Grotesk (no Google Fonts request)
   ============================================================ */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   TOKENS — light mode (default) · identique à maps.nodeweave-project.com
   ============================================================ */
:root {
  --bg:        #eef1f6;
  --bg-alt:    #f3f5f9;
  --surface:   #ffffff;
  --border:    #d0d8e0;
  --text:      #111827;
  --text-muted:#4b5563;
  --text-dim:  #9ca3af;
  --accent:    #0ba360;
  --accent-d:  rgba(11,163,96,.13);
  --accent-2:  #1a6fd4;
  --accent-2d: rgba(26,111,212,.1);
  --amber:     #d97706;
  --red:       #dc2626;
  --purple:    #7c3aed;
  --shadow:    0 2px 12px rgba(0,0,0,.1);
  --nav-bg:    rgba(238,241,246,.92);
  --radius:    8px;
  --radius-lg: 12px;
  --font:      'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', monospace;
  --nav-h:     52px;
  --transition: .15s ease;

  /* Derived semantic tokens — alpha variants of base colours */
  --accent-border:    rgba(11,163,96,.3);
  --accent-hint:      rgba(11,163,96,.25);
  --accent-2-hint:    rgba(56,161,255,.25);
  --amber-d:          rgba(217,119,6,.1);
  --purple-d:         rgba(124,58,237,.1);
  --overlay:          rgba(0,0,0,.55);
  --leaflet-attr-bg:  rgba(238,241,246,.85);
  --on-accent:        #fff;
}

/* ============================================================
   TOKENS — dark mode · html[data-th=dark]
   ============================================================ */
html[data-th=dark] {
  --bg:        #04080e;
  --bg-alt:    #09111f;
  --surface:   #0d1928;
  --border:    #17243a;
  --text:      #c8daf0;
  --text-muted:#6b8aaa;
  --text-dim:  #243550;
  --accent:    #00d47e;
  --accent-d:  rgba(0,212,126,.1);
  --accent-2:  #38a1ff;
  --accent-2d: rgba(56,161,255,.1);
  --amber:     #fbbf24;
  --red:       #f87171;
  --purple:    #a78bfa;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
  --nav-bg:    rgba(4,8,14,.88);

  /* Dark-mode overrides for derived tokens */
  --accent-border:    rgba(0,212,126,.3);
  --accent-hint:      rgba(0,212,126,.25);
  --amber-d:          rgba(251,191,36,.1);
  --purple-d:         rgba(167,139,250,.1);
  --leaflet-attr-bg:  rgba(4,8,14,.8);
  --on-accent:        #000;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
details { cursor: pointer; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--narrow { width: min(100%, 740px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn--lg    { padding: .875rem 2rem; font-size: 1.05rem; }
.btn--sm    { padding: .45rem .9rem; font-size: .85rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn--primary:hover { filter: brightness(1.1); }

.btn--outline { border: 1px solid var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent-d); }

.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* dark: primary text stays black (bright green bg) */
html[data-th=dark] .btn--primary { color: var(--on-accent); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.nav__logo-icon { width: 26px; height: 26px; }

.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.nav__links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--text); }

/* ── THEME TOGGLE ── */
.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn svg { width: 16px; height: 16px; pointer-events: none; }
/* show correct icon per mode */
.theme-btn .icon-moon { display: block; }
.theme-btn .icon-sun  { display: none; }
html[data-th=dark] .theme-btn .icon-moon { display: none; }
html[data-th=dark] .theme-btn .icon-sun  { display: block; }

/* ── BURGER ── */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.nav__drawer a {
  padding: .65rem .75rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav__drawer a:hover { color: var(--text); background: var(--surface); }
.nav__drawer.open { display: flex; }

/* ============================================================
   LANGUAGE SWITCHER
   ============================================================ */
.lang-switcher { position: relative; flex-shrink: 0; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--transition), color var(--transition);
  line-height: 1;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-arrow { font-size: .65rem; opacity: .7; }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 200;
  overflow: hidden;
  padding: .3rem;
}
.lang-dropdown.open { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .85rem;
  border-radius: var(--radius);
  font-size: .85rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: background var(--transition), color var(--transition);
  user-select: none;
}
.lang-option:hover  { background: var(--bg-alt); color: var(--text); }
.lang-option.active { color: var(--accent); background: var(--accent-d); }
.lang-flag { font-size: 1rem; line-height: 1; }

/* mobile lang switcher */
.lang-switcher--mobile {
  margin-bottom: .5rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.lang-switcher--mobile .lang-btn {
  width: 100%;
  justify-content: flex-start;
  padding: .65rem .75rem;
  font-size: .88rem;
}
.lang-switcher--mobile .lang-dropdown {
  position: static;
  display: none;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin-top: .25rem;
}
.lang-switcher--mobile .lang-dropdown.open { display: block; }
.lang-switcher--mobile .lang-option { padding: .5rem .5rem; font-size: .88rem; }

/* mobile theme toggle inside drawer */
.theme-btn--mobile {
  width: auto;
  padding: .65rem .75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  justify-content: flex-start;
  gap: .65rem;
  font-size: .88rem;
  color: var(--text-muted);
  font-family: var(--font);
}
.theme-btn--mobile .theme-label { font-weight: 500; }

@media (max-width: 768px) {
  #lang-menu-anchor,
  #theme-btn-desktop { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
#mesh-canvas { width: 100%; height: 100%; opacity: .25; }
html[data-th=dark] #mesh-canvas { opacity: .3; }

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-block: 5rem 3rem;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-d);
  border: 1px solid var(--accent-border);
  padding: .3rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.hero__title {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__sub {
  max-width: 600px;
  margin-inline: auto;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.stat__num::after { content: '+'; }
.stat__label {
  display: block;
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .3rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--font-mono);
}
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: 6rem; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section__head h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.section__head p { color: var(--text-muted); max-width: 560px; margin-inline: auto; font-size: 1.05rem; }

/* ============================================================
   STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.step:hover { border-color: var(--accent); transform: translateY(-3px); }
.step__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
}
.step__icon svg { width: 100%; height: 100%; }
.step__icon--1 { background: var(--accent-d);   color: var(--accent); }
.step__icon--2 { background: var(--accent-2d);  color: var(--accent-2); }
.step__icon--3 { background: var(--amber-d);    color: var(--amber); }
.step__icon--4 { background: var(--purple-d);   color: var(--purple); }

.step__body h3 { font-size: .975rem; font-weight: 600; margin-bottom: .4rem; }
.step__body p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* arch diagram */
.arch-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .25rem;
  margin-bottom: .75rem;
}
.arch-node {
  padding: .45rem .9rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 700;
  border: 1.5px solid;
}
.arch-node--you   { background: var(--accent-d);  border-color: var(--accent);   color: var(--accent); }
.arch-node--relay { background: var(--accent-2d); border-color: var(--accent-2); color: var(--accent-2); }
.arch-node--dest  { background: var(--accent-d);  border-color: var(--accent);   color: var(--accent); }
.arch-line {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  position: relative;
}
.arch-line::after {
  content: '';
  position: absolute;
  right: -1px; top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--accent-2);
}
.arch-caption { text-align: center; font-size: .8rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ============================================================
   CARDS
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card__icon { font-size: 1.75rem; margin-bottom: .85rem; }
.card h3 { font-size: .975rem; font-weight: 600; margin-bottom: .45rem; }
.card p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   MAP LEAFLET
   ============================================================ */
.map-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
#leaflet-map { height: 460px; width: 100%; background: var(--bg); }

.map-footer {
  padding: .85rem 1.25rem;
  font-size: .8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  font-family: var(--font-mono);
  background: var(--surface);
}
.map-footer a { color: var(--accent); }
.map-footer a:hover { text-decoration: underline; }

.map-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .72rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  background: var(--accent-d);
  border: 1px solid var(--accent-hint);
  padding: .2rem .65rem;
  border-radius: 999px;
}
.map-live-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

/* Leaflet — light mode (default) */
.leaflet-container { font-family: var(--font); }
.leaflet-tile-pane { filter: none; }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow) !important;
  border-radius: var(--radius) !important;
}
.leaflet-popup-content-wrapper { padding: 0 !important; }
.leaflet-popup-content { margin: 0 !important; }
.popup-inner { padding: 10px 13px; font-size: 12px; }
.popup-inner strong { color: var(--accent); font-family: var(--font-mono); display: block; margin-bottom: 4px; }
.popup-inner span   { color: var(--text-muted); font-size: 11px; font-family: var(--font-mono); }
.leaflet-control-zoom a {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
.leaflet-control-zoom a:hover { background: var(--bg-alt) !important; color: var(--accent) !important; }
.leaflet-control-attribution {
  background: var(--leaflet-attr-bg) !important;
  color: var(--text-dim) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--text-muted) !important; }

/* Leaflet — dark mode */
html[data-th=dark] .leaflet-tile-pane { filter: brightness(.7) saturate(.5); }

/* ============================================================
   TIERS
   ============================================================ */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color var(--transition), background var(--transition);
}
.tier--featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--accent-d), var(--surface));
}
.tier__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.tier__badge--featured { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tier__title { font-size: 1.2rem; font-weight: 700; margin-bottom: .25rem; }
.tier__price { font-family: var(--font-mono); font-size: 1.75rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; line-height: 1; }
.tier__desc  { font-size: .88rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.tier__list  { margin-bottom: 1.75rem; display: flex; flex-direction: column; gap: .5rem; }
.tier__list li {
  font-size: .88rem;
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
}
.tier__list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: .6rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), background var(--transition);
}
.faq__item[open] { border-color: var(--accent); }
.faq__q {
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: color var(--transition);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--accent); }
.faq__a { padding: 0 1.25rem 1.1rem; font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--accent-d), var(--accent-2d));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 5rem;
}
.cta-band__inner { text-align: center; }
.cta-band__inner h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .75rem; }
.cta-band__inner p  { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-band__buttons  { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 4rem; }
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer__brand .nav__logo { margin-bottom: .75rem; }
.footer__brand p { font-size: .85rem; color: var(--text-muted); max-width: 260px; }
.footer__links { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: .55rem; }
.footer__col h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .25rem; font-family: var(--font-mono); }
.footer__col a { font-size: .85rem; color: var(--text-muted); transition: color var(--transition); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--border); padding-block: 1.1rem; font-size: .78rem; color: var(--text-muted); text-align: center; font-family: var(--font-mono); }
.footer__legal-btn { background: none; border: none; color: var(--accent); cursor: pointer; font: inherit; font-size: .78rem; font-family: var(--font-mono); padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal-btn:hover { opacity: .8; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  padding: .5rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  border-radius: var(--radius);
  transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* visible focus ring for keyboard nav */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-wrap {
  max-width: 480px;
  margin: 2.5rem auto 0;
  text-align: left;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .5rem;
  font-size: .78rem;
  font-family: var(--font-mono);
}
.progress-label { color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.progress-value { color: var(--accent); font-weight: 700; }
.progress-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(.22,1,.36,1);
}

/* ============================================================
   MAP FILTERS
   ============================================================ */
.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.map-filter {
  padding: .35rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: .78rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
  font-weight: 600;
}
.map-filter:hover { border-color: var(--accent); color: var(--accent); }
.map-filter.active { border-color: var(--accent); background: var(--accent-d); color: var(--accent); }
.map-filter--toggle { margin-left: auto; }

/* ============================================================
   HARDWARE GALLERY
   ============================================================ */
.hw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.hw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.hw-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.hw-card--featured { border-color: var(--accent); background: linear-gradient(160deg, var(--accent-d), var(--surface)); }
.hw-card__badge {
  position: absolute;
  top: 1rem; right: 1rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.hw-card__visual {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hw-card__visual svg { width: 100%; height: 100%; max-width: 140px; }
.hw-card__name { font-size: 1rem; font-weight: 700; font-family: var(--font-mono); color: var(--accent); }
.hw-card__desc { font-size: .85rem; color: var(--text-muted); line-height: 1.55; flex: 1; }
.hw-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .3rem .75rem;
  border-top: 1px solid var(--border);
  padding-top: .75rem;
}
.hw-card__specs li {
  display: flex;
  flex-direction: column;
  font-size: .75rem;
}
.hw-card__specs li span { color: var(--text-dim); text-transform: uppercase; letter-spacing: .06em; font-family: var(--font-mono); font-size: .65rem; }
.hw-card__specs li strong { color: var(--text); font-family: var(--font-mono); }
.hw-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--accent-2);
  background: var(--accent-2d);
  border: 1px solid var(--accent-2-hint);
  padding: .2rem .6rem;
  border-radius: 999px;
  align-self: flex-start;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--transition), transform var(--transition);
}
.testi-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.testi-card::before { content: '\201C'; font-size: 3rem; line-height: 1; color: var(--accent); opacity: .4; margin-bottom: -.75rem; font-family: Georgia, serif; }
.testi-card__quote { font-size: .92rem; color: var(--text-muted); line-height: 1.7; font-style: italic; flex: 1; }
.testi-card__footer { display: flex; align-items: center; gap: .85rem; }
.testi-card__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-d);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent);
  font-size: .9rem;
  flex-shrink: 0;
}
.testi-card__name { display: block; font-weight: 600; font-size: .88rem; }
.testi-card__role { display: block; font-size: .78rem; color: var(--text-muted); font-family: var(--font-mono); }

/* ============================================================
   ROADMAP / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  left: .65rem;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: var(--border);
}
.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  position: absolute;
  left: -2.15rem;
  top: .15rem;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .65rem;
  color: var(--text-dim);
  z-index: 1;
  transition: border-color var(--transition);
}
.timeline__item--done .timeline__marker {
  background: var(--accent-d);
  border-color: var(--accent);
  color: var(--accent);
  font-size: .7rem;
}
.timeline__item--active .timeline__marker {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 4px var(--accent-d);
  animation: pulse-marker 2s ease-in-out infinite;
}
@keyframes pulse-marker {
  0%,100% { box-shadow: 0 0 0 4px var(--accent-d); }
  50%      { box-shadow: 0 0 0 8px var(--accent-d); }
}
.timeline__date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3rem;
}
.timeline__body h3 { font-size: 1rem; font-weight: 600; margin-bottom: .35rem; }
.timeline__body p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.timeline__item--done .timeline__body h3 { color: var(--text-muted); }
.timeline__item--active .timeline__body h3 { color: var(--accent); }

/* ============================================================
   INSTALL GUIDE
   ============================================================ */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.install-step {
  display: flex;
  gap: 1.5rem;
  padding: 1.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background var(--transition);
}
.install-step:last-child { border-bottom: none; }
.install-step:hover { background: var(--bg-alt); }
.install-step__num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  opacity: .25;
  line-height: 1.1;
  flex-shrink: 0;
  width: 2.5rem;
}
.install-step:hover .install-step__num { opacity: 1; }
.install-step__body h3 { font-size: .975rem; font-weight: 600; margin-bottom: .4rem; }
.install-step__body p  { font-size: .88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: .6rem; }
.install-step__link {
  font-size: .82rem;
  font-family: var(--font-mono);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.install-step__link:hover { opacity: .8; }

/* ============================================================
   LEGAL MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: min(560px, 100%);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modal-in .18s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: scale(.95) translateY(8px); } to { opacity: 1; transform: none; } }
.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal__header h2 { font-size: 1rem; font-weight: 700; }
.modal__close {
  width: 28px; height: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  transition: var(--transition);
}
.modal__close:hover { background: var(--bg-alt); color: var(--text); }
.modal__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.modal__body h3 { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-family: var(--font-mono); }
.modal__body p  { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }
.modal__body a  { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav__links,
  .nav > .div > .btn { display: none; }
  .nav__burger { display: flex; }
  .nav__drawer { display: none; }
  .nav { height: auto; }
  .nav__inner { height: var(--nav-h); }
  #lang-menu-anchor,
  #theme-btn-desktop { display: none; }
  .footer__inner  { grid-template-columns: 1fr; }
  .footer__links  { gap: 2rem; }
  .steps          { grid-template-columns: 1fr; }
  .arch-diagram   { display: none; }
  .hero__stats    { gap: 2rem; }
  #leaflet-map    { height: 340px; }
  .map-footer     { flex-direction: column; align-items: flex-start; }
  .hw-grid        { grid-template-columns: 1fr 1fr; }
  .testi-grid     { grid-template-columns: 1fr; }
  .map-filters    { gap: .35rem; }
  .map-filter--toggle { margin-left: 0; }
  .install-step   { flex-direction: column; gap: .5rem; }
  .install-step__num { font-size: 1.25rem; width: auto; }
}

@media (max-width: 480px) {
  .section        { padding-block: 4rem; }
  .hero__content  { padding-block: 4rem 2rem; }
  .tiers          { grid-template-columns: 1fr; }
  .cards          { grid-template-columns: 1fr; }
  .hero__stats    { flex-direction: column; gap: 1.5rem; }
  #leaflet-map    { height: 280px; }
  .hw-grid        { grid-template-columns: 1fr; }
  .progress-wrap  { margin-top: 2rem; }
}

