/* ==========================================================================
   Neuralys — neuralys.com.br
   Folha de estilos única. HTML + CSS puro, sem framework e sem build.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Paleta do logo: noite azul-marinho + degradê violeta → azul */
  --bg: #04040f;
  --bg-alt: #07071a;
  --surface: #0c0c1e;
  --surface-2: #121229;
  --surface-3: #1b1b38;
  --line: rgba(190, 190, 255, 0.08);
  --line-2: rgba(190, 190, 255, 0.13);
  --line-3: rgba(190, 190, 255, 0.22);
  --text: #eef0ff;
  --text-2: #aab0cf;
  --text-3: #7d82a6;
  --violet: #8b4dff;
  --blue: #3b82ff;
  --signal: #9a63ff;
  --signal-2: #b690ff;
  --signal-soft: rgba(139, 77, 255, 0.14);
  --signal-line: rgba(154, 99, 255, 0.55);
  --grad: linear-gradient(100deg, #8b4dff 0%, #3b82ff 100%);
  --grad-strong: linear-gradient(100deg, #7a3cff 0%, #1f63ff 100%);
  --steel: #6fa0ff;
  --ok: #5fd39a;
  --err: #ff7b72;
  --ink: #04040f;
  --paper: #f4f3ff;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 68px;
  --section-pad: clamp(80px, 11vw, 136px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.no-scroll {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p, ul, ol, figure, fieldset {
  margin: 0;
}

ul, ol {
  padding: 0;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(139, 77, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--grad-strong);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Tipografia ---------- */
h1, h2, h3 {
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h1 em,
h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.07em;
  letter-spacing: -0.012em;
}

h1 em {
  padding-right: 0.06em;
  background: linear-gradient(95deg, #b18cff 0%, #8b4dff 45%, #3b82ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: transparent;
}

h2 em {
  color: var(--text-2);
}

.lead {
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

.lead strong {
  color: var(--text);
  font-weight: 500;
}

.lead a {
  color: var(--text);
  text-decoration-color: var(--signal-line);
  text-underline-offset: 3px;
}

.lead a:hover {
  text-decoration-color: var(--signal);
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eyebrow-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--signal);
}

.eyebrow-num::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--line-3);
}

.eyebrow--pill {
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(16, 19, 26, 0.7);
  letter-spacing: 0.06em;
  font-size: 0.72rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: live 2.2s ease-out infinite;
}

@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(139, 77, 255, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(139, 77, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 77, 255, 0); }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--grad-strong);
  color: #fff;
  box-shadow: 0 8px 24px -12px rgba(122, 60, 255, 0.8);
  transition: box-shadow 0.25s, transform 0.2s var(--ease), filter 0.25s;
}

.btn-primary:hover {
  box-shadow: 0 10px 32px -8px rgba(122, 60, 255, 0.85), 0 0 0 1px rgba(182, 144, 255, 0.35) inset;
  filter: saturate(1.15);
}

.btn-ghost {
  border-color: var(--line-3);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 0.9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(4, 4, 15, 0.8);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

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

.brand {
  display: inline-flex;
  color: var(--text);
  border-radius: 6px;
}

.logo {
  display: block;
  height: 44px;
  width: auto;
}

@media (max-width: 920px) {
  .site-header .logo {
    height: 38px;
  }
}

@media (max-width: 380px) {
  .site-header .logo {
    height: 34px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

.site-nav ul a {
  position: relative;
  font-size: 0.92rem;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="true"] {
  color: var(--text);
}

.site-nav ul a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--signal);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 21.5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 21.5px;
  transform: rotate(-45deg);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 12px var(--gutter) 32px;
    background: var(--bg);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav ul a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.25rem;
    color: var(--text);
  }

  .site-nav ul a[aria-current="true"]::after {
    display: none;
  }

  .nav-cta {
    height: 52px;
  }
}

/* ---------- Seções ---------- */
.section {
  position: relative;
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
}

.section--alt {
  background: var(--bg-alt);
}

/* marcas de "desenho técnico" nas bordas do container */
.section::before,
.section::after {
  content: "";
  position: absolute;
  top: -5px;
  width: 9px;
  height: 9px;
  background:
    linear-gradient(var(--line-3), var(--line-3)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-3), var(--line-3)) center / 100% 1px no-repeat;
  pointer-events: none;
}

.section::before {
  left: max(var(--gutter), calc((100% - var(--container)) / 2));
  transform: translateX(-50%);
}

.section::after {
  right: max(var(--gutter), calc((100% - var(--container)) / 2));
  transform: translateX(50%);
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  margin-top: 20px;
}

.section-head .lead {
  margin-top: 22px;
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(36px, 7vw, 84px)) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(900px 520px at -8% 108%, rgba(31, 99, 255, 0.16), transparent 70%),
    radial-gradient(700px 420px at 108% -8%, rgba(122, 60, 255, 0.12), transparent 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 72% 45%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 65% at 72% 45%, #000 15%, transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -22%;
  right: -18%;
  width: min(980px, 130vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(139, 77, 255, 0.16), rgba(59, 130, 255, 0.05) 55%, transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-copy > * {
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 90ms + 80ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.hero h1 {
  margin-top: 26px;
}

.hero .lead {
  margin-top: 26px;
}

.hero-motto {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--text);
}

.hero-motto span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.hero-motto span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--signal);
  transform: rotate(45deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 40px;
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-2);
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof svg {
  width: 16px;
  height: 16px;
  color: var(--signal);
}

/* ---------- Diagrama do harness ---------- */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  aspect-ratio: 640 / 600;
  animation: visual-in 1.2s var(--ease) 0.25s both;
}

@keyframes visual-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
}

