/*
   Acacia Systems — Stylesheet
   "Blueprint & Live Schematic" — an engineering sheet, dark-first.
   Gold is signal ink (CTA, connected state), not ambient glow.
   Emerald is the live/verified state. Slate-blue is the drawing.
   Components consume tokens only; never loose values.
*/

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  color-scheme: dark;

  /* — Ground: blueprint navy — */
  --ink:      #070b14;
  --ink-1:    #0a1120;
  --panel:    #0c1322;
  --panel-2:  #0f1727;
  --panel-3:  #131d31;

  /* — Lines — */
  --hairline:   rgba(122,154,196,0.14);
  --hairline-2: rgba(122,154,196,0.26);
  --grid-line:  rgba(96,140,190,0.09);
  --wire:       #33507a;   /* schematic wire */
  --wire-soft:  rgba(122,154,196,0.34);

  /* — Signal ink — */
  --gold:        #d8b24a;
  --gold-bright: #f0cf6b;
  --gold-deep:   #a5801f;
  --gold-wash:   rgba(216,178,74,0.10);
  --emerald:     #2fbe8f;   /* live / verified / passing */
  --emerald-deep:#0f766e;
  --emerald-wash:rgba(47,190,143,0.10);
  --danger:      #e2624a;

  /* — Text — */
  --text:     #eef2f8;
  --text-mut: #97a5be;
  --text-dim: #64728a;

  /* — Type — */
  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --fs-hero:  clamp(2.6rem, 5.6vw, 4.4rem);
  --fs-h2:    clamp(1.9rem, 3.4vw, 2.7rem);
  --fs-h3:    1.28rem;
  --fs-lead:  clamp(1.02rem, 1.5vw, 1.16rem);
  --fs-body:  0.96rem;
  --fs-sm:    0.86rem;
  --fs-mono:  0.74rem;
  --fs-mono-sm: 0.66rem;
  --tk-mono:  0.16em;

  /* — Space — */
  --rail: 56px;
  --pad-x: clamp(1.5rem, 6vw, 6rem);
  --sec-y: clamp(3.25rem, 5.5vw, 5.5rem);

  /* — Radius (engineering: near-square) — */
  --r-xs: 2px;
  --r-sm: 3px;
  --r-md: 4px;
  --r-pill: 999px;

  /* — Elevation — */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.35);
  --shadow-md: 0 18px 44px rgba(0,0,0,0.42);
  --shadow-lg: 0 30px 70px rgba(0,0,0,0.5);

  /* — Motion — */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 0.4s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-left: var(--rail);
  transition: background-color 0.5s ease, color 0.35s ease;
}

img, svg { max-width: 100%; }
img { display: block; }
h1, h2 { overflow-wrap: break-word; }

::selection { background: var(--gold); color: var(--ink); }

/* Focus (keyboard only) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: var(--rail); top: -60px;
  z-index: 300;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 20px;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--wire); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ============================================================
   BLUEPRINT ATMOSPHERE
   ============================================================ */
.geo-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 60% 0%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 120% 90% at 60% 0%, #000 40%, transparent 100%);
}
/* faint plot-corner marks in the ground */
.geo-circles { display: none; }

/* — Left margin rail: the sheet edge — */
.sheet-rail {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--rail);
  z-index: 6;
  pointer-events: none;
  border-right: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--ink), var(--ink-1));
}
.sheet-rail::before {
  /* ruler ticks */
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 7px;
  background-image: repeating-linear-gradient(
    to bottom, var(--hairline) 0 1px, transparent 1px 46px);
}
.sheet-rail .rail-mark {
  position: absolute;
  top: 96px; left: 0; right: 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  color: var(--gold);
}
.sheet-rail .rail-label {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ============================================================
   TYPOGRAPHY PRIMITIVES
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  font-optical-sizing: auto;
}

strong { font-weight: 600; color: var(--gold-bright); }
em { font-style: italic; color: var(--gold-bright); }

/* Monospace eyebrow / annotation */
.mono-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tk-mono);
  text-transform: uppercase;
  color: var(--gold);
}
.mono-tag::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

