/* Layout: identidade "aço e circuito" tirada do emblema. Hero escuro com trilhas de circuito animadas e o emblema em destaque,
   corpo em bento grid, portfólio por domínio, faixa vermelha (olhos do touro) só para incidentes. Dark-first, com tema claro. */
:root {
  --bg: #030A17;
  --surface: #071328;
  --surface-2: #0B1B36;
  --line: #16294A;
  --line-strong: #24406E;
  --ink: #E8EEF7;
  --muted: #9CABC3;
  --brand: #3B8BFF;
  --cyan: #22D3EE;
  --cta: #22D3EE;
  --cta-hover: #67E8F9;
  --on-cta: #021020;
  --red: #FF4747;
  --ok: #34D399;
  --danger: #FF7A7A;
  --chip-bg: #0B1B36;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 18px 48px -18px rgba(34, 211, 238, 0.35);

  /* Faixas de operação: escuras nos dois temas */
  --ops-bg: #020814;
  --ops-surface: #06122A;
  --ops-line: #15294D;
  --ops-ink: #EAF0F8;
  --ops-muted: #9DACC6;
  --ops-cyan: #22D3EE;
  --silver: linear-gradient(180deg, #FFFFFF 0%, #DCE3EC 42%, #8E9AAB 52%, #C9D2DD 70%, #F4F7FA 100%);

  --font-display: "Saira", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.75rem, 1.25rem + 1.9vw, 2.625rem);
  --step-4: clamp(2.375rem, 1.4rem + 4vw, 4.5rem);

  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --wrap: 1200px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F2F5FA;
    --surface: #FFFFFF;
    --surface-2: #E9EEF6;
    --line: #D6DEEA;
    --line-strong: #B9C6D9;
    --ink: #07142B;
    --muted: #46546C;
    --brand: #0B5FE0;
    --cyan: #0E7490;
    --cta: #0E7490;
    --cta-hover: #0B5F76;
    --on-cta: #FFFFFF;
    --red: #D92D2D;
    --ok: #0F8A5F;
    --danger: #C42B2B;
    --chip-bg: #FFFFFF;
    --shadow: 0 1px 2px rgba(7, 20, 43, 0.05), 0 16px 32px -20px rgba(7, 20, 43, 0.25);
    --glow: 0 0 0 1px rgba(14, 116, 144, 0.4), 0 18px 40px -18px rgba(11, 95, 224, 0.35);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #F2F5FA;
  --surface: #FFFFFF;
  --surface-2: #E9EEF6;
  --line: #D6DEEA;
  --line-strong: #B9C6D9;
  --ink: #07142B;
  --muted: #46546C;
  --brand: #0B5FE0;
  --cyan: #0E7490;
  --cta: #0E7490;
  --cta-hover: #0B5F76;
  --on-cta: #FFFFFF;
  --red: #D92D2D;
  --ok: #0F8A5F;
  --danger: #C42B2B;
  --chip-bg: #FFFFFF;
  --shadow: 0 1px 2px rgba(7, 20, 43, 0.05), 0 16px 32px -20px rgba(7, 20, 43, 0.25);
  --glow: 0 0 0 1px rgba(14, 116, 144, 0.4), 0 18px 40px -18px rgba(11, 95, 224, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--ops-bg);
}
body.menu-open { overflow: hidden; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img, svg, canvas { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--cta); color: var(--on-cta);
  padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip:focus { top: calc(16px + env(safe-area-inset-top, 0px)); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) {
  .wrap {
    max-width: calc(var(--wrap) + 64px);
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 500;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.display {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section-head { display: grid; gap: 14px; max-width: 48rem; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700; font-size: var(--step-0); line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 180ms var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-cta { background: var(--cta); color: var(--on-cta); }
.btn-cta:hover { background: var(--cta-hover); box-shadow: var(--glow); }
.btn-ops { background: #22D3EE; color: #021020; }
.btn-ops:hover { background: #67E8F9; box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.5), 0 18px 48px -14px rgba(34, 211, 238, 0.55); }
.btn-ghost { background: rgba(255, 255, 255, 0.02); color: var(--ops-ink); border-color: var(--ops-line); }
.btn-ghost:hover { border-color: #22D3EE; background: rgba(34, 211, 238, 0.06); }
.btn-red { background: #FF4747; color: #1A0303; }
.btn-red:hover { background: #FF6B6B; box-shadow: 0 18px 44px -14px rgba(255, 71, 71, 0.6); }

/* Cabeçalho */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(2, 8, 20, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--ops-line);
  color: var(--ops-ink);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; }
.brand img { width: 46px; height: 46px; object-fit: contain; flex: none; filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.25)); }
.brand-text { display: grid; line-height: 1; gap: 4px; }
.brand-name {
  font-family: var(--font-display); font-stretch: 125%; font-weight: 800;
  font-size: 1.125rem; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ops-cyan); }
.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--ops-muted); text-decoration: none; font-weight: 600; font-size: 0.9375rem;
  transition: color 160ms var(--ease);
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 2px; border-radius: 2px;
  background: #22D3EE; transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--ease);
}
.nav-desktop a:hover { color: var(--ops-ink); }
.nav-desktop a:hover::after { transform: scaleX(1); }
.header-cta { display: none; }
.menu-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border-radius: var(--radius-sm); border: 1px solid var(--ops-line);
  background: transparent; color: var(--ops-ink); cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.menu-btn:hover { border-color: #22D3EE; background: rgba(34, 211, 238, 0.06); }
.menu-btn svg { width: 22px; height: 22px; }
@media (min-width: 1080px) {
  .nav-desktop { display: block; }
  .header-cta { display: inline-flex; min-height: 44px; padding: 10px 18px; }
  .menu-btn { display: none; }
}

/* Menu mobile */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(1, 4, 10, 0.65);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 260ms var(--ease);
}
.drawer-backdrop.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80;
  width: min(88vw, 380px);
  background: var(--ops-bg); color: var(--ops-ink);
  border-left: 1px solid var(--ops-line);
  padding: calc(16px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  display: flex; flex-direction: column; gap: 24px;
  transform: translateX(100%);
  transition: transform 300ms var(--ease);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 12px;
  border-radius: var(--radius-sm); text-decoration: none;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1.25rem; text-transform: uppercase;
  transition: background-color 160ms var(--ease), color 160ms var(--ease);
}
.drawer nav a::after { content: "→"; color: #22D3EE; font-family: var(--font-body); }
.drawer nav a:hover { background: var(--ops-surface); color: #22D3EE; }
.drawer .btn { width: 100%; }
.drawer-contact { margin-top: auto; font-family: var(--font-mono); font-size: var(--step--1); color: var(--ops-muted); display: grid; gap: 4px; }

/* Hero */
.hero {
  position: relative;
  background: radial-gradient(120% 90% at 75% 20%, #0A2350 0%, var(--ops-bg) 55%);
  color: var(--ops-ink);
  overflow: hidden;
  isolation: isolate;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--ops-bg));
}
.hero-grid { display: grid; gap: 32px; padding-block: 40px 56px; align-items: center; }
.hero-copy { display: grid; gap: 24px; align-content: start; min-width: 0; order: 2; }
.status {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--ops-muted);
  border: 1px solid var(--ops-line); background: rgba(6, 18, 42, 0.6); border-radius: 999px; padding: 7px 14px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; animation: ping 2.2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.hero h1 { font-size: var(--step-4); }
.hero h1 .silver { background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline; }
.hero h1 .glow { color: #22D3EE; text-shadow: 0 0 28px rgba(34, 211, 238, 0.45); }
.hero-lede { color: var(--ops-muted); font-size: var(--step-1); max-width: 52ch; }
.hero-lede strong { color: var(--ops-ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 210px; }
@media (min-width: 640px) { .hero-actions .btn { flex: 0 0 auto; } }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ops-line); padding-top: 20px; margin: 0; }
.hero-proof div { display: flex; flex-direction: column; gap: 4px; padding-right: 12px; min-width: 0; }
.hero-proof div + div { padding-left: 16px; border-left: 1px solid var(--ops-line); }
.hero-proof dt { order: 2; font-size: var(--step--1); color: var(--ops-muted); line-height: 1.35; }
.hero-proof dd { order: 1; margin: 0; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem); line-height: 1; color: var(--ops-ink); font-variant-numeric: tabular-nums; }

.emblem {
  order: 1;
  position: relative; justify-self: center;
  width: min(72vw, 300px); aspect-ratio: 1; max-width: 100%;
  display: grid; place-items: center;
}
.emblem::before {
  content: ""; position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.35) 0%, rgba(59, 139, 255, 0.18) 40%, transparent 70%);
  filter: blur(18px);
  animation: breathe 5s ease-in-out infinite;
}
.emblem .ring {
  position: absolute; inset: -4%; border-radius: 50%;
  border: 1px dashed rgba(34, 211, 238, 0.35);
  animation: spin 60s linear infinite;
}
.emblem .ring.r2 { inset: -11%; border-style: solid; border-color: rgba(59, 139, 255, 0.16); border-top-color: rgba(34, 211, 238, 0.7); animation-duration: 14s; }
.emblem img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.6)); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: 0.75; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1.03); } }
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; padding-block: 72px 96px; }
  .hero-copy { order: 1; }
  .emblem { order: 2; width: 100%; max-width: 440px; }
}