.hz {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hz-frame {
  fill: rgba(255, 255, 255, 0.012);
  stroke: var(--line-2);
  stroke-dasharray: 3 7;
}

.hz-bracket {
  fill: none;
  stroke: url(#hzBracket);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.hz-ring {
  fill: none;
  stroke: var(--line-2);
}

.hz-ring--dots {
  stroke: var(--line-3);
  stroke-width: 2;
  stroke-dasharray: 0.5 10;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 120s linear infinite reverse;
}

.hz-orbit {
  fill: none;
  stroke: var(--signal);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 14 86;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 12s linear infinite;
}

.hz-spokes path {
  fill: none;
  stroke: var(--line-3);
  stroke-width: 1.2;
  stroke-dasharray: 2 5;
}

.hz-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: breathe 5s ease-in-out infinite;
}

.hz-core {
  fill: var(--surface-2);
  stroke: url(#hzCoreStroke);
  stroke-width: 1.5;
}

.hz-mark {
  position: absolute;
  left: 50%;
  top: 48.4%;
  width: 13.4%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 14px rgba(122, 60, 255, 0.45));
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.03); }
}

.hz-label {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(16, 19, 26, 0.95);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: hz-label 6s linear infinite;
  animation-delay: calc(var(--i) * 1s);
}

.hz-label b {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--signal);
}

@keyframes hz-label {
  0%, 13% {
    border-color: var(--line-2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  }
  17%, 27% {
    border-color: var(--signal-line);
    box-shadow: 0 0 0 4px rgba(139, 77, 255, 0.1), 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  }
  38%, 100% {
    border-color: var(--line-2);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  }
}

.hero-visual.is-paused .hz-label,
.hero-visual.is-paused .hz-orbit,
.hero-visual.is-paused .hz-ring--dots,
.hero-visual.is-paused .hz-glow {
  animation-play-state: paused;
}

.hz-core-label {
  position: absolute;
  left: 50%;
  top: 56.6%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hz-note {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
  white-space: nowrap;
}

.hz-note--tl {
  left: 8.5%;
  top: 6.2%;
}

.hz-note--br {
  right: 8.5%;
  bottom: 6.2%;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 580px;
  }
}

@media (max-width: 560px) {
  .hz-label {
    gap: 5px;
    padding: 5px 9px;
    font-size: 0.7rem;
  }

  .hz-label b {
    font-size: 0.58rem;
  }

  .hz-note {
    display: none;
  }

  .hz-core-label {
    font-size: 0.52rem;
  }

  .hero-motto {
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .eyebrow--pill {
    gap: 8px;
    padding: 6px 12px 6px 10px;
    font-size: 0.62rem;
    letter-spacing: 0.02em;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   Ecossistema
   ========================================================================== */
.ecosystem {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.ecosystem-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.ecosystem-title {
  max-width: 290px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-2);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee ul {
  display: flex;
  gap: 48px;
  padding-right: 48px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-3);
}

.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}

.marquee li::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-3);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (max-width: 760px) {
  .ecosystem-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ecosystem-title {
    max-width: none;
  }

  .marquee ul,
  .marquee li {
    gap: 26px;
  }

  .marquee ul {
    padding-right: 26px;
  }
}

/* ==========================================================================
   A posição: o lugar no time do cliente e o que há por trás dele
   ========================================================================== */
.seat {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 2.4vw, 28px);
  align-items: stretch;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(139, 77, 255, 0.08), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(31, 99, 255, 0.06), transparent 60%),
    var(--surface);
}