/* Section header — left-aligned, indexed, hairline to the edge */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 1.4rem;
  row-gap: 0.4rem;
  margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.sec-index {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 0.5rem;
  white-space: nowrap;
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.sec-rule {
  grid-column: 2;
  height: 1px;
  background: linear-gradient(90deg, var(--hairline-2), transparent 78%);
  margin-top: 0.9rem;
}
.section-desc {
  grid-column: 2;
  color: var(--text-mut);
  max-width: 60ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* legacy divider element removed from markup; hide if present */
.section-divider { display: none; }

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
section {
  position: relative;
  padding: var(--sec-y) var(--pad-x);
}
section > * { position: relative; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem calc(var(--pad-x)) 1rem calc(var(--rail) + 1.4rem);
  background: rgba(7,11,20,0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hairline);
  transition: padding 0.4s var(--ease), background-color 0.4s ease, border-color 0.4s ease;
}
header.scrolled {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  background: rgba(7,11,20,0.94);
  border-bottom-color: var(--hairline-2);
  box-shadow: var(--shadow-sm);
}

.logo-container { display: flex; align-items: center; gap: 12px; }
.logo-container img.brand-mark {
  height: 40px; width: auto;
  filter: drop-shadow(0 2px 8px rgba(216,178,74,0.28));
  transition: transform 0.5s var(--ease);
}
.logo-container:hover img.brand-mark { transform: rotate(-4deg) scale(1.05); }
.logo-text h2 {
  font-family: var(--f-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text);
}
.logo-text span {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
}

nav { display: flex; align-items: center; gap: 1.9rem; }
nav a {
  position: relative;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mut);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.3s var(--ease);
}
nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }

.header-controls { display: flex; align-items: center; gap: 0.7rem; }

/* Botão hambúrguer — só aparece no mobile (via media query) */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  background: var(--panel);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s var(--ease);
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle-bar {
  display: block;
  width: 19px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
body.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.theme-toggle {
  width: 38px; height: 38px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  background: var(--panel);
  color: var(--gold);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s ease;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-bright); }
.theme-icon { display: none; }
.theme-icon-sun { display: inline-flex; }
body.light .theme-icon-sun { display: none; }
body.light .theme-icon-moon { display: inline-flex; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-secondary {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 15px 30px;
  border-radius: var(--r-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-deep) 130%);
  color: #1a1305;
  border: 1px solid var(--gold-bright);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(216,178,74,0.22), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary::after {
  /* signal sweep */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: translateX(-130%) skewX(-18deg);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(216,178,74,0.36), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-primary:hover::after { transform: translateX(130%) skewX(-18deg); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(216,178,74,0.28), inset 0 1px 0 rgba(255,255,255,0.35); }
.btn-secondary {
  background: rgba(216, 178, 74, 0.035);
  color: var(--text);
  border: 1px solid var(--hairline-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.btn-secondary:hover {
  background: var(--gold-wash);
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: translateY(-2px);
}
.btn-secondary:active { transform: translateY(0); }

/* seta que avança no hover (usada nos CTAs do hero) */
.btn-arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow { transform: translateX(4px); }

/* ============================================================
   HERO — thesis + live schematic
   ============================================================ */
#hero {
  position: relative;      /* ancora o vídeo de fundo + permite o overflow cortar o excesso */
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;   /* empacota conteúdo + painel juntos, centrados como bloco */
  text-align: center;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  padding-top: clamp(7rem, 14vh, 10rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  overflow: hidden;
}

/* Vídeo de fundo do hero (adicionado a pedido). Overlay usa var(--ink),
   então ground/legibilidade acompanham o tema (escuro/pergaminho).
   Superdimensionado (130%) p/ poder deslizar com o scroll sem revelar borda. */
.hero-video {
  position: absolute;
  left: 0;
  top: -15%;
  width: 100%;
  height: 130%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* scrim equilibrado p/ texto centralizado: escurece topo/base + vinheta */
  background:
    linear-gradient(180deg, rgba(7,11,20,0.78) 0%, rgba(7,11,20,0.42) 34%, rgba(7,11,20,0.66) 100%),
    radial-gradient(ellipse 82% 62% at 50% 42%, transparent 42%, rgba(7,11,20,0.6) 100%);
}
#hero > .hero-content,
#hero > .hero-showcase,
#hero > .scroll-cue { z-index: 2; }
.hero-content { max-width: 760px; margin: 0 auto; }
/* legibilidade sobre o vídeo: sombra sutil nos textos (não nos botões/chips) */
.hero-eyebrow, .hero-content h1, .slogan, .hero-lead {
  text-shadow: 0 1px 22px rgba(7,11,20,0.65), 0 1px 3px rgba(7,11,20,0.5);
}
body.light .hero-eyebrow,
body.light .hero-content h1,
body.light .slogan,
body.light .hero-lead {
  text-shadow: 0 1px 20px rgba(242,236,221,0.85), 0 1px 3px rgba(242,236,221,0.7);
}
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero-content h1 {
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.0;
  margin-bottom: 1.5rem;
}
.hero-content h1 .reveal-word { display: inline; }
.gold-text { color: var(--gold); }

/* Typewriter cursor (motion adaptado do "Mainframe") */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.animate-blink { animation: blink 1s step-end infinite; }
.tw-cursor {
  display: inline-block;
  width: 3px;
  height: 0.86em;
  margin-left: 5px;
  background: var(--gold);
  vertical-align: -0.04em;
}
.slogan {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: var(--tk-mono);
  text-transform: uppercase;
  color: var(--text-mut);
  margin-bottom: 1.3rem;
}
.hero-lead {
  color: var(--text-mut);
  font-size: var(--fs-lead);
  line-height: 1.65;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.2rem;
}
.cta-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.4rem; }
.hero-trust {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mut);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 7px 12px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.trust-chip:hover { border-color: var(--hairline-2); color: var(--text); }
.trust-chip strong { color: var(--gold); font-weight: 600; }
.trust-chip i { font-style: normal; color: var(--emerald); }

/* — Hero showcase: painel que cicla os 3 serviços (substitui o vídeo) — */
.hero-showcase {
  width: 100%;
  max-width: 640px;
  margin: 0.4rem auto 0;
  text-align: left;
}
.showcase-frame {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background:
    radial-gradient(ellipse at 80% 8%, rgba(47,190,143,0.06), transparent 60%),
    var(--panel);
  box-shadow: var(--shadow-md);
  padding: 1.1rem 1.3rem 1.15rem;
  overflow: hidden;
}
.showcase-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 0.8rem;
  margin-bottom: 0.95rem;
  border-bottom: 1px dashed var(--hairline);
}
.showcase-tag { display: inline-flex; align-items: center; gap: 0.55em; color: var(--emerald); }
.showcase-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald); box-shadow: 0 0 8px var(--emerald);
  animation: livePulse 2.4s ease-in-out infinite;
}
.showcase-counter b { color: var(--gold); font-weight: 600; }

