/* ══════════════════════════════════════
   PORTAL PAGE SPECIFIC STYLES
══════════════════════════════════════ */

/* Nav logo as link */
.nav-logo{
  text-decoration:none;
}
.nav-logo:hover{text-decoration:none;}

/* Back link */
.back-link{margin-bottom:1.5rem;}
.back-link a{
  display:inline-flex;align-items:center;gap:.5rem;
  font-family:var(--fn-mono);font-size:.75rem;
  color:var(--muted);letter-spacing:.08em;
  text-transform:uppercase;
  transition:color .2s;
}
.back-link a:hover{color:var(--cyan);text-decoration:none;}
.back-arrow{font-size:1rem;line-height:1;}

/* ══════════════════════════════════════
   PORTAL HERO / DASHBOARD PREVIEW
══════════════════════════════════════ */
.portal-hero{min-height:85vh;}

.portal-dashboard-preview{
  background:var(--surface);
  border:1px solid var(--border2);
  border-radius:var(--radius);
  padding:1.5rem;
  font-family:var(--fn-mono);
  box-shadow:0 0 40px var(--glow),0 0 80px var(--glow2);
  position:relative;overflow:hidden;
}
.portal-dashboard-preview::before{
  content:'';position:absolute;inset:0;
  background:linear-gradient(135deg,rgba(14,165,233,.06) 0%,transparent 60%);
  pointer-events:none;
}
.dash-bar{
  display:flex;align-items:center;gap:.5rem;
  margin-bottom:1.2rem;padding-bottom:1rem;
  border-bottom:1px solid var(--border);
}

.dash-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:.75rem;margin-bottom:1rem;
}
.dash-widget{
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:6px;
  padding:.9rem;
}
.dash-widget-label{
  font-size:.62rem;color:var(--muted);
  text-transform:uppercase;letter-spacing:.12em;
  margin-bottom:.3rem;
}
.dash-widget-value{
  font-size:1.3rem;font-weight:700;
  color:var(--white);font-family:var(--fn-display);
  line-height:1.2;
}
.dash-widget-unit{
  font-size:.65rem;color:var(--muted);
  font-weight:400;font-family:var(--fn-mono);
}
.dash-widget-bar{
  height:3px;background:var(--border);
  border-radius:2px;margin-top:.6rem;overflow:hidden;
}
.dash-widget-fill{
  height:100%;background:var(--blue);
  border-radius:2px;
  transition:width .6s ease;
}

.dash-clock-row{
  display:flex;align-items:center;justify-content:space-between;
  padding-top:.9rem;border-top:1px solid var(--border);
  font-size:.7rem;
}
.dash-clock-label{color:var(--muted);letter-spacing:.08em;}
.dash-clock-time{
  color:var(--cyan);font-weight:600;
  font-size:.9rem;letter-spacing:.1em;
}

/* ══════════════════════════════════════
   OVERVIEW / MODULE BADGES
══════════════════════════════════════ */
.overview-section{padding:5rem 0;}

.module-badges{
  display:flex;flex-wrap:wrap;gap:.75rem;
  margin-top:2.5rem;
}
.module-badge{
  display:inline-flex;align-items:center;gap:.5rem;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:6px;
  padding:.5rem 1rem;
  font-family:var(--fn-mono);
  font-size:.78rem;color:var(--muted);
  transition:all .2s;cursor:default;
}
.module-badge:hover{
  border-color:var(--blue);color:var(--cyan);
  box-shadow:0 0 12px var(--glow);
}
.module-icon{font-size:1rem;}

/* ══════════════════════════════════════
   FEATURE BLOCKS
══════════════════════════════════════ */
.feature-block{margin-bottom:1rem;}

