/* ============================================================
   Page preloader
   ============================================================ */
.page-preloader {
  position: fixed;
  inset: 0;
  background: var(--bg, #0A0B0D);
  display: grid;
  place-items: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity .55s ease, visibility .55s ease;
}
.page-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.page-preloader-logo {
  width: clamp(180px, 28vw, 260px);
  height: auto;
  user-select: none;
  pointer-events: none;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
.page-preloader .logo-img-dark { display: none; }
[data-theme="light"] .page-preloader .logo-img-light { display: none; }
[data-theme="light"] .page-preloader .logo-img-dark  { display: block; }
@keyframes preloaderPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .page-preloader-logo { animation: none; opacity: 1; }
}

/* ============================================================
   Grupo Studium Tech — Design System Tokens
   ============================================================ */
:root {
  /* Surfaces */
  --bg: #0A0B0D;
  --bg-2: #0F1115;
  --surface: #14161A;
  --surface-2: #1A1D23;
  --elev: #1E2128;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
  --surface-soft: rgba(255, 255, 255, 0.02);

  /* Text */
  --text: #F2F4F7;
  --text-2: #B6BBC4;
  --text-3: #8A8F98;
  --text-4: #5A6068;

  /* Accent */
  --green: #22D78F;
  --green-2: #1AB877;
  --green-soft: rgba(34, 215, 143, 0.12);
  --green-line: rgba(34, 215, 143, 0.28);

  /* Type */
  --display: "Fraunces", "Georgia", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  /* Radii / Shadow */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 8px 24px rgba(0,0,0,0.35);
  --shadow-elev: 0 1px 0 rgba(255,255,255,0.05) inset, 0 24px 60px rgba(0,0,0,0.5);
}

/* ============================================================ Base ============================================================ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 64px;
  position: relative;
}

/* Subtle dotted background */
.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  pointer-events: none;
}
.glow-green {
  position: absolute;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34,215,143,0.18), rgba(34,215,143,0) 70%);
  filter: blur(10px);
  pointer-events: none;
}

/* ============================================================ Typography ============================================================ */
.display { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; }
.display-xl { font-family: var(--display); font-weight: 350; font-size: 80px; line-height: 1; letter-spacing: -0.035em; margin: 0; }
.display-lg { font-family: var(--display); font-weight: 350; font-size: 56px; line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.display-md { font-family: var(--display); font-weight: 350; font-size: 38px; line-height: 1.08; letter-spacing: -0.025em; margin: 0; }
.display-sm { font-family: var(--display); font-weight: 350; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.h1 { font-size: 56px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
.h2 { font-size: 40px; line-height: 1.1; letter-spacing: -0.015em; font-weight: 500; }
.h3 { font-size: 24px; line-height: 1.25; letter-spacing: -0.005em; font-weight: 500; }
.h4 { font-size: 18px; line-height: 1.3; font-weight: 500; }
.body-lg { font-size: 18px; line-height: 1.55; color: var(--text-2); font-weight: 400; }
.body { font-size: 15px; line-height: 1.6; color: var(--text-2); }
.small { font-size: 13px; line-height: 1.5; color: var(--text-3); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
}
.num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.italic-accent { font-style: italic; font-family: var(--display); font-weight: 350; color: var(--green); }
.text-green { color: var(--green); }
.text-muted { color: var(--text-3); }

/* ============================================================ Buttons ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}
.btn-primary {
  background: var(--green);
  color: #062418;
  box-shadow: 0 0 0 1px rgba(34,215,143,0.0), 0 8px 24px -8px rgba(34,215,143,0.6);
}
.btn-primary:hover { background: #2EE69C; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  height: auto;
  padding: 0;
}
.btn-ghost .arrow { color: var(--green); transition: transform .2s; display: inline-flex; }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================ Cards ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 32px; }

.service-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 36px 32px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  transition: border-color .2s, transform .2s;
}
.service-card:hover { border-color: var(--green-line); }
.service-card .num-tag {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-4);
  letter-spacing: 0.08em;
}
.service-card .icon-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  display: grid; place-items: center;
  border: 1px solid var(--green-line);
}
.service-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.service-card p {
  margin: 0 0 18px;
  color: var(--text-3);
  font-size: 14.5px;
  line-height: 1.55;
}
.service-card a { color: inherit; text-decoration: none; }
.service-card .more { display: none; }

.icon-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  display: grid; place-items: center;
  border: 1px solid var(--green-line);
  flex-shrink: 0;
}

/* ============================================================
   Logo — official Grupo Studium Tech SVG (light/dark variants)
   ============================================================ */
.logo-full {
  display: inline-flex;
  align-items: center;
  height: 32px;
  color: var(--text);
  text-decoration: none;
  user-select: none;
  flex-shrink: 0;
}
.logo-full .logo-img {
  height: 100%;
  width: auto;
  display: block;
  pointer-events: none;
}
/* Show the white logo on dark theme, the dark logo on light theme */
.logo-full .logo-img-dark { display: none; }
[data-theme="light"] .logo-full .logo-img-light { display: none; }
[data-theme="light"] .logo-full .logo-img-dark  { display: block; }

/* Project card logos — dual variant per theme.
   .proj-img-light = light-colored logo, shown in dark theme (default).
   .proj-img-dark  = dark-colored logo, shown in light theme. */
.proj-img-dark { display: none; }
[data-theme="light"] .proj-img-light { display: none; }
[data-theme="light"] .proj-img-dark  { display: block; }

/* Final CTA chip in light theme — force black bg + light text for contrast
   (the inline style has dark rgba bg that becomes invisible on light bg) */
[data-theme="light"] .final-cta-box .chip {
  background: #0A0B0D !important;
  color: #F2F4F7 !important;
  border-color: rgba(255,255,255,0.15) !important;
}

/* Size variants */
.logo-full.lf-lg { height: 48px; }
.logo-full.lf-sm { height: 24px; }

/* ============================================================ Chips / badges ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex-shrink: 0; }
.chip-plain { font-family: var(--sans); letter-spacing: 0; color: var(--text-2); }

/* Section header */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 48px;
  margin-bottom: 56px;
}

/* placeholder image */
.placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px),
    var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  color: var(--text-4);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.placeholder::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(closest-side, transparent 60%, rgba(0,0,0,0.4));
}
.placeholder span { position: relative; z-index: 1; padding: 16px; text-align: center; }

