/* HOME */

.page{
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 1.1rem 1rem 1.25rem;
}

@media (min-width: 1100px){
  .page{ padding-left: 1.4rem; padding-right: 1.4rem; }
}

.home-matrix{
  margin-top: 1rem;
  display: grid;
  grid-template-areas: "left center right";
  grid-template-columns: clamp(300px, 23vw, 380px) minmax(720px, 1fr) clamp(300px, 23vw, 380px);
  gap: 1rem;
  align-items: stretch;
}

.home-title{
  margin-bottom: .85rem;
}

.home-side{
  min-width: 0;
}

.home-side[aria-label="Insights (1)"]{ grid-area: left; }
.home-side[aria-label="Insights (2)"]{ grid-area: right; }

.home-center{
  min-width: 0;
  grid-area: center;
  display: flex;
  flex-direction: column;
}

.home-cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}

/* =========================
   Carrossel de cards (Home)
   2 páginas (3 + 3 cards)
   ========================= */

.home-cards--carousel{ display: block; }

.cards-carousel{ position: relative; }

.carousel-track{
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.carousel-track::-webkit-scrollbar{ display: none; }

.carousel-page{
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}

.carousel-nav{
  position: absolute;
  top: -6px;
  z-index: 6;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(70,211,176,.35);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.92);
  font-size: 22px;
  line-height: 30px;
  cursor: pointer;
  user-select: none;
}
.carousel-nav:hover{ background: rgba(0,0,0,.28); }
.carousel-nav.prev{ left: 10px; }
.carousel-nav.next{ right: 10px; }

.carousel-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  opacity: .9;
}
.carousel-dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  appearance: none;
  background: rgba(255,255,255,.25);
}
.carousel-dot.is-active{ background: rgba(255,255,255,.78); }

.ins-card{
  border: 1px solid rgba(70,211,176,.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(17,28,56,.78), rgba(15,23,48,.70));
  box-shadow: 0 0 0 3px rgba(70,211,176,.07), 0 16px 34px rgba(0,0,0,.28);
  padding: .95rem .95rem .85rem;
  min-height: 150px;
}

.ins-head{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}

.ins-icon{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 2px solid rgba(70,211,176,.75);
  background-color: rgba(70,211,176,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.28);
}

.ins-title{
  font-weight: 850;
  letter-spacing: .15px;
  text-transform: uppercase;
  font-size: .92rem;
  color: rgba(255,255,255,.92);
  line-height: 1.2;
}

.ins-sub{
  margin-top: .18rem;
  color: rgba(70,211,176,.85);
  font-weight: 750;
  font-size: .92rem;
}

.ins-badge{
  border-radius: 999px;
  padding: .36rem .65rem;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.82);
  font-weight: 750;
  font-size: .86rem;
  white-space: nowrap;
}

.ins-note{
  margin-top: .65rem;
  color: var(--muted2);
  font-size: .9rem;
}

.insight-list{ display: grid; gap: .55rem; }
.insight-item{
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: .6rem;
  align-items: center;
  padding: .5rem .55rem;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  background: rgba(0,0,0,.12);
}
.insight-k{ color: var(--muted2); font-weight: 800; }
.insight-v{ display:flex; justify-content: space-between; align-items: center; gap: .55rem; min-width:0; }
.insight-main{ font-weight: 800; color: rgba(255,255,255,.92); overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill{
  border-radius: 999px;
  padding: .26rem .55rem;
  border: 1px solid rgba(70,211,176,.25);
  background: rgba(70,211,176,.10);
  color: rgba(255,255,255,.86);
  font-weight: 750;
  font-size: .82rem;
  white-space: nowrap;
}

.hero2{
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  align-items: stretch;
}

.title-big{
  margin: .2rem 0 0;
  font-size: 3rem;
  letter-spacing: .4px;
  text-transform: lowercase;
}
.subtitle-big{
  margin: .55rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  max-width: 60ch;
}

.hero2-pills{
  margin-top: 1.05rem;
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.pill2{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.86);
  padding: .5rem .8rem;
  font-weight: 750;
  cursor: pointer;
}
.pill2:hover{ background: rgba(255,255,255,.08); }
.pill2.is-on{
  border-color: rgba(70,211,176,.45);
  background: rgba(70,211,176,.12);
}
.pill2.toggle{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-color: rgba(70,211,176,.35);
}
.dot-on{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(70,211,176,.95);
  box-shadow: 0 0 0 6px rgba(70,211,176,.14);
}

/* graph card */
.graph-card{
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(17,28,56,.90), rgba(15,23,48,.90));
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  flex: 1;
  min-height: 520px;
  height: clamp(420px, calc(100vh - var(--topbar-h, 72px) - 220px), 760px);
}

