/* =========================================================
   EEZ · estilos base
   Paleta da apresentação de serviços (Contexto da empresa)
   ========================================================= */
:root {
  --navy: #0B1B3A;
  --navy-2: #102549;
  --ink: #060E1F;
  --paper: #F4F7FB;
  --white: #FFFFFF;
  --cyan: #00C2D1;
  --cyan-dark: #00717C;
  --green: #3DFF8A;
  --text-dark: #0B1B3A;
  --muted-dark: #4A5878;
  --text-light: #E8EEF8;
  --muted-light: #9DB0CF;
  --line-dark: rgba(11, 27, 58, .12);
  --line-light: rgba(232, 238, 248, .12);
  --radius: 24px;
  --radius-sm: 14px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --accent: var(--green);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; position: relative; }
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }
.dark { background: var(--navy); color: var(--text-light); }
.light { background: var(--paper); color: var(--text-dark); }

.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.section-head p:last-child { color: var(--muted-dark); font-size: 1.1rem; }
.dark .section-head p:last-child { color: var(--muted-light); }
.tag {
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan-dark); margin-bottom: 16px;
}
.dark .tag { color: var(--cyan); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
  will-change: transform;
}
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-primary { background: var(--green); color: var(--navy); box-shadow: 0 0 0 0 rgba(61, 255, 138, .5); }
.btn-primary:hover { box-shadow: 0 10px 40px -8px rgba(61, 255, 138, .6); }
.btn-ghost { border-color: var(--line-light); color: var(--text-light); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* ---------- cursor glow & scroll ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 209, .14), transparent 60%);
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%); transition: opacity .4s;
  mix-blend-mode: screen;
}
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transform-origin: left; transform: scaleX(0);
}

/* ---------- circuito revelado pelo mouse nas áreas escuras ----------
   .reveal-layer: máscara radial na posição do mouse (--rx, --ry)
   .reveal-pattern: cor sólida recortada pelos desenhos de circuito e engrenagens */
.reveal-host { position: relative; isolation: isolate; }
.reveal-layer {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; border-radius: inherit;
  opacity: 0; transition: opacity .6s var(--ease);
  -webkit-mask-image: radial-gradient(circle var(--rr, 240px) at var(--rx, -999px) var(--ry, -999px), #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  mask-image: radial-gradient(circle var(--rr, 240px) at var(--rx, -999px) var(--ry, -999px), #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
}
.reveal-host.lit .reveal-layer { opacity: var(--reveal-opacity, .2); }
.reveal-pattern {
  position: absolute; inset: 0;
  background: var(--reveal-color, #5FE3EC);
  -webkit-mask-image: url(../img/gears.svg), url(../img/circuit.svg);
  mask-image: url(../img/gears.svg), url(../img/circuit.svg);
  -webkit-mask-size: 480px 480px, 240px 240px;
  mask-size: 480px 480px, 240px 240px;
  -webkit-mask-repeat: repeat; mask-repeat: repeat;
}
.reveal-host > .container { z-index: 1; }
.included > :not(.reveal-layer) { position: relative; z-index: 1; }
.auto-section { --reveal-color: var(--accent); --reveal-opacity: .24; }
.included { --rr: 200px; --reveal-opacity: .28; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1200px, 100% - 32px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 12px 10px 24px; border-radius: 999px;
  background: rgba(11, 27, 58, .55); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line-light); color: var(--text-light);
  transition: background .4s, top .4s;
}
.nav.scrolled { background: rgba(6, 14, 31, .82); top: 10px; }
.logo { display: flex; align-items: baseline; gap: 4px; }
.logo-mark { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; letter-spacing: .02em; }
.logo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.nav-links { display: flex; gap: 28px; font-size: .95rem; }
.nav-links a { color: var(--muted-light); position: relative; transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--green); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text-light); transition: transform .3s; }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 23px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% 30%, rgba(0, 194, 209, .16), transparent 60%),
              radial-gradient(900px 500px at 10% 90%, rgba(61, 255, 138, .08), transparent 60%), var(--ink);
  padding: 140px 0 80px;
}
#hero-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .82rem; color: var(--muted-light);
  padding: 8px 16px; border: 1px solid var(--line-light); border-radius: 999px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); animation: ping 1.8s infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.hero h1 { margin-top: 24px; min-height: 3.3em; } /* evita "pulo" quando a palavra muda */
