/* Vilela Tech · site institucional · v3 mobile-first (07/10/2026)
   Base = celular (360–430 px). Breakpoints só com min-width: 640, 900, 1120. */
:root{
  --ink:#0b0a1a; --ink-2:#15132b; --ink-3:#1f1c3a;
  --line:rgba(243,241,255,.10);
  --text:#f3f1ff; --muted:#aaa6c9;
  --violet:#7743db; --violet-2:#a78bfa; --green:#2ed47a;
  --radius:16px; --max:1120px; --gutter:16px;
  --font-display:"Syne",system-ui,sans-serif;
  --font-body:"Manrope",system-ui,sans-serif;
  --tap:44px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
body{
  background:var(--ink);color:var(--text);
  font-family:var(--font-body);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
  background-image:
    radial-gradient(90vw 60vh at 90% -10%, rgba(119,67,219,.22), transparent 60%),
    radial-gradient(60vw 40vh at -10% 60%, rgba(119,67,219,.12), transparent 60%);
}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--violet-2);outline-offset:3px;border-radius:6px}
.skip{position:absolute;left:-999px;top:8px;background:var(--violet);padding:.5rem 1rem;border-radius:8px}
.skip:focus{left:8px;z-index:10}

h1,h2,h3{font-family:var(--font-display);line-height:1.25;letter-spacing:0;text-wrap:balance}
h1{font-size:2.15rem;font-weight:800;line-height:1.22}
h2{font-size:1.55rem;font-weight:700}
h3{font-size:1.05rem;font-weight:700}
.eyebrow{font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--violet-2);font-weight:700;margin-bottom:.7rem}
.lead{font-size:1.02rem;color:var(--muted);max-width:52ch}
.section-head{margin-bottom:1.6rem}
.section-head p:not(.eyebrow){color:var(--muted);margin-top:.7rem;max-width:62ch}

/* Topo: logo em cima, menu em linha rolável (todos os links visíveis) */
.topbar{
  position:sticky;top:0;z-index:5;
  display:flex;flex-direction:column;gap:.35rem;
  padding:.6rem var(--gutter) .45rem;
  background:rgba(11,10,26,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.brand{display:inline-flex;min-height:var(--tap);align-items:center}
.brand img{height:32px;width:auto}
.topbar nav{
  display:flex;gap:.25rem;overflow-x:auto;scrollbar-width:none;
  margin:0 calc(var(--gutter) * -1);padding:0 var(--gutter);
  -webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;
}
.topbar nav::-webkit-scrollbar{display:none}
.topbar nav a{
  flex:none;scroll-snap-align:start;
  min-height:40px;display:inline-flex;align-items:center;
  padding:0 .8rem;border-radius:999px;font-weight:600;font-size:.9rem;color:var(--muted);
  border:1px solid transparent;
}
.topbar nav a:hover{color:var(--text)}
.topbar nav .nav-cta{color:var(--text);border-color:rgba(167,139,250,.5)}

/* Seções */
main>section{padding:48px var(--gutter)}
.actions{display:flex;flex-direction:column;gap:.6rem;margin-top:1.4rem}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;padding:.7rem 1.2rem;border-radius:999px;
  font-weight:700;font-size:.98rem;border:1px solid transparent;
  transition:transform .15s ease,background .2s ease,border-color .2s ease;
}
.btn:active{transform:scale(.98)}
.btn-primary{background:var(--violet);color:#fff}
.btn-primary:hover{background:#6a37cc}
.btn-ghost{border-color:rgba(243,241,255,.22);color:var(--text)}
.btn-ghost:hover{border-color:var(--violet-2)}
.link{display:inline-flex;align-items:center;min-height:var(--tap);color:var(--violet-2);font-weight:600}
.link:hover{text-decoration:underline}

/* Herói */
.hero{display:flex;flex-direction:column;gap:2rem;padding-top:28px}
.hero-copy h1{margin:.2rem 0 1.1rem}
.proof{display:flex;flex-direction:column;gap:.7rem;margin-top:1.6rem;padding-top:1.2rem;border-top:1px solid var(--line)}
.proof div{display:flex;align-items:baseline;gap:.7rem;flex-direction:row-reverse;justify-content:flex-end}
.proof dd{font-family:var(--font-display);font-size:1.7rem;font-weight:800;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:6.2ch}
.proof dt{font-size:.86rem;color:var(--muted);line-height:1.3}
.proof-note{font-size:.74rem;color:var(--muted);margin-top:.5rem;opacity:.8}

/* Assinatura: a conversa */
.chat{
  width:100%;background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);
  box-shadow:0 30px 80px -30px rgba(119,67,219,.45);padding:.85rem .85rem 1rem;
}
.chat-head{display:flex;align-items:center;gap:.7rem;padding:.1rem .2rem .8rem;border-bottom:1px solid var(--line)}
.chat-head .dot{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--violet),var(--violet-2));flex:none;position:relative}
.chat-head .dot::after{content:"";position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:var(--green);border:2px solid var(--ink-2)}
.chat-head strong{display:block;font-size:.92rem}
.chat-head small{color:var(--muted);font-size:.76rem}
.chat-body{list-style:none;display:flex;flex-direction:column;gap:.5rem;padding:.9rem .1rem .3rem}
.chat-body li{max-width:88%;padding:.55rem .8rem;border-radius:16px;font-size:.9rem;line-height:1.45;opacity:0;transform:translateY(6px);animation:pop .4s ease forwards}
.chat-body .in{align-self:flex-start;background:var(--ink-3);border-bottom-left-radius:4px}
.chat-body .out{align-self:flex-end;background:rgba(119,67,219,.35);border:1px solid rgba(167,139,250,.35);border-bottom-right-radius:4px}
.chat-body li:nth-child(1){animation-delay:.3s}
.chat-body li:nth-child(2){animation-delay:1.3s}
.chat-body li:nth-child(3){animation-delay:2.4s}
.chat-body li:nth-child(4){animation-delay:3.4s}
.chat-body li:nth-child(5){animation-delay:4.6s}
@keyframes pop{to{opacity:1;transform:none}}
.chat-body .typing{align-self:flex-end;display:flex;gap:4px;padding:.7rem .9rem;background:rgba(119,67,219,.2)}
.chat-body .typing span{width:6px;height:6px;border-radius:50%;background:var(--violet-2);animation:blink 1.2s infinite}
.chat-body .typing span:nth-child(2){animation-delay:.2s}
.chat-body .typing span:nth-child(3){animation-delay:.4s}
@keyframes blink{0%,80%,100%{opacity:.25}40%{opacity:1}}
.chat figcaption{display:flex;flex-wrap:wrap;gap:.4rem;padding:.5rem .1rem 0}
.tag{font-size:.72rem;font-weight:700;letter-spacing:.03em;padding:.3rem .6rem;border-radius:999px;background:rgba(46,212,122,.14);color:var(--green);border:1px solid rgba(46,212,122,.3)}
.tag-alt{background:rgba(167,139,250,.14);color:var(--violet-2);border-color:rgba(167,139,250,.35)}
.tag-muted{background:rgba(243,241,255,.06);color:var(--muted);border-color:var(--line)}

