/* Nethook — site público e documentação */
:root {
  --ink: #070b18;
  --ink-2: #0e1530;
  --ink-3: #1a2347;
  --red: #ff1a1f;
  --red-2: #d9000a;
  --blue: #2a6bff;
  --paper: #f4f5f9;
  --text: #0f1424;
  --muted: #646b80;
  --line: #e4e6ee;
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --tech: 'Michroma', var(--font);
  --mono: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.eyebrow { font: 400 11px var(--tech); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; line-height: 1.12; margin: 0; font-weight: 300; }
h3 { font-weight: 600; letter-spacing: 0; }
b, strong { font-weight: 700; }
code { font-family: var(--mono); font-size: .88em; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font: 600 15px var(--font); text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--red); color: #fff; box-shadow: none; }
.btn.primary:hover { background: var(--red-2); }
.btn.ghost { border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); }
.btn.dark { background: var(--ink); color: #fff; }

/* ---------- Navegação ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background .2s, box-shadow .2s; }
.nav.scrolled { background: rgba(7, 11, 24, .86); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #c9cfe3; text-decoration: none; font-size: 14.5px; }
.nav-links a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; }
.nav-cta .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: var(--ink); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-art { position: absolute; inset: -40px; transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .2s linear; }
.hero-img { position: absolute; inset: 0; background: url('hero-network.jpg') center / cover no-repeat; animation: hero-drift 38s ease-in-out infinite alternate; transform-origin: 70% 40%; }
@keyframes hero-drift {
  0% { transform: scale(1.04) translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: scale(1.1) translate3d(-1.2%, .8%, 0) rotate(.6deg); }
  100% { transform: scale(1.07) translate3d(1%, -1%, 0) rotate(-.4deg); }
}
.hero-glow { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform, opacity; }
.hero-glow.red { width: 46vw; height: 46vw; right: -12vw; top: -14vw; background: radial-gradient(circle, rgba(255, 26, 31, .55), transparent 65%); animation: glow-breathe 9s ease-in-out infinite; }
.hero-glow.blue { width: 42vw; height: 42vw; left: -14vw; bottom: -16vw; background: radial-gradient(circle, rgba(42, 107, 255, .5), transparent 65%); animation: glow-breathe 11s ease-in-out infinite reverse; }
@keyframes glow-breathe { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
#hero-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.6) 35%, #000 60%); mask-image: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.6) 35%, #000 60%); }
.hero.alive #hero-canvas { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 11, 24, .8), rgba(7, 11, 24, .3) 55%, rgba(7, 11, 24, .05)), linear-gradient(180deg, transparent 62%, var(--ink)); }
@media (prefers-reduced-motion: reduce) { .hero-img, .hero-glow { animation: none; } .hero-art { transform: none; } #hero-canvas { opacity: 1; transition: none; } }
.hero .wrap { padding: 140px 0 90px; display: grid; gap: 26px; }
.hero h1 { font-size: clamp(33.6px, 5.28vw, 70.4px); /* 20% menor */ max-width: 15ch; font-weight: 300; }
.hero h1 em { font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c9cfe3; max-width: 58ch; margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 34px; flex-wrap: wrap; margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); max-width: 760px; }
.hero-facts div { display: flex; flex-direction: column; gap: 2px; }
.hero-facts b { font: 400 15px var(--tech); letter-spacing: .04em; }
.hero-facts span { color: #8f98b8; font-size: 13.5px; }

/* ---------- Seções ---------- */
section { padding: 110px 0; }
.section-head { max-width: 680px; display: grid; gap: 14px; margin-bottom: 54px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 46px); }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: #ffc9ca; box-shadow: 0 20px 50px rgba(15, 20, 36, .07); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #fff0f0; color: var(--red); margin-bottom: 18px; }
.feature:nth-child(3n+2) .ico { background: #edf3ff; color: var(--blue); }
.feature:nth-child(3n) .ico { background: var(--ink); color: #fff; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

.how { background: var(--paper); }
.how-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: '0' counter(st); font: 400 13px var(--tech); color: var(--red); padding-top: 4px; }
.steps h3 { font-size: 19px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }
.how-art { background: none; padding: 0; }
.how-art img { display: block; width: 100%; height: auto; }

.dev { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.dev::before { content: ''; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(42, 107, 255, .35), transparent 60%); }
.dev::after { content: ''; position: absolute; inset: -50% auto auto -20%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255, 26, 31, .25), transparent 60%); }
.dev .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.dev .section-head { margin: 0; }
.dev .section-head p { color: #aab3d4; }
.checklist { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; color: #c9cfe3; }
.checklist li::before { content: '→'; color: var(--red); margin-right: 10px; }
.code { background: #0b1124; border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); }
.code-tabs { display: flex; gap: 4px; padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-tabs button { background: none; border: 0; color: #8f98b8; font: 500 12.5px var(--font); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.code-tabs button.on { background: rgba(255, 255, 255, .08); color: #fff; }
.code pre { margin: 0; padding: 20px 22px; font: 13px/1.7 var(--mono); color: #d6dcf5; overflow-x: auto; }
.code pre[hidden] { display: none; }
.c-k { color: #ff6b6f; } .c-s { color: #8cc6ff; } .c-c { color: #5d6788; } .c-n { color: #ffd479; }

.cta { text-align: center; background: #fff; color: var(--ink); border-top: 1px solid #e4e6ee; }
.cta h2 { font-size: clamp(32px, 4.4vw, 58px); }
.cta p { color: #5b6275; font-size: 18px; margin: 16px auto 30px; max-width: 54ch; }
.cta .btn.dark:hover { background: var(--navy-2, #183ba3); }

footer { background: var(--ink); color: #8f98b8; padding: 60px 0 40px; font-size: 14px; }
footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
footer h4 { color: #fff; font: 400 11px var(--tech); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
.legal { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 20px; grid-column: 1 / -1; font-size: 13px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Documentação ---------- */
.docs-top { background: var(--ink); color: #fff; }
.docs-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.docs-top nav { display: flex; gap: 18px; font-size: 14px; }
.docs-top nav a { color: #c9cfe3; text-decoration: none; }
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 40px 0 100px; }
.docs aside { position: sticky; top: 24px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.docs aside h5 { font: 400 10px var(--tech); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.docs aside a { text-decoration: none; color: var(--muted); padding: 5px 10px; border-radius: 8px; }
.docs aside a:hover, .docs aside a.on { background: #fff0f0; color: var(--red-2); }
.docs article { min-width: 0; max-width: 820px; }
.docs article h1 { font-size: 40px; margin-bottom: 12px; }
.docs article h2 { font-size: 26px; margin: 64px 0 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.docs article h3 { font-size: 17px; margin: 28px 0 10px; }
.docs article p, .docs article li { color: #2b3149; }
.docs article pre { background: var(--ink); color: #d6dcf5; padding: 18px 20px; border-radius: 14px; overflow-x: auto; font: 13px/1.65 var(--mono); }
.docs article :not(pre) > code { background: #f1f2f7; padding: 2px 6px; border-radius: 6px; }
.endpoint { display: inline-flex; align-items: center; gap: 10px; font: 13.5px var(--mono); background: #f6f7fb; border: 1px solid var(--line); padding: 8px 12px; border-radius: 10px; }
.verb { font-weight: 700; font-size: 11.5px; padding: 2px 7px; border-radius: 6px; color: #fff; background: var(--blue); }
.verb.post { background: var(--red); }
.docs table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.docs th { text-align: left; font: 400 9.5px var(--tech); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 8px; }
.docs td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.docs td:first-child { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.note { border-left: 3px solid var(--red); background: #fff6f6; padding: 12px 16px; border-radius: 0 12px 12px 0; margin: 16px 0; }
.note.blue { border-color: var(--blue); background: #f2f6ff; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .features, .how-grid, .dev .wrap, footer .wrap, .docs { grid-template-columns: 1fr; }
  .docs aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .docs aside h5 { width: 100%; }
  section { padding: 76px 0; }
}
@media (max-width: 520px) {
  .nav-cta .btn.ghost { display: none; }
  .nav .wrap > a img { height: 18px; }
  .hero-facts { gap: 18px; }
}

/* nav-logo-fix */
.nav .wrap > a, .docs-top .wrap > a { display: flex; align-items: center; }
.nav .wrap > a img, .docs-top .wrap > a img { display: block; }

/* Hero recortado: termina logo depois dos destaques (PIX IN + OUT…), sem ocupar a tela inteira */
.hero { min-height: 0; align-items: flex-start; padding: 0; }
.hero .wrap { padding: 96px 0 92px; }
@media (max-width: 720px) { .hero .wrap { padding: 104px 0 64px; } }
.pix-fact { display: inline-flex; align-items: center; gap: 8px; } .pix-fact img { width: 16px; height: 16px; object-fit: contain; }