/* Faixa de tecnologias */
.ticker { background: var(--ops-bg); border-block: 1px solid var(--ops-line); overflow: hidden; color: var(--ops-muted); }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li {
  display: inline-flex; align-items: center; gap: 14px; padding: 16px 22px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 700; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
.ticker li::after { content: ""; width: 6px; height: 6px; background: #22D3EE; transform: rotate(45deg); opacity: 0.7; margin-left: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Seções */
.section { padding-block: 72px; }
@media (min-width: 1024px) { .section { padding-block: 112px; } }

/* Como atuamos: trilha de circuito ligando as etapas */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; position: relative; counter-reset: step; }
.step {
  position: relative; display: grid; gap: 12px; align-content: start; min-width: 0;
  padding: 28px 24px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  counter-increment: step;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}
.step:hover { border-color: var(--cyan); transform: translateY(-3px); }
.step-num {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan);
}
.step-num::before {
  content: counter(step, decimal-leading-zero);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--cyan); color: var(--ink); font-weight: 500; letter-spacing: 0;
  background: var(--surface-2);
}
.step h3 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: var(--step-2); text-transform: uppercase; line-height: 1.15; }
.step p { color: var(--muted); }
.step .deliver { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink); border-top: 1px dashed var(--line-strong); padding-top: 12px; margin-top: 4px; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 46px; height: 2px; z-index: 0;
    background: linear-gradient(90deg, transparent, var(--cyan) 15%, var(--brand) 85%, transparent);
    opacity: 0.6;
  }
  .step { z-index: 1; }
}