.showcase-stage { display: grid; }
.showcase-slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s var(--ease);
  pointer-events: none;
}
.showcase-slide.is-active {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
}
.showcase-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.showcase-slide h3 {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.showcase-slide p {
  color: var(--text-mut);
  font-size: var(--fs-body);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.showcase-slide p:last-child { margin-bottom: 0; }
.showcase-slide strong { color: var(--text); font-weight: 600; }

.showcase-nav {
  display: flex; align-items: center; gap: 0.55rem;
  margin-top: 1.15rem;
}
.showcase-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 1px solid var(--hairline-2);
  background: transparent;
  padding: 0; cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.showcase-dot:hover { border-color: var(--gold); }
.showcase-dot.is-active { background: var(--gold); border-color: var(--gold); transform: scale(1.18); }
.showcase-progress {
  flex: 1;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
  margin-left: 0.45rem;
}
.showcase-progress i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
}
.showcase-progress.run i { animation: scProgress var(--sc-dur, 5.5s) linear forwards; }
@keyframes scProgress { from { width: 0%; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .showcase-slide { transition: opacity 0.2s linear; transform: none; }
  .showcase-progress { display: none; }
}

/* — Schematic frame — */
.hero-schematic {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background:
    radial-gradient(ellipse at 70% 20%, rgba(47,190,143,0.05), transparent 60%),
    var(--panel);
  padding: 1.1rem;
  box-shadow: var(--shadow-md);
  will-change: transform;
}
.hero-schematic .sch-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.2rem 0.4rem 0.9rem;
  border-bottom: 1px dashed var(--hairline);
  margin-bottom: 0.6rem;
}
.hero-schematic .sch-caption .live {
  display: inline-flex; align-items: center; gap: 0.5em;
  color: var(--emerald);
}
.hero-schematic .sch-caption .live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }

.schematic-svg { width: 100%; height: auto; display: block; }

