/* ============ EVOLOG DESIGN SYSTEM ============ */

:root {
  /* Paleta primaria (Evolog actual) */
  --orange: #F39200;
  --orange-600: #D97F00;
  --orange-100: #FDE8C7;
  --ink: #111315;
  --graphite: #2A2D31;
  --steel: #6B6F76;
  --fog: #D8D4CC;
  --paper: #F5F2ED;
  --white: #FFFFFF;
  --hazard: #FFD100;

  /* Sistema */
  --radius: 2px;
  --pad-x: clamp(20px, 5vw, 80px);
  --section-y: clamp(64px, 9vw, 140px);

  /* Type */
  --font-display: 'Barlow Condensed', 'Oswald', Impact, sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 500;
}
.eyebrow.dim { color: var(--steel); }
.eyebrow.ink { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}
.h-display {
  font-size: clamp(56px, 9vw, 136px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.h-xl { font-size: clamp(40px, 5.5vw, 80px); line-height: 0.95; font-weight: 800; }
.h-lg { font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; }
.h-md { font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; }
.h-sm { font-size: 20px; font-weight: 700; }

p { margin: 0; }
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--graphite);
  max-width: 62ch;
}
.body { color: var(--graphite); line-height: 1.6; }
.muted { color: var(--steel); }
.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.02em; }

/* ---------- Layout helpers ---------- */
.wrap { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-tight { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

.divider { border-top: 1px solid var(--fog); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 12px; height: 12px;
  transition: transform 0.18s ease;
}
.btn:hover .arrow { transform: translateX(3px); }
.arrow { display: inline-flex; align-items: center; justify-content: center; width: 12px; height: 12px; }
.arrow svg, .btn .arrow svg, .card-arrow svg, .btn-link svg, .tb-cta svg { width: 100%; height: 100%; display: block; }
.card-arrow { width: 12px; height: 12px; display: inline-flex; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-600); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--graphite); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); padding: 14.5px 22.5px; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { border: 1.5px solid rgba(255,255,255,0.3); color: var(--white); padding: 14.5px 22.5px; }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
}
.btn-link:hover { color: var(--orange); border-color: var(--orange); }

/* ---------- Chrome: Top banner ---------- */
.top-banner {
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  padding: 8px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
}
.top-banner .links { display: flex; gap: 24px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.top-banner a:hover { color: var(--orange); }
@media (max-width: 720px) { .top-banner .hide-mobile { display: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--fog);
}
.header-inner {
  padding: 18px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--graphite);
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}
.nav a:hover, .nav a.active { color: var(--ink); border-color: var(--orange); }
.header-cta { display: flex; gap: 12px; align-items: center; }
@media (max-width: 1100px) { .nav { display: none; } }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--ink);
  align-items: center; justify-content: center;
}
@media (max-width: 1100px) { .menu-btn { display: flex; } }

.mobile-menu {
  position: fixed; inset: 0 0 0 0; z-index: 50;
  background: var(--ink); color: var(--white);
  padding: 24px var(--pad-x);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { padding: 18px 0; font-family: var(--font-display); font-size: 32px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1); }
.mobile-menu a:hover { color: var(--orange); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  min-height: 88vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17,19,21,0.7), rgba(17,19,21,0.55)),
    repeating-linear-gradient(135deg, #1a1d20 0 18px, #222528 18px 36px);
}
.hero-content { position: relative; padding: 0 var(--pad-x) 64px; width: 100%; }
.hero-meta {
  position: absolute; top: 32px; left: var(--pad-x); right: var(--pad-x);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
}
.hero-title { color: var(--white); max-width: 18ch; }
.hero-title em { font-style: normal; color: var(--orange); }
.hero-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  margin-top: 40px;
}
@media (max-width: 900px) { .hero-row { grid-template-columns: 1fr; gap: 24px; } }