/* Portfólio em bento */
.portfolio { background: var(--surface-2); border-block: 1px solid var(--line); }
.portfolio-top { display: grid; gap: 28px; }
@media (min-width: 1024px) { .portfolio-top { grid-template-columns: 1fr auto; align-items: end; } }
.filters {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-inline: -16px; padding-inline: 16px;
}
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; } }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--chip-bg); color: var(--ink);
  font-weight: 600; font-size: 0.9375rem; cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.chip:hover { border-color: var(--cyan); }
.chip[aria-pressed="true"] { background: var(--cta); color: var(--on-cta); border-color: var(--cta); box-shadow: var(--glow); }
.chip .count { font-family: var(--font-mono); font-size: 0.75rem; opacity: 0.75; font-variant-numeric: tabular-nums; }
.bento { display: grid; gap: 16px; margin: 36px 0 0; padding: 0; list-style: none; grid-auto-flow: dense; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 240ms var(--ease), border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--brand));
  transform: scaleX(0); transform-origin: left; transition: transform 320ms var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--glow); }
.tile:hover::before { transform: scaleX(1); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none;
  color: var(--cyan); background: var(--surface-2); border: 1px solid var(--line);
}
.tile-icon svg { width: 22px; height: 22px; }
.tile-domain { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-align: right; }
.tile h3 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: var(--step-2); line-height: 1.12; text-transform: uppercase; overflow-wrap: anywhere; }
.tile .fullname { font-size: 0.9375rem; color: var(--cyan); font-weight: 600; margin-top: -6px; }
.tile .summary { color: var(--muted); }
.tile details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 6px; }
.tile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; font-weight: 700; font-size: 0.9375rem; color: var(--ink); border-radius: 4px;
  transition: color 160ms var(--ease);
}
.tile summary::-webkit-details-marker { display: none; }
.tile summary svg { width: 18px; height: 18px; color: var(--cyan); transition: transform 220ms var(--ease); }
.tile details[open] summary svg { transform: rotate(45deg); }
.tile summary:hover { color: var(--cyan); }
.tile details p { color: var(--muted); font-size: 0.9375rem; padding-bottom: 4px; }
@media (min-width: 1024px) {
  .tile.feature { grid-column: span 2; padding: 32px; background: linear-gradient(135deg, var(--surface) 40%, var(--surface-2)); }
  .tile.feature h3 { font-size: var(--step-3); }
  .tile.feature .summary { font-size: var(--step-1); max-width: 56ch; }
}