/* ============================================================ Light theme ============================================================ */
[data-theme="light"] {
  --bg: #F6F5F0;
  --bg-2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FAFAF5;
  --elev: #FFFFFF;
  --border: rgba(10, 11, 13, 0.08);
  --border-strong: rgba(10, 11, 13, 0.14);
  --surface-soft: rgba(10, 11, 13, 0.025);

  --text: #0A0B0D;
  --text-2: #3D424B;
  --text-3: #6E747D;
  --text-4: #9097A1;

  --green: #16A86B;
  --green-2: #128055;
  --green-soft: rgba(22, 168, 107, 0.10);
  --green-line: rgba(22, 168, 107, 0.30);

  --shadow-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 24px rgba(10,11,13,0.06);
  --shadow-elev: 0 1px 0 rgba(255,255,255,0.8) inset, 0 24px 60px rgba(10,11,13,0.10);
}
[data-theme="light"] .dots {
  background-image: radial-gradient(rgba(10,11,13,0.08) 1px, transparent 1px);
}
[data-theme="light"] .placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(10,11,13,0.04) 0 1px, transparent 1px 14px),
    var(--surface-2);
}
[data-theme="light"] .btn-primary { color: #FFFFFF; }
[data-theme="light"] .btn-primary:hover { background: var(--green-2); }
[data-theme="light"] .logo-full .lf-block .lf-s { color: #000; }
[data-theme="light"] .glow-green { opacity: 0.5; }

/* Sector CTA card — visible green in light theme */
[data-theme="light"] .sector-cta {
  background: linear-gradient(135deg, var(--green-soft), rgba(22,168,107,0.04)) !important;
  border-color: var(--green-line) !important;
}
[data-theme="light"] .sector-cta .icon-box {
  background: rgba(22, 168, 107, 0.10) !important;
  border-color: var(--green-line) !important;
  color: var(--green) !important;
}

/* ============================================================ Header utilities ============================================================ */
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.2); }
[data-theme="light"] .icon-btn:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.18); }

.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-pill:hover { color: var(--text); }
.lang-pill .caret { width: 8px; height: 8px; opacity: 0.7; flex-shrink: 0; }

/* ============================================================ Floating quick-contact bubble ============================================================ */
.fab-stack {
  position: fixed;
  right: 32px; bottom: 32px;
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 90;
}
.fab {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 0 6px rgba(34,215,143,0.10);
  transition: transform .2s ease, box-shadow .2s;
}
.fab:hover { transform: translateY(-2px); }
.fab-primary { background: var(--green); color: #062418; }

/* Attention pulse — triggered when a [data-open-fab] button is clicked */
@keyframes fab-attention-pulse {
  0%   { transform: scale(1); box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 0 6px rgba(34,215,143,0.10); }
  20%  { transform: scale(1.12); box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 0 16px rgba(34,215,143,0.45); }
  50%  { transform: scale(1); box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 0 24px rgba(34,215,143,0); }
  100% { transform: scale(1); box-shadow: 0 14px 40px rgba(0,0,0,0.45), 0 0 0 6px rgba(34,215,143,0.10); }
}
.fab-pulse-attention .fab-primary {
  animation: fab-attention-pulse 1.2s ease-out 2;
}
.fab-pulse-attention .fab-label {
  animation: fab-attention-pulse 1.2s ease-out 2;
}
.fab-label {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(0,0,0,0.4);
  white-space: nowrap;
}

.quick-form {
  position: relative;
  background: var(--elev);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  width: 400px;
  max-width: calc(100vw - 36px);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(34,215,143,0.04);
  padding: 24px 22px 22px;
}
.quick-form.is-hidden { display: none; }
.quick-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s;
  z-index: 2;
}
.quick-close:hover { background: var(--surface-2); color: var(--text); }

.quick-content { display: flex; flex-direction: column; gap: 16px; }
.quick-head { padding-right: 36px; }
.quick-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 8px;
}
.quick-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.quick-title-accent {
  font-style: italic;
  color: var(--green);
}