.rotator { background: linear-gradient(90deg, var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { color: var(--green); animation: blink 1s steps(1) infinite; font-weight: 400; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 1.2rem; color: var(--muted-light); max-width: 540px; }
.lead.dark-text { color: var(--muted-dark); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .reveal:nth-child(2) { transition-delay: .1s; } .hero .reveal:nth-child(3) { transition-delay: .2s; } .hero .reveal:nth-child(4) { transition-delay: .3s; }

.hero-flow { position: relative; aspect-ratio: 460 / 420; }
.flow-svg { width: 100%; height: 100%; }
.flow-line { fill: none; stroke: url(#g-line); stroke-width: 2; stroke-dasharray: 6 8; opacity: .55; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.packet { fill: var(--green); filter: drop-shadow(0 0 6px var(--green)); }
.flow-node {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  padding: 12px 16px; border-radius: 16px; min-width: 170px;
  background: rgba(16, 37, 73, .8); border: 1px solid var(--line-light); backdrop-filter: blur(8px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); animation: float 6s ease-in-out infinite;
}
.flow-node i { grid-row: span 2; font-style: normal; font-size: 1.3rem; }
.flow-node b { font-size: .88rem; font-weight: 600; }
.flow-node small { font-size: .75rem; color: var(--muted-light); }
.n1 { left: 19.5%; top: 19%; } .n4 { left: 19.5%; top: 81%; animation-delay: -2s; }
.n2 { left: 80.5%; top: 19%; animation-delay: -1s; } .n3 { left: 80.5%; top: 81%; animation-delay: -3s; }
.flow-node.core { left: 50%; top: 50%; min-width: 0; border-color: rgba(61, 255, 138, .5); animation: none;
  box-shadow: 0 0 60px -10px rgba(61, 255, 138, .45); }
.core-ring { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--green); border-top-color: transparent; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translate(-50%, calc(-50% - 10px)); } }
.scroll-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line-light); border-radius: 14px; z-index: 2; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--green); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }

/* =========================================================
   SERVIÇOS
   ========================================================= */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; padding: 36px; border-radius: var(--radius); background: var(--white);
  border: 2px solid var(--line-dark); transform-style: preserve-3d;
  transition: border-color .4s, box-shadow .4s, transform .2s ease-out;
}
.card::before { /* brilho que segue o mouse dentro do card */
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 194, 209, .12), transparent 50%);
}
.card:hover { border-color: var(--cyan); box-shadow: 0 30px 60px -30px rgba(11, 27, 58, .35); }
.card:hover::before { opacity: 1; }
.card-icon { width: 60px; height: 60px; border-radius: 16px; background: var(--navy); display: grid; place-items: center; margin-bottom: 24px; transform: translateZ(30px); }
.card-icon svg { width: 32px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted-dark); }
.card-result { color: var(--cyan-dark) !important; font-weight: 600; margin: 0; }
.cards-3 .reveal:nth-child(2) { transition-delay: .12s; } .cards-3 .reveal:nth-child(3) { transition-delay: .24s; }

/* =========================================================
   AUTOMAÇÃO
   ========================================================= */
.auto-section { background: var(--auto-bg, #04140F); transition: background .8s var(--ease); overflow: hidden; }
.auto-section::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 500px at 30% 60%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  transition: background .8s;
}
.auto-section .tag { color: var(--accent); }
.auto-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 48px; }
.auto-tab {
  position: relative; overflow: hidden;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, .03);
  color: var(--muted-light); font-size: .92rem; transition: color .3s, border-color .3s, background .3s;
}
.auto-tab b { font-family: var(--font-mono); font-weight: 500; margin-right: 6px; opacity: .7; }
.auto-tab:hover { color: var(--white); }
.auto-tab.active { color: var(--ink); background: var(--tab-color); border-color: var(--tab-color); }
.auto-tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--ink); width: 0; opacity: .35; }