.seat-tag {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.seat-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.seat-list li,
.seat-architect {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
}

.seat-list strong,
.seat-architect strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
}

.seat-list small,
.seat-architect small {
  display: block;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--text-3);
}

.seat-avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-3);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-2);
}

.seat-avatar img {
  width: 26px;
  height: auto;
}

.seat-list li.is-neuralys {
  border-color: transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 0 0 4px rgba(139, 77, 255, 0.1), 0 12px 30px -16px rgba(122, 60, 255, 0.7);
}

.seat-list li.is-neuralys .seat-avatar {
  background: #07071a;
  box-shadow: inset 0 0 0 1px rgba(190, 190, 255, 0.14);
}

.seat-behind {
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid transparent;
  border-radius: 14px;
  background:
    linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
    var(--grad) border-box;
}

.seat-avatar--human {
  background: var(--grad-strong);
  color: #fff;
}

.seat-avatar--human svg {
  width: 18px;
  height: 18px;
}

.seat-flow {
  margin: 10px 0 18px;
  padding-left: 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--signal);
}

.seat-harness {
  position: relative;
  flex: 1;
  padding: 20px 14px 14px;
  border: 1px dashed var(--line-3);
  border-radius: 12px;
}

.seat-harness-tag {
  position: absolute;
  top: -9px;
  left: 12px;
  padding: 0 8px;
  background: var(--bg-alt);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.seat-agents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.seat-agents li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-2);
}

.seat-agents li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}

.roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.role {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}

.role h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.role--architect {
  border-color: var(--signal-line);
  background: linear-gradient(180deg, rgba(139, 77, 255, 0.08), var(--surface) 70%);
}

.compare--versus {
  margin-top: 16px;
}

/* Ficha da posição */
.spec {
  margin-top: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 260px at 0% 0%, rgba(139, 77, 255, 0.07), transparent 60%),
    var(--surface);
}

.spec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
}

.spec-head h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.spec-head p {
  font-size: 0.95rem;
  color: var(--text-2);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0 0;
}

.spec-item {
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}

.spec-item dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.spec-item dd {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-2);
}