/* Tabs */
.quick-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.quick-tab {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.quick-tab:hover { color: var(--text); }
.quick-tab.is-active {
  background: var(--elev);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
[data-theme="light"] .quick-tab.is-active {
  box-shadow: 0 2px 8px rgba(10,11,13,0.08);
}

/* Panels */
.quick-panel { display: none; flex-direction: column; gap: 12px; }
.quick-panel.is-active { display: flex; }

/* Form fields */
.quick-field { display: flex; flex-direction: column; gap: 6px; }
.quick-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.quick-input {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 11px 13px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  width: 100%;
  transition: border-color .15s;
}
.quick-input:focus { border-color: var(--green-line); }
.quick-form textarea.quick-input { resize: vertical; min-height: 64px; }

/* Privacy checkbox */
.quick-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
  margin: 4px 0 2px;
  cursor: pointer;
}
.quick-privacy input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.quick-privacy a { color: var(--green); text-decoration: underline; }

/* Direct contact cards */
.quick-direct-intro {
  font-size: 13px;
  color: var(--text-3);
  margin: 0;
  line-height: 1.5;
}
.quick-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.quick-contact:hover {
  border-color: var(--green-line);
  background: var(--surface-soft);
}
.qc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.qc-icon-phone { background: rgba(22, 168, 107, 0.12); color: var(--green); }
.qc-icon-wa    { background: rgba(34, 215, 143, 0.16); color: #25D366; }
.qc-icon-mail  { background: rgba(34, 215, 143, 0.10); color: var(--green); }
.qc-icon-loc   { background: var(--surface-soft); color: var(--text-2); border: 1px solid var(--border); }
.qc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.qc-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}
.qc-sub {
  font-size: 11.5px;
  color: var(--text-3);
}

/* Sent state */
.quick-sent {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 24px 8px 8px;
  text-align: center;
}
.quick-sent-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

/* ============================================================ Cookie banner ============================================================ */
.cookie-bar {
  position: fixed;
  left: 110px; right: 110px; bottom: 20px;
  z-index: 85;
  background: var(--elev);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.cookie-bar .ck-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  border: 1px solid var(--green-line);
  display: grid; place-items: center;
}
.cookie-bar .ck-text { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.cookie-bar .ck-text b { color: var(--text); font-weight: 500; }
.cookie-bar .ck-text a { color: var(--green); }
.cookie-bar .ck-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie-bar.is-hidden { display: none; }

/* ============================================================ Article (legal pages) ============================================================ */
.article {
  max-width: 820px;
  margin: 0;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.7;
}
.article h2 {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--text);
  font-size: 22px;
  margin: 40px 0 14px;
  letter-spacing: -0.005em;
}
.article h3 {
  font-family: var(--sans); font-weight: 500;
  color: var(--text); font-size: 16px;
  margin: 24px 0 8px;
}
.article p { margin: 0 0 14px; }
.article ul { padding-left: 18px; margin: 0 0 14px; }
.article ul li { margin-bottom: 6px; }
.article a { color: var(--green); }
.article hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.article .small-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.article table thead { background: var(--bg-2); }
.article table th {
  text-align: left; padding: 12px 18px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-3); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
}
.article table td { padding: 14px 18px; vertical-align: top; }
.article table tr { border-top: 1px solid var(--border); }
.article table td:first-child { font-family: var(--mono); color: var(--green); font-size: 12.5px; }

/* ============================================================ Tech marquee ============================================================ */
.tech-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  background: linear-gradient(180deg, transparent, rgba(34,215,143,0.025), transparent);
  mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 6%, black 94%, transparent 100%);
}
.tech-track {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: tech-scroll 50s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.tech-item {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 56px;
  transition: color .2s;
}
.tech-item:hover { color: var(--green); }
.tech-item::after {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--green);
  opacity: 0.5;
  flex-shrink: 0;
}
@keyframes tech-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Trust marquee — client logos auto-scroll
   ============================================================ */