.hero-sub { max-width: 46ch; color: rgba(255,255,255,0.78); font-size: 17px; line-height: 1.55; }
.hero-ctas { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 28px;
}
.hero-stat { border-right: 1px solid rgba(255,255,255,0.1); padding-right: 20px; }
.hero-stat:last-child { border-right: none; }
.hero-stat .num { font-family: var(--font-display); font-size: clamp(40px, 4.5vw, 64px); color: var(--orange); line-height: 1; font-weight: 800; }
.hero-stat .label { font-size: 12px; margin-top: 8px; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative;
  background: var(--fog);
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0 18px,
    rgba(0,0,0,0.04) 18px 19px
  );
  overflow: hidden;
  display: flex; align-items: flex-end;
  color: var(--ink);
}
.ph-hazard {
  background-image: repeating-linear-gradient(
    45deg,
    #111 0 18px,
    #FFD100 18px 36px
  );
}
.ph-dark { background: #1a1d20; color: rgba(255,255,255,0.6); background-image: repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,0.03) 22px 23px); }
.ph-orange { background: var(--orange); background-image: repeating-linear-gradient(45deg, transparent 0 22px, rgba(0,0,0,0.06) 22px 23px); }
.ph-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 12px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  margin: 12px;
  border-radius: var(--radius);
}
.ph-dark .ph-label { background: rgba(0,0,0,0.6); color: var(--white); }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--fog);
  transition: all 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card-media { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--steel); margin-bottom: 8px;
}
.card-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.card-desc { font-size: 14px; color: var(--graphite); margin-top: 10px; line-height: 1.5; flex: 1; }
.card-foot { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.card-code { font-family: var(--font-mono); font-size: 11px; color: var(--steel); }

.card-arrow {
  width: 34px; height: 34px;
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s ease;
}
.card:hover .card-arrow { background: var(--orange); border-color: var(--orange); }

/* ---------- Section headers ---------- */
.sec-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 48px;
  flex-wrap: wrap;
}
.sec-head .left { max-width: 600px; }
.sec-head .eyebrow { margin-bottom: 16px; display: block; }

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--fog);
  border-bottom: 1px solid var(--fog);
  margin-bottom: 40px;
  align-items: center;
}
.filter-bar .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-right: 8px; }
.chip {
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--fog);
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- Feature row (big numbered) ---------- */
.feature-row {
  display: grid; grid-template-columns: 120px 1fr 1fr;
  gap: 40px; padding: 48px 0;
  border-top: 1px solid var(--fog);
  align-items: start;
}
.feature-row:last-child { border-bottom: 1px solid var(--fog); }
.feature-num { font-family: var(--font-display); font-size: 80px; font-weight: 800; color: var(--orange); line-height: 1; }
@media (max-width: 800px) {
  .feature-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .feature-num { font-size: 56px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--orange);
  color: var(--ink);
  padding: var(--section-y) var(--pad-x);
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: center;
}
.cta-band .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.7);
  padding: 80px var(--pad-x) 32px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--white); margin-bottom: 20px; text-transform: uppercase; font-weight: 500; }
.footer a { display: block; padding: 6px 0; font-size: 14px; }
.footer a:hover { color: var(--orange); }
.footer-bottom {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: rgba(255,255,255,0.5);
}

/* ---------- Breadcrumbs ---------- */
.crumbs {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel);
  padding: 24px var(--pad-x);
  border-bottom: 1px solid var(--fog);
}
.crumbs a:hover { color: var(--orange); }
.crumbs .sep { margin: 0 10px; color: var(--fog); }