/* schematic parts (driven by .wired on the svg) */
.sch-wire {
  fill: none;
  stroke: var(--wire);
  stroke-width: 1.4;
  stroke-dasharray: var(--len, 400);
  stroke-dashoffset: var(--len, 400);
  transition: stroke-dashoffset 0.9s var(--ease);
}
.schematic-svg.wired .sch-wire { stroke-dashoffset: 0; }
.sch-node {
  fill: var(--panel-2);
  stroke: var(--hairline-2);
  stroke-width: 1;
}
.sch-node-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  fill: var(--text-mut);
}
.sch-node-g { opacity: 0; transition: opacity 0.5s var(--ease); }
.schematic-svg.wired .sch-node-g { opacity: 1; }
.sch-bus { fill: var(--panel-3); stroke: var(--gold); stroke-width: 1.2; }
.sch-bus-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.28em; fill: var(--gold); }
.sch-out { fill: var(--emerald-wash); stroke: var(--emerald); stroke-width: 1.2; }
.sch-out-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; fill: var(--emerald); }
.sch-out-sub { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.04em; fill: var(--text-dim); }
.sch-tick { stroke: var(--hairline); stroke-width: 1; }
.sch-coord { font-family: var(--f-mono); font-size: 8.5px; fill: var(--text-dim); letter-spacing: 0.05em; }

/* emerald signal traveling the connected path */
.sch-signal {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 14 1400;
  stroke-dashoffset: 1400;
  filter: drop-shadow(0 0 4px var(--emerald));
  opacity: 0;
}
.schematic-svg.wired .sch-signal {
  opacity: 1;
  animation: signalFlow 2.6s var(--ease) 1s 3;
}
@keyframes signalFlow {
  from { stroke-dashoffset: 1400; }
  to   { stroke-dashoffset: 0; }
}
.hero-schematic:hover .sch-signal { animation: signalFlow 2.6s var(--ease) 2; }

/* --- schematic v2: arquitetura de integração (mais técnico) --- */
.sch-node-label { font-size: 10px; }
.sch-proto {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
  fill: var(--text-dim);
}
.sch-port, .sch-junction { fill: var(--emerald); }
.sch-led { fill: var(--emerald); }
.sch-bracket { fill: none; stroke: var(--hairline-2); stroke-width: 1.2; }
.sch-bus-tick { stroke: var(--hairline); stroke-width: 1; }
/* robôs caminhando pelas trilhas (substituem os pacotes) */
.bot {
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  filter: drop-shadow(0 0 2px rgba(47,190,143,0.55));
}
.schematic-svg.wired .bot { opacity: 1; }
.bot-torso, .bot-head {
  fill: var(--panel-3);
  stroke: var(--emerald);
  stroke-width: 1;
}
.bot-load { fill: var(--emerald); opacity: 0.9; }
.bot-leg, .bot-ant {
  stroke: var(--emerald);
  stroke-width: 1.3;
  stroke-linecap: round;
  fill: none;
}
.bot-eye { stroke: var(--gold-bright); stroke-width: 1.5; stroke-linecap: round; }
.bot-dot { fill: var(--emerald); }
/* variante dourada: robôs de saída (verdade consolidada) */
.bot-trunk { filter: drop-shadow(0 0 2px rgba(216,178,74,0.6)); }
.bot-trunk .bot-torso, .bot-trunk .bot-head { stroke: var(--gold); }
.bot-trunk .bot-leg, .bot-trunk .bot-ant { stroke: var(--gold); }
.bot-trunk .bot-load, .bot-trunk .bot-dot { fill: var(--gold); }
.bot-trunk .bot-eye { stroke: var(--emerald); }
@media (prefers-reduced-motion: reduce) {
  .bot { display: none; }
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-pill);
  display: flex; justify-content: center; padding-top: 8px;
  z-index: 3;
}
.scroll-cue-dot {
  width: 3px; height: 8px; border-radius: var(--r-pill);
  background: var(--gold);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ============================================================
   STATS — spec readout strip
   ============================================================ */
.stats-section { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}
.stat-item {
  padding: 2rem 1.6rem;
  border-right: 1px solid var(--hairline);
  transition: background-color 0.3s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--panel-2); }
.stat-num {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  display: flex; align-items: baseline; gap: 2px;
}
.stat-suffix { font-size: 0.55em; color: var(--gold-deep); }
.stat-badge-num { color: var(--emerald); }
.stat-label {
  margin-top: 1rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.5;
}
.stat-label small {
  display: block;
  margin-top: 5px;
  font-family: var(--f-body);
  font-size: 0.74rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-dim);
}
.stat-highlight { background: var(--emerald-wash); }
.stat-highlight:hover { background: rgba(47,190,143,0.14); }