.trust-strip-marquee {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.trust-track {
  display: flex;
  align-items: center;
  gap: 80px;
  animation: tech-scroll 45s linear infinite;
  white-space: nowrap;
  width: max-content;
  color: var(--text-3);
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: color .2s;
}
.trust-item:hover { color: var(--text); }
.trust-track .helvia { font-family: var(--sans); font-weight: 600; letter-spacing: 0.1em; font-size: 18px; }
.trust-track .kerion { font-family: var(--mono); font-size: 14px; letter-spacing: 0.18em; }
.trust-track .zafiro { font-family: var(--sans); font-weight: 500; font-size: 20px; }
.trust-track .norte  { font-family: var(--display); font-style: italic; }

/* ============================================================ Floating pill header ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 18px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(20, 22, 26, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
[data-theme="light"] .nav-pill {
  background: rgba(255,255,255,0.78);
  box-shadow: 0 10px 40px rgba(10,11,13,0.08);
}
.nav-pill .nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border-strong);
  margin: 0 4px;
}
.nav-pill .nav-links {
  display: flex;
  gap: 28px;
  padding: 0 18px;
  font-size: 14px;
  color: var(--text-2);
}
.nav-pill .nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.nav-pill .nav-links a:hover,
.nav-pill .nav-links a.active { color: var(--text); }
.nav-pill .nav-links a.active { position: relative; }
.nav-pill .nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.nav-pill .btn-primary {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.nav-pill .icon-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
}
.nav-pill .icon-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}
[data-theme="light"] .nav-pill .icon-btn:hover { background: rgba(0,0,0,0.04); }
.nav-pill .lang-pill {
  height: 36px;
  border: 1px solid transparent;
  background: transparent;
  padding: 0 12px;
  border-radius: 999px;
}
.nav-pill .lang-pill:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
}
[data-theme="light"] .nav-pill .lang-pill:hover { background: rgba(0,0,0,0.04); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: var(--elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  z-index: 25;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  display: none;
}
.lang-dropdown.is-open { display: block; }
.lang-dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  border: none; cursor: pointer; text-align: left;
  font-family: var(--sans); font-size: 13;
}
.lang-dropdown button.active { background: var(--green-soft); color: var(--green); }
.lang-dropdown button:hover:not(.active) { background: rgba(255,255,255,0.04); }
[data-theme="light"] .lang-dropdown button:hover:not(.active) { background: rgba(0,0,0,0.04); }
.lang-dropdown .code { font-family: var(--mono); font-size: 11px; width: 22px; letter-spacing: 0.08em; }

.lang-wrap { position: relative; }

/* Mobile menu button (hidden on desktop) */
.mobile-menu-btn { display: none; }

/* Mobile fullscreen menu */
.mobile-menu {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--bg);
  display: none;
  flex-direction: column;
  padding: 24px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu .mm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 24px;
}
.mobile-menu .mm-links {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}
.mobile-menu .mm-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 350;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.mobile-menu .mm-links a .arrow { color: var(--green); }
.mobile-menu .mm-footer {
  margin-top: auto;
  padding-top: 24px;
}

/* ============================================================ Hero agent tree (parallax stage) ============================================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.hero-stage-wrap {
  position: relative;
  height: 540px;
}
.hero-stage {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #14161A 0%, #0F1115 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  perspective: 1400px;
  cursor: crosshair;
}
[data-theme="light"] .hero-stage {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F5EE 100%);
}
.stage-head {
  position: relative; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 16px 22px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  height: 48px;
}
.stage-head .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
}
.stage-head-spacer { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.stage-head-dots { display: flex; gap: 5px; }
.stage-head-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-strong); display: block;
}
.stage-glow {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  mix-blend-mode: screen;
  transition: background .25s;
}
.stage-grid {
  position: absolute; left: 0; right: 0; top: 48px; bottom: 0;
  z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  transition: transform .15s;
}
.stage-tree {
  position: absolute; left: 0; right: 0; top: 48px; bottom: 0;
  transform-style: preserve-3d;
  transition: transform .15s;
  z-index: 2;
}
.stage-tree > svg {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.agent-node {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.4);
  transition: border-color .2s, box-shadow .15s, transform .15s, background .2s;
  transform-style: preserve-3d;
}
.agent-node.primary {
  background: linear-gradient(180deg, #1B2026, #15181D);
  border-color: var(--green-line);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px rgba(34,215,143,0.06);
}
[data-theme="light"] .agent-node.primary {
  background: linear-gradient(180deg, #F0FAF4, #E8F4ED);
}
.agent-node-head {
  display: flex; align-items: center; gap: 10px;
}
.agent-node-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: grid; place-items: center; flex-shrink: 0;
  transition: background .2s, color .2s, border-color .2s;
}
.agent-node-icon svg {
  width: 14px !important;
  height: 14px !important;
  display: block;
}
.agent-node.primary .agent-node-icon,
.agent-node.near .agent-node-icon {
  background: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green);
}
.agent-node-text { min-width: 0; flex: 1; }
.agent-node-name {
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.agent-node-role { font-family: var(--mono); color: var(--text-3); font-size: 10px; margin-top: 1px; letter-spacing: 0.05em; }
.agent-node-status {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 6px var(--green);
}
.agent-node-status.queued { background: #F2B33D; box-shadow: none; }
.agent-node-metric {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.agent-node-metric .k { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.05em; }
.agent-node-metric .v { font-family: var(--mono); font-size: 12px; color: var(--text); }
.agent-node.primary .agent-node-metric .v,
.agent-node.near .agent-node-metric .v { color: var(--green); }

.stage-hint {
  position: absolute; left: 50%; bottom: 8px;
  transform: translateX(-50%);
  opacity: 0.9;
  transition: opacity .4s;
  font-family: var(--mono); font-size: 8px; color: var(--text-2);
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex; gap: 7px; align-items: center;
  pointer-events: none;
  z-index: 5;
}
.stage-hint svg { width: 10px; height: 10px; }
.stage-hint.hidden { opacity: 0; }

.hero-float-card {
  position: absolute; bottom: -80px; left: -34px;
  background: var(--elev);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 16px;
  width: 240px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  z-index: 6;
}
.hero-float-card .top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.hero-float-card .top .icon-box { width: 32px; height: 32px; border-radius: 8px; }
.hero-float-card .top .label { font-size: 13px; font-weight: 500; }

.stage-mobile {
  display: none;
  background: linear-gradient(180deg, #14161A, #0F1115);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  margin-top: 32px;
}
.stage-mobile-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.stage-mobile-head .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
}
.mini-agent {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 10px;
}
.mini-agent.primary {
  background: linear-gradient(180deg, #1B2026, #15181D);
  border-color: var(--green-line);
}
[data-theme="light"] .mini-agent.primary { background: linear-gradient(180deg, #F0FAF4, #E8F4ED); }
.mini-agent .micon {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.mini-agent.primary .micon { background: var(--green-soft); border-color: var(--green-line); color: var(--green); }
.mini-agent .mtext { flex: 1; min-width: 0; }
.mini-agent .mname { font-size: 12.5px; font-weight: 500; }
.mini-agent .mrole { font-family: var(--mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.05em; }
.mini-agent .mdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green); flex-shrink: 0;
}
.mini-agent-children {
  margin-left: 26px; border-left: 1px dashed var(--green-line);
  padding-left: 14px; margin-top: 4px;
  display: flex; flex-direction: column; gap: 8px;
}
.mini-agent-grandchildren {
  margin-left: 14px; border-left: 1px dashed var(--border-strong);
  padding-left: 12px; display: flex; flex-direction: column; gap: 8px;
}
.mini-agent-grandchildren .mini-agent { padding: 8px 10px; }
.mini-agent-grandchildren .micon { width: 24px; height: 24px; }
.mini-agent-grandchildren .mname { font-size: 11px; }

/* ============================================================ Page hero + section utils ============================================================ */
.page-hero {
  position: relative;
  padding: 80px 0 80px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 52px;
}
.hero-stats .stat-n {
  font-family: var(--display); font-weight: 350;
  font-size: 34px; letter-spacing: -0.025em; color: var(--text);
  line-height: 1;
}
.hero-stats .stat-l { font-size: 13px; color: var(--text-3); margin-top: 6px; max-width: 180px; }