.spec-item .spec-value {
  display: inline-block;
  margin-top: 10px;
  padding-right: 0.04em;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(95deg, #b18cff 0%, #8b4dff 45%, #3b82ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spec-foot {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-2);
  font-size: 0.92rem;
  color: var(--text-2);
}

@media (max-width: 960px) {
  .spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .spec-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 860px) {
  .seat,
  .roles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .seat-agents {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   01 — Problema
   ========================================================================== */
.compare {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-head p {
  padding: 16px 28px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-head .bad {
  color: var(--text-3);
}

.compare-head .good {
  border-left: 1px solid var(--line-2);
  background: linear-gradient(90deg, rgba(139, 77, 255, 0.1), rgba(139, 77, 255, 0.02));
  color: var(--signal);
}

.compare-rows {
  list-style: none;
}

.compare-row p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  line-height: 1.5;
}

.compare-row svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.compare-row .bad {
  color: var(--text-3);
}

.compare-row .good {
  border-left: 1px solid var(--line-2);
  background: linear-gradient(90deg, rgba(139, 77, 255, 0.05), transparent 70%);
  color: var(--text);
}

.compare-row .good svg {
  color: var(--signal);
}

.punchline {
  max-width: 34ch;
  margin-top: clamp(40px, 5vw, 60px);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: var(--text-2);
  text-wrap: balance;
}

.punchline strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

@media (max-width: 760px) {
  .compare-head {
    display: none;
  }

  .compare-row {
    grid-template-columns: 1fr;
  }

  .compare-row + .compare-row {
    border-top: 1px solid var(--line-2);
  }

  .compare-row:first-child .bad {
    border-top: 0;
  }

  .compare-row p {
    padding: 14px 20px;
  }

  .compare-row .good {
    border-left: 0;
    border-top: 1px dashed var(--line);
  }
}

/* ==========================================================================
   02 — Anatomia do harness
   ========================================================================== */
.anatomy {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.anatomy-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anatomy-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  padding: 15px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.anatomy-tab:hover {
  background: rgba(255, 255, 255, 0.03);
}

.anatomy-tab[aria-selected="true"] {
  border-color: var(--line-2);
  background: var(--surface-2);
}

.tab-num {
  grid-row: span 2;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-3);
  transition: color 0.2s;
}

.anatomy-tab[aria-selected="true"] .tab-num {
  color: var(--signal);
}

.tab-name {
  font-size: 1.04rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}

.anatomy-tab:hover .tab-name,
.anatomy-tab[aria-selected="true"] .tab-name {
  color: var(--text);
}

.tab-line {
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-3);
}

.anatomy-panels {
  display: grid;
}

.anatomy-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
  padding: clamp(24px, 3.2vw, 40px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(139, 77, 255, 0.06), transparent 60%),
    var(--surface);
  opacity: 1;
  transition: opacity 0.45s var(--ease);
}

.anatomy-panel[hidden] {
  display: grid;
  visibility: hidden;
  opacity: 0;
  transition: none;
}

.panel-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.anatomy-panel h3 {
  margin-top: 14px;
  font-size: clamp(1.45rem, 2.3vw, 1.95rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.panel-copy > p:not(.panel-kicker) {
  margin-top: 16px;
  color: var(--text-2);
}

.checklist {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.checklist svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--signal);
}

.code-card {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #090b0f;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

.code-card figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
}

.code-card figcaption::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--signal);
  opacity: 0.8;
}

.code-card pre {
  margin: 0;
  padding: 18px 18px 22px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-2);
  tab-size: 2;
}