/* ---------- Page header ---------- */
.page-head {
  background: var(--paper);
  padding: clamp(64px, 8vw, 120px) var(--pad-x) clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--fog);
}
.page-head.dark { background: var(--ink); color: var(--white); }
.page-head.dark .lead { color: rgba(255,255,255,0.75); }

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  width: 280px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  font-size: 13px;
  display: none;
}
.tweaks-panel.visible { display: block; }
.tweaks-head { background: var(--ink); color: var(--white); padding: 10px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.tweaks-body { padding: 14px 16px; max-height: 70vh; overflow: auto; }
.tweaks-body .field { margin-bottom: 14px; }
.tweaks-body label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: 8px; }
.swatches { display: flex; gap: 6px; }
.swatch { width: 32px; height: 32px; border: 2px solid transparent; cursor: pointer; }
.swatch.active { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--white); }
.tseg { display: flex; gap: 0; border: 1px solid var(--fog); }
.tseg button { flex: 1; padding: 8px; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; border-right: 1px solid var(--fog); }
.tseg button:last-child { border-right: none; }
.tseg button.active { background: var(--ink); color: var(--white); }

/* ---------- Animations ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.reveal { animation: fadeUp 0.5s ease both; }

/* ---------- Utilities ---------- */
.rule-v { width: 1px; background: var(--fog); }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 12px; border-radius: 50%; margin-right: 10px; }
.pill {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--orange-100); color: var(--orange-600);
  border-radius: 2px;
}
.pill.dark { background: rgba(255,255,255,0.1); color: var(--white); }
.pill.ink { background: var(--ink); color: var(--white); }