/* ============================================================
   ABOUT
   ============================================================ */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  margin-top: 0.6rem;
}
.card-base, .founder-card, .pillar-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s ease;
}
.founder-card { padding: 2rem; }
.founder-card:hover, .pillar-card:hover {
  border-color: var(--hairline-2);
  transform: translateY(-3px);
}
.founder-icon, .pillar-icon {
  width: 52px; height: 52px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  background: var(--gold-wash);
  margin-bottom: 1.4rem;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.founder-icon svg, .pillar-icon svg { width: 26px; height: 26px; }
.founder-card:hover .founder-icon, .pillar-card:hover .pillar-icon {
  color: var(--gold-bright);
  border-color: var(--gold);
}
.founder-card h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.founder-role, .pillar-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.founder-card p, .pillar-card p { color: var(--text-mut); font-size: var(--fs-body); }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.about-item {
  padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  border-left: 2px solid var(--gold);
  background: linear-gradient(90deg, var(--gold-wash), transparent 70%);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.about-item h4 {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.about-item p { color: var(--text-mut); font-size: var(--fs-sm); line-height: 1.65; }

.motto-block {
  position: relative;
  max-width: 720px;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 2.2rem 0 2.2rem 2rem;
  border-left: 2px solid var(--gold);
}
.motto-quote {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.9rem;
  text-wrap: balance;
}
.motto-block p { color: var(--text-mut); max-width: 60ch; font-size: var(--fs-body); line-height: 1.7; }

/* ============================================================
   SERVICES + TECH
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 0.6rem;
}
.pillar-card { padding: 2.2rem 1.9rem; }
.pillar-card::before {
  /* mono index tab in the corner */
  content: attr(data-idx);
  position: absolute;
  top: 1rem; right: 1.1rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.pillar-card h3 { font-size: var(--fs-h3); margin: 1.2rem 0 0.6rem; }
.pillar-card p { margin-top: 0.8rem; font-size: var(--fs-sm); }
.pillar-card p:first-of-type { margin-top: 1rem; }

.tech-integration { margin-top: clamp(3rem, 6vw, 5rem); }
.tech-integration > h3 {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--hairline);
  margin-bottom: 1.6rem;
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.tech-item {
  padding: 1.5rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tech-item:hover { border-color: var(--hairline-2); transform: translateY(-3px); }
.tech-logo {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 1.5rem; font-weight: 600;
  color: var(--gold);
  background: linear-gradient(180deg, var(--panel-2), var(--panel-3));
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 2px 8px rgba(0,0,0,0.25);
  margin-bottom: 1rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tech-item:hover .tech-logo {
  border-color: var(--gold);
  color: var(--gold-bright);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 4px 14px var(--gold-wash);
}
.tech-item h4 {
  font-family: var(--f-body);
  font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}
.tech-item p { color: var(--text-mut); font-size: 0.76rem; line-height: 1.55; }

/* Marcas das plataformas — parede de logos monocromática.
   TOTVS = SVG oficial recolorido via mask; demais = wordmark de texto. */
.tech-mark {
  display: inline-flex;
  align-items: center;
  height: 22px;
  margin-bottom: 0.9rem;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.tech-mark--word {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.tech-mark--totvs {
  width: 78px;
  background-color: currentColor;
  -webkit-mask: url("assets/logos/totvs.svg") left center / contain no-repeat;
          mask: url("assets/logos/totvs.svg") left center / contain no-repeat;
}
.tech-item:hover .tech-mark { color: var(--gold-bright); }
.tech-sub {
  display: block;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* ============================================================
   METHOD TIMELINE (a real sequence)
   ============================================================ */
.method-section .timeline {
  position: relative;
  max-width: 760px;
  margin-top: 0.6rem;
  padding-left: 62px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--hairline-2);
}
.timeline-progress {
  position: absolute;
  left: 20px; top: 6px;
  width: 1px; height: 0%;
  background: linear-gradient(180deg, var(--gold), var(--emerald));
  transition: height 0.2s linear;
}
.timeline-step { position: relative; padding-bottom: 2.6rem; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: -62px; top: -3px;
  width: 42px; height: 42px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--gold);
  z-index: 2;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.timeline-step.is-visible .timeline-marker {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.timeline-body h3 { font-size: var(--fs-h3); color: var(--text); margin-bottom: 0.4rem; }
.timeline-body p { color: var(--text-mut); font-size: var(--fs-body); max-width: 56ch; }

/* ============================================================
   FOUNDING CLIENT — emerald "open slot" panel
   ============================================================ */
.founding-card {
  position: relative;
  max-width: 1000px;
  border: 1px solid var(--hairline-2);
  border-left: 3px solid var(--emerald);
  border-radius: var(--r-md);
  background:
    radial-gradient(ellipse at 92% 0%, var(--emerald-wash), transparent 55%),
    var(--panel);
  padding: clamp(2rem, 4vw, 3.4rem);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.founding-ribbon {
  position: absolute;
  top: 1.6rem; right: 1.6rem;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  border: 1px solid var(--emerald);
  border-radius: var(--r-sm);
  padding: 5px 11px;
}
.founding-eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 1rem;
}
.founding-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  max-width: 22ch;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.founding-content > p { color: var(--text-mut); max-width: 62ch; margin-bottom: 1.8rem; font-size: var(--fs-body); }
.founding-benefits { list-style: none; margin-bottom: 2rem; }
.founding-benefits li {
  display: block;
  position: relative;
  padding-left: 1.7rem;
  color: var(--text); font-size: var(--fs-body);
  line-height: 1.55;
  margin-bottom: 0.9rem;
}
.founding-benefits i {
  position: absolute; left: 0; top: 0;
  font-style: normal; color: var(--emerald);
}
.product-card { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ============================================================
   DIAGNOSE — engineering console
   ============================================================ */
.diagnose-box {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-width: 1000px;
  margin-top: 0.6rem;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-md);
}
.diagnose-left { padding: clamp(1.6rem, 3vw, 2.6rem); border-right: 1px solid var(--hairline); }
.diagnose-right { padding: clamp(1.6rem, 3vw, 2.6rem); background: var(--ink-1); display: flex; flex-direction: column; }
.diagnose-subtitle {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--hairline);
}
.erp-selection { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; margin-bottom: 1.8rem; }
.checkbox-card {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s ease;
}
.checkbox-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.custom-checkbox {
  width: 15px; height: 15px;
  border: 1px solid var(--text-dim);
  border-radius: var(--r-xs);
  position: relative;
  flex-shrink: 0;
  transition: background-color 0.2s, border-color 0.2s;
}
.checkbox-card input:checked ~ .custom-checkbox { background: var(--gold); border-color: var(--gold); }
.checkbox-card input:checked ~ .custom-checkbox::after {
  content: '';
  position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px;
  border: solid var(--ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-card span { font-family: var(--f-mono); font-size: 0.76rem; color: var(--text); }
.checkbox-card:hover { border-color: var(--hairline-2); }
.checkbox-card.selected { border-color: var(--gold); background: var(--gold-wash); }
/* spring-pop do check ao selecionar (motion adaptado do "Mainframe") */
.checkbox-card.selected .custom-checkbox,
.problem-option.selected { animation: pillPop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pillPop {
  0%   { transform: scale(0.8); }
  55%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

.problems-selection { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.8rem; }
.problem-option {
  display: flex; align-items: center; gap: 12px;
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 10px 13px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background-color 0.3s ease;
}
.problem-option input { accent-color: var(--gold); }
.problem-option span { font-size: 0.8rem; color: var(--text-mut); }
.problem-option:hover { border-color: var(--hairline-2); }
.problem-option.selected { border-color: var(--gold); background: var(--gold-wash); }
.problem-option.selected span { color: var(--text); }

/* Banner de status do diagnóstico (motion adaptado do "Mainframe") */
.diag-status { margin: 1.4rem 0 0; }
.diag-hint {
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  font-style: italic;
  letter-spacing: 0.04em;
  color: var(--text-mut);
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}
.diag-status.has-sel .diag-hint { opacity: 0; height: 0; overflow: hidden; }
.diag-banner-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.diag-status.has-sel .diag-banner-wrap { grid-template-rows: 1fr; }
.diag-banner-inner { overflow: hidden; }
.diag-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.4rem;
  padding: 0.9rem 1.1rem;
  background: var(--emerald-wash);
  border: 1px solid var(--emerald);
  border-radius: var(--r-md);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s var(--ease) 0.08s, transform 0.4s var(--ease) 0.08s;
}
.diag-status.has-sel .diag-banner { opacity: 1; transform: translateY(0); }
.diag-banner-text {
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.03em;
  color: var(--text-mut);
  line-height: 1.5;
}
.diag-banner-text strong { color: var(--emerald); font-weight: 600; }
.diag-go {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.diag-go:hover { gap: 0.9em; color: var(--gold-bright); }

.console-output {
  flex-grow: 1;
  background: #04070d;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 1.4rem;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--emerald);
  overflow-y: auto;
  min-height: 250px;
  max-height: 350px;
  position: relative;
  line-height: 1.55;
}
.console-output::before {
  content: 'console · diagnóstico';
  position: absolute; top: 6px; right: 12px;
  font-size: 0.58rem; letter-spacing: 0.1em;
  color: var(--text-dim);
}
.console-text { white-space: pre-wrap; margin-top: 12px; color: var(--text); }
.console-welcome { color: var(--text-dim); }
.console-highlight { color: var(--gold); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 780px; margin-top: 0.6rem; display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.3s var(--ease);
}
.faq-item.open { border-color: var(--hairline-2); }
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 1.3rem 0.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  text-align: left;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem; font-weight: 500;
  transition: color 0.3s var(--ease);
}
.faq-question:hover { color: var(--gold-bright); }
.faq-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-xs);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 1.1rem; line-height: 1;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(135deg); background: var(--gold); color: var(--ink); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-answer p { padding: 0 0.2rem 1.4rem; color: var(--text-mut); font-size: var(--fs-sm); line-height: 1.7; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 0.6rem;
}
.contact-info h3 { font-size: var(--fs-h3); color: var(--text); margin-bottom: 1.2rem; }
.contact-info > p { color: var(--text-mut); margin-bottom: 2rem; font-size: var(--fs-body); }
.info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  background: var(--gold-wash);
}
.info-icon svg { width: 22px; height: 22px; }
.info-content h4 {
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text); margin-bottom: 0.25rem;
}
.info-content p { margin: 0; color: var(--text-mut); font-size: var(--fs-sm); }

.contact-form {
  background: var(--panel);
  border: 1px solid var(--hairline-2);
  border-radius: var(--r-md);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 1.3rem; }
.form-group label {
  font-family: var(--f-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mut);
}
.form-group input, .form-group textarea {
  background: var(--panel-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 0.92rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-wash);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group textarea { resize: vertical; min-height: 120px; }

.guarantee-badge {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.6rem;
  border: 1px solid var(--hairline-2);
  border-left: 3px solid var(--emerald);
  border-radius: var(--r-sm);
  background: var(--emerald-wash);
}
.guarantee-seal {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--emerald);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
}
.guarantee-badge strong { display: block; color: var(--emerald); font-size: 0.86rem; margin-bottom: 2px; }
.guarantee-badge span { color: var(--text-mut); font-size: 0.78rem; }

.form-success-msg {
  color: var(--emerald);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  margin-top: 12px;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink-1);
  border-top: 1px solid var(--hairline);
  padding: clamp(3rem, 6vw, 4rem) var(--pad-x) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  margin-bottom: 3rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-logo h2 { color: var(--text); }
.footer-desc { color: var(--text-mut); font-size: var(--fs-sm); max-width: 340px; }
.footer-links h4, .footer-contact h4 {
  font-family: var(--f-mono);
  font-size: var(--fs-mono);
  font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.7rem; }
.footer-links a {
  color: var(--text-mut);
  text-decoration: none;
  font-size: var(--fs-sm);
  transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--gold); }
.footer-contact p { color: var(--text-mut); font-size: var(--fs-sm); margin-bottom: 0.7rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--hairline);
  padding-top: 1.8rem;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  gap: 1rem;
  flex-wrap: wrap;
}
.masonic-motto {
  font-family: var(--f-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: var(--fs-mono);
}

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px; width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--emerald), var(--gold));
  transition: width 0.1s linear;
}

/* ============================================================
   MOTION REVEAL GATING (JS present → hidden until animated)
   ============================================================ */
.js [data-reveal] > *,
.js #hero [data-hero] { opacity: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --rail: 0px; }
  body { padding-left: 0; }
  .sheet-rail { display: none; }
  .skip-link { left: 0; }
  header { padding-left: var(--pad-x); }
}
@media (max-width: 960px) {
  #hero { gap: clamp(1.4rem, 5vw, 2.2rem); min-height: 100svh; padding-top: 7rem; }
  .hero-content { max-width: none; }
  .contact-container, .diagnose-box, .footer-top { grid-template-columns: 1fr; }
  .diagnose-left { border-right: none; border-bottom: 1px solid var(--hairline); }
  .pillars-grid, .about-pillars, .founders-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item { border-bottom: 1px solid var(--hairline); }

  /* Navegação mobile: hambúrguer + dropdown deslizante */
  .nav-toggle { display: inline-flex; }
  /* mantém logo + controles acima do dropdown (nav é filho do header) */
  .logo-container, .header-controls { position: relative; z-index: 95; }
  nav#primary-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5.5rem var(--pad-x) 1.4rem;
    background: rgba(7,11,20,0.97);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
            backdrop-filter: blur(16px) saturate(1.2);
    border-bottom: 1px solid var(--hairline-2);
    box-shadow: var(--shadow-md);
    transform: translateY(-102%);
    transition: transform 0.42s var(--ease);
    z-index: 90;
  }
  body.nav-open nav#primary-nav { transform: translateY(0); }
  nav#primary-nav a {
    font-size: 0.82rem;
    padding: 1rem 0.2rem;
    border-bottom: 1px solid var(--hairline);
  }
  nav#primary-nav a::after { display: none; }
  nav#primary-nav a:last-child { border-bottom: none; }
  body.light nav#primary-nav { background: rgba(242,236,221,0.98); }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .tech-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; }
  .cta-group { flex-direction: column; align-items: stretch; }
  .cta-group .btn-primary, .cta-group .btn-secondary { justify-content: center; }
  .section-head { grid-template-columns: 1fr; }
  .sec-index { padding-top: 0; }
  .sec-rule, .section-desc { grid-column: 1; }
  .scroll-cue { display: none; }
  /* painel de serviços: menos padding e título menor no mobile */
  .showcase-frame { padding: 0.95rem 1rem 1rem; }
  .showcase-slide h3 { font-size: 1.32rem; }
  .hero-trust { gap: 0.5rem; }
  .trust-chip { width: 100%; justify-content: center; }
}
@media (max-width: 430px) {
  /* checkboxes de ERP empilhados p/ conforto de toque */
  .erp-selection { grid-template-columns: 1fr; }
  .checkbox-card[style*="span 2"] { grid-column: 1 !important; }
  /* título do hero: quebra mais limpa */
  #hero h1 { font-size: clamp(2.1rem, 8.5vw, 2.6rem); }
  /* alvos de toque confortáveis nos links do footer/faq */
  nav#primary-nav a { padding: 1.05rem 0.2rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] > *, [data-reveal-child], .hero-content [data-hero], .hero-schematic[data-hero] {
    opacity: 1 !important; transform: none !important;
  }
  .sch-wire { stroke-dashoffset: 0 !important; }
  .sch-node-g { opacity: 1 !important; }
  .sch-signal { opacity: 0 !important; }
  .scroll-cue { display: none !important; }
}