/* Section wrapper */
.section { padding: 120px 0; position: relative; }
.section-sm { padding: 60px 0; }
.section-tight { padding: 80px 0; }

/* ============================================================
   Location Map widget — collapsed by default, click to expand
   (ported from LocationMap framer-motion component)
   ============================================================ */
.imap {
  position: relative;
  width: 100%;
  height: 88px;
  cursor: pointer;
  perspective: 1000px;
  user-select: none;
  background: transparent;
  border: none;
  overflow: visible;
  transition: height .5s cubic-bezier(.4, 0, .2, 1);
}
.imap.expanded { height: 280px; }
.lm-inner {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), border-color .25s, background .3s;
}
.imap:hover .lm-inner { border-color: var(--border-strong); }
.imap.expanded .lm-inner {
  border-color: var(--green-line);
  background: linear-gradient(135deg, var(--bg-2), var(--surface));
}

/* Canvas with roads / buildings / pin — invisible until expanded */
.lm-canvas {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s .05s;
}
.imap.expanded .lm-canvas { opacity: 1; }

.lm-roads {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.lm-roads line { stroke: rgba(255,255,255,0.22); }
.lm-roads line.lm-road-sm { stroke: rgba(255,255,255,0.10); }
[data-theme="light"] .lm-roads line { stroke: rgba(10,11,13,0.28); }
[data-theme="light"] .lm-roads line.lm-road-sm { stroke: rgba(10,11,13,0.10); }

.lm-bldg {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 2px;
  opacity: 0;
  transform: scale(0.85);
}
[data-theme="light"] .lm-bldg {
  background: rgba(10,11,13,0.08);
  border-color: rgba(10,11,13,0.06);
}
.imap.expanded .lm-bldg {
  animation: lm-bldg-in .4s ease-out forwards;
}
.imap.expanded .lm-bldg:nth-child(1) { animation-delay: .35s; }
.imap.expanded .lm-bldg:nth-child(2) { animation-delay: .45s; }
.imap.expanded .lm-bldg:nth-child(3) { animation-delay: .40s; }
.imap.expanded .lm-bldg:nth-child(4) { animation-delay: .50s; }
.imap.expanded .lm-bldg:nth-child(5) { animation-delay: .55s; }
.imap.expanded .lm-bldg:nth-child(6) { animation-delay: .60s; }
@keyframes lm-bldg-in {
  to { opacity: 1; transform: scale(1); }
}

.lm-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) translateY(-12px) scale(0);
  opacity: 0;
  filter: drop-shadow(0 0 10px rgba(34,215,143,0.55));
  pointer-events: none;
  z-index: 2;
}
.imap.expanded .lm-pin {
  animation: lm-pin-in .5s cubic-bezier(.4, 0, .2, 1) .3s forwards;
}
@keyframes lm-pin-in {
  to { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1); }
}