.auto-stage { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; position: relative; }
.editor {
  grid-row: 1; grid-column: 1; position: relative; z-index: 2;
  border-radius: 20px; background: rgba(3, 8, 18, .85); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  overflow: hidden;
  clip-path: inset(0 0 0 0 round 20px);
  transition: clip-path calc(.75s / var(--speed, 1)) var(--ease), transform .6s var(--ease), opacity .5s var(--ease), filter .5s, border-color .6s, box-shadow .6s;
}
.editor.validating { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 60px -10px var(--accent); }
.editor.collapse { transform: scale(.92); opacity: 0; filter: blur(4px); }

/* compilação: linhas se recolhem e um comando aparece no centro */
.editor-body { position: relative; }
.editor-code .ln { max-height: 3.6em; transition: background .3s, max-height .45s var(--ease), opacity .35s, transform .45s var(--ease); }
.editor-code .ln.fold { max-height: 0; opacity: 0; transform: translateY(-6px) scaleY(.4); }
.command {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85);
  display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 999px; white-space: nowrap;
  font-family: var(--font-mono); font-size: .9rem; color: #e6edf7;
  background: color-mix(in srgb, var(--accent) 12%, #030812); border: 1px solid var(--accent);
  opacity: 0; pointer-events: none;
  transition: opacity .4s, transform .6s var(--ease), background .3s, color .3s, box-shadow .4s;
}
.cmd-prompt { color: var(--accent); }
.cmd-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); border-top-color: transparent; animation: spin .7s linear infinite; }
.editor.compiling .command { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.editor.fire .command { background: var(--accent); color: var(--ink); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 25%, transparent), 0 0 60px var(--accent); transform: translate(-50%, -50%) scale(1.06); }
.editor.fire .command * { color: var(--ink) !important; }
.editor.fire .cmd-spin { border-color: var(--ink); border-top-color: transparent; }

/* console de validação */
.editor-console { border-top: 1px solid var(--line-light); padding: 10px 18px; min-height: 96px; font-family: var(--font-mono); font-size: .76rem; line-height: 1.8; }
.editor-console:empty::before { content: "// aguardando validação"; color: #3b4a66; }
.editor-console div { animation: slideIn .35s var(--ease) both; opacity: 0; transform: translateX(-10px); color: var(--muted-light); }
.editor-console .c-ok::before { content: "✓ "; color: var(--accent); }
.editor-console .c-run::before { content: "↑ "; color: var(--accent); }

/* histórico */
.auto-feed-wrap { grid-row: 2; grid-column: 1; }
.feed-label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-light); margin: 0 0 10px; }
.feed-label:has(+ .auto-feed:empty) { visibility: hidden; }
.auto-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; }
.auto-feed li {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; font-size: .8rem;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-light); color: var(--text-light);
  animation: feedIn .6s var(--ease) both;
}
.auto-feed li i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--c); color: var(--ink); }
.auto-feed li small { color: var(--muted-light); font-family: var(--font-mono); font-size: .7rem; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-14px) scale(.9); } }

/* 07 · sob medida */
.auto-tab.custom { border-style: dashed; }
.auto-tab.custom b { opacity: 1; }
.custom-task { margin: 0 0 20px; padding: 18px; border-radius: var(--radius-sm); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); background: rgba(255, 255, 255, .03); animation: slideIn .4s var(--ease) both; }
.custom-task[hidden] { display: none; }
.custom-task label { display: block; font-weight: 600; margin-bottom: 10px; }
.custom-row { display: flex; gap: 8px; }
.custom-row input { flex: 1; min-width: 0; font: inherit; font-size: .95rem; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-light); background: rgba(3, 8, 18, .6); color: var(--text-light); }
.custom-row input:focus { outline: none; border-color: var(--accent); }
.custom-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.custom-suggest button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-light); background: none; color: var(--muted-light); font-size: .78rem; transition: color .3s, border-color .3s; }
.custom-suggest button:hover { color: var(--text-light); border-color: var(--accent); }
.custom-cta { font-size: .9rem; font-weight: 600; color: var(--green); }
.custom-cta:hover { text-decoration: underline; }