.feature-header{
  display:flex;align-items:flex-start;gap:1.2rem;
  margin-bottom:1.8rem;
}
.feature-icon{
  width:52px;height:52px;flex-shrink:0;
  background:rgba(14,165,233,.1);
  border:1px solid rgba(14,165,233,.25);
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.6rem;
}
.feature-eyebrow{
  font-family:var(--fn-mono);
  font-size:.65rem;font-weight:600;
  text-transform:uppercase;letter-spacing:.18em;
  color:var(--blue);margin-bottom:.35rem;
}
.feature-title{
  font-family:var(--fn-display);
  font-size:1.4rem;font-weight:700;
  color:var(--white);line-height:1.2;
}

/* Feature cards grid */
.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}
.feature-grid-2{
  grid-template-columns:repeat(2,1fr);
}

.feature-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.5rem;
  position:relative;overflow:hidden;
  transition:border-color .25s,box-shadow .25s,transform .25s;
}
.feature-card::before{
  content:'';position:absolute;top:0;left:0;right:0;height:1px;
  background:linear-gradient(90deg,transparent,var(--blue),transparent);
  opacity:0;transition:opacity .25s;
}
.feature-card:hover{
  border-color:var(--border2);
  box-shadow:0 0 24px var(--glow);
  transform:translateY(-2px);
}
.feature-card:hover::before{opacity:1;}

.feature-card-highlight{
  border-color:rgba(14,165,233,.3);
  background:rgba(14,165,233,.04);
}
.feature-card-highlight:hover{
  border-color:var(--blue);
  box-shadow:0 0 32px var(--glow),0 0 64px var(--glow2);
}

.feature-card-title{
  font-family:var(--fn-display);
  font-size:1rem;font-weight:700;
  color:var(--white);margin-bottom:.6rem;
}
.feature-card-body{
  color:var(--muted);font-size:.88rem;line-height:1.75;
}
.feature-card-tag{
  display:inline-block;
  margin-top:1rem;
  background:rgba(14,165,233,.12);
  border:1px solid rgba(14,165,233,.3);
  border-radius:4px;
  padding:.15rem .6rem;
  font-size:.68rem;font-weight:600;
  color:var(--blue);font-family:var(--fn-mono);
  letter-spacing:.08em;text-transform:uppercase;
}

.inline-code{
  background:rgba(14,165,233,.1);
  border:1px solid rgba(14,165,233,.2);
  border-radius:3px;
  padding:.1rem .4rem;
  font-family:var(--fn-mono);
  font-size:.8em;
  color:var(--cyan);
}

/* ══════════════════════════════════════
   API SECTION
══════════════════════════════════════ */
.api-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
  margin-top:2.5rem;
}
.api-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:1.2rem 1.4rem;
  transition:border-color .2s,box-shadow .2s;
}
.api-card:hover{
  border-color:var(--border2);
  box-shadow:0 0 20px var(--glow);
}
.api-method{
  display:inline-block;
  font-family:var(--fn-mono);
  font-size:.65rem;font-weight:700;
  letter-spacing:.12em;
  padding:.15rem .5rem;
  border-radius:3px;
  margin-bottom:.6rem;
}
.api-method.get{background:rgba(74,222,128,.12);color:#4ade80;border:1px solid rgba(74,222,128,.3);}
.api-method.post{background:rgba(14,165,233,.12);color:var(--blue);border:1px solid rgba(14,165,233,.3);}
.api-path{
  font-family:var(--fn-mono);
  font-size:.82rem;color:var(--cyan);
  font-weight:600;margin-bottom:.4rem;
  word-break:break-all;
}
.api-desc{
  font-size:.82rem;color:var(--muted);
  line-height:1.5;
}

/* ══════════════════════════════════════
   CTA SECTION
══════════════════════════════════════ */
.cta-section{padding:6rem 0;}
.cta-box{
  background:var(--surface);
  border:1px solid var(--border2);
  border-radius:var(--radius);
  padding:3.5rem;
  box-shadow:0 0 60px var(--glow),0 0 120px var(--glow2);
  position:relative;overflow:hidden;
  text-align:center;
}
.cta-box::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse 70% 60% at 50% 50%,rgba(14,165,233,.06) 0%,transparent 70%);
  pointer-events:none;
}
.cta-box .section-label{justify-content:center;}
.cta-box .section-body{margin:0 auto;}

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media(max-width:768px){
  .feature-grid{grid-template-columns:1fr;}
  .feature-grid-2{grid-template-columns:1fr;}
  .api-grid{grid-template-columns:1fr;}
  .dash-grid{grid-template-columns:1fr;}
  .cta-box{padding:2rem 1.2rem;}
  .feature-header{flex-direction:column;gap:.8rem;}
  .module-badges{gap:.5rem;}
}