.home-graph-stack{
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.home-graph-panel{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 12px 12px 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 240px;
}

.home-graph-panel .slide-title{
  margin: 0 0 8px;
  font-size: .95rem;
  font-weight: 850;
  color: rgba(255,255,255,.92);
}

.home-graph-panel canvas{
  width: 100% !important;
  height: 260px; 
  display: block;
}

.home-graph-panel .graph-hint{
  margin-top: 8px;
}

@media (max-height: 780px){
  .home-graph-panel canvas{ height: 220px; }
}

@media (max-width: 1100px){
  .home-graph-panel canvas{ height: 240px; }
}
.graph-head{
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.graph-title{
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255,255,255,.88);
  text-transform: uppercase;
  font-size: .9rem;
}
.graph-mode{
  color: rgba(70,211,176,.85);
  font-weight: 750;
  font-size: .92rem;
}
.graph-stage{
  padding: .6rem 1rem 1rem;
}
.graph-svg{
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.22));
}

.cards-grid{
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}

.inf-card{
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: .9rem .95rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}

.inf-card.is-highlight{
  border-color: rgba(70,211,176,.35);
  box-shadow: 0 0 0 3px rgba(70,211,176,.12), 0 18px 40px rgba(0,0,0,.22);
  background: linear-gradient(180deg, rgba(70,211,176,.08), rgba(255,255,255,.03));
}

.inf-head{
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .75rem;
  align-items: center;
}

.avatar-ring{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid rgba(70,211,176,.75);
  background: rgba(70,211,176,.10);
  display: grid;
  place-items: center;
}
.avatar-fake{
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.25), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.12);
}

.inf-title{
  font-weight: 850;
  letter-spacing: .15px;
  text-transform: uppercase;
  font-size: .88rem;
  color: rgba(255,255,255,.88);
}
.inf-handle{
  margin-top: .1rem;
  color: rgba(70,211,176,.85);
  font-weight: 750;
  font-size: .9rem;
}

.inf-badge{
  border-radius: 999px;
  padding: .38rem .65rem;
  border: 1px solid rgba(70,211,176,.30);
  background: rgba(70,211,176,.10);
  color: rgba(255,255,255,.88);
  font-weight: 750;
  font-size: .86rem;
  white-space: nowrap;
}
.inf-badge.subtle{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.78);
}

.bar{
  margin-top: .75rem;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}
.bar.thin{ height: 8px; }
.bar-fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(70,211,176,.95), rgba(122,167,255,.85));
}

.inf-foot{
  margin-top: .65rem;
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  color: var(--muted2);
  font-size: .9rem;
}

.footer2{
  margin-top: 1rem;
  padding: .9rem 0 .25rem;
  display:flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

body.is-light{
  filter: brightness(1.08) saturate(.95);
}

@media (max-width: 1100px){
  .home-matrix{
    grid-template-areas:
      "center"
      "left"
      "right";
    grid-template-columns: 1fr;
  }
  .hero2{ grid-template-columns: 1fr; }
  .cards-grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .cards-grid{ grid-template-columns: 1fr; }
  .title-big{ font-size: 2.4rem; }
}

.graph-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17,28,56,.92), rgba(15,23,48,.92));
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
}

.graph-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.graph-title{
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255,255,255,.90);
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;    
}

#carTrack {
  display: flex;    
  width: 100%;
  will-change: transform;
  transition: transform 280ms ease;
}

.car-slide {
  flex: 0 0 100%;        
  width: 100%;
  padding: 18px 18px 12px;
  box-sizing: border-box;
}

.car-slide .slide-title{
  margin: 0 0 10px;
  text-align: center;
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

.car-slide canvas{
  display: block;
  width: 100%;
  height: 360px;         
  border-radius: 14px;
}

@media (max-width: 900px){
  .car-slide canvas{ height: 300px; }
}
@media (max-width: 520px){
  .car-slide canvas{ height: 240px; }
}

.car-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}

