/* =====================================================================
   tema.css · base visual comum a TODAS as páginas do site
   Carrega depois do need.css. Traz a fonte Sora, os dois temas (escuro e
   claro), o cabeçalho e os botões nos dois temas e as etiquetas.
   A home acrescenta o css/home.css por cima. As outras páginas usam só
   este arquivo, com <body class="tema"> (e "pg" em Sites e Sistemas).
   ===================================================================== */

@font-face{font-family:"Sora";font-style:normal;font-weight:100 800;font-display:swap;
  src:url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Sora";font-style:normal;font-weight:100 800;font-display:swap;
  src:url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* ---------- temas ---------- */
:root{
  --ambar:#F5A623;
  --mono:ui-monospace,"SF Mono","Cascadia Mono","Roboto Mono",Consolas,monospace;
  --ease:cubic-bezier(.16,1,.3,1);
  --font:"Sora",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
html[data-tema="escuro"]{
  --bg:#0B0B0C; --surface:#131317; --surface-2:#1A1B20; --border:#2A2D34; --field-border:#5C636C;
  --text:#F4F6F8; --text-muted:#9AA2AC; --titulo:#FFFFFF; --acento:#5CB6EF; --ambar-t:#F5B94A;
  --gray-900:#141518; --gray-500:#7B8590; --erro:#FF9B9B; --ok:#62D69A;
  --brilho:rgba(28,153,233,.16); --sombra:0 30px 70px -34px rgba(0,0,0,.9);
}
html[data-tema="claro"]{
  --bg:#F1F4F8; --surface:#FFFFFF; --surface-2:#E6ECF2; --border:#D2DAE3; --field-border:#8A96A3;
  --text:#171B20; --text-muted:#47525E; --titulo:#0B0B0C; --acento:#106CAB; --ambar-t:#8F5400;
  --gray-900:#FFFFFF; --gray-500:#5A6672; --erro:#B3261E; --ok:#0E7A45;
  --brilho:rgba(28,153,233,.10); --sombra:0 30px 60px -36px rgba(16,40,70,.35);
  --need-blue-300:#106CAB;   /* azul de texto: no fundo claro precisa ser o escuro */
}

body.tema{transition:background-color .7s ease,color .7s ease}
body.tema :where(h1,h2,h3,p,li,a,span,b,i,small,em,summary,details,article,div,ol,ul,label,input,select,mark,svg,header,footer,button){
  transition:color .7s ease,background-color .7s ease,border-color .7s ease,box-shadow .7s ease}
body.tema h1,body.tema h2,body.tema h3,body.tema h4{color:var(--titulo)}
body.tema a{color:var(--acento)}
body.tema b,body.tema strong{color:var(--titulo);font-weight:700}
.sprite{position:absolute}
.ic{width:18px;height:18px;flex:none}
.ancora{position:absolute;top:-90px}

/* ---------- header sobre os dois temas ---------- */
body.tema header.site{color:var(--titulo)}
body.tema header.site::before{background:var(--bg);
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.82) 45%,rgba(0,0,0,.3) 76%,transparent 100%);
  mask-image:linear-gradient(to bottom,#000 0%,rgba(0,0,0,.82) 45%,rgba(0,0,0,.3) 76%,transparent 100%)}
body.tema .logo{color:var(--titulo)}
body.tema .nav-links a{color:var(--text-muted)}
body.tema .nav-links a:hover,body.tema .nav-drop-btn:hover,body.tema .nav-drop.open .nav-drop-btn{color:var(--titulo)}
body.tema .nav-links a.nav-cta{color:#fff}
body.tema .menu-btn{color:var(--titulo)}
body.tema .sub-menu{background:var(--surface)}
body.tema .btn{color:#fff}
body.tema .btn-ghost{color:var(--titulo);background:transparent;border-color:var(--field-border)}
body.tema .btn-ghost:hover{color:var(--acento);border-color:var(--acento)}
.btn-lg{font-size:16.5px;padding:17px 28px;min-height:58px;border-radius:14px}
.btn.cheio{width:100%}
.btn .ic{transition:transform .25s var(--ease)}
.btn:hover .ic{transform:translateX(4px)}

/* ---------- etiquetas ---------- */
.tag{display:inline-flex;align-items:center;gap:10px;font-family:var(--mono);font-size:12px;letter-spacing:.16em;
  text-transform:uppercase;color:var(--acento);font-weight:600;line-height:1.4}
.tag::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px var(--brilho);flex:none}
.hl{color:var(--acento)}
.hl-ambar{color:#F5B94A}
/* as páginas antigas usam .eyebrow: fica igual à etiqueta da home */
body.tema .eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.16em;color:var(--acento);font-weight:600;gap:10px;line-height:1.4}
body.tema .eyebrow::before{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px var(--brilho)}
body.tema h1,body.tema h2{letter-spacing:-.045em}
body.tema .sec-head h2{font-size:clamp(29px,3.9vw,48px);line-height:1.06}
body.tema .card{box-shadow:var(--sombra);border-radius:20px}
body.tema ::selection{background:rgba(28,153,233,.3);color:inherit}

/* ---------- alvos de toque: mínimo de 44px ---------- */
body.tema .logo{padding:8px 0}
body.tema .foot a{min-height:44px;display:inline-flex;align-items:center}

/* ---------- rodapé ---------- */
body.tema footer.site{color:var(--text-muted)}
body.tema .foot-brand{color:var(--titulo)}
body.tema .foot a{color:var(--text-muted)}
body.tema .foot a:hover{color:var(--acento)}
body.tema footer.funil{color:var(--text-muted)}

/* =====================================================================
   Sites e Sistemas (<body class="tema pg">): o mesmo cérebro da home no
   topo, parado e mais discreto, e as seções alternando escuro e claro.
   ===================================================================== */
body.pg .hero{--text:#F4F6F8;--text-muted:#B4BDC8;--titulo:#fff;--acento:#5CB6EF;--gray-500:#8C97A3;--field-border:rgba(255,255,255,.34);--brilho:rgba(28,153,233,.2);
  margin-top:-84px;padding:156px 0 110px;background:#020A15;color:var(--text)}
body.pg .hero::before{content:"";position:absolute;inset:0 0 0 40%;z-index:0;pointer-events:none;
  background:url("../video/cerebro-hero-poster.jpg") 88% 44%/cover no-repeat}
body.pg .hero::after{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(90deg,#020A15 40%,rgba(2,10,21,.86) 56%,rgba(2,10,21,.5) 78%,rgba(2,10,21,.62) 100%),
             linear-gradient(to bottom,rgba(2,10,21,.8) 0%,rgba(2,10,21,0) 32%)}
/* a antiga "aurora" vira a passagem suave do topo para a cor da página */
body.pg .hero .aurora{display:block;position:absolute;inset:auto 0 -1px 0;height:150px;z-index:1;opacity:1;filter:none;animation:none;
  background:var(--bg);background-image:none;transition:background-color .7s ease;
  -webkit-mask-image:linear-gradient(to bottom,transparent,#000 92%);mask-image:linear-gradient(to bottom,transparent,#000 92%)}
body.pg .hero .wrap{z-index:2}
body.pg .hero h1{font-size:clamp(33px,4.4vw,58px);line-height:1.04}
body.pg .hero .btn-ghost{background:rgba(2,10,21,.35)}
body.pg section{padding:clamp(72px,9vw,120px) 0}
body.pg .port-card .tag,body.pg .prod-tag{font-family:var(--mono);letter-spacing:.12em}
body.pg .port-card .tag::before{display:none}
/* botão claro de Sites e Sistemas: texto escuro sobre o azul vivo (contraste 6,9:1) */
body.tema .btn-accent{color:#06121C}
body.tema .btn-accent:hover{background:#5CB6EF;color:#06121C}
body.pg .transparencia p b{color:var(--titulo)}
body.pg .cta-final .wrap{background:linear-gradient(160deg,var(--brilho),var(--surface) 60%)}
@media(max-width:760px){
  body.pg .hero{margin-top:-76px;padding:118px 0 70px}
  body.pg .hero::before{inset:0}
  body.pg .hero::after{background:linear-gradient(90deg,#020A15 8%,rgba(2,10,21,.84) 60%,rgba(2,10,21,.7) 100%)}
}

@media(prefers-reduced-motion:reduce){
  body.tema,body.tema *{transition-duration:.01ms!important}
}
