/* ADO Academia — main.css v0.1.0 */
/* Cores: preto #111, cinza #1a1a1a, vermelho institucional #1a1a1a */

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

:root {
  --red: #1a1a1a;
  --red-dark: #000;
  --red-light: #444;
  --bg: #f0f0f0;
  --bg2: #fff;
  --bg3: #fafafa;
  --border: #e5e5e5;
  --border2: #d0d0d0;
  --text: #1a1a1a;
  --text2: #555;
  --text3: #888;
  --white: #fff;
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ─── TOPBAR ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; border: 2px solid var(--red); background: var(--bg2); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { display: block; font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: .04em; }
.brand-sub { display: block; font-size: 10px; color: var(--text3); letter-spacing: .06em; }

.topbar-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text2);
  transition: all .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg2); text-decoration: none; }

.btn-login {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background .15s;
}
.btn-login:hover { background: var(--red-dark); text-decoration: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #0d0d0d;
  border-top: 1px solid var(--border);
  padding: .5rem 1.5rem 1rem;
}
.mobile-nav a { padding: .6rem 0; font-size: 14px; color: var(--text2); border-bottom: 1px solid var(--border); }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-login { color: var(--red) !important; font-weight: 600; }
.mobile-nav.open { display: flex; }

/* ─── HERO ─── */
.hero {
  background: var(--bg);
  padding: 4rem 1.5rem 3rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}
.hero-eyebrow { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--red); font-weight: 600; margin-bottom: .6rem; }
.hero-title { font-size: 2.2rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; color: var(--text); }
.hero-accent { color: var(--red); }
.hero-desc { font-size: 15px; color: var(--text2); line-height: 1.7; max-width: 520px; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 2rem; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px;
  background: var(--red);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}
.btn-primary:hover { background: var(--red-dark); text-decoration: none; }

.btn-secondary {
  display: inline-flex; align-items: center;
  padding: 11px 22px;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  font-size: 14px;
  transition: all .15s;
}
.btn-secondary:hover { color: var(--text); border-color: var(--text3); text-decoration: none; }

.hero-stats { display: flex; align-items: center; gap: 0; }
.hstat { text-align: center; padding: 0 1.5rem; }
.hstat:first-child { padding-left: 0; }
.hstat-n { display: block; font-size: 1.6rem; font-weight: 700; color: var(--text); }
.hstat-l { display: block; font-size: 11px; color: var(--text3); margin-top: 2px; }
.hstat-div { width: 1px; height: 32px; background: var(--border); }

/* CERT CARD */
.cert-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.cert-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); margin-bottom: .4rem; }
.cert-score { font-size: 2.5rem; font-weight: 700; color: var(--red); line-height: 1; }
.cert-max { font-size: 1rem; color: var(--text3); font-weight: 400; }
.cert-stars { font-size: 1.2rem; color: var(--border2); margin: .4rem 0 .9rem; letter-spacing: 3px; }
.cert-stars .star.active { color: var(--red); }

