/* =========================================================
   Nabreus · landing page v8
   Preto majoritário, vermelho só em detalhes, tema de terminal.
   Vidro só no que flutua (cápsulas, formulário, menu rolado).
   Fontes: Geist (texto e títulos), Geist Mono (código),
   Archivo 800 só no logotipo.
   ========================================================= */

@property --ga { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  color-scheme: dark;

  --bg: #070708;
  --surface: #0E0F12;
  --surface-2: #14161A;
  --term: #08090B;
  --line: rgba(255, 255, 255, .07);
  --line-hi: rgba(255, 255, 255, .14);
  --text: #EDEEF0;
  --soft: #9EA3AC;          /* 7,6:1 sobre --bg */
  --dim: #5E636C;
  --red: #E11D2E;
  --red-hi: #FF3B4A;
  --ok: #7FD8A0;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --logo: "Archivo", var(--sans);

  --wrap: 1200px;
  --gutter: 24px;
  --sec: 112px;             /* espaço entre seções */
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  /* texto não selecionável e sem menu de "tocar e segurar" (exceto no formulário) */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
img, svg, a { -webkit-user-drag: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
.mono { font-family: var(--mono); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 200; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 16px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; text-wrap: balance; }
p { text-wrap: pretty; }

/* ---------- tela de carregamento ----------
   Só a própria tela some (opacidade). A página por baixo nunca fica
   transparente nem desfocada: isso quebrava o vidro do checkout.ts. */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 28px;
  background: var(--bg); color: var(--text);
  transition: opacity .9s var(--ease) .1s, visibility 0s 1s;
  animation: loaderFallback 0s 7s forwards;   /* sem JS, some sozinha */
}
@keyframes loaderFallback { to { opacity: 0; visibility: hidden; } }
.loader__mark { display: flex; align-items: center; gap: 16px; transition: transform 1s var(--ease-out), opacity .6s var(--ease); }
.loader__mark svg { width: 64px; height: 64px; overflow: visible; }
.loader__stroke { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.7s var(--ease-out) .3s forwards; }
.loader__dot { fill: var(--red); transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop .7s var(--ease-out) 1.8s forwards, glow 2.4s ease-in-out 2.5s infinite; }
.loader__word {
  font-family: var(--logo); font-weight: 800; font-stretch: 112%; font-size: 40px; letter-spacing: -0.025em;
  clip-path: inset(0 100% 0 0); animation: wipe 1.3s var(--ease-out) 1.1s forwards;
}
.loader__bar { width: 200px; height: 2px; background: var(--line-hi); border-radius: 2px; overflow: hidden; transition: opacity .4s var(--ease); }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .3s linear; }
.loader__pct { font-size: 12px; color: var(--dim); letter-spacing: .1em; transition: opacity .4s var(--ease); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 60% { transform: scale(1.35); } to { transform: scale(1); } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes glow { 50% { filter: drop-shadow(0 0 6px rgba(255,59,74,.8)); } }
/* saída: barra e número somem, a logo sobe e a tela se dissolve */
.is-leaving .loader__bar, .is-leaving .loader__pct { opacity: 0; }
.is-leaving .loader__mark { transform: translateY(-8px) scale(.97); }
.is-loaded .loader { opacity: 0; visibility: hidden; }
.is-loaded .loader__mark { opacity: 0; }

/* ---------- barra de progresso de rolagem ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------- fundo: sólido + código em marca d'água + luz ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; --mx: 70%; --my: 30%; }
.bg__code {
  position: absolute; inset: -20px; white-space: pre; overflow: hidden;
  font-size: 13px; line-height: 22px; color: rgba(255,255,255,.02);
}
.bg__code--lit {
  color: rgba(255,255,255,.11);
  -webkit-mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000 0%, transparent 70%);
  mask-image: radial-gradient(240px circle at var(--mx) var(--my), #000 0%, transparent 70%);
}
.bg__light {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px circle at var(--mx) var(--my), rgba(255,255,255,.035), transparent 60%),
    radial-gradient(900px 600px at 85% -10%, rgba(225,29,46,.07), transparent 60%);
}

/* ---------- vidro (só no que flutua) ---------- */
.glass {
  background: rgba(20, 22, 26, .55);
  border: 1px solid var(--line-hi);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 1px 1px rgba(0,0,0,.4), 0 24px 48px -16px rgba(0,0,0,.7);
}

/* ---------- botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer; touch-action: manipulation;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s, transform .2s var(--ease), translate .5s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hi); }
.btn--ghost { border-color: var(--line-hi); color: var(--text); }
.btn--ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.04); }
/* botão magnético (o JS move --bx/--by) */
[data-magnet] { translate: var(--bx, 0) var(--by, 0); }
/* seta que avança */
.btn__arrow { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.btn__arrow .stem { transform-box: fill-box; transform-origin: right center; transform: scaleX(0); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn:hover .btn__arrow .stem { transform: scaleX(1); opacity: 1; }

/* ---------- navegação ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px var(--gutter); }
.nav__bar {
  position: relative; display: flex; align-items: center; gap: 24px;
  width: min(100%, var(--wrap)); margin-inline: auto; padding: 8px 8px 8px 18px; min-height: 58px;
  border: 1px solid transparent; border-radius: 999px;
  transition: background-color .35s var(--ease), border-color .35s, box-shadow .35s;
}
.nav.is-scrolled .nav__bar, .nav.is-open .nav__bar {
  background: rgba(14, 15, 18, .62); border-color: var(--line-hi);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 16px 40px -20px rgba(0,0,0,.8);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.brand .dot { fill: var(--red); }
.brand span { font-family: var(--logo); font-weight: 800; font-stretch: 112%; font-size: 19px; letter-spacing: -0.025em; }
.nav__links { position: relative; display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative; z-index: 1; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; color: var(--soft); text-decoration: none; transition: color .2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
/* marcador que desliza até o link ativo */
.nav__pill {
  position: absolute; top: 0; left: 0; height: 100%; width: var(--pw, 0); translate: var(--px, 0) 0;
  border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-hi);
  opacity: 0; pointer-events: none; transition: translate .45s var(--ease-out), width .45s var(--ease-out), opacity .3s;
}
.nav__pill.is-on { opacity: 1; }
.nav__toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border-radius: 50%; border: 1px solid var(--line-hi); background: rgba(14,15,18,.6); cursor: pointer; }
.nav__toggle i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle i:first-of-type { top: 17px; } .nav__toggle i:last-of-type { top: 25px; }
.nav.is-open .nav__toggle i:first-of-type { top: 21px; transform: rotate(45deg); }
.nav.is-open .nav__toggle i:last-of-type { top: 21px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: clamp(620px, 100svh, 860px); padding: 112px 0 120px;
}
.hero__inner { position: relative; z-index: 2; }
.hero__cmd { display: inline-flex; align-items: center; gap: 8px; min-height: 22px; margin-bottom: 24px; font-size: 14px; color: var(--soft); }
.hero__cmd .prompt { color: var(--red-hi); }
.caret { width: 8px; height: 16px; background: var(--text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__title { font-size: clamp(42px, 6.2vw, 88px); max-width: 10em; }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .ln > span { display: block; }
.hero__sub { margin-top: 24px; max-width: 34em; font-size: 18px; color: var(--soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* N gigante em cor sólida: quase do tom do fundo e acende sob o cursor/dedo (--ga) */
.hero__giant {
  position: absolute; right: max(-3vw, calc((100vw - 1500px) / 2)); top: 50%; width: min(58vw, 760px); aspect-ratio: 57.5 / 60; translate: 0 -50%;
  z-index: 0; pointer-events: none; --gx: 50%; --gy: 50%; transition: --ga .7s var(--ease);
}
.giant__fill {
  position: absolute; inset: 0;
  background:
    radial-gradient(320px circle at var(--gx) var(--gy), rgba(255,255,255, calc(.12 * var(--ga))), transparent 70%),
    linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.018));
  -webkit-mask: url("n-mask.svg") center / 100% 100% no-repeat;
  mask: url("n-mask.svg") center / 100% 100% no-repeat;
}
.giant__dot {
  position: absolute; left: 70.43%; top: 10%; width: 19.13%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(225,29,46, calc(.12 + .14 * var(--ga)));
  box-shadow: 0 0 calc(24px * var(--ga)) rgba(255,59,74, calc(.12 * var(--ga)));
}

/* cápsulas flutuantes */
.caps { position: absolute; top: 0; bottom: 0; left: 50%; width: min(100%, 1440px); translate: -50% 0; z-index: 1; pointer-events: none; }
.cap { position: absolute; will-change: transform; transition: transform .6s var(--ease-out); }
.cap--editor { right: 7%; top: 30%; width: 400px; border-radius: var(--r-lg); overflow: hidden; pointer-events: auto; }
.editor__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.editor__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2D33; }
.editor__bar i:first-child { background: var(--red); }
.editor__bar span { margin-left: 8px; font-size: 12px; color: var(--soft); }
.editor__code { padding: 18px 20px 20px; font-size: 13px; line-height: 1.75; color: var(--text); white-space: pre; }
.editor__code .k { color: #C9CDD6; font-weight: 500; }
.editor__code .f { color: #FFFFFF; }
.editor__code .s { color: var(--ok); }
.editor__code .n { color: #FF8A94; }
.editor__code .c { color: var(--dim); }
.cap--pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 13px; white-space: nowrap; color: var(--text); pointer-events: auto; }
.cap--pill .mono { font-size: 12px; }
.cap--pill .dim { color: var(--dim); font-family: var(--mono); font-size: 12px; }
.cap--pill svg { width: 15px; height: 15px; color: var(--ok); }
.cap--pill i.ok { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(127,216,160,.15); }
.cap--pill .pix { color: var(--red-hi); }
.cap--pill:hover { border-color: rgba(255,255,255,.3); }
.cap--a { right: 34%; top: 22%; }
.cap--b { right: 3%; top: 68%; }
.cap--c { right: 27%; top: 76%; }
.cap--d { right: 4%; top: 18%; }
.cap--e { right: 36%; top: 58%; }

/* botão de descer: mouse com contorno + "Clique aqui!" */
.hero__scroll {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 22px; text-decoration: none; color: var(--text);
}
.hero__mouse {
  position: relative; display: block; width: 26px; height: 42px; border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.55); background: rgba(14,15,18,.5);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.hero__mouse::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 1px solid rgba(255,59,74,.6); animation: ring 2.4s var(--ease-out) infinite; }
.hero__mouse span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--red-hi); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes ring { 0% { opacity: .9; transform: scale(.92); } 80%, 100% { opacity: 0; transform: scale(1.35); } }
.hero__hint {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 999px;
  border: 1px solid var(--line-hi); background-color: rgba(14,15,18,.6);
  background-image: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.09) 50%, transparent 70%);
  background-size: 250% 100%; font-size: 12px; letter-spacing: .04em; white-space: nowrap;
  animation: shine 2.8s linear infinite, nudge 1.8s var(--ease) infinite;
}
.hero__hint-p { color: var(--red-hi); }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.hero__scroll:hover .hero__mouse { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.hero__scroll:hover .hero__hint { border-color: rgba(255,59,74,.6); }

/* entrada do hero: cada peça anima a si mesma (nunca o pai), para o vidro não "saltar" */
.js .hero__cmd, .js .hero__sub, .js .hero__cta, .js .cap, .js .hero__giant, .js .hero__scroll { opacity: 0; }
.js .hero__title .ln > span { transform: translateY(110%); }
.is-loaded .hero__cmd { animation: rise .9s var(--ease-out) .05s both; }
.is-loaded .hero__title .ln > span { transform: none; transition: transform 1.1s var(--ease-out) .12s; }
.is-loaded .hero__title .ln + .ln > span { transition-delay: .26s; }
.is-loaded .hero__sub { animation: riseBlur 1s var(--ease-out) .4s both; }
.is-loaded .hero__cta { animation: rise .9s var(--ease-out) .52s both; }
.is-loaded .hero__giant { animation: fadeIn 1.8s var(--ease) .2s both; }
.is-loaded .cap { animation: capIn 1s var(--ease-out) both; }
.is-loaded .cap--editor { animation-delay: .35s; }
.is-loaded .cap--a { animation-delay: .55s; } .is-loaded .cap--d { animation-delay: .62s; }
.is-loaded .cap--e { animation-delay: .69s; } .is-loaded .cap--b { animation-delay: .76s; }
.is-loaded .cap--c { animation-delay: .83s; }
.is-loaded .hero__scroll { animation: fadeIn 1s var(--ease) 1.2s both; }
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes riseBlur { from { opacity: 0; translate: 0 14px; filter: blur(6px); } to { opacity: 1; translate: 0 0; filter: blur(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes capIn { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }

/* ---------- faixa de normas ----------
   Loop sem emenda: grupos idênticos; a faixa anda exatamente 1 grupo (--w em px). */
.std { overflow: hidden; border-block: 1px solid var(--line); background: rgba(14,15,18,.6); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.std__track { display: flex; width: max-content; animation: marquee var(--dur, 30s) linear infinite; will-change: transform; }
.std:hover .std__track { animation-play-state: paused; }
.std__group { display: flex; flex: none; }
.std span { display: inline-flex; align-items: center; padding: 18px 0; font-family: var(--mono); font-size: 13px; color: var(--soft); letter-spacing: .02em; white-space: nowrap; }
.std span::after { content: ""; flex: none; width: 5px; height: 5px; margin: 0 28px; border-radius: 50%; background: var(--red); }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--w, 50%)), 0, 0); } }