/* controles de reprodução */
.auto-controls { display: flex; gap: 6px; }
.auto-speed { min-width: 48px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-light); background: rgba(255, 255, 255, .03); color: var(--text-light); font-family: var(--font-mono); font-size: .78rem; transition: border-color .3s, color .3s; }
.auto-speed:hover { border-color: var(--accent); color: var(--accent); }
.auto-play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-light); background: rgba(255, 255, 255, .03); color: var(--text-light); font-size: .75rem; transition: border-color .3s, color .3s; }
.auto-play:hover { border-color: var(--accent); color: var(--accent); }
.auto-tab .bar { transition: width .6s var(--ease); }
.editor-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-light); font-family: var(--font-mono); font-size: .8rem; }
.dots { display: flex; gap: 6px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.editor-file { color: var(--muted-light); }
.editor-status { margin-left: auto; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.editor-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: blink 1s infinite; }
.editor-code {
  margin: 0; padding: 22px 22px 22px 0; min-height: 300px; font-family: var(--font-mono); font-size: .86rem; line-height: 1.75;
  color: #cdd6e6; counter-reset: ln; white-space: pre-wrap; overflow: hidden;
}
.editor-code .ln { display: block; padding-left: 58px; position: relative; transition: background .3s; }
.editor-code .ln::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 40px; text-align: right; color: #3b4a66; }
.editor-code .ln.ok { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.editor-code .ln.ok::after { content: "✓"; position: absolute; right: 0; color: var(--accent); font-size: .8rem; }
.editor-code .cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: var(--accent); animation: blink 1s steps(1) infinite; }
.tk-k { color: #c792ea; } .tk-s { color: #c3e88d; } .tk-f { color: #82aaff; } .tk-c { color: #546e8a; font-style: italic; } .tk-p { color: #f78c6c; } .tk-a { color: var(--accent); }
.editor-steps { display: flex; border-top: 1px solid var(--line-light); }
.editor-steps span { flex: 1; text-align: center; padding: 12px 6px; font-size: .78rem; font-family: var(--font-mono); color: #4d5d7d; position: relative; transition: color .3s; }
.editor-steps span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .5s var(--ease); }
.editor-steps span.done { color: var(--accent); }
.editor-steps span.done::after { transform: scaleX(1); }

.action-card {
  grid-row: 1; grid-column: 1; align-self: center; justify-self: center; z-index: 3;
  display: flex; align-items: center; gap: 16px; padding: 18px 22px; min-width: min(420px, 100%);
  border-radius: 20px; background: rgba(255, 255, 255, .96); color: var(--navy);
  box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--accent) 60%, transparent);
  transform: scale(.6) rotate(-6deg); opacity: 0; pointer-events: none;
  transition: transform .8s var(--ease), opacity .5s;
}
.action-card.show { transform: scale(1) rotate(-2deg); opacity: 1; }
.action-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent); color: var(--ink); font-size: 1.3rem; font-weight: 700; }
.action-card.show .action-icon { animation: pop .6s var(--ease) .25s both; }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(1.25); } }
.action-title { margin: 0; font-weight: 700; font-family: var(--font-head); }
.action-sub { margin: 0; font-size: .88rem; color: var(--muted-dark); }
.action-time { margin-left: auto; align-self: flex-start; font-size: .75rem; color: var(--muted-dark); }

.auto-info { grid-column: 2; grid-row: 1 / span 2; padding-top: 8px; }
.auto-info > * { transition: opacity .4s, transform .4s var(--ease); }
.auto-info.swap > * { opacity: 0; transform: translateY(10px); }
.auto-num { font-family: var(--font-mono); color: var(--accent); font-size: 3.6rem; line-height: 1; margin-bottom: 8px; }
.auto-info h3 { font-size: 2rem; }
.auto-info dl { margin: 24px 0; display: grid; gap: 6px; }
.auto-info dt { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-top: 14px; }
.auto-info dd { margin: 0; color: var(--text-light); }
.auto-note { font-size: .85rem; color: var(--muted-light); border-left: 2px solid var(--accent); padding-left: 14px; }