.tk-k { color: var(--text); }
.tk-s { color: #cdb6ff; }
.tk-n { color: #7fb0ff; }
.tk-c { color: var(--text-3); }
.tk-h { color: var(--signal); }

@media (max-width: 1100px) {
  .anatomy-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .anatomy {
    grid-template-columns: 1fr;
  }

  .anatomy-list {
    flex-direction: row;
    gap: 8px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .anatomy-list::-webkit-scrollbar {
    display: none;
  }

  .anatomy-tab {
    flex: none;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 8px;
    padding: 10px 16px;
    border-color: var(--line-2);
    border-radius: 999px;
    scroll-snap-align: start;
  }

  .tab-num {
    grid-row: auto;
    padding-top: 0;
  }

  .tab-name {
    font-size: 0.95rem;
  }

  .tab-line {
    display: none;
  }
}

@media (max-width: 600px) {
  .code-card pre {
    padding: 16px 14px 18px;
    font-size: 0.74rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   03 — Serviços
   ========================================================================== */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(26px, 3.2vw, 38px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(16, 19, 26, 0.4));
  transition: border-color 0.3s;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 77, 255, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--line-3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--signal);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-kicker {
  margin-top: 30px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.service-card h3 {
  margin-top: 10px;
  font-size: clamp(1.4rem, 2.1vw, 1.7rem);
  letter-spacing: -0.03em;
}

.service-card > p:not(.service-kicker) {
  margin-top: 14px;
  color: var(--text-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  list-style: none;
}

.tags li {
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 30px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.service-link:hover {
  color: var(--signal);
}

.service-link:hover svg {
  transform: translateX(3px);
}

@media (max-width: 760px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   04 — Como entregamos
   ========================================================================== */
.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
}

.stage::after {
  content: "";
  position: absolute;
  top: 31px;
  right: -15px;
  width: 15px;
  height: 1px;
  background: var(--signal-line);
}

.stage:last-child::after {
  display: none;
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.stage h3 {
  font-size: 1.08rem;
}

.stage p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-2);
}

.stage-agent {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--steel);
}

.stage-gate {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
}

.stage-gate svg {
  flex: none;
  width: 15px;
  height: 15px;
}

.stage-gate--human {
  color: var(--signal);
}

.stage--human {
  border-color: rgba(139, 77, 255, 0.45);
  background: linear-gradient(180deg, rgba(139, 77, 255, 0.09), var(--surface) 70%);
}

.pipeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
}

.pipeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pipeline-legend svg {
  width: 15px;
  height: 15px;
}

.pipeline-legend .is-human {
  color: var(--signal);
}

@media (max-width: 1100px) {
  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stage:nth-child(3)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .pipeline {
    grid-template-columns: 1fr;
  }

  .stage {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 16px 16px 14px;
  }

  .stage > * {
    grid-column: 2;
  }

  .stage-num {
    grid-column: 1;
    grid-row: 1 / span 4;
    padding-top: 3px;
  }

  .stage-gate {
    margin-top: 8px;
    padding-top: 10px;
  }

  .stage::after,
  .stage:nth-child(3)::after {
    display: block;
    top: auto;
    right: auto;
    bottom: -15px;
    left: 30px;
    width: 1px;
    height: 15px;
  }

  .stage:last-child::after {
    display: none;
  }
}

.delivery-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* Terminal */
.terminal {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: #06070a;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-3);
}

.terminal-dots {
  display: inline-flex;
  gap: 6px;
}

.terminal-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
}

.terminal-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-replay {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.terminal-replay:hover {
  border-color: var(--signal-line);
  color: var(--text);
}

.terminal-body {
  display: grid;
  gap: 2px;
  padding: 20px 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
}

.t-line {
  display: grid;
  grid-template-columns: 1.1em 8.5ch minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: baseline;
  color: var(--text-2);
}

.js .t-line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.js .t-line.is-on {
  opacity: 1;
  transform: none;
}

.t-cmd {
  grid-template-columns: 1.1em minmax(0, 1fr);
  margin-bottom: 8px;
}

.t-prompt { color: var(--signal); }
.t-cmdtext { color: var(--text); overflow-wrap: anywhere; }
.t-arrow { color: var(--text-3); }
.t-tag { color: var(--signal); }
.t-ok { color: var(--ok); }
.t-err { color: var(--err); }
.t-wait { color: var(--signal); }
.t-hold .t-msg { color: var(--text); }

.t-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 6px;
  vertical-align: -0.18em;
  background: var(--signal);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Entregáveis */
.deliverables {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}

.deliverables h3 {
  font-size: 1.15rem;
}

.deliverables ul {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  list-style: none;
}

.deliverables li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
}

.d-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.9;
  color: var(--signal);
}

.deliverables li p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-2);
}

.deliverables li strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 960px) {
  .delivery-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .terminal-body {
    padding: 16px 14px 20px;
    font-size: 0.72rem;
  }

  .t-line {
    grid-template-columns: 8.5ch minmax(0, 1fr) auto;
    gap: 0 8px;
  }

  .t-arrow {
    display: none;
  }

  .t-cmd {
    grid-template-columns: 1.1em minmax(0, 1fr);
  }
}

/* Onde cada coisa fica: harness na Neuralys, resultado no repositório */
.boundary {
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(139, 77, 255, 0.07), transparent 60%),
    var(--surface);
}