.cbar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cbar-label { font-size: 10px; color: var(--text3); width: 130px; flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbar-track { flex: 1; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.cbar-fill { height: 100%; background: var(--red); border-radius: 2px; transition: width .5s; }
.cbar-pts { font-size: 10px; color: var(--text3); width: 28px; text-align: right; flex-shrink: 0; }

.cert-target { display: flex; align-items: center; justify-content: space-between; margin-top: .9rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.target-badge { font-size: 11px; background: #1a0a0a; color: var(--red); border: 1px solid #3a1010; border-radius: 4px; padding: 3px 8px; }
.target-gap { font-size: 11px; color: var(--text3); }

/* ─── ALERTS BAR ─── */
.alerts-bar { background: #0d0d0d; border-bottom: 1px solid var(--border); padding: .65rem 1.5rem; }
.alerts-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.alert-item { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 4px; }
.alert-item.urgent { background: #2e0a0a; color: #e05555; }
.alert-item.warn { background: #2a1a05; color: #e0a030; }
.alert-item:not(.urgent):not(.warn) { color: var(--text3); }
.alert-cta { margin-left: auto; font-size: 12px; color: var(--red-light); flex-shrink: 0; }

/* ─── SECTIONS ─── */
.section { padding: 4rem 1.5rem; }
.section.dark { background: #0d0d0d; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title { font-size: 1.6rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; }
.section-desc { font-size: 14px; color: var(--text2); max-width: 560px; margin: 0 auto; line-height: 1.65; }

/* ─── MÓDULOS ─── */
.modules-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.mod-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  transition: border-color .15s;
}
.mod-card:hover:not(.locked) { border-color: var(--red); }
.mod-card.locked { opacity: .45; }
.mod-dot { width: 28px; height: 28px; border-radius: 7px; border: 1px solid; display: flex; align-items: center; justify-content: center; margin-bottom: .7rem; }
.mod-dot-inner { width: 10px; height: 10px; border-radius: 50%; }
.mod-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.mod-desc { font-size: 12px; color: var(--text3); line-height: 1.55; margin-bottom: .5rem; }
.mod-tag { display: inline-block; font-size: 10px; padding: 2px 7px; border-radius: 4px; font-weight: 500; }
.mod-tag.live { background: #0f1f0f; color: #4caf50; }
.mod-tag.fase2 { background: #1a1a1a; color: #555; }

/* ─── CRITÉRIOS ─── */
.criterios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
.crit-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  display: flex;
  gap: .75rem;
}
.crit-num { font-size: 1.4rem; font-weight: 700; color: var(--red); opacity: .5; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.crit-name { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.crit-pts { display: inline-block; font-size: 10px; background: #1a0a0a; color: var(--red); border-radius: 3px; padding: 1px 6px; margin-bottom: 5px; }
.crit-desc { font-size: 11px; color: var(--text3); line-height: 1.5; }
.fpf-total { text-align: center; font-size: 12px; color: var(--text3); }
.fpf-total strong { color: var(--text); }

/* ─── PERFIS ─── */
.perfis-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.perfil-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.perfil-dot { width: 8px; height: 8px; border-radius: 50%; margin-bottom: .65rem; }
.perfil-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.perfil-desc { font-size: 12px; color: var(--text3); line-height: 1.5; }

/* ─── ROADMAP ─── */
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.phase-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.phase-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 4px; margin-bottom: .7rem; }
.phase1 { background: #0f1f0f; color: #4caf50; }
.phase2 { background: #1a150a; color: #e0a030; }
.phase3 { background: #0a1020; color: #6b8cff; }
.phase-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: .75rem; }
.phase-list { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.phase-list li { font-size: 12px; color: var(--text3); padding-left: 1rem; position: relative; }
.phase-list li::before { content: '—'; position: absolute; left: 0; color: var(--red); opacity: .6; }

/* ─── FOOTER ─── */
.footer { background: #0d0d0d; border-top: 1px solid var(--border); padding: 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 50%; border: 1px solid var(--border2); }
.footer-name { font-size: 13px; font-weight: 600; color: var(--text); }
.footer-sub { font-size: 11px; color: var(--text3); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { font-size: 12px; color: var(--text3); }
.footer-links a:hover { color: var(--text); }
.footer-meta { font-size: 11px; color: var(--text3); font-family: monospace; }

/* ─── LOGIN PAGE ─── */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 2rem; }
.login-wrap { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 1rem; }
.login-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.login-header { text-align: center; margin-bottom: 1.75rem; }
.login-header img { margin: 0 auto 1rem; border-radius: 50%; border: 2px solid var(--red); }
.login-header h1 { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.login-header p { font-size: 12px; color: var(--text3); }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--text2); }
.field input {
  padding: 10px 12px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  transition: border-color .15s;
  outline: none;
}
.field input:focus { border-color: var(--red); }
.btn-submit {
  width: 100%;
  padding: 11px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s;
}
.btn-submit:hover { background: var(--red-dark); }
.login-footer-links { display: flex; justify-content: space-between; margin-top: 1rem; }
.login-footer-links a { font-size: 12px; color: var(--text3); }
.login-footer-links a:hover { color: var(--text); }
.login-notice { background: #2e0a0a; color: #e05555; border: 1px solid #5a1a1a; border-radius: var(--radius); padding: .75rem 1rem; font-size: 13px; margin-bottom: 1rem; }
.login-info { display: flex; flex-direction: column; gap: .4rem; }
.linfo-item { font-size: 11px; color: var(--text3); display: flex; align-items: center; gap: 6px; }

.coming-soon { text-align: center; padding: 1.5rem 0; }
.cs-icon { margin-bottom: .75rem; display: flex; justify-content: center; }
.cs-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: .5rem; }
.cs-desc { font-size: 13px; color: var(--text3); line-height: 1.6; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .cert-card { display: none; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .criterios-grid { grid-template-columns: repeat(2, 1fr); }
  .perfis-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: 1fr; }
  .topbar-nav { display: none; }
  .btn-login { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: 1.7rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .modules-grid { grid-template-columns: 1fr; }
  .criterios-grid { grid-template-columns: 1fr; }
  .perfis-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 0; }
  .hstat { padding: 0 .75rem; }
  .alerts-inner { flex-direction: column; align-items: flex-start; }
}