/* Incidentes: faixa vermelha */
.incident { position: relative; background: #0B0306; color: #F7ECEC; overflow: hidden; isolation: isolate; }
.incident::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(255, 71, 71, 0.22), transparent 60%),
    repeating-linear-gradient(-45deg, rgba(255, 71, 71, 0.05) 0 2px, transparent 2px 14px);
}
.incident-grid { display: grid; gap: 40px; padding-block: 72px; }
.incident .eyebrow { color: #FF6B6B; }
.incident h2 { font-size: var(--step-3); }
.incident-copy { display: grid; gap: 20px; align-content: start; min-width: 0; }
.incident-copy > p { color: #D9C3C5; font-size: var(--step-1); max-width: 56ch; }
.incident .btn-ghost { color: #F7ECEC; border-color: rgba(255, 107, 107, 0.35); }
.incident .btn-ghost:hover { border-color: #FF6B6B; background: rgba(255, 71, 71, 0.08); }
.phases { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
.phase {
  display: grid; grid-template-columns: 1fr; gap: 6px; align-items: start;
  padding: 18px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 107, 107, 0.18);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.phase:hover { border-color: rgba(255, 107, 107, 0.55); background: rgba(255, 71, 71, 0.06); }
.phase .tag { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: #FF8A8A; padding-top: 4px; }
.phase h3 { font-size: var(--step-1); font-weight: 700; }
.phase p { color: #CDB5B8; font-size: 0.9375rem; }
@media (min-width: 640px) { .phase { grid-template-columns: 100px 1fr; gap: 16px; } }
@media (min-width: 1024px) { .incident-grid { grid-template-columns: 1fr 1fr; gap: 72px; padding-block: 112px; } }

/* Conformidade e diferenciais em bento */
.bento-why { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .bento-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bento-why { grid-template-columns: repeat(4, minmax(0, 1fr)); } .bento-why .wide { grid-column: span 2; grid-row: span 2; } }
.why {
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.why b { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: var(--step-2); text-transform: uppercase; line-height: 1.1; }
.why p { color: var(--muted); font-size: 0.9375rem; }
.why .k { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.why.wide {
  justify-content: flex-end; gap: 16px; padding: 32px;
  background: radial-gradient(120% 120% at 100% 0%, #0A2350 0%, #020814 60%);
  border-color: #15294D; color: #EAF0F8; position: relative; overflow: hidden; min-height: 300px;
}
.why.wide img { position: absolute; right: -70px; top: -50px; width: 260px; opacity: 0.12; pointer-events: none; }
.why.wide b { font-size: var(--step-3); position: relative; }
.why.wide p { color: #B7C3D7; font-size: var(--step-1); position: relative; max-width: 44ch; }
.why.wide .k { color: #22D3EE; position: relative; }

/* Contato */
.contact { background: var(--surface-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 32px; margin-top: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 48px; } }
.channels { display: grid; gap: 12px; align-content: start; list-style: none; margin: 0; padding: 0; }
.channel {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0;
  transition: border-color 180ms var(--ease);
}
.channel:hover { border-color: var(--line-strong); }
.channel .ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--cyan); border: 1px solid var(--line); }
.channel .ico svg { width: 20px; height: 20px; }
.channel .label { font-size: var(--step--1); color: var(--muted); }
.channel a { font-weight: 700; font-size: 0.9375rem; text-decoration: none; overflow-wrap: anywhere; }
.channel a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.copy-btn {
  min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  font-size: var(--step--1); font-weight: 700; color: var(--muted);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.copy-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.copy-btn.done { color: var(--ok); border-color: var(--ok); }
.hours { padding: 16px; border-radius: var(--radius); border: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.9375rem; }
.hours strong { color: var(--ink); }

.form {
  display: grid; gap: 16px; padding: 24px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; padding: 32px; } .form .full { grid-column: 1 / -1; } }
.form-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: var(--step-2); text-transform: uppercase; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--cyan); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: var(--step--1); min-height: 1em; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cta); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-actions .btn { flex: 1 1 220px; }
@media (min-width: 640px) { .form-actions .btn { flex: 0 0 auto; } }
.form-status { font-size: 0.9375rem; color: var(--ok); }
.form-status[data-state="error"] { color: var(--danger); }

/* Rodapé */
.site-footer { background: var(--ops-bg); color: var(--ops-muted); border-top: 1px solid var(--ops-line); }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer-about { display: grid; gap: 16px; max-width: 42ch; font-size: 0.9375rem; align-content: start; }
.footer-about img { width: 120px; height: auto; }
.site-footer h3 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ops-ink); font-weight: 500; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer a { text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; transition: color 160ms var(--ease); }
.site-footer a:hover { color: #22D3EE; }
.footer-base { border-top: 1px solid var(--ops-line); padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); font-size: var(--step--1); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(16px + env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #128C4A; color: #FFFFFF;
  box-shadow: 0 10px 30px -8px rgba(18, 140, 74, 0.6);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.wa-float:hover { transform: translateY(-2px) scale(1.05); background: #0E7A3F; }
.wa-float svg { width: 28px; height: 28px; }

/* Abertura em vídeo */
body.intro-active { overflow: hidden; }
.no-intro .intro { display: none; }
.intro {
  position: fixed; inset: 0; z-index: 200;
  background: #000000;
  display: grid; place-items: center;
  opacity: 1; transition: opacity 600ms var(--ease), visibility 600ms;
}
.intro.is-leaving { opacity: 0; visibility: hidden; }
.intro video { width: 100%; height: 100%; object-fit: cover; background: #000000; }
@media (orientation: portrait) { .intro video { object-fit: contain; } }
.intro-ui {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}
.intro-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(2, 8, 20, 0.55); color: #FFFFFF;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-weight: 700; font-size: 0.9375rem; cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}
.intro-btn:hover { border-color: #22D3EE; background: rgba(34, 211, 238, 0.16); }
.intro-btn:active { transform: scale(0.97); }
.intro-btn svg { width: 18px; height: 18px; flex: none; }
.intro-skip { border-color: rgba(34, 211, 238, 0.6); }
.intro-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.12); }
.intro-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22D3EE, #3B8BFF); box-shadow: 0 0 12px rgba(34, 211, 238, 0.8); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ticker-track { transform: none; }
}

/* Páginas internas do WordPress */
.page-main { padding-block: 64px 96px; }
.prose { max-width: 72ch; display: grid; gap: 20px; }
.prose h1 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; text-transform: uppercase; font-size: var(--step-3); line-height: 1.1; }
.prose h2, .prose h3 { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; line-height: 1.2; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--cyan); }
.prose img { height: auto; border-radius: var(--radius-sm); }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.post-list li { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.post-list a { text-decoration: none; }
.post-list a:hover h2 { color: var(--cyan); }
.post-list time { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