/* =========================================================
   SITES
   ========================================================= */
.tier-tabs { position: relative; display: flex; justify-content: center; gap: 6px; width: max-content; margin: 0 auto 40px; padding: 6px; border-radius: 999px; background: var(--white); border: 2px solid var(--line-dark); }
.tier-tab { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 26px; border: 0; background: none; border-radius: 999px; font-weight: 600; color: var(--muted-dark); transition: color .4s; }
.tier-tab.active { color: var(--white); }
.tier-indicator { position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 999px; background: var(--navy); transition: transform .5s var(--ease), width .5s var(--ease); }
.tier-level { display: flex; gap: 3px; align-items: flex-end; }
.tier-level i { width: 4px; border-radius: 2px; background: var(--green); }
.tier-level i:nth-child(1) { height: 8px; } .tier-level i:nth-child(2) { height: 12px; } .tier-level i:nth-child(3) { height: 16px; }
.tier-tab:not(.active) .tier-level i { background: var(--cyan-dark); opacity: .5; }

.sites-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.tier-info h3 { font-size: 1.8rem; }
.tier-info .for { color: var(--cyan-dark); font-weight: 600; margin-bottom: 16px; }
.tier-info ul.tier-items { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.tier-info .tier-items li { display: flex; gap: 10px; color: var(--muted-dark); opacity: 0; transform: translateX(-10px); animation: slideIn .5s var(--ease) forwards; }
.tier-info .tier-items li::before { content: "✓"; color: var(--cyan-dark); font-weight: 700; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
/* proteção incluída em todos os níveis */
.all-tiers { margin-top: 20px; display: grid; gap: 10px; }
.all-tiers p { margin: 0; font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-dark); }
.all-tiers div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--navy); color: var(--muted-light); font-size: .84rem; line-height: 1.45; animation: slideIn .5s var(--ease) .35s both; opacity: 0; transform: translateX(-10px); }
.all-tiers div + div { animation-delay: .45s; }
.all-tiers i { font-style: normal; flex-shrink: 0; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(61, 255, 138, .12); color: var(--green); font-weight: 700; }
.all-tiers b { display: block; color: var(--white); font-weight: 600; }

/* missões: o visitante testa o subsite e os itens são marcados */
.missions { margin-top: 24px; padding: 18px; border-radius: var(--radius-sm); background: var(--white); border: 2px solid var(--line-dark); }
.missions-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cyan-dark); }
.missions-head b { font-family: var(--font-head); font-size: 1rem; color: var(--navy); }
.missions-bar { height: 4px; border-radius: 4px; background: var(--line-dark); margin: 10px 0 12px; overflow: hidden; }
.missions-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: width .6s var(--ease); }
.missions ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.missions li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted-dark); transition: color .3s; }
.missions li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--line-dark); display: grid; place-items: center; font-size: .7rem; font-weight: 700; transition: all .3s var(--ease); }
.missions li.ok { color: var(--navy); text-decoration: line-through; text-decoration-color: rgba(11, 27, 58, .3); }
.missions li.ok::before { content: "✓"; background: var(--green); border-color: var(--green); color: var(--navy); }
.missions li.just::before { animation: pop .6s var(--ease); }
.missions-done { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-dark); font-size: .88rem; font-weight: 600; color: var(--navy); animation: slideIn .5s var(--ease) both; opacity: 0; transform: translateX(-10px); }
.missions-done a { color: var(--cyan-dark); }
#browser-url.changed { animation: urlFlash .7s var(--ease); }
@keyframes urlFlash { from { color: var(--cyan-dark); } }

