*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg:    #030712;
    --bg2:   #060d1f;
    --bg3:   #0a1628;
    --blue:  #2563EB;
    --cyan:  #06B6D4;
    --green: #10B981;
    --text:  #F1F5F9;
    --muted: #64748B;
    --sub:   #8BA4C4;
    --border: rgba(37,99,235,0.18);
    --font:  'Space Grotesk', sans-serif;
    --mono:  'JetBrains Mono', monospace;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); overflow-x: hidden; }

/* NAV */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 52px; height: 66px;
    background: rgba(3,7,18,0.85); backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(37,99,235,0.12); transition: background .3s;
}
nav.scrolled { background: rgba(3,7,18,0.97); }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; background: linear-gradient(135deg,var(--blue),var(--cyan)); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 19px; height: 19px; }
.logo-name { font-size: 16px; font-weight: 700; letter-spacing: 2px; background: linear-gradient(90deg,#fff 30%,var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a { font-size: 13px; color: var(--muted); text-decoration: none; letter-spacing: .5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn-nav { padding: 8px 20px; border: 1px solid var(--blue); background: transparent; color: var(--cyan); border-radius: 7px; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all .22s; }
.btn-nav:hover { background: var(--blue); color: #fff; box-shadow: 0 0 22px rgba(37,99,235,.35); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 23px; height: 2px; background: var(--sub); border-radius: 2px; transition: all .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mob { display: none; flex-direction: column; position: fixed; top: 66px; left: 0; right: 0; background: rgba(3,7,18,0.98); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); z-index: 499; }
.mob.open { display: flex; }
.mob a { padding: 16px 52px; font-size: 15px; color: var(--sub); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.04); transition: all .2s; }
.mob a:hover { color: var(--text); background: rgba(37,99,235,.05); }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 52px; position: relative; z-index: 1; }

/* HERO */
#hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 130px 52px 70px; text-align: center; position: relative; overflow: hidden; }
.grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(37,99,235,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(37,99,235,.05) 1px,transparent 1px); background-size: 54px 54px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%,black 30%,transparent 80%); }
.hero-glow { position: absolute; top: -8%; left: 50%; transform: translateX(-50%); width: 800px; height: 550px; background: radial-gradient(ellipse,rgba(37,99,235,.17) 0%,transparent 65%); pointer-events: none; }
.hero-glow2 { position: absolute; bottom: 5%; right: -5%; width: 350px; height: 350px; background: radial-gradient(ellipse,rgba(6,182,212,.09) 0%,transparent 65%); pointer-events: none; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 17px; background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.26); border-radius: 999px; font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: 1.5px; margin-bottom: 30px; position: relative; z-index: 1; opacity: 0; animation: fadeUp .6s .1s forwards; }
.pdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pa 2s ease-in-out infinite; }
@keyframes pa { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(16,185,129,.6)}50%{opacity:.7;box-shadow:0 0 0 7px rgba(16,185,129,0)} }