.boundary-head {
  max-width: 780px;
  padding: clamp(24px, 3.2vw, 38px) clamp(24px, 3.2vw, 38px) 0;
}

.boundary-head h3 {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.boundary-head h3 em {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--signal);
}

.boundary-head p {
  margin-top: 12px;
  color: var(--text-2);
}

.boundary-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px minmax(0, 1fr);
  align-items: stretch;
  padding: clamp(24px, 3.2vw, 38px);
}

.boundary-side {
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--bg);
}

.boundary-side--us {
  border-color: var(--signal-line);
  background: linear-gradient(180deg, rgba(139, 77, 255, 0.09), var(--bg) 75%);
}

.boundary-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.boundary-tag svg {
  width: 16px;
  height: 16px;
}

.boundary-side--us .boundary-tag {
  color: var(--signal);
}

.boundary-title {
  margin-top: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.boundary-side ul {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  list-style: none;
}

.boundary-side li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-2);
}

.boundary-side li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 1px;
  background: var(--line-3);
  transform: rotate(45deg);
}

.boundary-side--us li::before {
  background: var(--signal);
}

.boundary-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.45;
  text-align: center;
  color: var(--text-3);
}

.boundary-arrow {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--signal), var(--line-3));
}

.boundary-arrow::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 0;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--line-3);
  border-right: 1px solid var(--line-3);
  transform: rotate(45deg);
}

.boundary-arrow::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(139, 77, 255, 0.7);
  animation: travel 2.6s var(--ease) infinite;
}

@keyframes travel {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% - 10px); opacity: 0; }
}

@media (max-width: 760px) {
  .boundary-body {
    grid-template-columns: 1fr;
  }

  .boundary-link {
    flex-direction: row;
    gap: 14px;
    padding: 14px 0;
  }

  .boundary-link br {
    display: none;
  }

  .boundary-arrow {
    order: -1;
    width: 1px;
    height: 44px;
    background: linear-gradient(180deg, var(--signal), var(--line-3));
  }

  .boundary-arrow::after {
    top: auto;
    right: auto;
    bottom: 0;
    left: -4px;
    transform: rotate(135deg);
  }

  .boundary-arrow::before {
    display: none;
  }
}

/* ==========================================================================
   05 — Princípios
   ========================================================================== */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
}

.principle {
  position: relative;
  padding: clamp(26px, 3vw, 36px) clamp(22px, 2.6vw, 32px) clamp(30px, 3.4vw, 42px);
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  transition: background-color 0.3s;
}

.principle:hover {
  background: rgba(255, 255, 255, 0.02);
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--signal);
}

.principle h3 {
  margin-top: 36px;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  letter-spacing: -0.03em;
}

.principle p {
  margin-top: 12px;
  font-size: 0.96rem;
  color: var(--text-2);
}

@media (max-width: 960px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .principles {
    grid-template-columns: 1fr;
  }

  .principle h3 {
    margin-top: 18px;
  }
}

/* ==========================================================================
   06 — Como começar
   ========================================================================== */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--blue) 40%, var(--line-2) 70%);
}

.step {
  position: relative;
  padding-top: 40px;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 2px solid var(--signal);
  border-radius: 50%;
  background: var(--bg-alt);
}

.step:first-child::before {
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(139, 77, 255, 0.15);
}

.step-when {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
}

.step h3 {
  margin-top: 12px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.step p {
  margin-top: 10px;
  font-size: 0.96rem;
  color: var(--text-2);
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .steps::before {
    display: block;
    top: 8px;
    bottom: 8px;
    left: 7px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--violet), var(--blue) 40%, var(--line-2) 75%);
  }

  .step {
    padding: 0 0 0 40px;
  }
}

/* ==========================================================================
   07 — Autodiagnóstico
   ========================================================================== */
