/* =========================================================
   HUB BASE — AXYS
   Fundamentos visuais e componentes reutilizáveis
   CSS BASE PARA TODAS AS TELAS
   hub/static/css/hub.base.css
========================================================= */

:root{
  --bg:#0b0f14;
  --panel:#101620;
  --border:#1b2432;
  --text:#e9edf2;
  --muted:#a3adba;
  --accent:#2f80ff;
  --accent2:#00d4ff;
  --header-bg: rgba(11,15,20,.75);
  --panel-strong: rgba(16,22,32,.9);
  --panel-soft: rgba(16,22,32,.6);
  --surface-1: rgba(255,255,255,.03);
  --surface-2: rgba(255,255,255,.02);
  --bg-grad-1: rgba(47,128,255,.18);
  --bg-grad-2: rgba(0,212,255,.12);
  --radius:14px;
  --max:1120px;
}

[data-theme="light"]{
  --panel:#ffffff;
  --border:#d6dde6;
  --text:#101826;
  --muted:#4b5563;
  --accent:#2563eb;
  --accent2:#06b6d4;
  --panel-strong: rgba(255,255,255,.98);
  --panel-soft: rgba(255,255,255,.85);
  --surface-1: rgba(16,24,40,.04);
  --surface-2: rgba(16,24,40,.03);
}

*{ box-sizing:border-box; margin:0; padding:0; }

body{
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 600px at 10% -10%, var(--bg-grad-1), transparent 55%),
    radial-gradient(800px 600px at 90% 10%, var(--bg-grad-2), transparent 55%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

/* Light theme: manter header/footer e fundo escuros */
body[data-theme="light"]{
  color:var(--text);
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 22px; }

/* ================= HEADER ================= */
header{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--header-bg);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  gap:16px;
}

nav{
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}

.navlink{
  font-size:14px;
  font-weight:600;
  color:var(--muted);
}

.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  font-size:14px;
  font-weight:700;
  background:var(--surface-1);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  cursor:pointer;
}

.btn:hover{ border-color: rgba(47,128,255,.55); }

.btn-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#071019;
  border:none;
}

.theme-toggle{
  width:32px;
  height:32px;
  min-width:32px;
  padding:0;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--text);
}

.theme-icon{
  width:18px;
  height:18px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.brand {
  display: flex;
  align-items: center;
}

.brand-badge {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 36px;
  max-height: 45px;
  width: auto;
  display: block;
}

/* ================= KICKER / RADAR ================= */
.kicker{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:14px;
  font-weight:600;
  color:#9bb3c9;
  margin-bottom:14px;
}

.kicker-dot{
  position:relative;
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--accent);
}

.kicker-dot::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  border:2px solid rgba(47,128,255,.55);
  animation:radarPulse 2.6s ease-out infinite;
}

@keyframes radarPulse{
  0%{ transform:scale(.6); opacity:.9; }
  70%{ transform:scale(2.4); opacity:0; }
  100%{ opacity:0; }
}

/* ================= SECTIONS ================= */
section{
  padding:72px 0;
  border-top:1px solid var(--border);
}

body[data-theme="light"] section{
  background:#f6f8fc;
  color:var(--text);
  border-top:1px solid #dfe6ef;
}

section h2{
  font-size:28px;
  margin-bottom:14px;
  letter-spacing:-.3px;
}

section p.lead{
  max-width:820px;
  color:var(--muted);
  margin-bottom:36px;
}

/* ================= GRID ================= */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.card{
  padding:22px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:linear-gradient(180deg,var(--panel-strong),var(--panel-soft));
}

body[data-theme="light"] .card,
body[data-theme="light"] .app,
body[data-theme="light"] .modal{
  background:linear-gradient(180deg,var(--panel-strong),var(--panel-soft));
  border-color:var(--border);
  color:var(--text);
}


.card h3{
  margin-bottom:10px;
  font-size:18px;
}

.card p{
  color:var(--muted);
  font-size:14px;
  margin-bottom:12px;
}

/* ================= MODAL ================= */
.modal-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.62);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 999;
}

.modal{
  width:min(820px, 100%);
  border-radius: 16px;
  border:1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-strong), var(--panel-soft));
  box-shadow: 0 22px 80px rgba(0,0,0,.55);
  overflow:hidden;
}

.modal-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(27,36,50,.85);
}

.modal-top h3{
  font-size:18px;
  margin:0;
  letter-spacing:-.2px;
}