.car-btn:hover{
  background: rgba(255,255,255,.10);
}

#carPrev{ left: 14px; }
#carNext{ right: 14px; }

#carDots{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 14px;
}

#carDots .dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.10);
  cursor: pointer;
}

#carDots .dot.is-on{
  width: 18px;
  background: rgba(70,211,176,.75);
  border-color: rgba(70,211,176,.40);
}

.home .graph-card,
.home .carousel {
  width: 100%;
  max-width: none !important;
}

.home #carTrack {
  display: flex !important;
  width: 100% !important;
  align-items: stretch;
}

.home .car-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  padding: 18px 18px 12px;

  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.home .car-slide .slide-title {
  text-align: center;
  margin: 0 0 10px;
}

.home .car-slide canvas {
  width: 100% !important;
  max-width: none !important;
  display: block;
  border-radius: 14px;
}

.home .graph-stage,
.home .graph-stage > * {
  width: 100% !important;
  max-width: none !important;
}

.home .hero2-right {
  min-width: 0;
}

@media (max-width: 900px) {
  .home .car-slide canvas { height: 300px; }
}
@media (max-width: 520px) {
  .home .car-slide canvas { height: 240px; }
}

.home .hero2.hero2--single{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.home .hero2-carousel{
  width: 100%;
}

.home .graph-card.graph-card--wide{
  width: 100%;
  max-width: none !important;
}

.home #carTrack{
  display: flex !important;
  width: 100% !important;
  align-items: stretch;
}
.home .car-slide{
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
  padding: 18px 18px 12px;
  display: flex;
  flex-direction: column;
}
.home .car-slide canvas{
  width: 100% !important;
  display: block;
}

.home #carDots{
  display:flex;
  justify-content:center;
  gap:8px;
  padding:10px 0 2px;
}
.home #carDots .dot{
  width:10px;
  height:10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  cursor:pointer;
}
.home #carDots .dot.is-on{
  background: rgba(70,211,176,.85);
  border-color: rgba(70,211,176,.6);
}

.home .cards-grid.cards-grid--three{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 980px){
  .home .cards-grid.cards-grid--three{
    grid-template-columns: 1fr;
  }
}
.home .brand2-name{
  font-size: 18px !important;   
  font-weight: 800 !important;
  letter-spacing: .2px;
  text-transform: none !important; 
  line-height: 1.15;
}

.home .brand2-sub{
  font-size: 12px !important;
  opacity: .85;
}

.home .brand2{
  max-width: 520px;
}
.home .brand2-text{
  min-width: 0;
}

.home .title-big{
  text-transform: none !important;
  margin: 0;
  font-weight: 900;
  letter-spacing: .2px;
}

.home .subtitle-big{
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 650;
  color: rgba(255,255,255,.80);
  max-width: 62ch;
}

.home-grid,
.home-matrix,
.home-layout {
  grid-template-columns: clamp(320px, 22vw, 380px) minmax(520px, 1fr) clamp(320px, 22vw, 380px) !important;
  gap: 16px !important;
}

.home-center,
.center-col,
.home-middle {
  display: flex;
  flex-direction: column;
}

.dashboard-preview,
.preview-card,
.card-preview,
.center-card {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--topbar-h) - 72px);
}

.dashboard-preview .chart-wrap,
.dashboard-preview .preview-body,
.dashboard-preview .chart-area,
.preview-card .chart-wrap,
.preview-card .chart-area {
  margin-top: auto;        
  padding-bottom: 18px;    
}

.dashboard-preview canvas,
.dashboard-preview svg,
.preview-card canvas,
.preview-card svg {
  width: 100% !important;
  height: min(52vh, 520px) !important; 
}

.home-matrix{ align-items: stretch; }
.home-center{ height: 100%; }

.dashboard-preview,
.preview-card,
.card-preview,
.center-card{
  min-height: unset !important;
  height: 100%;
  flex: 1 1 auto;
}

.dashboard-preview .chart-wrap,
.dashboard-preview .preview-body,
.dashboard-preview .chart-area,
.preview-card .chart-wrap,
.preview-card .chart-area{
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin-top: 0 !important;
}
