/* AVATIX Portal V5 — editorial preview.
   Dark AVATIX identity + hierarchy inspired by AVATIX News.
   Preview branch only. */

body[data-page="home"]{
  background:
    radial-gradient(circle at 50% -18%,rgba(82,125,255,.12),transparent 34%),
    var(--bg)
}
body[data-page="home"] .container{width:min(1360px,calc(100% - 48px));margin-inline:auto}
.home-hero .container{width:min(1360px,calc(100% - 48px))}
.hub-preview-badge{position:fixed;right:16px;bottom:16px;z-index:80;padding:7px 10px;border:1px solid rgba(111,223,255,.22);border-radius:4px;background:rgba(7,9,13,.86);backdrop-filter:blur(12px);font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#bcefff}

.hub-section{padding:78px 0;border-top:1px solid rgba(183,211,255,.10)}
.hub-section.hub-soft{background:#090d14}
.hub-head{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.62fr);gap:84px;align-items:end;margin-bottom:32px}
.hub-head h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(40px,4.3vw,64px);line-height:.98;letter-spacing:-.045em;font-weight:700}
.hub-head p{margin:0;color:#97a5b5;font-size:15px;line-height:1.72;max-width:520px}
.hub-kicker{display:block;margin-bottom:12px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.16em;color:#6fdfff}
.hub-sync{display:flex;align-items:center;gap:8px;margin-top:14px;color:#74869a;font-size:10px}
.hub-sync i{width:6px;height:6px;border-radius:50%;background:var(--mint)}
.hub-sync[data-state="fallback"] i{background:var(--amber)}

/* Agora: editorial rail, not a dashboard card */
.hub-activity-shell{border-top:1px solid rgba(183,211,255,.18);border-bottom:1px solid rgba(183,211,255,.18);background:transparent}
.hub-activity-top{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid rgba(183,211,255,.10)}
.hub-activity-title{display:flex;align-items:center;gap:9px;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.14em;color:#d9e4ef}
.hub-live-dot{width:7px;height:7px;border-radius:50%;background:var(--mint);animation:hubPulse 2.1s ease-in-out infinite}
@keyframes hubPulse{50%{opacity:.4}}
.hub-activity-top>a{font-size:11px;font-weight:800;color:#a8c7e9}
.hub-activity-grid{display:grid;grid-template-columns:repeat(3,1fr)}
.hub-activity-item{min-height:168px;padding:22px 24px 22px 0;margin-right:24px;border-right:1px solid rgba(183,211,255,.10);border-bottom:1px solid rgba(183,211,255,.10);display:flex;flex-direction:column}
.hub-activity-item:nth-child(3n){border-right:0;margin-right:0}
.hub-activity-item:nth-last-child(-n+3){border-bottom:0}
.hub-activity-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.hub-source{font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.13em;color:var(--cyan)}
.hub-source.news{color:#ff8f8f}.hub-source.tools{color:var(--cyan)}.hub-source.atalhos{color:var(--violet)}.hub-source.qc{color:var(--amber)}.hub-source.central{color:var(--mint)}
.hub-when{font-size:9px;color:#64758a}
.hub-activity-item h3{margin:0 0 8px;font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.16;letter-spacing:-.025em}
.hub-activity-item p{margin:0;color:#8797a9;font-size:12px;line-height:1.6}
.hub-activity-item small{margin-top:auto;padding-top:14px;font-size:10px;font-weight:800;color:#acc9e8}

/* News: a light editorial island, deliberately closer to AVATIX News */
.hub-news-section{background:#f4f6f9;color:#111722;border-top:0}
.hub-news-section .hub-kicker{color:#1c67d8}
.hub-news-section .hub-head p{color:#667085}
.hub-news-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(330px,.72fr);gap:42px}
.hub-news-lead{position:relative;min-height:430px;padding:28px 0 24px;display:flex;flex-direction:column;justify-content:flex-end;border-top:4px solid #17243a;border-bottom:1px solid #dce2ea;background:transparent}
.hub-news-lead:before{content:"AVATIX NEWS";position:absolute;right:0;top:22px;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:12px;font-weight:950;letter-spacing:.18em;color:#d7dde6}
.hub-news-brand{position:absolute;left:0;top:22px;display:flex;align-items:center;gap:8px;font-size:10px;font-weight:950;text-transform:uppercase;letter-spacing:.14em;color:#cf2e2e}
.hub-news-brand i{width:7px;height:7px;border-radius:50%;background:#cf2e2e}
.hub-news-lead h3{position:relative;margin:0 0 15px;max-width:980px;font-family:Georgia,"Times New Roman",serif;font-size:clamp(38px,5.1vw,70px);line-height:.98;letter-spacing:-.05em;color:#101521}
.hub-news-lead p{position:relative;margin:0 0 18px;max-width:820px;color:#596579;font-size:16px;line-height:1.62}
.hub-news-lead .hub-news-date{position:relative;font-size:11px;color:#8893a3}
.hub-news-side{border-left:1px solid #dce2ea;padding-left:28px}
.hub-news-row{padding:20px 0;border-bottom:1px solid #dce2ea;display:grid;grid-template-columns:46px 1fr;gap:16px;align-items:start}
.hub-news-row:first-child{padding-top:0}
.hub-news-row:last-child{border-bottom:0}
.hub-news-index{font-family:Georgia,"Times New Roman",serif;font-size:25px;line-height:1;color:#b4becb}
.hub-news-row span{display:block;margin-bottom:6px;font-size:9px;color:#7c8796;text-transform:uppercase;letter-spacing:.1em}
.hub-news-row h4{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.13;letter-spacing:-.025em;color:#182033}
.hub-news-section .btn-secondary{border-color:#cdd5df;color:#1c4f95;background:transparent}
.hub-news-section .btn-secondary:hover{background:#fff;border-color:#b6c2d1;color:#123c77}

/* Products: numbers and vertical rules instead of floating cards */
.hub-utility-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid rgba(183,211,255,.16);border-bottom:1px solid rgba(183,211,255,.16)}
.hub-utility-card{min-height:310px;padding:28px 34px 25px 0;margin-right:34px;border-right:1px solid rgba(183,211,255,.11);display:flex;flex-direction:column;background:transparent}
.hub-utility-card:last-child{border-right:0;margin-right:0}
.hub-utility-card .hub-product-mark{font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.14em;color:var(--card-accent,var(--cyan))}
.hub-number{margin:28px 0 3px;font-family:Georgia,"Times New Roman",serif;font-size:76px;line-height:.86;font-weight:700;letter-spacing:-.07em;color:#f4f8fc}
.hub-number small{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:14px;font-weight:650;letter-spacing:-.01em;color:#7f90a3}
.hub-utility-card h3{margin:13px 0 8px;font-family:Georgia,"Times New Roman",serif;font-size:25px;line-height:1.05;letter-spacing:-.03em}
.hub-utility-card p{margin:0;max-width:390px;color:#8b9bad;font-size:12px;line-height:1.65}
.hub-utility-card .hub-card-link{margin-top:auto;padding-top:20px;font-size:10px;font-weight:850;color:#bedbf7}
.hub-utility-card.tools{--card-accent:var(--cyan)}
.hub-utility-card.atalhos{--card-accent:var(--violet)}
.hub-utility-card.qc{--card-accent:var(--amber)}
.hub-status{display:block;width:auto;margin-top:11px;color:#788ca1;font-size:9px;font-weight:750;text-transform:none;letter-spacing:0}
.hub-status:before{display:none}

/* Central: section with columns, not a glowing SaaS box */
.hub-central-panel{border-top:1px solid rgba(111,223,255,.20);border-bottom:1px solid rgba(111,223,255,.20);padding:30px 0;background:transparent}
.hub-central-grid{display:grid;grid-template-columns:repeat(3,1fr);margin-top:30px;border-top:1px solid rgba(183,211,255,.10)}
.hub-central-card{min-height:205px;padding:24px 28px 0 0;margin-right:28px;border-right:1px solid rgba(183,211,255,.10)}
.hub-central-card:last-child{border-right:0;margin-right:0}
.hub-central-card .num{margin-bottom:18px;color:#6fdfff;font-family:Georgia,"Times New Roman",serif;font-size:18px}
.hub-central-card h3{margin:0 0 8px;font-family:Georgia,"Times New Roman",serif;font-size:24px;line-height:1.06;letter-spacing:-.028em}
.hub-central-card p{margin:0;color:#8fa0b4;font-size:12px;line-height:1.62}
.hub-central-card small{display:block;margin-top:15px;font-size:10px;font-weight:800;color:#bcefff}

/* Guides: editorial columns */
.hub-guide-grid{display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid rgba(183,211,255,.15)}
.hub-guide{min-height:255px;padding:23px 28px 0 0;margin-right:28px;border-right:1px solid rgba(183,211,255,.10);display:flex;flex-direction:column}
.hub-guide:last-child{border-right:0;margin-right:0}
.hub-guide>span{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.12em;color:#7792aa}
.hub-guide h3{margin:18px 0 10px;font-family:Georgia,"Times New Roman",serif;font-size:22px;line-height:1.08;letter-spacing:-.025em}
.hub-guide p{margin:0;color:#8798aa;font-size:12px;line-height:1.6}
.hub-guide small{margin-top:auto;padding-top:18px;color:#bad8f5;font-size:10px;font-weight:800}

/* Ecosystem: simple directory */
.hub-ecosystem-strip{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid rgba(183,211,255,.15);border-bottom:1px solid rgba(183,211,255,.15)}
.hub-ecosystem-link{min-height:170px;padding:22px 26px 20px 0;margin-right:26px;border-right:1px solid rgba(183,211,255,.10);display:flex;flex-direction:column}
.hub-ecosystem-link:last-child{border-right:0;margin-right:0}
.hub-ecosystem-link>span{font-size:9px;text-transform:uppercase;letter-spacing:.12em;color:#687b90}
.hub-ecosystem-link b{margin-top:12px;font-family:Georgia,"Times New Roman",serif;font-size:22px;letter-spacing:-.025em}
.hub-ecosystem-link p{margin:8px 0 0;color:#8798aa;font-size:11px;line-height:1.55}
.hub-ecosystem-link i{margin-top:auto;font-style:normal;color:#b9d7f3;font-size:14px}

/* Final commercial block: flatter */
body[data-page="home"] .business-card{border-radius:8px;background:#0c1119;border-color:rgba(183,211,255,.13);box-shadow:none}
body[data-page="home"] .business-card h2{font-family:Georgia,"Times New Roman",serif;letter-spacing:-.04em}

@media(max-width:1050px){
  body[data-page="home"] .container,.home-hero .container{width:min(100% - 36px,1360px)}
  .hub-head{grid-template-columns:1fr;gap:18px}
  .hub-activity-grid{grid-template-columns:repeat(2,1fr)}
  .hub-activity-item:nth-child(3n){border-right:1px solid rgba(183,211,255,.10);margin-right:24px}
  .hub-activity-item:nth-child(2n){border-right:0;margin-right:0}
  .hub-activity-item:nth-last-child(-n+3){border-bottom:1px solid rgba(183,211,255,.10)}
  .hub-activity-item:nth-last-child(-n+2){border-bottom:0}
  .hub-news-layout{grid-template-columns:1fr}
  .hub-news-side{border-left:0;border-top:1px solid #dce2ea;padding:25px 0 0;display:grid;grid-template-columns:1fr 1fr;gap:0 26px}
  .hub-news-row:nth-last-child(-n+2){border-bottom:0}
  .hub-utility-grid{grid-template-columns:1fr}
  .hub-utility-card{min-height:auto;margin-right:0;padding:27px 0;border-right:0;border-bottom:1px solid rgba(183,211,255,.10)}
  .hub-utility-card:last-child{border-bottom:0}
  .hub-central-grid{grid-template-columns:1fr}
  .hub-central-card{min-height:auto;margin-right:0;padding:22px 0;border-right:0;border-bottom:1px solid rgba(183,211,255,.10)}
  .hub-central-card:last-child{border-bottom:0}
  .hub-guide-grid{grid-template-columns:repeat(2,1fr)}
  .hub-guide{padding-bottom:24px;border-bottom:1px solid rgba(183,211,255,.10)}
  .hub-guide:nth-child(2n){border-right:0;margin-right:0}
  .hub-guide:nth-last-child(-n+2){border-bottom:0}
  .hub-ecosystem-strip{grid-template-columns:repeat(2,1fr)}
  .hub-ecosystem-link{border-bottom:1px solid rgba(183,211,255,.10)}
  .hub-ecosystem-link:nth-child(2n){border-right:0;margin-right:0}
}

@media(max-width:640px){
  body[data-page="home"] .container,.home-hero .container{width:min(100% - 28px,1360px)}
  .hub-section{padding:62px 0}
  .hub-preview-badge{right:10px;bottom:10px}
  .hub-head h2{font-size:40px}
  .hub-activity-grid{grid-template-columns:1fr}
  .hub-activity-item{min-height:auto;margin:0!important;padding:20px 0!important;border-right:0!important;border-bottom:1px solid rgba(183,211,255,.10)!important}
  .hub-activity-item:last-child{border-bottom:0!important}
  .hub-news-lead{min-height:410px;padding-top:58px}
  .hub-news-lead:before{display:none}
  .hub-news-lead h3{font-size:42px}
  .hub-news-lead p{font-size:15px}
  .hub-news-side{display:block}
  .hub-news-row{grid-template-columns:40px 1fr}
  .hub-news-row:nth-last-child(-n+2){border-bottom:1px solid #dce2ea}
  .hub-news-row:last-child{border-bottom:0}
  .hub-number{font-size:64px}
  .hub-guide-grid{grid-template-columns:1fr}
  .hub-guide{min-height:auto;margin:0;padding:22px 0!important;border-right:0!important;border-bottom:1px solid rgba(183,211,255,.10)!important}
  .hub-guide:last-child{border-bottom:0!important}
  .hub-ecosystem-strip{grid-template-columns:1fr}
  .hub-ecosystem-link{min-height:auto;margin:0;padding:20px 0;border-right:0!important}
  .hub-ecosystem-link:last-child{border-bottom:0}
}


/* News follows the visitor's system theme, like AVATIX News. */
@media (prefers-color-scheme: dark){
  .hub-news-section{background:#0b1018;color:#f3f7fb}
  .hub-news-section .hub-kicker{color:#6fdfff}
  .hub-news-section .hub-head p{color:#96a6b8}
  .hub-news-lead{border-top-color:#8ea8c5;border-bottom-color:#263442}
  .hub-news-lead:before{color:#263442}
  .hub-news-brand{color:#ff9292}
  .hub-news-brand i{background:#ff7878}
  .hub-news-lead h3{color:#f3f7fb}
  .hub-news-lead p{color:#a8b5c4}
  .hub-news-lead .hub-news-date{color:#75879a}
  .hub-news-side{border-left-color:#263442}
  .hub-news-row{border-bottom-color:#263442}
  .hub-news-index{color:#53677b}
  .hub-news-row span{color:#7f91a5}
  .hub-news-row h4{color:#edf3f8}
  .hub-news-section .btn-secondary{border-color:#33475d;color:#a9d9ff;background:transparent}
  .hub-news-section .btn-secondary:hover{background:#111a25;border-color:#486581;color:#d3ebff}
}
@media (prefers-color-scheme: dark) and (max-width:1050px){
  .hub-news-side{border-top-color:#263442}
}
@media (prefers-color-scheme: dark) and (max-width:640px){
  .hub-news-row:nth-last-child(-n+2){border-bottom-color:#263442}
}