.browser { border-radius: 18px; background: var(--white); border: 2px solid var(--line-dark); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(11, 27, 58, .45); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #E9EEF5; border-bottom: 1px solid var(--line-dark); }
.browser-url { flex: 1; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--white); font-family: var(--font-mono); font-size: .8rem; color: var(--muted-dark); overflow: hidden; white-space: nowrap; }
.lock { font-size: .7rem; }
.device-toggle { display: flex; gap: 2px; background: var(--white); border-radius: 10px; padding: 3px; }
.device-toggle button { border: 0; background: none; width: 32px; height: 28px; border-radius: 7px; font-size: .9rem; color: var(--muted-dark); }
.device-toggle button.active { background: var(--navy); color: var(--white); }
.browser-open { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted-dark); }
.browser-open:hover { background: var(--white); color: var(--navy); }
.browser-view { position: relative; height: 620px; background: repeating-linear-gradient(45deg, #EEF2F8 0 12px, #E6ECF4 12px 24px); display: flex; justify-content: center; }
.browser-view iframe { width: 100%; height: 100%; border: 0; background: var(--white); transition: width .6s var(--ease), opacity .4s, border-radius .6s, margin .6s; }
.browser[data-device="tablet"] iframe { width: 768px; max-width: 100%; }
.browser[data-device="mobile"] iframe { width: 375px; border-radius: 24px; margin: 16px 0; height: calc(100% - 32px); box-shadow: 0 0 0 8px var(--navy); }
.browser-view.loading iframe { opacity: 0; }
.browser-loader { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .3s; }
.browser-view.loading .browser-loader { opacity: 1; }
.browser-loader span { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--cyan); border-top-color: transparent; animation: spin .8s linear infinite; }
.demo-disclaimer { text-align: right; font-size: .8rem; color: var(--muted-dark); margin-top: 12px; }

.included { margin-top: 64px; padding: 36px; border-radius: var(--radius); background: var(--navy); color: var(--text-light); display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; }
.included h3 { margin: 0; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.included li { color: var(--muted-light); font-size: .95rem; }
.included b { display: block; color: var(--green); font-weight: 600; }

/* =========================================================
   IA · diagnóstico interativo
   ========================================================= */
.ia-section { background: radial-gradient(900px 500px at 80% 50%, rgba(0, 194, 209, .12), transparent 60%), var(--navy); }
.ia-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center; }
.diag { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.diag-options { display: grid; gap: 10px; }
.diag-options label { display: block; cursor: pointer; }
.diag-options input[type="checkbox"], .chips input { position: absolute; opacity: 0; pointer-events: none; }
.diag-options span {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-light); background: rgba(255, 255, 255, .03); font-size: .92rem; transition: all .3s var(--ease);
}
.diag-options span::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 6px; border: 2px solid var(--muted-light); transition: all .3s; }
.diag-options input:checked + span { border-color: var(--green); background: rgba(61, 255, 138, .08); transform: translateX(6px); }
.diag-options input:checked + span::before { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 3px var(--navy); }
.diag-options input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.diag-other span { border-style: dashed; }
.diag-other-input { font: inherit; font-size: .92rem; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--green); background: rgba(3, 8, 18, .6); color: var(--text-light); animation: slideIn .35s var(--ease) both; }
.diag-other-input[hidden] { display: none; }
.diag-other-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(61, 255, 138, .2); }
.diag-result { position: relative; padding: 28px; border-radius: var(--radius); border: 2px solid var(--line-light); background: rgba(6, 14, 31, .6); min-height: 100%; overflow: hidden; }
.diag-orb { position: relative; width: 70px; height: 70px; margin-bottom: 20px; }
.diag-orb span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan); opacity: .25; animation: orb 4s linear infinite; }
.diag-orb span:nth-child(2) { inset: 10px; border-color: var(--green); animation-duration: 3s; animation-direction: reverse; }
.diag-orb span:nth-child(3) { inset: 22px; background: var(--green); border: 0; opacity: .25; animation: none; transition: opacity .4s, transform .4s; }
.diag-result.active .diag-orb span { opacity: 1; border-top-color: transparent; }
.diag-result.active .diag-orb span:nth-child(3) { opacity: 1; box-shadow: 0 0 30px var(--green); }
@keyframes orb { to { transform: rotate(360deg); } }
.diag-title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; }
.diag-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.diag-list li { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); font-size: .9rem; color: var(--muted-light); animation: slideIn .4s var(--ease) both; opacity: 0; transform: translateX(-10px); }
.diag-list li b { display: block; color: var(--text-light); }
.diag-list li em { font-style: normal; font-family: var(--font-mono); font-size: .72rem; padding: 2px 8px; border-radius: 6px; margin-right: 6px; background: var(--c, var(--cyan)); color: var(--ink); }

