/* ===========================================================================
   L2V — Site styles. Dark premium. Manrope + JetBrains Mono.
   Shared across all pages. Brand tokens carried from the identity system.
   =========================================================================== */

:root {
  --ink: #08101F;
  --navy: #0E1E3A;
  --navy-deep: #091428;
  --electric: #2E63F6;
  --electric-light: #5B86FF;
  --graphite: #3A4256;
  --steel: #6B7589;
  --mist: #C8CFDB;
  --paper: #F4F5F8;
  --paper-warm: #EDEEF2;
  --white: #FFFFFF;

  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.18);
  --surface: #0C1A33;          /* card on dark */
  --surface-2: #0F2647;        /* deeper card */

  --display: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1280px;
  --pad: clamp(20px, 5vw, 80px);
  --radius: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-weight: 450;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Language toggle: hide the inactive language anywhere in the tree */
[data-lang="pt"] [data-en] { display: none !important; }
[data-lang="en"] [data-pt] { display: none !important; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--electric); color: var(--white); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 160px); position: relative; }
.section--tight { padding-block: clamp(56px, 8vw, 110px); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--electric-light);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }

.h-display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-size: clamp(38px, 6.4vw, 92px);
}
.h1 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; font-size: clamp(32px, 4.6vw, 64px); }
.h2 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; font-size: clamp(26px, 3.2vw, 44px); }
.h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; font-size: clamp(19px, 1.6vw, 24px); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: rgba(255,255,255,0.74); font-weight: 450; }
.body { font-size: 16px; line-height: 1.66; color: rgba(255,255,255,0.66); }
.muted { color: var(--steel); }
.accent { color: var(--electric-light); }
em.it { font-style: italic; font-weight: 500; color: var(--electric-light); }

.mono {
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel);
}

/* ---------- Decorative backdrops ---------- */
.grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: 1; }
.grid-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,99,246,0.28), transparent 64%);
  filter: blur(20px); pointer-events: none; z-index: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s, color .25s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--electric); color: var(--white); }
.btn--primary:hover { background: var(--electric-light); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--white); }
.btn--ghost:hover { border-color: var(--electric-light); color: var(--electric-light); }
.btn--lg { padding: 17px 28px; font-size: 16px; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--electric-light); font-size: 15px;
}
.textlink .arrow { transition: transform .3s var(--ease); }
.textlink:hover .arrow { transform: translateX(4px); }

/* ---------- Brand mark ---------- */
.logo {
  display: inline-flex; align-items: baseline;
  font-family: var(--display); font-weight: 800;
  line-height: 1; letter-spacing: -0.04em; color: var(--white);
}
.logo svg { display: inline-block; margin: 0 0.04em; align-self: center; }
.logo .l { margin-right: 0.02em; }
.logo .v { margin-left: -0.03em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8,16,31,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-size: 14.5px; font-weight: 500; color: rgba(255,255,255,0.72);
  padding: 9px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav__link.is-active { color: var(--white); }
.nav__right { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex; align-items: center; border: 1px solid var(--line-strong);
  border-radius: 999px; overflow: hidden; font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.1em;
}
.lang-switch button {
  background: transparent; border: 0; color: var(--steel); cursor: pointer;
  padding: 7px 11px; font: inherit; transition: color .2s, background .2s;
}
.lang-switch button.is-active { background: var(--electric); color: var(--white); }

.nav__toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 4px 0; transition: transform .3s var(--ease), opacity .2s; }