/* Content layer — collapsed view (icon + Live + name) */
.lm-content {
  position: absolute; inset: 0;
  z-index: 3;
  padding: 18px 20px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.lm-top {
  display: flex; align-items: flex-start; justify-content: space-between;
}
.lm-icon {
  color: var(--green);
  filter: drop-shadow(0 0 4px rgba(34,215,143,0.3));
  transition: filter .3s, opacity .3s;
  display: inline-flex;
}
.imap:hover .lm-icon { filter: drop-shadow(0 0 8px rgba(34,215,143,0.6)); }
.imap.expanded .lm-icon { opacity: 0; }

.lm-live {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
[data-theme="light"] .lm-live { background: rgba(255,255,255,0.6); }
.lm-live .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.lm-bottom { display: flex; flex-direction: column; gap: 2px; }
.lm-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}
.imap:hover .lm-name { transform: translateX(4px); }
.lm-coords {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .25s, opacity .25s .05s;
}
.imap.expanded .lm-coords {
  max-height: 30px;
  opacity: 1;
}
.lm-underline {
  height: 1px;
  background: linear-gradient(to right, rgba(34,215,143,0.55), rgba(34,215,143,0.3), transparent);
  margin-top: 6px;
  transform-origin: left;
  transform: scaleX(0.3);
  transition: transform .4s ease-out;
}
.imap:hover .lm-underline,
.imap.expanded .lm-underline { transform: scaleX(1); }

.lm-hint {
  position: absolute;
  left: 50%; bottom: -20px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  margin: 0;
}
.imap:hover .lm-hint { opacity: 0.8; transform: translateX(-50%) translateY(2px); }
.imap.expanded .lm-hint { opacity: 0; }

/* ============================================================ Trust strip ============================================================ */
.trust-strip {
  padding: 32px 0 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-row {
  display: flex; align-items: center; gap: 60px; justify-content: space-between;
}
.trust-logos {
  display: flex; gap: 48px; flex: 1; justify-content: space-around;
  color: var(--text-4);
  font-family: var(--display); font-size: 22px; letter-spacing: -0.02em;
  flex-wrap: wrap;
}
.trust-logos .helvia { font-family: var(--sans); font-weight: 600; letter-spacing: 0.1em; }
.trust-logos .kerion { font-family: var(--mono); font-size: 16px; letter-spacing: 0.18em; }
.trust-logos .zafiro { font-family: var(--sans); font-weight: 500; }
.trust-logos .norte { font-family: var(--display); font-style: italic; }

/* ============================================================ Industries card ============================================================ */
.industry-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.industry-card-body { padding: 28px; flex: 1; }
.industry-card-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.industry-card-name {
  font-family: var(--display); font-weight: 350;
  font-size: 28px; letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.industry-card-pitch { color: var(--text-2); font-size: 14px; margin: 0 0 18px; line-height: 1.55; }
.industry-card-cases { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.industry-card-cases li {
  display: flex; gap: 8px; font-size: 13px; color: var(--text-2);
}
.industry-card-cases li svg { color: var(--green); margin-top: 2px; flex-shrink: 0; }
.industry-card-proof {
  padding: 16px 28px;
  background: var(--green-soft);
  border-top: 1px solid var(--green-line);
  display: flex; align-items: center; gap: 12px;
}
.industry-card-proof .n {
  font-family: var(--display); font-weight: 350;
  font-size: 20px; color: var(--green); white-space: nowrap;
  letter-spacing: -0.01em;
}
.industry-card-proof .l { font-size: 11.5px; color: var(--text-3); }

/* Compact variant — icon + name + metric only.
   All titles reserve 2 lines and proof bar fixed height
   so cards form an even grid regardless of text length. */
.industry-card-compact .industry-card-body {
  padding: 28px 28px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: 220px;
}
.industry-card-compact .industry-card-head { margin-bottom: 0; }
.industry-card-compact .industry-card-name {
  font-size: 24px;
  margin: 0;
  line-height: 1.2;
  min-height: 2.4em;
  display: flex;
  align-items: flex-end;
}
.industry-card-compact .industry-card-proof {
  min-height: 76px;
  padding: 16px 28px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}
.industry-card-compact .industry-card-proof .n {
  font-size: 22px;
  line-height: 1.15;
}
.industry-card-compact .industry-card-proof .l {
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-3);
}

/* ============================================================ Project / portfolio card ============================================================ */
.project-card {
  padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.project-card .ph { border-radius: 0; border: none; border-bottom: 1px solid var(--border); height: 240px; }
.project-card.big .ph { height: 360px; }
.project-card-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.project-card .metrics {
  display: flex; gap: 22px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--border); align-items: center; flex-wrap: wrap;
}
.project-card .metric-v {
  font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--green);
}
.project-card .metric-l { font-size: 13px; color: var(--text-3); margin-top: 2px; }

/* ============================================================ Final CTA ============================================================ */
.final-cta-box {
  position: relative;
  padding: 120px 80px;
  background: linear-gradient(180deg, #0E1014 0%, #08090B 100%);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  overflow: hidden;
  text-align: center;
}
[data-theme="light"] .final-cta-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F2EB 100%);
}
.final-cta-box .waves { position: absolute; inset: 0; opacity: 0.35; pointer-events: none; width: 100%; height: 100%; }
.final-cta-box .halo {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 340px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.final-cta-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 92px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 auto;
  max-width: 1040px;
  background: linear-gradient(180deg, #FFFFFF 10%, rgba(255,255,255,0.35) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
[data-theme="light"] .final-cta-title {
  background: linear-gradient(180deg, #0A0B0D 10%, rgba(10,11,13,0.35) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.final-cta-title .accent {
  font-family: var(--display);
  font-style: italic;
  font-weight: 350;
  background: linear-gradient(180deg, var(--green) 10%, rgba(34,215,143,0.5) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================ Footer ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-grid .fcol { }
.footer-grid .fcol .num { margin-bottom: 16px; }
.footer-grid .fcol ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid .fcol ul li a { font-size: 14px; color: var(--text-2); text-decoration: none; }
.footer-grid .fcol ul li a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  color: var(--text-4); font-size: 12px;
  gap: 24px; flex-wrap: wrap;
}

/* ============================================================ Forms ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.single { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field .label {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-3); letter-spacing: 0.05em;
}
.field .label .required { color: var(--green); margin-left: 6px; }
.field input,
.field textarea,
.field select {
  background: var(--bg-2);
  border: 1px solid var(--green-line);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 168, 107, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ============================================================ FAQ ============================================================ */
details.faq {
  border-bottom: 1px solid var(--border);
  padding: 22px 8px;
}
details.faq:first-child { border-top: 1px solid var(--border); }
details.faq summary {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; list-style: none; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary > .q { font-size: 18px; font-weight: 500; letter-spacing: -0.005em; flex: 1; }
details.faq summary > .toggle {
  color: var(--green); font-size: 22px; line-height: 1; flex-shrink: 0;
  transition: transform .2s;
}
details.faq[open] summary > .toggle { transform: rotate(45deg); }
details.faq .a { color: var(--text-2); font-size: 15px; line-height: 1.6; margin-top: 12px; max-width: 720px; }

/* ============================================================ Service detail specific ============================================================ */
.code-mock {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, #14161A, #0F1115);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.code-mock-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.code-mock-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.code-mock-head .dot.r { background: #FF5F57; }
.code-mock-head .dot.y { background: #FEBC2E; }
.code-mock-head .dot.g { background: #28C840; }
.code-mock pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.code-mock pre .kw { color: var(--green); }
.code-mock .build-bar {
  margin-top: 18px; padding: 14px;
  background: var(--green-soft); border: 1px solid var(--green-line);
  border-radius: 12px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}
.code-mock .build-bar .num { font-family: var(--mono); font-size: 10px; color: var(--green); letter-spacing: 0.05em; }
.code-mock .build-meta {
  display: flex; gap: 18px; font-family: var(--mono);
  font-size: 11px; color: var(--text-3);
}

/* ============================================================ Star service / IA aplicada timeline ============================================================ */
.star-step {
  display: grid; grid-template-columns: 120px 1fr; gap: 40px;
  position: relative; padding-bottom: 64px;
}
.star-step:last-child { padding-bottom: 0; }
.star-step-num {
  width: 80px; height: 80px; border-radius: 20px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--green-soft), rgba(34,215,143,0.04));
  border: 1px solid var(--green-line);
  font-family: var(--mono); color: var(--green);
  font-size: 18px; font-weight: 600; letter-spacing: 0.05em;
  position: relative;
}
.star-step:not(:last-child) .star-step-num::after {
  content: "";
  position: absolute; left: 39px; top: 90px;
  width: 2px; height: 100px;
  background: linear-gradient(180deg, var(--green-line), var(--border) 70%);
}
.star-step-card { padding: 32px 40px; border-color: var(--border-strong); }
.star-step-card h3 {
  font-family: var(--display); font-weight: 350;
  font-size: 36px; letter-spacing: -0.02em; margin: 0 0 14px;
}
.star-step-items {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.star-step-items li {
  display: flex; gap: 10px; font-size: 13.5px;
  color: var(--text-2); padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}
.star-step-items li svg { color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* Model cards (engagement) */
.model-card {
  padding: 32px;
  position: relative;
}
.model-card.accent {
  background: linear-gradient(135deg, rgba(34,215,143,0.08), transparent), var(--surface);
  border-color: var(--green-line);
}
.model-card .rec-badge {
  position: absolute; top: -10px; right: 22px;
  background: var(--green); color: #062418;
  padding: 4px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
}
.model-card h3 {
  font-family: var(--display); font-weight: 350;
  font-size: 30px; letter-spacing: -0.02em; margin: 0 0 8px;
}
.model-card .price {
  font-family: var(--display); font-weight: 350;
  font-size: 22px; color: var(--green); margin: 0 0 22px;
  letter-spacing: -0.025em;
}
.model-card ul {
  list-style: none; padding: 0; margin: 0 0 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.model-card ul li {
  display: flex; gap: 10px; font-size: 14px; color: var(--text-2);
}
.model-card ul li svg { color: var(--green); margin-top: 2px; flex-shrink: 0; }

/* ============================================================ Legal TOC ============================================================ */
.legal-grid {
  display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: flex-start;
}
.legal-toc { position: sticky; top: 100px; }
.legal-toc ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px; font-size: 13.5px;
}
.legal-toc ol li { display: flex; gap: 10px; align-items: baseline; color: var(--text-2); }
.legal-toc ol li a { color: inherit; text-decoration: none; }
.legal-toc ol li a:hover { color: var(--text); }
.legal-toc-num { font-family: var(--mono); font-size: 11px; color: var(--text-4); }

/* ============================================================ Contact specific ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.contact-grid-aside { display: flex; flex-direction: column; gap: 20px; }
.contactline {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.contactline:last-child { border-bottom: none; }
.contactline .l { font-size: 13px; color: var(--text-3); }
.contactline .v { font-size: 14px; color: var(--text); }

/* ============================================================ Team grid ============================================================ */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.team-person { display: flex; flex-direction: column; gap: 14px; }
.team-person .ph { aspect-ratio: 4/5; border-radius: 18px; }

/* ============================================================ Visually hidden ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================ Page wrap ============================================================ */
.page-wrap { position: relative; min-height: 100vh; }

/* ============================================================ Responsive breakpoints ============================================================ */
@media (max-width: 1100px) {
  .container { padding: 0 40px; }
  .hero-grid { gap: 40px; }
  .display-xl { font-size: 64px; }
  .display-lg { font-size: 48px; }
  .display-md { font-size: 34px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid .fcol:nth-child(4),
  .footer-grid .fcol:nth-child(5) { grid-column: span 1; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .star-step-items { grid-template-columns: repeat(2, 1fr); }
  .legal-grid { grid-template-columns: 200px 1fr; gap: 40px; }
  .final-cta-title { font-size: 72px; }
  .final-cta-box { padding: 80px 40px; }
  .star-step-card { padding: 24px 28px; }
  .star-step-card h3 { font-size: 28px; }
}

@media (max-width: 860px) {
  .container { padding: 0 24px; }
  .header-row { padding: 14px 16px; }
  .nav-pill { padding: 6px 8px; }
  .nav-pill .nav-links { display: none; }
  .nav-pill .btn-primary { display: none; }
  .mobile-menu-btn {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 999px;
    background: var(--green); color: #062418;
    border: none; cursor: pointer;
  }
  .nav-pill.right-pill { padding: 6px; gap: 4px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-stage-wrap { display: none; }
  .stage-mobile { display: block; }
  .hero-stats { gap: 14px; flex-wrap: wrap; }
  .hero-stats > div { flex: 1; min-width: 90px; }
  .hero-stats .stat-n { font-size: 26px; }
  .hero-stats .stat-l { font-size: 11px; }

  .page-hero { padding: 36px 0 48px; }
  .display-xl { font-size: 44px; }
  .display-lg { font-size: 36px; }
  .display-md { font-size: 28px; }

  .section { padding: 60px 0; }
  .section-head {
    flex-direction: column; align-items: flex-start;
    gap: 16px; margin-bottom: 32px;
  }
  .section-head .btn { align-self: flex-start; }

  .grid-2, .grid-3, .grid-4, .grid-services {
    grid-template-columns: 1fr !important;
  }
  .grid-2-md { grid-template-columns: 1fr 1fr !important; }

  .star-step { grid-template-columns: 1fr; gap: 18px; padding-bottom: 32px; }
  .star-step-num { width: 56px; height: 56px; border-radius: 14px; font-size: 14px; }
  .star-step:not(:last-child) .star-step-num::after { display: none; }
  .star-step-card { padding: 22px; }
  .star-step-card h3 { font-size: 22px; }
  .star-step-items { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; }

  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  .trust-row { flex-direction: column; gap: 24px; align-items: flex-start; }
  .trust-logos { gap: 24px 32px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-grid .fcol:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .final-cta-box { padding: 48px 24px; }
  .final-cta-title { font-size: 44px; }

  .cookie-bar {
    left: 16px; right: 16px; bottom: 96px;
    grid-template-columns: 1fr;
    text-align: left;
    padding: 18px;
    gap: 14px;
  }
  .cookie-bar .ck-actions { justify-content: flex-start; }

  .fab-stack { right: 18px; bottom: 18px; }
  .quick-form { width: 320px; }

  .code-mock pre { font-size: 11px; }

  .service-card { padding: 22px; grid-template-columns: 44px 1fr; gap: 16px; }
  .service-card .icon-box { width: 44px; height: 44px; border-radius: 11px; }
  .service-card h3 { font-size: 17px; }
  .service-card p { font-size: 13.5px; }

  .hero-float-card { display: none; }
  .fab-label { display: none; }

  .lang-pill { font-size: 11px; height: 32px; padding: 0 10px; }

  /* Project card big collapses */
  .project-grid .project-card.big { grid-column: auto !important; }
  .project-grid .project-card.big .ph { height: 240px; }

  /* Hide ground-truth desktop-only items */
  .desktop-only { display: none !important; }

  .article { font-size: 14.5px; }
  .article table { font-size: 12.5px; }
  .article table th, .article table td { padding: 10px 12px; }

  .star-bonus { padding: 28px !important; grid-template-columns: 1fr !important; }
}

@media (max-width: 520px) {
  .display-xl { font-size: 36px; }
  .display-lg { font-size: 30px; }
  .display-md { font-size: 24px; }
  .final-cta-title { font-size: 34px; }
  .trust-logos { font-size: 18px; }
  .trust-logos .kerion { font-size: 13px; }
  .nav-pill .lang-pill { display: none; }
  .nav-pill.right-pill .icon-btn:not(.mobile-menu-btn) { display: none; }
}

/* Grid helpers used inline */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
.grid-services { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.gap-y { display: flex; flex-direction: column; gap: 18px; }
.flex-row { display: flex; gap: 14px; flex-wrap: wrap; }
.flex-row-tight { display: flex; gap: 8px; flex-wrap: wrap; }