/* =========================================================
   PROCESSO · timeline
   ========================================================= */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 2px; background: var(--line-dark); }
.timeline-fill { position: absolute; top: 28px; left: 28px; height: 2px; width: calc(100% - 56px); background: linear-gradient(90deg, var(--cyan), var(--green)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.timeline li { position: relative; }
.t-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--line-dark); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--cyan-dark); position: relative; z-index: 1; margin-bottom: 20px; transition: all .5s var(--ease); }
.timeline li.lit .t-num { background: var(--navy); color: var(--green); border-color: var(--navy); box-shadow: 0 0 0 8px rgba(61, 255, 138, .15); }
.timeline p { color: var(--muted-dark); }
.timeline .reveal:nth-child(3) { transition-delay: .1s; } .timeline .reveal:nth-child(4) { transition-delay: .2s; } .timeline .reveal:nth-child(5) { transition-delay: .3s; }

/* =========================================================
   PORTFÓLIO
   ========================================================= */
.portfolio { background: radial-gradient(900px 500px at 15% 10%, rgba(177, 151, 255, .1), transparent 60%), radial-gradient(900px 500px at 90% 90%, rgba(0, 194, 209, .1), transparent 60%), var(--navy); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.projects .reveal:nth-child(2) { transition-delay: .1s; } .projects .reveal:nth-child(3) { transition-delay: .2s; } .projects .reveal:nth-child(4) { transition-delay: .3s; }

.project {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: rgba(6, 14, 31, .55); border: 1px solid var(--line-light);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s, opacity .9s var(--ease);
}
.project:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--pc) 60%, transparent); box-shadow: 0 40px 70px -40px color-mix(in srgb, var(--pc) 70%, transparent); }

/* tela com o site em miniatura, que rola no hover */
.project-screen { position: relative; margin: 14px 14px 0; border-radius: 14px; overflow: hidden; background: #E9EEF5; }
.ps-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #DCE3EE; }
.ps-bar .dots i { width: 8px; height: 8px; }
.ps-url { flex: 1; padding: 3px 10px; border-radius: 999px; background: #fff; font-family: var(--font-mono); font-size: .66rem; color: var(--muted-dark); white-space: nowrap; overflow: hidden; }
.ps-view { height: 210px; overflow: hidden; position: relative; }
.ps-page { transition: transform 3.6s cubic-bezier(.45, 0, .25, 1); }
.project:hover .ps-page { transform: translateY(calc(-100% + 210px)); transition-duration: 4.2s; }

/* captura real do site + selo "Visitar site" no hover */
img.ps-page { display: block; width: 100%; height: auto; }
.project-screen { display: block; text-decoration: none; }
.ps-open {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 12px); opacity: 0;
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 600; white-space: nowrap;
  background: var(--pc); color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
  transition: opacity .35s, transform .45s var(--ease);
}
.project:hover .ps-open, .project-screen:focus-visible .ps-open { opacity: 1; transform: translate(-50%, 0); }
.project-screen:focus-visible { outline: 2px solid var(--pc); outline-offset: 3px; }

.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.project-seg { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pc, var(--green)); margin-bottom: 8px; }
.project-body h3 { margin-bottom: 8px; }
.project-body > p:not(.project-seg) { color: var(--muted-light); font-size: .95rem; }
.project-tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags li { padding: 4px 10px; border-radius: 999px; font-size: .75rem; color: var(--text-light); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-light); }