h1 { font-size: clamp(38px,6vw,76px); font-weight: 700; line-height: 1.04; letter-spacing: -2px; max-width: 840px; margin: 0 auto 26px; position: relative; z-index: 1; opacity: 0; animation: fadeUp .75s .25s forwards; }
.grad { background: linear-gradient(135deg,var(--cyan),var(--blue),#818cf8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.sub { font-size: clamp(16px,1.7vw,19px); color: var(--sub); max-width: 580px; margin: 0 auto 42px; line-height: 1.75; font-weight: 300; position: relative; z-index: 1; opacity: 0; animation: fadeUp .75s .4s forwards; }
.hbtns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; opacity: 0; animation: fadeUp .75s .55s forwards; }
.bp { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; background: linear-gradient(135deg,var(--blue),#1d4ed8); color: #fff; border: none; border-radius: 9px; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all .25s; box-shadow: 0 4px 18px rgba(37,99,235,.3); }
.bp:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(37,99,235,.5); }
.bg { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; font-size: 15px; font-weight: 500; font-family: var(--font); cursor: pointer; transition: all .25s; }
.bg:hover { border-color: rgba(37,99,235,.5); background: rgba(37,99,235,.06); }

.sbar { margin-top: 68px; padding-top: 38px; border-top: 1px solid rgba(255,255,255,.05); display: grid; grid-template-columns: repeat(4,1fr); width: 100%; max-width: 820px; position: relative; z-index: 1; opacity: 0; animation: fadeUp .75s .7s forwards; }
.si { text-align: center; padding: 0 18px; border-right: 1px solid rgba(255,255,255,.05); }
.si:last-child { border-right: none; }
.si-n { font-size: 34px; font-weight: 700; background: linear-gradient(135deg,#fff,var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.si-l { font-size: 11px; color: var(--muted); margin-top: 5px; letter-spacing: .8px; }

/* SECTION HEADERS */
.sey { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--cyan); text-align: center; margin-bottom: 13px; }
.sti { font-size: clamp(26px,3.2vw,44px); font-weight: 700; text-align: center; letter-spacing: -1px; margin-bottom: 10px; }
.ssu { font-size: 16px; color: var(--sub); text-align: center; font-weight: 300; max-width: 520px; margin: 0 auto 52px; line-height: 1.7; }
/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .65s, transform .65s; }
.rv.on { opacity: 1; transform: none; }

/* FLOW */
#como-funciona { padding: 120px 0; }
.flow-grid { display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr; align-items: start; }
.fn { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; text-align: center; position: relative; transition: all .3s; }
.fn:hover { border-color: rgba(37,99,235,.45); transform: translateY(-5px); box-shadow: 0 18px 44px rgba(37,99,235,.14); }
.fn-step { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 2px; padding: 3px 11px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.s1 { background: rgba(37,99,235,.12); border-color: rgba(37,99,235,.4); color: #93bbff; }
.s2 { background: rgba(6,182,212,.12); border-color: rgba(6,182,212,.4); color: var(--cyan); }
.s3 { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.4); color: #6ee7b7; }
.fn-ico { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 16px auto 14px; }
.fn h4 { font-size: 15px; font-weight: 700; margin-bottom: 9px; }
.fn p { font-size: 13px; color: var(--sub); line-height: 1.65; font-weight: 300; }
.farr { display: flex; align-items: center; justify-content: center; padding-top: 55px; color: var(--blue); opacity: .4; font-size: 22px; }

/* TERMINAL */
#ao-vivo { padding: 0 0 120px; }
.tw { max-width: 840px; margin: 0 auto; }
.term { background: #080f1c; border: 1px solid rgba(37,99,235,.2); border-radius: 14px; overflow: hidden; box-shadow: 0 28px 72px rgba(0,0,0,.55); }
.tbar { display: flex; align-items: center; gap: 6px; padding: 12px 17px; background: #060c18; border-bottom: 1px solid rgba(255,255,255,.05); }
.td { width: 11px; height: 11px; border-radius: 50%; }
.tlbl { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-left: 9px; flex: 1; }
.tst { font-family: var(--mono); font-size: 10px; display: flex; align-items: center; gap: 5px; color: var(--green); letter-spacing: 1px; }
.tbody { padding: 26px 26px 20px; font-family: var(--mono); font-size: 13px; line-height: 2.1; min-height: 200px; }
.tl { opacity: 0; }
.tl.on { animation: tl .4s ease forwards; }
@keyframes tl { from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:none} }
.ts { color: var(--muted); font-size: 11px; }
.cok{color:#34d399}.ci{color:#60a5fa}.cw{color:#fbbf24}.cs{color:#86efac}.ck{color:#93c5fd}.cd{color:#374151}.cw2{color:#e2e8f0}
.tfoo { padding: 13px 26px; border-top: 1px solid rgba(255,255,255,.04); display: flex; gap: 28px; flex-wrap: wrap; }
.tfi { font-family: var(--mono); font-size: 12px; display: flex; align-items: center; gap: 7px; }
.tfl { color: var(--muted); } .tfv { color: var(--cyan); } .tfg { color: var(--green); }

/* SERVICES */
#solucoes { padding: 120px 0; }
.sgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.sc { background: var(--bg2); border: 1px solid rgba(255,255,255,.05); border-radius: 18px; padding: 34px 30px; position: relative; overflow: hidden; transition: all .3s; }
.sc::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg,transparent,var(--blue),transparent); opacity: 0; transition: opacity .3s; }
.sc:hover { border-color: rgba(37,99,235,.3); transform: translateY(-4px); }
.sc:hover::before { opacity: 1; }
.sc-n { font-family: var(--mono); font-size: 11px; color: rgba(37,99,235,.6); letter-spacing: 2px; margin-bottom: 18px; }
.sc-ico { width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 18px; }
.sc h3 { font-size: 19px; font-weight: 700; margin-bottom: 11px; letter-spacing: -.3px; }
.sc p { font-size: 14px; color: var(--sub); line-height: 1.75; font-weight: 300; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; padding: 4px 11px; border-radius: 999px; background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.2); color: rgba(147,187,255,.85); letter-spacing: .4px; }

/* CASES */
#cases { padding: 10px 0; background: linear-gradient(180deg,transparent,rgba(37,99,235,.03),transparent); }
.cgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.cc { background: var(--bg3); border: 1px solid rgba(255,255,255,.05); border-radius: 16px; padding: 26px 24px; transition: all .3s; }
.cc:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0,0,0,.4); }
.cbg { display: inline-block; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .5px; }
.cbb { background: rgba(37,99,235,.15); color: #93bbff; border: 1px solid rgba(37,99,235,.25); }
.cbc { background: rgba(6,182,212,.15); color: var(--cyan); border: 1px solid rgba(6,182,212,.25); }
.cbg2 { background: rgba(16,185,129,.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,.25); }
.cc h4 { font-size: 16px; font-weight: 700; margin-bottom: 9px; letter-spacing: -.2px; }
.cc p { font-size: 13px; color: var(--sub); line-height: 1.7; font-weight: 300; margin-bottom: 18px; }
.cm { display: flex; align-items: baseline; gap: 8px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.05); }
.cm-n { font-size: 28px; font-weight: 700; background: linear-gradient(135deg,var(--cyan),var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cm-d { font-size: 12px; color: var(--muted); font-weight: 300; }

/* METRICS */
.met { padding: 0 0 120px; }
.mgrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mc { background: var(--bg2); border: 1px solid rgba(255,255,255,.05); border-radius: 16px; padding: 34px 26px; text-align: center; }
.mc-n { font-size: 50px; font-weight: 700; background: linear-gradient(135deg,var(--cyan),var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.mc-l { font-size: 13px; color: var(--sub); margin-top: 9px; font-weight: 300; line-height: 1.5; }

/* CONTACT */
#contato { padding: 120px 0; }
.cin { display: grid; grid-template-columns: 1fr 400px; gap: 56px; align-items: start; }
.cl h2 { font-size: clamp(26px,3.2vw,42px); font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.1; }
.cl > p { font-size: 16px; color: var(--sub); font-weight: 300; line-height: 1.75; margin-bottom: 34px; }
.cinfo { display: flex; flex-direction: column; gap: 16px; }
.cr { display: flex; align-items: flex-start; gap: 13px; }
.cico { width: 38px; height: 38px; border-radius: 9px; background: rgba(37,99,235,.12); border: 1px solid rgba(37,99,235,.2); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.clbl { font-size: 11px; color: var(--muted); letter-spacing: .5px; font-family: var(--mono); margin-bottom: 3px; }
.cval { font-size: 14px; font-weight: 500; }
.fb { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 34px 30px; }
.frow { grid-template-columns: 1fr 1fr; gap: 13px; }
.fg { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
.fg label { font-size: 11px; color: var(--muted); letter-spacing: 1px; font-family: var(--mono); }
.fg input, .fg select, .fg textarea { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: 9px; padding: 12px 14px; font-size: 14px; font-family: var(--font); color: var(--text); outline: none; transition: border-color .2s, background .2s; -webkit-appearance: none; }
.fg input::placeholder, .fg textarea::placeholder { color: rgba(255,255,255,.2); }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: rgba(37,99,235,.5); background: rgba(37,99,235,.04); }
.fg select option { background: #0a1628; color: var(--text); }
.fg textarea { resize: none; min-height: 105px; }
.ferr { font-size: 11px; color: #f87171; margin-top: 2px; display: none; }
input.inv, select.inv, textarea.inv { border-color: rgba(248,113,113,.5) !important; }
.bsub { margin-top: 10px; width: 100%; padding: 14px; background: linear-gradient(135deg,var(--blue),#1d4ed8); color: #fff; border: none; border-radius: 9px; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; transition: all .25s; box-shadow: 0 4px 18px rgba(37,99,235,.3); display: flex; align-items: center; justify-content: center; gap: 8px; }
.bsub:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(37,99,235,.5); }
.bsub:disabled { opacity: .6; transform: none; }
.fok { display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 38px 18px; gap: 14px; }
.fok.show { display: flex; }
.fok-ico { font-size: 46px; animation: pop .4s ease; }
@keyframes pop { from{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1} }
.fok h3 { font-size: 21px; font-weight: 700; }
.fok p { font-size: 14px; color: var(--sub); font-weight: 300; }
.brst { margin-top: 6px; background: none; border: 1px solid var(--border); color: var(--sub); padding: 8px 18px; border-radius: 7px; font-family: var(--font); font-size: 13px; cursor: pointer; transition: all .2s; }
.brst:hover { color: var(--text); border-color: rgba(37,99,235,.4); }

/* FOOTER */
footer { border-top: 1px solid rgba(255,255,255,.04); padding: 46px 52px 34px; }
.ftop { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 44px; padding-bottom: 38px; border-bottom: 1px solid rgba(255,255,255,.04); }
.fbr p { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.7; margin-top: 13px; max-width: 230px; }
.socs { display: flex; gap: 9px; margin-top: 18px; }
.so { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; text-decoration: none; transition: all .2s; }
.so:hover { border-color: rgba(37,99,235,.4); color: var(--text); background: rgba(37,99,235,.08); }
.fcol h5 { font-size: 12px; font-weight: 700; letter-spacing: 1px; margin-bottom: 16px; color: rgba(255,255,255,.7); }
.fcol ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.fcol ul a { font-size: 13px; color: var(--muted); text-decoration: none; font-weight: 300; transition: color .2s; }
.fcol ul a:hover { color: var(--sub); }
.fbot { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; flex-wrap: wrap; gap: 9px; }
.fbot p { font-size: 12px; color: var(--muted); }

#stt { position: fixed; bottom: 30px; right: 30px; width: 42px; height: 42px; border-radius: 11px; background: rgba(37,99,235,.14); border: 1px solid rgba(37,99,235,.3); color: var(--cyan); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 400; opacity: 0; transform: translateY(10px); transition: all .3s; text-decoration: none; font-size: 17px; }
#stt.show { opacity: 1; transform: none; }
#stt:hover { background: rgba(37,99,235,.3); }

@keyframes fadeUp { from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none} }
@keyframes spin { to{transform:rotate(360deg)} }

@media(max-width:960px){
    nav { padding: 0 28px; }
    .nav-links, .btn-nav { display: none; }
    .hamburger { display: flex; }
    .wrap { padding: 0 28px; }
    #hero { padding: 115px 28px 60px; }
    .sbar { grid-template-columns: repeat(2,1fr); gap: 22px; max-width: 100%; }
    .si { border-right: none; }
    .flow-grid { grid-template-columns: 1fr; }
    .farr { padding: 0; height: 36px; font-size: 22px; transform: rotate(90deg); }
    .sgrid, .cgrid, .mgrid { grid-template-columns: 1fr; }
    .cin { grid-template-columns: 1fr; }
    .frow { grid-template-columns: 1fr; }
    .ftop { grid-template-columns: 1fr 1fr; }
    footer { padding: 38px 28px 28px; }
    .mob a { padding: 16px 28px; }
}
@media(max-width:560px){
    .hbtns { flex-direction: column; align-items: center; }
    .bp, .bg { width: 100%; max-width: 300px; justify-content: center; }
    .ftop { grid-template-columns: 1fr; }
}