.readiness {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.readiness .section-head {
  margin-bottom: 0;
}

.readiness-list {
  display: grid;
  gap: 10px;
  margin-top: 40px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.check:hover {
  border-color: var(--line-3);
}

.check:has(input:checked) {
  border-color: rgba(139, 77, 255, 0.45);
  background: linear-gradient(90deg, rgba(139, 77, 255, 0.08), var(--surface) 70%);
}

.check input {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 1.5px solid var(--line-3);
  border-radius: 6px;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.check input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.2s var(--ease);
}

.check input:checked {
  border-color: transparent;
  background: var(--grad-strong);
}

.check input:checked::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.check input:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.readiness-result {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: clamp(26px, 3.2vw, 38px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(139, 77, 255, 0.08), transparent 60%),
    var(--surface);
}

.gauge {
  position: relative;
  width: 140px;
  height: 140px;
}

.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 9;
}

.gauge-bar {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 0 100;
  opacity: 0;
  transition: stroke-dasharray 0.7s var(--ease), opacity 0.3s;
}

.gauge-bar.is-filled {
  opacity: 1;
}

.gauge-value {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-3);
}

.gauge-value b {
  font-family: var(--font-sans);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text);
}

.result-title {
  margin-top: 26px;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.result-text {
  margin-top: 10px;
  color: var(--text-2);
}

.readiness-result .btn {
  margin-top: 28px;
}

@media (max-width: 960px) {
  .readiness {
    grid-template-columns: 1fr;
  }

  .readiness-result {
    position: static;
  }
}

/* ==========================================================================
   08 — FAQ
   ========================================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.faq-grid .section-head {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  margin-bottom: 0;
}

.faq-list {
  border-top: 1px solid var(--line-2);
}

.faq-list details {
  border-bottom: 1px solid var(--line-2);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--signal), var(--signal)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--signal), var(--signal)) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list summary:hover {
  color: var(--signal-2);
}

.faq-body {
  padding: 0 0 26px;
  max-width: 64ch;
  color: var(--text-2);
}

@supports (interpolate-size: allow-keywords) {
  .faq-list {
    interpolate-size: allow-keywords;
  }

  .faq-list details::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
  }

  .faq-list details[open]::details-content {
    block-size: auto;
  }
}

@media (max-width: 960px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid .section-head {
    position: static;
    margin-bottom: 8px;
  }
}

/* ==========================================================================
   09 — Contato
   ========================================================================== */
.contact {
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(139, 77, 255, 0.11), transparent 60%),
    var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}

.contact-copy h2 {
  margin-top: 20px;
  font-size: clamp(2.3rem, 4.8vw, 3.9rem);
}

.contact-copy .lead {
  margin-top: 22px;
}

.contact-points {
  display: grid;
  gap: 18px;
  margin-top: 40px;
  list-style: none;
}

.contact-points li {
  display: grid;
  gap: 4px;
  color: var(--text-2);
}

.contact-points span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.contact-points a {
  justify-self: start;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-3);
  transition: border-color 0.2s, color 0.2s;
}

.contact-points a:hover {
  border-color: var(--signal);
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(16, 19, 26, 0.85);
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, 0.9);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-size: 0.86rem;
  color: var(--text-2);
}

.optional {
  color: var(--text-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-3);
}

.field select {
  padding-right: 40px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23a8afbd' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}

.field select option {
  background: var(--surface);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(139, 77, 255, 0.18);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--err);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 4px;
}

.form-note {
  flex: 1 1 200px;
  font-size: 0.8rem;
  color: var(--text-3);
}

.form-status {
  padding: 12px 14px;
  border: 1px solid rgba(95, 211, 154, 0.3);
  border-radius: 10px;
  background: rgba(95, 211, 154, 0.08);
  font-size: 0.9rem;
  color: var(--ok);
}

.form-status.is-error {
  border-color: rgba(255, 123, 114, 0.3);
  background: rgba(255, 123, 114, 0.08);
  color: var(--err);
}

@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .form-foot .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
  overflow: hidden;
  padding: 72px 0 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-logo {
  display: block;
  width: min(300px, 100%);
  height: auto;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 18px;
  color: var(--text-2);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer-nav ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-nav a {
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-wordmark {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(56px, 9vw, 104px);
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
  user-select: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-3);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-nav {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   Movimento reduzido
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal,
  .js .t-line {
    opacity: 1;
    transform: none;
  }
}