/* Cartões em pilha (base) */
.segment-list,.pillars,.steps,.tool-list,.service-grid,.case-cols{display:grid;grid-template-columns:1fr;gap:.8rem}
.segment-list{list-style:none}
.segment-list li,.pillars article,.steps li,.tool-list li{background:var(--ink-2);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem 1.1rem}
.segment-list h3,.steps h3,.pillars h3{margin-bottom:.5rem}
.segment-list p,.steps p,.tool-list p,.pillars li,.service-grid p,.case-cols p{color:var(--muted);font-size:.94rem}
.pillars h3{padding-bottom:.55rem;border-bottom:1px solid var(--line);margin-bottom:.8rem}
.pillars ul{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.pillars li{position:relative;padding-left:1rem}
.pillars li::before{content:"";position:absolute;left:0;top:.6em;width:6px;height:6px;border-radius:50%;background:var(--violet-2)}
.product-foot{margin-top:1.4rem;display:flex;flex-direction:column;align-items:flex-start;gap:.4rem}
.product-foot .btn{width:100%}

.steps{list-style:none}
.step-n{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--violet);font-family:var(--font-display);font-weight:800;margin-bottom:.7rem}
.guarantees{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.2rem}
.guarantees li{font-size:.82rem;padding:.45rem .75rem;border-radius:999px;border:1px solid rgba(167,139,250,.35);background:rgba(119,67,219,.12)}

.case-card{background:linear-gradient(160deg,rgba(119,67,219,.22),rgba(21,19,43,.9) 60%);border:1px solid rgba(167,139,250,.3);border-radius:22px;padding:1.4rem 1.2rem}
.case-cols{margin-top:1.4rem;gap:1.1rem}
.case-cols h3{margin-bottom:.3rem;font-size:.98rem;color:var(--violet-2)}
.case-note{margin-top:1.2rem;font-size:.78rem;color:var(--muted);opacity:.8}

.service-grid article{padding:1.3rem 1.1rem;border-top:2px solid var(--violet);background:linear-gradient(180deg,rgba(119,67,219,.10),transparent 70%);border-radius:6px 6px var(--radius) var(--radius)}
.service-grid .num{display:block;font-family:var(--font-display);font-size:.76rem;letter-spacing:.12em;text-transform:uppercase;color:var(--violet-2);margin-bottom:.7rem}
.service-grid h3{margin-bottom:.45rem}
.method{margin-top:1.4rem;padding:1.3rem 1.1rem;border:1px solid var(--line);border-radius:var(--radius)}
.method h3{margin-bottom:.8rem}
.method ol{padding-left:1.2rem;display:grid;grid-template-columns:1fr;gap:.7rem;color:var(--muted);font-size:.94rem}
.method strong{color:var(--text)}