/* ---------- Home v2 ---------- */
.hero-v2 { background: linear-gradient(135deg, var(--paper) 0%, var(--white) 50%, #fff8dd 100%); padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(64px, 9vw, 120px); }
.hero-v2-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 0; }
.hero-v2 .h-display { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.02em; text-transform: none; font-weight: 800; }
@media (max-width: 1000px) { .hero-v2-grid { grid-template-columns: 1fr; } }
.hero-card { background: var(--white); border: 1px solid var(--fog); padding: 12px; box-shadow: 0 20px 45px rgba(15,23,42,0.08); }
.hero-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(17,19,21,0.92), rgba(17,19,21,0.3) 55%, rgba(17,19,21,0) 75%); padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-stat-v2 { background: rgba(255,255,255,0.1); padding: 14px; border: 1px solid rgba(255,255,255,0.15); }
.hero-stat-v2 strong { display: block; color: var(--orange); font-family: var(--font-display); font-size: 20px; text-transform: uppercase; }
.hero-stat-v2 span { font-size: 12px; color: rgba(255,255,255,0.7); display: block; margin-top: 4px; }
.chip { border: 1px solid var(--fog); background: var(--white); color: var(--graphite); padding: 10px 14px; font-size: 13px; border-radius: 999px; }
.section-intro { max-width: 820px; margin: 0 auto; text-align: center; }
.section-intro .eyebrow { display: inline-block; }
.value-card { background: var(--white); border: 1px solid var(--fog); padding: 28px; transition: all 0.2s; }
.value-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.value-icon { width: 48px; height: 48px; background: var(--orange-100); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--orange-600); font-weight: 700; }
.value-icon.dark { background: rgba(243,146,0,0.15); color: var(--orange); }
.sol-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); padding: 32px; display: flex; flex-direction: column; transition: all 0.2s; }
.sol-card:hover { background: rgba(255,255,255,0.07); border-color: var(--orange); }
.impact-main { padding: 36px; border: 1px solid var(--fog); background: linear-gradient(135deg, var(--paper) 0%, var(--white) 55%, #fff8dd 100%); }
.mini-item { border: 1px solid var(--fog); padding: 20px; background: var(--white); }
.calc-main { padding: 36px; border: 1px solid var(--fog); background: linear-gradient(135deg, #fff8dd 0%, var(--white) 50%, var(--paper) 100%); }
.ind-card { background: var(--white); border: 1px solid var(--fog); padding: 28px; display: block; color: inherit; transition: all 0.2s; }
.ind-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.fair-card { background: var(--paper); border: 1px solid var(--fog); padding: 28px; }
.resource-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 24px; transition: all 0.2s; }
.resource-card:hover { background: rgba(255,255,255,0.08); border-color: var(--orange); }
.about-panel { background: linear-gradient(135deg, var(--ink) 0%, var(--graphite) 70%, #334155 100%); color: var(--white); padding: 40px; box-shadow: 0 20px 45px rgba(15,23,42,0.12); }
.contact-form { background: var(--white); border: 1px solid var(--fog); padding: 28px; box-shadow: 0 20px 45px rgba(15,23,42,0.06); }
.cf-input { width: 100%; padding: 14px 16px; border: 1px solid var(--fog); font: inherit; font-size: 14px; border-radius: 2px; outline: none; background: var(--white); }
.cf-input:focus { border-color: var(--orange); }

/* ---------- Serie TB 400 ---------- */
.tb-card { background: var(--white); border: 1px solid var(--fog); padding: 32px; display: flex; flex-direction: column; color: inherit; transition: all 0.2s; position: relative; }
.tb-card:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 18px 32px rgba(15,23,42,0.08); }
.tb-icon { width: 72px; height: 72px; background: var(--orange-100); color: var(--orange-600); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.tb-photo { aspect-ratio: 3/2; background: var(--paper); overflow: hidden; margin: -32px -32px 20px -32px; border-bottom: 1px solid var(--fog); width: calc(100% + 64px); position: relative; }
.tb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-kj { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1; margin-top: 4px; }
.tb-cta { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--fog); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange-600); display:flex; align-items:center; gap:8px; }
.tb-cta svg { width: 12px; height: 12px; flex-shrink: 0; }
.tb-cta .arrow { width: 12px; height: 12px; }
.tb-spec { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); padding: 28px; }

/* Density variants (Tweaks) */
body.density-compact { --section-y: clamp(40px, 6vw, 88px); --pad-x: clamp(16px, 4vw, 56px); }
body.density-airy { --section-y: clamp(80px, 12vw, 180px); --pad-x: clamp(28px, 7vw, 120px); }

/* Palette variants */
body.palette-steel { --orange: #0066CC; --orange-600: #004A99; --orange-100: #D6E6F5; }
body.palette-graphite { --orange: #111315; --orange-600: #000; --orange-100: #e5e5e5; }

/* hazard accent used sparingly */
.hazard-bar {
  height: 12px;
  background-image: repeating-linear-gradient(135deg, #111 0 14px, #FFD100 14px 28px);
}

/* ============================================================
   RESPONSIVE / MOBILE HARDENING
   ============================================================ */

/* No horizontal scroll, ever */
html, body { max-width: 100%; overflow-x: hidden; }

/* Grid & flex children must be allowed to shrink below min-content,
   otherwise long words/wide content force the track wider than the
   viewport (classic CSS-grid overflow). */
.grid > *,
.hero-v2-grid > *,
.hero-row > *,
.cta-band > *,
.feature-row > *,
.footer-grid > * { min-width: 0; }

/* Two-column section grids (inline-styled) must stack on smaller screens */
@media (max-width: 860px) {
  .split-2 { grid-template-columns: 1fr !important; gap: 28px !important; }
}

/* Long words / codes must wrap instead of pushing layout wide */
h1, h2, h3, h4, h5, h6, p, .lead, .h-display, .h-xl, .h-lg, .h-md, .card-title {
  overflow-wrap: break-word;
  word-break: break-word;
}

img, video { max-width: 100%; height: auto; }

/* Tablet / small-laptop */
@media (max-width: 900px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 640px) {
  :root { --pad-x: 18px; }

  /* Headlines that were sized for desktop need a real cap on phones */
  .h-xl { font-size: clamp(30px, 8.5vw, 42px); line-height: 1.08; }
  .h-display { font-size: clamp(32px, 9vw, 46px) !important; line-height: 1.05; }
  .h-lg { font-size: clamp(26px, 7vw, 34px); }
  .h-md { font-size: clamp(20px, 5.5vw, 26px); }
  .lead { font-size: 16px; }

  /* Stat rows stack cleanly */
  .hero-stats { grid-template-columns: 1fr; gap: 0; }
  .hero-stat-v2 { }

  /* Buttons: full-width, tappable, and groups stack */
  .btn { padding: 14px 18px; }
  .hero-ctas, .cta-band .ctas { width: 100%; }
  .hero-ctas .btn, .cta-band .ctas .btn,
  .section-intro .btn { width: 100%; justify-content: center; }
  /* Header CTA stays compact */
  .header-cta .btn { width: auto; padding: 12px 16px; }

  /* Footer to single column for legibility */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Card media a touch shorter on phones */
  .card-media { min-height: 200px; }

  /* Section padding breathing room */
  .section { padding-top: clamp(48px, 12vw, 80px); padding-bottom: clamp(48px, 12vw, 80px); }

  /* Top banner: keep phone/email compact */
  .top-banner { font-size: 11px; gap: 12px; }
  .top-banner .links { gap: 12px; }
}

/* Very small phones */
@media (max-width: 380px) {
  :root { --pad-x: 14px; }
  .h-display { font-size: 30px !important; }
}

/* Hero media is portrait (4/5) on desktop — too tall on phones.
   Cap it to a shorter ratio so there's no big empty block. */
@media (max-width: 640px) {
  .hero-video-wrap { aspect-ratio: 16 / 11 !important; }
  .hero-video { display: none !important; }
  .hero-v2 { padding-top: 32px; padding-bottom: 40px; }
  .hero-v2-grid { gap: 28px; }
  /* sector chips row under the hero text: 5 cols is too tight on phones */
  .hero-sectors { grid-template-columns: repeat(2, 1fr) !important; }
  /* clients logos: 6 cols → 3 on phones */
  .clients-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ---------- WhatsApp floating widget ---------- */
:root { --wa-green: #25D366; --wa-green-d: #1da851; }
.wa-widget { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

.wa-fab {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa-green); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,0.42), 0 2px 6px rgba(0,0,0,0.18);
  position: relative; cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}
.wa-fab:hover { background: var(--wa-green-d); transform: scale(1.05); }
.wa-fab.is-open { background: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,0.28); }
.wa-fab-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--wa-green); z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.55; } 70%,100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-fab-pulse { display: none; } }

.wa-card {
  width: 332px; max-width: calc(100vw - 44px);
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform-origin: bottom right;
  transform: scale(0.9) translateY(12px); opacity: 0; pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.wa-card.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

.wa-card-head { background: var(--ink); color: var(--white); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; }
.wa-card-head-id { display: flex; align-items: center; gap: 12px; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--wa-green); color: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wa-card-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.1; }
.wa-card-status { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; color: var(--wa-green); margin-top: 3px; }
.wa-card-close { color: rgba(255,255,255,0.7); display: flex; }
.wa-card-close:hover { color: var(--white); }

.wa-card-body { padding: 18px; }
.wa-card-intro { font-size: 13.5px; line-height: 1.5; color: var(--graphite); margin-bottom: 16px; }
.wa-form { display: flex; flex-direction: column; gap: 12px; }
.wa-field label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); display: block; margin-bottom: 6px; }
.wa-input { width: 100%; padding: 11px 13px; border: 1px solid var(--fog); font: inherit; font-size: 13.5px; border-radius: 2px; outline: none; background: var(--white); color: var(--ink); resize: none; }
.wa-input:focus { border-color: var(--wa-green); }
select.wa-input { appearance: none; cursor: pointer; }
.wa-send {
  margin-top: 4px; width: 100%;
  background: var(--wa-green); color: var(--white);
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  padding: 13px; display: flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; transition: background 0.15s ease;
}
.wa-send:hover { background: var(--wa-green-d); }

@media (max-width: 720px) { .wa-widget { right: 16px; bottom: 16px; } }