/* ══════════════════════════════════════
   ÍCONES SVG (badges, features, benefits)
══════════════════════════════════════ */
.module-icon{display:flex;align-items:center;color:var(--blue);}
.module-icon svg{width:15px;height:15px;}
.feature-icon{color:var(--blue);}
.feature-icon svg{width:24px;height:24px;}
.benefit-icon{color:var(--blue);display:flex;justify-content:center;}
.benefit-icon svg{width:26px;height:26px;}

/* ══════════════════════════════════════
   PRINTS DAS FUNCIONALIDADES
   Colocar as imagens em img/ com o nome
   indicado; aparecem automaticamente.
══════════════════════════════════════ */
.feature-shot{
  max-width:820px;
  margin:0 0 2rem;
}
.feature-shot .shot-body{aspect-ratio:16/9;}

/* ══════════════════════════════════════
   STAGGER — cards entram em cascata
══════════════════════════════════════ */
.reveal .feature-card,
.reveal .workflow-step,
.reveal .benefit-card,
.reveal .api-card,
.reveal .module-badge{
  opacity:0;transform:translateY(16px);
  transition:opacity .5s ease,transform .5s ease;
}
.reveal.visible .feature-card,
.reveal.visible .workflow-step,
.reveal.visible .benefit-card,
.reveal.visible .api-card,
.reveal.visible .module-badge{
  opacity:1;transform:translateY(0);
}
.reveal.visible .feature-card:nth-child(1),
.reveal.visible .workflow-step:nth-child(1),
.reveal.visible .benefit-card:nth-child(1),
.reveal.visible .api-card:nth-child(1),
.reveal.visible .module-badge:nth-child(1){transition-delay:.15s}
.reveal.visible .feature-card:nth-child(2),
.reveal.visible .workflow-step:nth-child(2),
.reveal.visible .benefit-card:nth-child(2),
.reveal.visible .api-card:nth-child(2),
.reveal.visible .module-badge:nth-child(2){transition-delay:.27s}
.reveal.visible .feature-card:nth-child(3),
.reveal.visible .workflow-step:nth-child(3),
.reveal.visible .benefit-card:nth-child(3),
.reveal.visible .api-card:nth-child(3),
.reveal.visible .module-badge:nth-child(3){transition-delay:.39s}
.reveal.visible .workflow-step:nth-child(4),
.reveal.visible .benefit-card:nth-child(4),
.reveal.visible .api-card:nth-child(4),
.reveal.visible .module-badge:nth-child(4){transition-delay:.51s}
.reveal.visible .api-card:nth-child(5),
.reveal.visible .module-badge:nth-child(5){transition-delay:.63s}
.reveal.visible .api-card:nth-child(6),
.reveal.visible .module-badge:nth-child(6){transition-delay:.75s}
.reveal.visible .module-badge:nth-child(7){transition-delay:.87s}
.reveal.visible .module-badge:nth-child(8){transition-delay:.99s}
.reveal.visible .module-badge:nth-child(9){transition-delay:1.11s}
.reveal.visible .module-badge:nth-child(10){transition-delay:1.23s}

@media (prefers-reduced-motion:reduce){
  .reveal .feature-card,
  .reveal .workflow-step,
  .reveal .benefit-card,
  .reveal .api-card,
  .reveal .module-badge{
    opacity:1;transform:none;transition:none;
  }
}