/* ---------- seções ---------- */
.sec { padding-top: var(--sec); }
.sec__head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; align-items: end; margin-bottom: 44px; }
.sec__head h2 { font-size: clamp(34px, 4.2vw, 56px); }
.sec__head p { justify-self: end; max-width: 30em; color: var(--soft); font-size: 17px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  --x: 50%; --y: 0%;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(380px circle at var(--x) var(--y), rgba(255,255,255,.07), transparent 60%);
  transition: opacity .3s var(--ease);
}
.tile:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }
.tile--wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.tile__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); transition: color .3s, border-color .3s; }
.tile__icon svg { width: 22px; height: 22px; }
.tile:hover .tile__icon { color: var(--red-hi); border-color: rgba(255,59,74,.35); }
.tile h3 { font-size: 21px; letter-spacing: -0.025em; }
.tile > p, .tile__text > p { margin-top: 10px; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tags li { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--soft); transition: color .2s, border-color .2s; }
.tags li:hover { color: var(--text); border-color: var(--line-hi); }
.term__line { font-size: 13px; line-height: 2; color: var(--text); opacity: 0; translate: -8px 0; white-space: nowrap; }
.term__line .m { color: var(--red-hi); }
.term__line .ok { color: var(--ok); }
.term__line .n { color: #FF8A94; }
.term__line .dim { color: var(--dim); }
.is-in .term__line { animation: lineIn .4s var(--ease-out) forwards; }
.is-in .term__line:nth-child(2) { animation-delay: .35s; }
.is-in .term__line:nth-child(3) { animation-delay: .7s; }
.is-in .term__line:nth-child(4) { animation-delay: 1.05s; }
@keyframes lineIn { to { opacity: 1; translate: 0 0; } }

/* ---------- terminais (bento e Como funciona) ---------- */
.term { border-radius: var(--r-md); background: var(--term); border: 1px solid var(--line); overflow: hidden; }
.tile__vis.term { padding: 18px; }
.term__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.015); }
.term__bar i { width: 8px; height: 8px; border-radius: 50%; background: #2A2D33; flex: none; }
.term__bar i:first-child { background: var(--red); }
.term__bar span { margin-left: 6px; font-size: 11px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.step {
  position: relative; display: flex; flex-direction: column; padding: 10px 10px 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.step:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.step > .term { height: 212px; margin-bottom: 22px; }
.step__n { padding: 0 14px; margin-bottom: 8px; font-size: 12px; color: var(--red-hi); }
.step > h3, .step > p { padding: 0 14px; }
.step > h3 { font-size: 20px; letter-spacing: -0.02em; }
.step > p { margin-top: 8px; color: var(--soft); font-size: 15px; }

/* linhas do terminal: o JS acende (.is-on) e conclui (.is-done) */
.term__body { padding: 12px 14px; font-size: 12px; line-height: 1.8; color: var(--text); }
.tl { white-space: pre; overflow: hidden; min-height: 1.8em; opacity: 0; translate: 0 3px; transition: opacity .16s linear, translate .16s linear, background-color .3s; }
.tl.is-on { opacity: 1; translate: 0 0; }
.tl .p { color: var(--red-hi); }
.tl.o { color: var(--soft); }
.tl .k { display: inline-block; width: 8ch; color: var(--dim); }
.tl.ok, .tl .g { color: var(--ok); }
.tl .r { color: var(--red-hi); }
.tl .sp { display: inline-block; width: 1ch; color: var(--red-hi); }
.tl .ck { display: none; width: 1ch; color: var(--ok); }
.tl.is-done .sp { display: none; }
.tl.is-done .ck { display: inline-block; }
.tl [data-typed].is-on:not(.is-typed)::after,
.cur { content: ""; display: inline-block; width: 7px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--text); }
.cur { animation: blink 1s steps(1) infinite; }
/* barra de progresso em blocos (enche bloco a bloco) */
.bar {
  position: relative; display: inline-block; width: 10ch; height: 8px; vertical-align: 0;
  background: repeating-linear-gradient(90deg, #24272D 0 calc(1ch - 2px), transparent calc(1ch - 2px) 1ch);
}
.bar::after {
  content: ""; position: absolute; inset: 0; width: calc(var(--f, 0) * 10ch);
  background: repeating-linear-gradient(90deg, var(--text) 0 calc(1ch - 2px), transparent calc(1ch - 2px) 1ch);
  transition: width .9s steps(10, end);
}
.tl.pick.is-done { background: rgba(225,29,46,.12); color: var(--text); box-shadow: inset 2px 0 0 var(--red); }
.tl.pick.is-done .bar::after { background: repeating-linear-gradient(90deg, var(--red-hi) 0 calc(1ch - 2px), transparent calc(1ch - 2px) 1ch); }

/* ---------- contato ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact__copy h2 { font-size: clamp(34px, 4.2vw, 56px); max-width: 10em; }
.contact__copy > p { margin-top: 20px; color: var(--soft); font-size: 17px; max-width: 28em; }
.contact__list { display: grid; gap: 14px; margin-top: 32px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list svg { width: 20px; height: 20px; color: var(--soft); flex: none; }
.contact__list a { text-decoration: none; border-bottom: 1px solid var(--line-hi); transition: border-color .2s; }
.contact__list a:hover { border-color: var(--red-hi); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 28px; border-radius: var(--r-lg); }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-hi); background: rgba(0,0,0,.4); font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 116px; }
.field input::placeholder, .field textarea::placeholder { color: #6F747D; }
.field input:hover, .field textarea:hover { border-color: rgba(255,255,255,.24); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.field [aria-invalid="true"] { border-color: var(--red-hi); }
.form__err { padding: 10px 14px; border-radius: var(--r-sm); background: rgba(225,29,46,.12); border: 1px solid rgba(255,59,74,.4); font-size: 14px; color: #FFC2C7; }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.form__hint { font-size: 13px; color: var(--soft); }
.form__ok { padding: 10px 14px; border-radius: var(--r-sm); background: rgba(52,211,153,.10); border: 1px solid rgba(52,211,153,.35); font-size: 14px; color: #C8F5E2; }
.form__err a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* armadilha para robôs: fora da tela, invisível para pessoas e leitores de tela */
.form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- rodapé ---------- */
.foot { margin-top: var(--sec); padding: 32px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.foot__top, .foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.foot__bottom { margin-top: 20px; font-size: 13px; color: var(--dim); }
.foot__bottom a { text-decoration: none; }
.foot__bottom a:hover { color: var(--soft); }
.foot__top .brand { color: var(--text); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a { text-decoration: none; transition: color .2s; }
.foot__links a:hover { color: var(--text); }

/* ---------- revelação na rolagem ----------
   Animação (não transição) usando a propriedade `translate`, para não
   brigar com o `transform` do hover dos cartões. Títulos entram por máscara. */
.js .rv { opacity: 0; }
.js .rv.is-in { animation: reveal .9s var(--ease-out) var(--d, 0ms) both; }
.js h2.rv.is-in { animation-name: revealClip; }
@keyframes reveal { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes revealClip {
  from { opacity: 0; translate: 0 .35em; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; translate: 0 0; clip-path: inset(-20% -5% -20% -5%); }
}

/* ---------- responsivo ---------- */
@media (max-width: 1240px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap--editor { right: 3%; width: 360px; }
  .cap--a { right: 30%; }
  .cap--e { right: 32%; top: 64%; }
}
@media (max-width: 1024px) {
  :root { --sec: 96px; }
  .hero__title { font-size: clamp(42px, 6.6vw, 72px); }
  .cap--editor { right: 2%; top: 34%; width: 330px; }
  .editor__code { font-size: 12px; }
  .cap--c, .cap--e { display: none; }
}
@media (max-width: 900px) {
  :root { --sec: 88px; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: 112px 0 40px; }
  .hero__giant { width: min(88vw, 560px); right: -4vw; top: auto; bottom: 30px; translate: none; }
  .caps { position: relative; inset: auto; left: auto; width: auto; translate: none; order: 2; height: 340px; margin-top: 44px; }
  .cap--editor { left: 50%; right: auto; top: 40px; width: min(400px, calc(100% - 2 * var(--gutter))); translate: -50% 0; }
  .cap--a { right: auto; left: var(--gutter); top: 0; }
  .cap--d { right: var(--gutter); top: 0; }
  .cap--b { right: var(--gutter); top: auto; bottom: 0; }
  .hero__scroll { position: relative; left: auto; bottom: auto; translate: none; order: 3; align-self: center; margin-top: 24px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-template-columns: minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sec__head { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 32px; }
  .sec__head p { justify-self: start; }
}
@media (max-width: 680px) {
  :root { --gutter: 18px; --sec: 76px; }
  .nav { padding: 10px 12px; }
  .nav__bar { gap: 8px; padding: 6px 6px 6px 14px; min-height: 56px; }
  .nav__toggle { display: block; flex: none; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px; border-radius: var(--r-lg);
    background: rgba(14,15,18,.94); border: 1px solid var(--line-hi);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; translate: 0 -8px;
    transition: opacity .25s var(--ease), translate .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
  .nav__links a { padding: 14px 16px; font-size: 16px; color: var(--text); }
  .nav__pill { display: none; }
  .hero { padding-top: 104px; }
  .hero__cmd { display: block; max-width: 100%; font-size: 12.5px; margin-bottom: 18px; overflow-wrap: anywhere; }
  .hero__cmd .caret { display: inline-block; vertical-align: -3px; margin-left: 4px; }
  .hero__title { font-size: clamp(38px, 11.2vw, 54px); letter-spacing: -0.045em; }
  .hero__sub { margin-top: 18px; font-size: 16.5px; }
  .hero__cta { margin-top: 28px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .caps { height: 318px; margin-top: 40px; }
  .editor__code { font-size: 11.5px; padding: 14px 16px 16px; }
  .cap--pill { padding: 8px 13px; font-size: 12px; }
  .cap--pill .mono { font-size: 11px; }
  .std span { padding: 15px 0; font-size: 12px; }
  .std span::after { margin: 0 22px; }
  .sec__head h2, .contact__copy h2 { font-size: clamp(32px, 9vw, 40px); }
  .sec__head p, .contact__copy > p { font-size: 16px; }
  .bento, .steps { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 22px; }
  .tile--wide { grid-column: auto; }
  .tile__vis.term { padding: 14px; }
  .term__line { font-size: 12px; }
  .step > .term { height: 212px; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .form__foot .btn { width: 100%; }
  .form__hint { width: 100%; text-align: center; }
  .foot__top, .foot__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .loader__stroke { stroke-dashoffset: 0; animation: none; }
  .loader__dot { transform: none; animation: none; }
  .loader__word { clip-path: none; animation: none; }
  .js .rv, .js .hero__cmd, .js .hero__sub, .js .hero__cta, .js .cap, .js .hero__giant, .js .hero__scroll { opacity: 1; animation: none !important; }
  .js .hero__title .ln > span { transform: none; transition: none; }
  .std__track, .caret, .cur, .hero__mouse span, .hero__mouse::before, .hero__hint { animation: none !important; }
  .tl, .bar::after, [data-magnet] { transition: none !important; }
  .term__line { opacity: 1; translate: 0 0; animation: none !important; }
}

/* 404 */
.nf__main { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 80px; }
.nf__main h1 { font-size: clamp(42px, 6.2vw, 88px); max-width: 10em; }