/* ============================================================
   LIGHT THEME — "Illuminated Manuscript"
   Warm parchment ground; blueprint lines become sepia;
   gold deepens to burnished ink, emerald stays the live state.
   ============================================================ */
body.light {
  color-scheme: light;
  --ink:      #f2ecdd;
  --ink-1:    #ece4d1;
  --panel:    #fbf7ee;
  --panel-2:  #f5eede;
  --panel-3:  #efe6d1;
  --hairline:   rgba(120,92,20,0.20);
  --hairline-2: rgba(120,92,20,0.34);
  --grid-line:  rgba(120,92,20,0.08);
  --wire:       #ad9557;
  --wire-soft:  rgba(120,92,20,0.40);
  --gold:        #8a6d18;
  --gold-bright: #a8842a;
  --gold-deep:   #6f5512;
  --gold-wash:   rgba(138,109,24,0.10);
  --emerald:     #0f766e;
  --emerald-deep:#0c5240;
  --emerald-wash:rgba(15,118,110,0.10);
  --text:     #241f16;
  --text-mut: #6a6152;
  --text-dim: #8a8272;
  --shadow-sm: 0 2px 10px rgba(90,70,20,0.10);
  --shadow-md: 0 18px 44px rgba(90,70,20,0.12);
  --shadow-lg: 0 30px 70px rgba(90,70,20,0.14);
}
body.light header { background: rgba(242,236,221,0.78); }
body.light header.scrolled { background: rgba(238,231,213,0.95); }
body.light .console-output {
  /* a terminal reads best dark, even on parchment */
  background: #0c1322;
  border-color: rgba(120,92,20,0.25);
}
body.light .console-text { color: #eef2f8; }
body.light .btn-primary { color: #fffdf6; }
body.light .guarantee-seal { color: #fffdf6; }
body.light .timeline-step.is-visible .timeline-marker { color: #fffdf6; }
body.light .sch-bus { fill: #f6efdc; }
body.light .sch-node { fill: #f6efdc; }
body.light .bot-torso, body.light .bot-head { fill: #f6efdc; }
/* overlay do vídeo no tema claro: scrim pergaminho (mantém texto escuro legível) */
body.light .hero-video-overlay {
  background:
    linear-gradient(180deg, rgba(242,236,221,0.82) 0%, rgba(242,236,221,0.5) 34%, rgba(242,236,221,0.72) 100%),
    radial-gradient(ellipse 82% 62% at 50% 42%, transparent 42%, rgba(242,236,221,0.66) 100%);
}
