@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #042C53;
  --deep:    #0C447C;
  --blue:    #185FA5;
  --accent:  #378ADD;
  --light:   #85B7EB;
  --pale:    #B5D4F4;
  --bg:      #F1F5F9;
  --white:   #FFFFFF;
  --text:    #0F172A;
  --muted:   #64748B;
  --border:  #E2E8F0;
  --radius:  12px;
  --radius-lg: 16px;
  --shadow:  0 4px 24px rgba(4,44,83,0.10);
  --shadow-lg: 0 8px 40px rgba(4,44,83,0.15);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-ui: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p  { font-size: 1rem; line-height: 1.7; color: var(--muted); }

a { text-decoration: none; color: inherit; }

/* ─── LAYOUT ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--navy);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
}
.navbar-bars { display: flex; align-items: flex-end; gap: 3px; }
.navbar-bars span {
  border-radius: 2px;
  display: block;
}
.navbar-wordmark {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}
.navbar-wordmark em { font-style: normal; color: var(--light); }
.navbar-links { display: flex; align-items: center; gap: 28px; }
.navbar-links a {
  font-family: var(--font-ui);
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--white); }
.navbar-cta {
  font-family: var(--font-ui);
  font-size: 0.82rem; font-weight: 600;
  background: var(--blue);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}
.navbar-cta:hover { background: var(--accent) !important; transform: translateY(-1px); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.01em;
  text-decoration: none;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(24,95,165,0.35); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: 14px; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white:hover { background: var(--pale); transform: translateY(-2px); }

/* ─── BADGE ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-ui);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px;
}
.badge-blue {
  background: rgba(55,138,221,0.15);
  color: var(--pale);
  border: 1px solid rgba(181,212,244,0.25);
}
.badge-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--border);
}

/* ─── HERO ─── */
.hero {
  background: var(--navy);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(24,95,165,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(55,138,221,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  position: relative; z-index: 1;
}
.hero-badge { margin-bottom: 20px; }
.hero-title { color: var(--white); margin-bottom: 20px; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-desc { font-size: 1.05rem; color: rgba(255,255,255,0.55); margin-bottom: 32px; max-width: 440px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { font-family: var(--font-ui); font-size: 0.8rem; color: rgba(255,255,255,0.35); }

/* hero visual */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
}
.hero-card {
  background: rgba(12,68,124,0.5);
  border: 1px solid rgba(181,212,244,0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%; max-width: 360px;
  backdrop-filter: blur(8px);
}
.hero-card-label {
  font-family: var(--font-ui); font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.12em;
  color: var(--light); margin-bottom: 20px;
  text-transform: uppercase;
}
.pillar-list { display: flex; flex-direction: column; gap: 12px; }
.pillar-item { display: flex; align-items: center; gap: 12px; }
.pillar-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(55,138,221,0.15);
  border: 1px solid rgba(133,183,235,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pillar-icon svg { width: 16px; height: 16px; color: var(--light); }
.pillar-info { flex: 1; }
.pillar-name {
  font-family: var(--font-ui); font-size: 0.82rem;
  font-weight: 600; color: var(--white); margin-bottom: 4px;
}
.pillar-bar-track {
  height: 4px; background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.pillar-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transition: width 1s ease;
}
.pillar-score {
  font-family: var(--font-ui); font-size: 0.78rem;
  font-weight: 700; color: var(--light); flex-shrink: 0;
}

/* ─── STEPS BAR ─── */
.steps-bar {
  background: var(--deep);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.steps-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0;
}
.step-item { display: flex; align-items: center; gap: 10px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-label {
  font-family: var(--font-ui); font-size: 0.82rem;
  font-weight: 500; color: rgba(255,255,255,0.65);
}
.step-sep {
  color: rgba(255,255,255,0.2); font-size: 1.1rem;
  margin: 0 20px; flex-shrink: 0;
}

/* ─── MATURITY SECTION ─── */
.maturity-grid {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 12px;
  margin-bottom: 48px;
}
.maturity-card {
  border-radius: var(--radius); padding: 20px 14px;
  text-align: center; border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.maturity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.maturity-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; margin-bottom: 4px; }
.maturity-name { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.maturity-desc { font-size: 0.78rem; line-height: 1.4; color: var(--muted); }

.mat-0 { background: #FEF2F2; border-color: #FECACA; }
.mat-0 .maturity-num, .mat-0 .maturity-name { color: #DC2626; }
.mat-1 { background: #FFF7ED; border-color: #FED7AA; }
.mat-1 .maturity-num, .mat-1 .maturity-name { color: #EA580C; }
.mat-2 { background: #FEFCE8; border-color: #FDE68A; }
.mat-2 .maturity-num, .mat-2 .maturity-name { color: #CA8A04; }
.mat-3 { background: #EFF6FF; border-color: #BFDBFE; }
.mat-3 .maturity-num, .mat-3 .maturity-name { color: #1D4ED8; }
.mat-4 { background: #F0FDF4; border-color: #BBF7D0; }
.mat-4 .maturity-num, .mat-4 .maturity-name { color: #16A34A; }

/* ─── SECTION HEADERS ─── */
.section-eyebrow {
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.section-title { color: var(--text); margin-bottom: 12px; }
.section-sub { max-width: 560px; margin-bottom: 48px; }

/* ─── PILLARS CARDS ─── */
.pillars-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 16px;
}
.pillar-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.pillar-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pillar-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--bg); display: flex; align-items: center;
  justify-content: center; margin-bottom: 14px;
  border: 1px solid var(--border);
}
.pillar-card-num {
  font-family: var(--font-display); font-size: 0.72rem;
  font-weight: 800; color: var(--blue); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 6px;
}
.pillar-card h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.pillar-card p  { font-size: 0.88rem; }

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--navy); padding: 80px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 100% 50%, rgba(55,138,221,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; position: relative; z-index: 1;
}
.cta-text h2 { color: var(--white); margin-bottom: 12px; }
.cta-text p  { color: rgba(255,255,255,0.5); max-width: 440px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy); border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 800; color: var(--white); letter-spacing: -0.02em;
}
.footer-logo em { font-style: normal; color: var(--light); }
.footer-copy {
  font-family: var(--font-ui); font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}

/* ─── DIAGNÓSTICO PAGE ─── */
.diag-page {
  min-height: 100vh;
  background: var(--bg);
  padding-top: 64px;
}
.diag-header {
  background: var(--navy); padding: 36px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.diag-header-inner {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 20px;
  flex-wrap: wrap;
}
.diag-title {
  font-family: var(--font-display); font-size: 1.6rem;
  font-weight: 800; color: var(--white); margin-bottom: 4px;
}
.diag-subtitle {
  font-family: var(--font-ui); font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}
.diag-progress-wrap { min-width: 220px; }
.diag-progress-label {
  font-family: var(--font-ui); font-size: 0.75rem;
  color: rgba(255,255,255,0.4); margin-bottom: 6px;
  display: flex; justify-content: space-between;
}
.diag-progress-track {
  height: 5px; background: rgba(255,255,255,0.1);
  border-radius: 3px; overflow: hidden;
}
.diag-progress-fill {
  height: 100%; background: var(--accent);
  border-radius: 3px; transition: width 0.4s ease;
}

.diag-body { padding: 40px 0 80px; }
.diag-pilar-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 14px;
  font-family: var(--font-ui); font-size: 0.75rem;
  font-weight: 700; color: var(--blue); margin-bottom: 24px;
}
.diag-pilar-title {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 800; color: var(--text); margin-bottom: 6px;
}
.diag-pilar-sub {
  font-size: 0.9rem; color: var(--muted); margin-bottom: 32px;
}

/* questão */
.question-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.question-card:focus-within { box-shadow: 0 0 0 3px rgba(24,95,165,0.15); }
.question-num {
  font-family: var(--font-ui); font-size: 0.72rem;
  font-weight: 700; color: var(--blue); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 8px;
}
.question-text {
  font-family: var(--font-body); font-size: 1rem;
  font-weight: 600; color: var(--text); margin-bottom: 16px;
  line-height: 1.5;
}
.options { display: flex; flex-direction: column; gap: 8px; }
.option-label {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; transition: all 0.18s;
}
.option-label:hover { border-color: var(--accent); background: #F0F7FF; }
.option-label input[type="radio"] { display: none; }
.option-label.selected { border-color: var(--blue); background: #EBF4FF; }
.option-indicator {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px; transition: all 0.18s;
}
.option-label.selected .option-indicator {
  border-color: var(--blue); background: var(--blue);
}
.option-label.selected .option-indicator::after {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--white);
}
.option-score {
  font-family: var(--font-ui); font-size: 0.72rem;
  font-weight: 800; color: var(--muted);
  background: var(--bg); padding: 2px 7px; border-radius: 5px;
  flex-shrink: 0; margin-top: 2px; transition: all 0.18s;
}
.option-label.selected .option-score { background: var(--pale); color: var(--deep); }
.option-text { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

/* nav botões */
.diag-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 32px;
}
.diag-steps-dots {
  display: flex; gap: 6px; align-items: center;
}
.diag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: all 0.2s;
}
.diag-dot.active { background: var(--blue); width: 24px; border-radius: 4px; }
.diag-dot.done   { background: var(--accent); }

/* ─── RESULTADO PAGE ─── */
.resultado-page { min-height: 100vh; background: var(--bg); padding-top: 64px; }

.resultado-header {
  background: var(--navy); padding: 40px 0;
}
.resultado-header-inner {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
}
.score-big {
  width: 110px; height: 110px; border-radius: 50%;
  border: 4px solid var(--accent); background: rgba(55,138,221,0.1);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.score-big-num {
  font-family: var(--font-display); font-size: 2.6rem;
  font-weight: 800; color: var(--white); line-height: 1;
}
.score-big-den {
  font-family: var(--font-ui); font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.resultado-title {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 800; color: var(--white); margin-bottom: 6px;
}
.resultado-desc { font-size: 0.95rem; color: rgba(255,255,255,0.5); max-width: 480px; }

.resultado-body { padding: 40px 0 80px; }
.resultado-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.pilar-result-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.pilar-result-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.pilar-result-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.pilar-result-score {
  font-family: var(--font-display); font-size: 1.8rem;
  font-weight: 800; color: var(--blue);
}
.pilar-result-track {
  height: 8px; background: var(--bg);
  border-radius: 4px; overflow: hidden; margin-bottom: 12px;
}
.pilar-result-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  transition: width 1.2s ease;
}
.pilar-result-label {
  font-family: var(--font-ui); font-size: 0.78rem;
  font-weight: 600; color: var(--muted);
}

/* ebook card */
.ebook-card {
  background: var(--navy); border-radius: var(--radius-lg);
  padding: 32px; display: flex; gap: 24px; align-items: center;
  margin-top: 24px; border: 1px solid rgba(181,212,244,0.1);
}
.ebook-cover {
  width: 80px; height: 108px; border-radius: 8px;
  background: var(--deep); border: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
}
.ebook-cover-bars { display: flex; align-items: flex-end; gap: 3px; }
.ebook-cover-bars span { border-radius: 2px; display: block; }
.ebook-cover-label {
  font-family: var(--font-ui); font-size: 0.6rem;
  color: rgba(255,255,255,0.4); letter-spacing: 0.05em; text-align: center;
}
.ebook-text h3 {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.3;
}
.ebook-text p { font-size: 0.88rem; color: rgba(255,255,255,0.45); margin-bottom: 16px; }
.ebook-form { display: flex; gap: 10px; flex-wrap: wrap; }
.ebook-form input {
  flex: 1; min-width: 180px; padding: 11px 16px;
  border-radius: 9px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07); color: var(--white);
  font-family: var(--font-ui); font-size: 0.88rem; outline: none;
  transition: border-color 0.2s;
}
.ebook-form input::placeholder { color: rgba(255,255,255,0.3); }
.ebook-form input:focus { border-color: var(--accent); }

/* ─── RADAR CHART ─── */
.radar-wrap {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  display: flex; flex-direction: column; align-items: center;
}
.radar-wrap h3 {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 20px; align-self: flex-start;
}

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--text); color: var(--white);
  padding: 14px 20px; border-radius: 10px;
  font-family: var(--font-ui); font-size: 0.88rem; font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s ease;
  display: flex; align-items: center; gap: 10px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { background: #16A34A; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .maturity-grid { grid-template-columns: repeat(2,1fr); }
  .maturity-grid .maturity-card:last-child { grid-column: 1 / -1; }
  .pillars-grid { grid-template-columns: 1fr; }
  .resultado-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
  .ebook-card { flex-direction: column; }
  .navbar-links { display: none; }
  .steps-inner { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .step-sep { display: none; }
  .resultado-header-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease forwards; }
.fade-up-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-4 { animation-delay: 0.4s; opacity: 0; }