/* convite para o próximo projeto */
.project-cta {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  padding: 36px; border-radius: var(--radius); border: 2px dashed rgba(61, 255, 138, .35);
  background: linear-gradient(120deg, rgba(61, 255, 138, .06), rgba(0, 194, 209, .05));
}
.project-cta h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.project-cta .cta-copy > p:not(.project-seg) { color: var(--muted-light); max-width: 460px; }
.project-cta .project-seg { color: var(--green); }
.cta-screen { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-light); background: rgba(6, 14, 31, .6); }
.cta-screen .ps-bar { background: rgba(255, 255, 255, .06); }
.cta-screen .ps-url { background: rgba(255, 255, 255, .08); color: var(--text-light); }
.cta-caret { color: var(--green); animation: blink 1s steps(1) infinite; }
.cta-blank { height: 160px; display: grid; place-items: center; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .02) 0 12px, transparent 12px 24px); }
.cta-blank span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: var(--green); border: 2px dashed rgba(61, 255, 138, .5); animation: spin 14s linear infinite; }

/* =========================================================
   CONTATO
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list a { display: flex; flex-direction: column; padding: 18px 22px; border-radius: var(--radius-sm); border: 2px solid var(--line-dark); background: var(--white); font-weight: 600; transition: border-color .3s, transform .3s var(--ease); }
.contact-list a:hover { border-color: var(--cyan); transform: translateX(6px); }
.contact-list span { font-family: var(--font-mono); font-size: .75rem; color: var(--cyan-dark); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.contact-form { padding: 36px; border-radius: var(--radius); background: var(--white); border: 2px solid var(--line-dark); display: grid; gap: 18px; }
.contact-form > label, .contact-form legend { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted-dark); }
.contact-form input:not([type="checkbox"]), .contact-form textarea { font: inherit; font-size: 1rem; padding: 13px 16px; border-radius: 12px; border: 2px solid var(--line-dark); background: var(--paper); color: var(--navy); transition: border-color .3s, background .3s; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--cyan); background: var(--white); }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; gap: 8px; margin-top: 6px; }
.chips span { display: inline-block; padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line-dark); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .3s; }
.chips input:checked + span { background: var(--navy); color: var(--green); border-color: var(--navy); }
.form-note { font-size: .8rem; color: var(--muted-dark); margin: 0; }

.footer { padding: 40px 0; border-top: 1px solid var(--line-light); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: .9rem; color: var(--muted-light); }
.footer p { margin: 0; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid, .ia-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-flow { max-width: 520px; margin: 0 auto; width: 100%; }
  .auto-stage { grid-template-columns: 1fr; }
  .auto-info { grid-column: 1; grid-row: 3; }
  .sites-grid { grid-template-columns: 1fr; }
  .included { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 0; padding: 12px; border-radius: 20px; background: rgba(6, 14, 31, .96); border: 1px solid var(--line-light); }
  .nav-links a { padding: 12px 16px; }
  .nav.open .nav-links { display: flex; }
  .nav > .btn { display: none; }
  .nav-toggle { display: block; }
  .cards-3, .diag, .timeline, .included ul { grid-template-columns: 1fr; }
  .timeline::before, .timeline-fill { display: none; }
  .tier-tab { padding: 10px 14px; font-size: .9rem; }
  .browser-view { height: 540px; }
  .device-toggle { display: none; }
  .flow-node { min-width: 0; padding: 8px 10px; }
  .flow-node small { display: none; }
  .cursor-glow { display: none; }
  .editor-code { font-size: .74rem; min-height: 280px; }
  .editor-code .ln { padding-left: 40px; }
  .editor-code .ln::before { width: 28px; }
  .command { font-size: .72rem; padding: 10px 14px; max-width: 94%; }
  .command code { overflow: hidden; text-overflow: ellipsis; }
  .auto-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -24px; padding: 0 24px 6px; scrollbar-width: none; }
  .auto-tab { flex-shrink: 0; }
  .action-card { min-width: 0; width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* projetos · responsivo */
@media (max-width: 1024px) {
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project-cta { grid-template-columns: 1fr; grid-column: auto; gap: 24px; } /* ocupa a vaga ao lado do 3º projeto */
}
@media (max-width: 760px) {
  .projects { grid-template-columns: 1fr; }
  .project-cta { padding: 24px; grid-column: 1 / -1; }
}