/* mobile menu */
.nav__mobile {
  position: fixed; inset: 76px 0 auto 0; z-index: 99;
  background: rgba(8,16,31,0.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 16px var(--pad) 28px;
}
.nav__mobile a { padding: 14px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav__mobile.open { display: flex; }

@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-block: clamp(56px, 7vw, 90px) 40px;
}
.footer-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,0.62); font-size: 14.5px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--electric-light); }
.footer-brand .lead { max-width: 36ch; margin-top: 20px; font-size: 16px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
.reveal[data-d="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- Generic cards / chips ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: border-color .3s, transform .3s var(--ease), background .3s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--electric-light); background: rgba(46,99,246,0.10);
  border: 1px solid rgba(46,99,246,0.28); border-radius: 999px; padding: 7px 13px;
}

.kicker-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--electric-light); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(130px, 18vh, 200px); padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; }
.hero__title { margin: 26px 0 28px; max-width: 16ch; }
.hero__lead { max-width: 52ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero__mark { position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 1; opacity: 0.9; }
@media (max-width: 1040px) { .hero__mark { display: none; } }

.hero__stats { display: flex; gap: clamp(28px, 5vw, 64px); margin-top: 64px; flex-wrap: wrap; }
.stat .n { font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em; }
.stat .l { font-size: 13.5px; color: var(--steel); margin-top: 4px; max-width: 22ch; }

/* ---------- Stack (transformation layers) ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack__row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 24px;
  padding: 26px 28px; border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(46,99,246,0.10), rgba(46,99,246,0.02));
  border: 1px solid var(--line); border-left: 3px solid var(--electric);
  transition: transform .3s var(--ease), border-color .3s;
}
.stack__row:hover { transform: translateX(8px); border-left-color: var(--electric-light); }
.stack__row .idx { font-family: var(--mono); font-size: 13px; color: var(--electric-light); letter-spacing: 0.14em; }
.stack__row .tl { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
.stack__row .ds { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.stack__row .tool { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
@media (max-width: 640px) {
  .stack__row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .stack__row .tool { justify-self: start; }
}

/* ---------- Two column section ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--text-right { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 880px) { .split, .split--text-right { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: var(--surface); transition: border-color .3s, transform .3s var(--ease);
}
.partner:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.partner__name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.partner__name b { color: var(--electric-light); }
.partner__role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); margin-top: 6px; }
.partner__desc { font-size: 14px; color: rgba(255,255,255,0.62); margin-top: 16px; line-height: 1.6; }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr; } }

/* ---------- Methodology steps ---------- */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.method__step { position: relative; padding-top: 30px; }
.method__step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line);
}
.method__step .num { font-family: var(--mono); font-size: 12px; color: var(--electric-light); letter-spacing: 0.18em; }
.method__step h3 { margin: 16px 0 10px; }
.method__step p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.method__step.is-hot::before { background: var(--electric); }
@media (max-width: 860px) { .method { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .method { grid-template-columns: 1fr; } }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; margin-bottom: 20px; }
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 14.5px; color: rgba(255,255,255,0.62); line-height: 1.62; }

/* ---------- Big CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: clamp(18px, 3vw, 32px); background: var(--navy); border: 1px solid var(--line); padding: clamp(40px, 7vw, 84px); text-align: center; }
.cta-band .glow { left: 50%; top: 60%; transform: translate(-50%,-50%); }

/* ---------- Page hero (internal pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding-top: clamp(140px, 20vh, 210px); padding-bottom: clamp(50px, 7vw, 90px); }
.page-hero__title { margin: 22px 0 22px; max-width: 18ch; }

/* ---------- Insights / posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color .3s, transform .3s var(--ease); }
.post:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.post__cover { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--navy-deep); }
.post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.post__title { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.post__excerpt { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.post__more { margin-top: auto; }

/* ---------- Cases ---------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.case + .case { margin-top: 22px; }
.case__visual { position: relative; min-height: 320px; overflow: hidden; background: var(--navy-deep); }
.case__content { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.case__metrics { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 8px; }
.case__metrics .n { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.case__metrics .l { font-size: 12.5px; color: var(--steel); margin-top: 2px; }
.case:nth-child(even) .case__visual { order: 2; }
@media (max-width: 800px) { .case, .case:nth-child(even) .case__visual { grid-template-columns: 1fr; order: 0; } .case__visual { min-height: 220px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--white); font-family: var(--display); font-size: 15px; padding: 13px 15px;
  transition: border-color .2s; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--electric); }
.field input::placeholder, .field textarea::placeholder { color: var(--steel); }

.contact-detail { display: flex; flex-direction: column; gap: 4px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-detail .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel); }
.contact-detail .v { font-size: 18px; font-weight: 600; }

/* ---------- Section heading block ---------- */
.shead { max-width: 64ch; margin-bottom: clamp(36px, 5vw, 64px); }
.shead.center { margin-inline: auto; text-align: center; }
.shead .h2 { margin: 18px 0 18px; }

/* dividers */
.hr { height: 1px; background: var(--line); border: 0; }

/* utility */
.stack-list { display: flex; flex-direction: column; gap: 14px; }
.tick { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.tick .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(46,99,246,0.16); color: var(--electric-light); margin-top: 2px; }
.tick p { font-size: 15.5px; color: rgba(255,255,255,0.78); }
.tick strong { color: var(--white); font-weight: 600; }