.tool-list{list-style:none}
.tool-list h3 a{display:inline-flex;min-height:var(--tap);align-items:center;color:var(--violet-2)}
.tool-list h3 a:hover{text-decoration:underline}
.tool-list p{margin-top:.2rem}

.about{display:flex;flex-direction:column;gap:1.4rem}
.portrait{max-width:220px}
.portrait img{border-radius:24px;border:1px solid var(--line);box-shadow:0 30px 60px -30px rgba(0,0,0,.8)}
.about-copy p:not(.eyebrow){color:var(--muted);max-width:56ch;margin-top:.7rem}
.social{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.1rem}
.social a{display:inline-flex;align-items:center;min-height:var(--tap);padding:0 .95rem;border:1px solid var(--line);border-radius:999px;font-weight:600;font-size:.92rem}
.social a:hover{border-color:var(--violet-2)}

.faq-list{display:flex;flex-direction:column;gap:.5rem}
.faq-list details{border:1px solid var(--line);border-radius:14px;background:var(--ink-2);padding:0 1rem}
.faq-list summary{cursor:pointer;min-height:var(--tap);padding:.8rem 0;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:1rem;align-items:center}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"+";font-family:var(--font-display);font-size:1.3rem;color:var(--violet-2);flex:none}
.faq-list details[open] summary::after{content:"–"}
.faq-list details p{padding:0 0 1rem;color:var(--muted);font-size:.94rem}

.contact-card{background:linear-gradient(135deg,rgba(119,67,219,.35),rgba(119,67,219,.08));border:1px solid rgba(167,139,250,.35);border-radius:22px;padding:1.4rem 1.2rem}
.contact-card p:not(.eyebrow){color:var(--muted);margin-top:.7rem;max-width:56ch}
.contact-card .btn-primary{word-break:break-all;font-size:.9rem}

.foot{padding:1.6rem var(--gutter) 2.4rem;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:.7rem;color:var(--muted);font-size:.88rem}
.foot img{height:26px;width:auto;opacity:.8}
.foot-links{display:flex;flex-wrap:wrap;gap:.2rem 1rem}
.foot-links a{display:inline-flex;min-height:var(--tap);align-items:center}
.foot-links a:hover{color:var(--text)}

/* ≥640: dois cartões por linha, botões lado a lado */
@media (min-width:640px){
  :root{--gutter:24px}
  h1{font-size:2.6rem}h2{font-size:1.9rem}
  main>section{padding:64px var(--gutter)}
  .actions{flex-direction:row;flex-wrap:wrap;gap:.8rem}
  .product-foot{flex-direction:row;align-items:center;gap:1rem}
  .product-foot .btn{width:auto}
  .segment-list,.steps,.tool-list,.service-grid,.case-cols,.pillars{grid-template-columns:1fr 1fr;gap:1rem}
  .method ol{grid-template-columns:1fr 1fr;gap:.8rem 2rem}
  .about{flex-direction:row;align-items:center;gap:2.5rem}
  .portrait{flex:none;width:240px}
  .foot{flex-direction:row;flex-wrap:wrap;align-items:center;gap:1rem 2rem}
  .foot-links{margin-left:auto}
  .chat{max-width:460px}
  .proof{flex-direction:row;gap:2rem}
  .proof div{flex-direction:column-reverse;align-items:flex-start;gap:.15rem}
  .proof dd{font-size:1.9rem;min-width:0}
  .proof dt{font-size:.8rem}
}
/* ≥900: topo em uma linha, herói em duas colunas, três cartões */
@media (min-width:900px){
  :root{--gutter:40px;--radius:18px}
  h1{font-size:3.2rem;line-height:1.1;letter-spacing:-.01em}h2{font-size:2.2rem;line-height:1.15}
  body{font-size:17px}
  .topbar{flex-direction:row;justify-content:space-between;align-items:center;gap:1rem;padding:.7rem var(--gutter)}
  .brand img{height:38px}
  .topbar nav{margin:0;padding:0;overflow:visible;gap:.5rem}
  .topbar nav a{font-size:.95rem}
  .topbar nav .nav-cta:hover{background:var(--violet);border-color:var(--violet)}
  main>section{max-width:var(--max);margin:0 auto;padding:96px var(--gutter)}
  .hero{display:grid;grid-template-columns:1.1fr .9fr;gap:4rem;align-items:center;min-height:calc(100vh - 72px);padding-top:48px}
  .chat{justify-self:end;max-width:420px}
  .segment-list,.steps,.tool-list,.service-grid,.case-cols{grid-template-columns:repeat(3,1fr)}
  .section-head{margin-bottom:2.4rem}
  .case-card,.contact-card{padding:3rem;border-radius:28px}
  .case-card h2{max-width:26ch}
  .faq-list,.contact-card{max-width:820px}
  .portrait{width:320px}
  .btn:hover{transform:translateY(-1px)}
  .foot{max-width:var(--max);margin:0 auto;padding:2rem var(--gutter) 3rem}
}
@media (min-width:1120px){
  h1{font-size:3.6rem}
  .hero{gap:5rem}
}