.modal-top p{
  margin-top:6px;
  color: var(--muted);
  font-size: 13px;
  max-width: 70ch;
}

.modal-close{
  border:1px solid var(--border);
  background: var(--surface-1);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor:pointer;
  line-height: 1;
}

.modal-body{
  padding: 16px 18px 18px;
  color: var(--text);
  font-size: 14px;
}

.modal-body .bullets{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-left: 16px;
  color: #cfd7e2;
  opacity: .95;
}

.modal-foot{
  padding: 14px 18px 18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  border-top: 1px solid rgba(27,36,50,.85);
}

/* ================= FOOTER ================= */
footer{
  padding:36px 0;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:13px;
}

footer .foot{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
}

/* ================= RESPONSIVE ================= */
@media(max-width:980px){
  .grid{ grid-template-columns:1fr; }
}

@media(max-width:520px){
  nav{ gap:10px; }
  .btn{ padding:9px 12px; }
}

/* =========================================================
   EASY — CAROUSEL 5-UP (imutável) + setas
   ========================================================= */

/* ===== EASY SHELL (botões laterais) ===== */
.easy-shell{
  display:grid;
  grid-template-columns: 52px 1fr 52px; /* botão | carrossel | botão */
  gap: 14px;
  align-items:center; /* centraliza verticalmente as setas */
}

.easy-side{
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

/* garante que o corte continua no miolo */
.easy-shell .easy-carousel{
  overflow:hidden;
}


.easy-nav{
  display:flex;
  align-items:center;
  gap: 8px;
}

/* container “corta” o excesso e deixa só 5 por vez */
.easy-carousel{
  overflow:hidden;
}

/* track horizontal com snap */
.easy-track{
  --easy-gap: 18px;

  display:flex;
  gap: var(--easy-gap);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;

  /* evita “corte” de sombra/hover de card */
  padding: 6px 2px 10px;
  margin: 0 -2px;
}

/* esconde scrollbar sem quebrar scroll */
.easy-track::-webkit-scrollbar{ height: 0; }
.easy-track{ scrollbar-width: none; }

/* 5 cards visíveis (imutável) */
.easy-track > .app{
  flex: 0 0 calc((100% - (4 * var(--easy-gap))) / 5);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* ================= MICROAPPS (GRID BASE) ================= */
.apps{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
}

.app{
  text-align:left;
  padding:22px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:var(--surface-2);
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:180px;
}

.app-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.app p{
  font-size:13px;
  color:var(--muted);
}

.app-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  letter-spacing:-.2px;
}

/* trava o tamanho da logo */
.app-logo{
  width:18px;
  height:18px;
  max-width:18px;
  max-height:18px;
  min-width:18px;
  min-height:18px;
  display:inline-block;
  object-fit:contain;
  flex:0 0 18px;
}


.app .actions{
  margin-top:auto;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn-mini{
  padding:9px 12px;
  border-radius:12px;
  font-size:13px;
  font-weight:800;
  border:1px solid var(--border);
  background:var(--surface-1);
  color: var(--text);
  cursor:pointer;
}

.btn-mini:hover{
  border-color: rgba(47,128,255,.55);
}

/* ================= RESPONSIVE (GRID BASE) ================= */
@media(max-width:980px){
  .apps{ grid-template-columns:1fr 1fr; }
}

@media(max-width:520px){
  .apps{ grid-template-columns:1fr; }
}

/* ================= OVERRIDE PARA CAROUSEL ================= */
/* força a track horizontal a vencer o grid .apps */
.easy-track{
  display:flex !important;
  grid-template-columns:unset !important;
}



/* ======= BOTÕES DAS SETAS (NOVO) ======= */
.icon-btn{
  width:40px;
  height:40px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--surface-1);
  color:var(--text);
  font-weight:900;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.icon-btn:hover{
  border-color: rgba(47,128,255,.55);
}

/* botões desabilitados (quando chega na ponta) */
.icon-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
}

/* WhatsApp CTA ligeiramente mais destacado (sem virar botão primário) */
.contact-link-cta{
  background: linear-gradient(180deg, var(--panel-strong), var(--panel-soft));
  border-color: rgba(47,128,255,.35);
}

.contact-link-cta:hover{
  border-color: rgba(47,128,255,.70);
}

/* mantém texto sempre legível */
.contact-text{
  color: var(--muted);
}
.contact-text strong{
  color: var(--text);
}
