/* ==========================================================================
   Zivo Tecnologia — site styles
   ========================================================================== */

:root {
  --navy-950: #060a16;
  --navy-900: #0a1122;
  --navy-800: #111b33;
  --navy-700: #1b2847;

  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --accent: #06b6d4;

  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f8fafc;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .07);
  --shadow-md: 0 14px 34px -14px rgba(15, 23, 42, .2);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, .35);

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header-h: 72px;
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: var(--primary); }
img, svg { display: block; }

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: .6rem 1rem;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: 600 .95rem/1.2 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .7);
}
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); }

.btn-ghost-light {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(148, 163, 184, .35);
  color: #e2e8f0;
}
.btn-ghost-light:hover { border-color: #93c5fd; color: #fff; background: rgba(255, 255, 255, .08); }

.btn-light { background: #fff; color: var(--primary-600); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .4); }

.btn-sm { padding: .62rem 1.05rem; font-size: .88rem; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex: none;
}
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.32rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.brand-sub {
  margin-top: 4px;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a:not(.btn) {
  position: relative;
  padding: .5rem .75rem;
  border-radius: 8px;
  color: #334155;
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.nav a:not(.btn):hover,
.nav a.is-active { color: var(--primary); }
.nav a.is-active::after {
  content: '';
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
}
.nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: .75rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
}
.lang-switch .icon { width: 16px; height: 16px; margin: 0 3px 0 7px; color: var(--muted); }
.lang-switch button {
  padding: .42rem .62rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 700 .74rem/1 var(--font-sans);
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang-switch button:hover { color: var(--ink); }
.lang-switch button[aria-pressed="true"] {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px -4px rgba(37, 99, 235, .8);
}

.menu-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 20px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 84px) 0 72px;
  background: var(--navy-950);
  color: #cbd5e1;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 100%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.glow-1 { width: 560px; height: 560px; top: -220px; right: -120px; background: #2563eb; opacity: .38; }
.glow-2 { width: 460px; height: 460px; bottom: -260px; left: -160px; background: #06b6d4; opacity: .22; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 64px;
  align-items: center;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .9rem;
  border: 1px solid rgba(96, 165, 250, .3);
  border-radius: 999px;
  background: rgba(37, 99, 235, .14);
  color: #bfdbfe;
  font-size: .82rem;
  font-weight: 500;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero h1 {
  margin: 1.4rem 0 1.4rem;
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.55rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -.035em;
}
.text-gradient {
  background: linear-gradient(90deg, #60a5fa 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { max-width: 580px; margin-bottom: 2.25rem; color: #94a3b8; font-size: 1.12rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Code window */
.hero-visual { position: relative; }
.code-window {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(17, 27, 51, .92), rgba(10, 17, 34, .96));
  box-shadow: 0 40px 90px -25px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .04);
  font-family: var(--font-mono);
}
.code-top {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  background: rgba(255, 255, 255, .02);
}
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.code-tab {
  padding: .25rem .65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  color: #cbd5e1;
  font-size: .76rem;
}
.code {
  margin: 0;
  padding: 1.2rem 1.25rem 1.1rem .5rem;
  overflow-x: auto;
  color: #e2e8f0;
  font: 400 .84rem/1.8 var(--font-mono);
  counter-reset: line;
}
.code .line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2.2em;
  margin-right: 1.1em;
  text-align: right;
  color: #334155;
}
.tk-k { color: #c4b5fd; }
.tk-f { color: #60a5fa; }
.tk-s { color: #86efac; }
.tk-p { color: #7dd3fc; }
.tk-n { color: #fbbf24; }

.terminal {
  padding: .95rem 1.25rem 1.05rem;
  border-top: 1px solid rgba(148, 163, 184, .12);
  background: rgba(0, 0, 0, .28);
  color: #94a3b8;
  font-size: .78rem;
  line-height: 1.85;
}
.t-prompt { color: #22d3ee; margin-right: .5rem; }
.t-ok { color: #4ade80; }
.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -2px;
  background: #4ade80;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.js .terminal .t-line { opacity: 0; animation: lineIn .4s ease forwards; }
.js .terminal .t-line:nth-child(1) { animation-delay: .5s; }
.js .terminal .t-line:nth-child(2) { animation-delay: 1.1s; }
.js .terminal .t-line:nth-child(3) { animation-delay: 1.6s; }
.js .terminal .t-line:nth-child(4) { animation-delay: 2.1s; }
@keyframes lineIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .62rem .95rem .62rem .65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #dcfce7;
  color: #16a34a;
}
.chip-icon .icon { width: 16px; height: 16px; stroke-width: 2.5; }
.chip-2 .chip-icon { background: var(--primary-100); color: var(--primary); }
.chip-1 { top: -20px; right: -18px; }
.chip-2 { bottom: -42px; left: -40px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 4rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, .15);
  list-style: none;
}
.stat-value {
  display: block;
  color: #fff;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.stat-label { display: block; margin-top: .4rem; color: #94a3b8; font-size: .88rem; }

/* Tech strip ------------------------------------------------------------- */

.tech-strip {
  overflow: hidden;
  padding: 1.75rem 0 1.9rem;
  border-top: 1px solid rgba(148, 163, 184, .1);
  background: var(--navy-900);
}
.tech-label {
  margin-bottom: 1.1rem;
  color: #64748b;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}
.marquee-group { display: flex; gap: 3rem; padding-right: 3rem; margin: 0; list-style: none; padding-left: 0; }
.marquee-group li {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #94a3b8;
  font-size: 1.02rem;
  font-weight: 600;
  white-space: nowrap;
}
.marquee-group li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(135deg, #3b82f6, #22d3ee);
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections --------------------------------------------------------------- */

.section { padding: 104px 0; }
.section-alt { background: var(--surface-alt); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: .38rem .85rem;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-head h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.95rem, 3.6vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.section-head p { font-size: 1.08rem; }

/* Services --------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-100); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1.4rem;
  border-radius: 14px;
  background: var(--primary-50);
  color: var(--primary);
  transition: background .3s, color .3s;
}
.service-card:hover .service-icon { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.service-card h3 { margin-bottom: .7rem; font-size: 1.2rem; font-weight: 700; }
.service-card p { font-size: .97rem; }

/* Solutions -------------------------------------------------------------- */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.solution-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.solution-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.solution-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.solution-media svg { width: 100%; height: 100%; transition: transform .5s; }
.solution-card:hover .solution-media svg { transform: scale(1.04); }
.media-commerce { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%); }
.media-mobile { background: linear-gradient(135deg, #0e7490 0%, #2563eb 100%); }
.media-dashboard { background: linear-gradient(135deg, #3730a3 0%, #2563eb 100%); }
.solution-body { padding: 26px 28px 30px; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tags li {
  padding: .28rem .65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  color: #334155;
  font-size: .74rem;
  font-weight: 600;
}
.tags li:first-child { border-color: var(--primary-100); background: var(--primary-50); color: var(--primary); }
.solution-body h3 { margin-bottom: .6rem; font-size: 1.22rem; font-weight: 700; }
.solution-body p { font-size: .97rem; }

/* Process ---------------------------------------------------------------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 10%;
  right: 10%;
  border-top: 2px dashed #cbd5e1;
}
.step {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }
.step-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .8);
}
.step-num { color: #cbd5e1; font: 600 1.6rem/1 var(--font-mono); }
.step h3 { margin-bottom: .6rem; font-size: 1.15rem; font-weight: 700; }
.step p { font-size: .95rem; }

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 56px;
  padding: 44px 48px;
  border-radius: 20px;
  background: linear-gradient(120deg, #1d4ed8 0%, #2563eb 45%, #0891b2 100%);
  color: #dbeafe;
}
.cta-band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.cta-band h3 { margin-bottom: .45rem; color: #fff; font-size: 1.6rem; font-weight: 800; }

/* About ------------------------------------------------------------------ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.mission-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 40px;
  border-radius: 20px;
  background: var(--navy-900);
  color: #94a3b8;
}
.mission-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, .55), transparent 70%);
}
.mission-card .eyebrow { background: rgba(37, 99, 235, .2); color: #93c5fd; }
.mission-card h3 { margin-bottom: 1rem; color: #fff; font-size: 1.55rem; font-weight: 800; }
.mission-card p { font-size: 1.05rem; line-height: 1.7; }

.company-card {
  margin-top: 24px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.company-card h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.2rem; font-size: 1.05rem; font-weight: 700; }
.company-card h3 .icon { width: 20px; height: 20px; color: var(--primary); }
.company-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; margin: 0; }
.company-list div { min-width: 0; }
.company-list dt { margin-bottom: .2rem; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.company-list dd { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 600; overflow-wrap: anywhere; }
.company-list dd a { color: var(--primary); text-decoration: none; }
.company-list .full { grid-column: 1 / -1; }
.mono { font-family: var(--font-mono); font-weight: 500; }

.values-title { margin-bottom: 1.2rem; font-size: 1.3rem; font-weight: 800; }
.values { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.value {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.value:hover { border-color: var(--primary-100); box-shadow: var(--shadow-md); transform: translateX(4px); }
.value-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
}
.value-icon .icon { width: 22px; height: 22px; }
.value h4 { margin-bottom: .25rem; font-size: 1.05rem; font-weight: 700; }
.value p { font-size: .94rem; }

/* Contact ---------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: stretch;
}
.contact-info {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 44px 40px;
  border-radius: 20px;
  background: var(--navy-900);
  color: #94a3b8;
}
.contact-info::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%);
  mask-image: linear-gradient(200deg, #000, transparent 70%);
}
.contact-info h3 { margin-bottom: 1rem; color: #fff; font-size: 1.6rem; font-weight: 800; line-height: 1.25; }
.contact-info > p { margin-bottom: 2rem; }
.contact-items { display: grid; gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.contact-items li { display: flex; gap: 1rem; }
.contact-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(96, 165, 250, .25);
  border-radius: 12px;
  background: rgba(37, 99, 235, .15);
  color: #60a5fa;
}
.contact-icon .icon { width: 20px; height: 20px; }
.contact-label { display: block; margin-bottom: .15rem; color: #64748b; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.contact-value { display: block; color: #e2e8f0; font-weight: 600; overflow-wrap: anywhere; }
.contact-value a { color: #e2e8f0; text-decoration: none; }
.contact-value a:hover { color: #60a5fa; }
.contact-sub { display: block; color: #94a3b8; font-size: .88rem; }

.contact-form {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .45rem; color: var(--ink); font-size: .88rem; font-weight: 600; }
.req { color: #dc2626; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .78rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: #94a3b8; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37, 99, 235, .14); }
.field select {
  padding-right: 2.6rem;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 18px;
}
.field textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: .7rem; font-size: .86rem; line-height: 1.55; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); }
.consent label { margin: 0; color: var(--body); font-weight: 400; font-size: .86rem; }

.form-status { display: none; margin-top: 1rem; padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; }
.form-status.is-success { display: block; border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; }
.form-status.is-error { display: block; border: 1px solid #fecaca; background: #fef2f2; color: #991b1b; }
.form-status.is-info { display: block; border: 1px solid var(--primary-100); background: var(--primary-50); color: var(--primary-600); }

/* Footer ----------------------------------------------------------------- */

.site-footer { padding: 76px 0 0; background: var(--navy-950); color: #94a3b8; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr);
  gap: 40px;
  padding-bottom: 56px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #64748b; }
.footer-about p { max-width: 340px; margin-top: 1.2rem; font-size: .93rem; line-height: 1.7; }
.footer-col h4 { margin-bottom: 1.1rem; color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.footer-col ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: #94a3b8; font-size: .92rem; text-decoration: none; transition: color .2s; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-col .muted { color: #64748b; font-size: .88rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1.5rem;
  padding: 24px 0;
  border-top: 1px solid rgba(148, 163, 184, .12);
  font-size: .85rem;
}
.footer-bottom .mono { color: #64748b; }

/* Legal pages ------------------------------------------------------------ */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 64px) 0 60px;
  background: var(--navy-950);
  color: #94a3b8;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 30%, transparent 100%);
}
.breadcrumb { display: flex; gap: .5rem; margin-bottom: 1rem; font-size: .88rem; }
.breadcrumb a { color: #93c5fd; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { margin-bottom: .75rem; color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.1rem); font-weight: 800; letter-spacing: -.03em; }

.legal { max-width: 820px; margin: 0 auto; padding: 64px 24px 104px; }
.legal h2 { margin: 2.6rem 0 .8rem; font-size: 1.32rem; font-weight: 700; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 1rem; line-height: 1.75; }
.legal p + p { margin-top: .9rem; }
.legal ul { margin: .8rem 0 0; padding-left: 1.3rem; }
.legal li + li { margin-top: .45rem; }
.legal li::marker { color: var(--primary); }
.legal strong { color: var(--ink); }
.legal-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding: 28px 32px;
  border: 1px solid var(--primary-100);
  border-radius: var(--radius);
  background: var(--primary-50);
}
.legal-callout h3 { margin-bottom: .3rem; font-size: 1.15rem; font-weight: 700; }
.legal-callout p { font-size: .95rem; }

/* Language-specific blocks (legal pages) */
html[lang="en"] [data-lang="pt"],
html[lang="pt-BR"] [data-lang="en"] { display: none !important; }

/* Reveal on scroll ------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1140px) {
  .chip-1 { right: 8px; }
  .chip-2 { left: -12px; }
  .hero-stats { margin-top: 4.5rem; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 1060px) {
  .menu-toggle { display: inline-block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: .5rem 24px 1.5rem;
    border-bottom: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: .9rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav a.is-active::after { display: none; }
  .nav .nav-cta { display: inline-flex; margin-top: 1.1rem; }
  .header-cta { display: none; }

  .hero { padding-top: calc(var(--header-h) + 64px); }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 600px; }

  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps::before { display: none; }
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 760px) {
  .section { padding: 76px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; margin-top: 3rem; }
  .services-grid,
  .solutions-grid,
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-form, .contact-info, .mission-card { padding: 32px 24px; }
  .company-card { padding: 24px; }
  .cta-band { padding: 36px 28px; }
  .legal-callout { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .nav { padding-left: 16px; padding-right: 16px; }
  .header-inner { gap: .75rem; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-name { font-size: 1.18rem; }
  .chip { display: none; }
  .code { font-size: .74rem; }
  .terminal { font-size: .72rem; }
  .hero-ctas .btn { width: 100%; }
  .company-list { grid-template-columns: 1fr; }
  .legal { padding: 48px 16px 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee-group[aria-hidden="true"] { display: none; }
  .marquee-group { flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; padding: 0 16px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
