/* ========================================
   POWER BI PARA NEGÓCIOS - ESTILOS GLOBAIS
   ======================================== */

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  background: #0f1117;
  color: #e2e8f0;
  line-height: 1.7;
  scroll-behavior: smooth;
}

/* ========================================
   HEADER / HERO
   ======================================== */

.hero {
  background: linear-gradient(135deg, #1a1f35 0%, #0d2137 50%, #1a1035 100%);
  padding: 60px 40px 50px;
  text-align: center;
  border-bottom: 2px solid #f2c94c33;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, #f2c94c15 0%, transparent 70%);
  pointer-events: none;
}

.hero .badge {
  display: inline-block;
  background: #f2c94c22;
  border: 1px solid #f2c94c55;
  color: #f2c94c;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.8em;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.hero h1 span {
  color: #f2c94c;
}

.hero p {
  font-size: 1.1em;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 30px;
  position: relative;
  z-index: 1;
}

.progress-bar-wrap {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.prog-pill {
  background: #ffffff10;
  border: 1px solid #ffffff20;
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 13px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prog-pill:hover,
.prog-pill.active {
  background: #f2c94c22;
  border-color: #f2c94c88;
  color: #f2c94c;
}

/* ========================================
   NAVEGAÇÃO
   ======================================== */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f1117ee;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ffffff15;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #f2c94c33 transparent;
}

nav::-webkit-scrollbar {
  height: 4px;
}

nav::-webkit-scrollbar-track {
  background: transparent;
}

nav::-webkit-scrollbar-thumb {
  background: #f2c94c33;
  border-radius: 2px;
}

nav a {
  padding: 14px 22px;
  color: #64748b;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  color: #f2c94c;
  border-bottom-color: #f2c94c55;
}

nav a.active {
  color: #f2c94c;
  border-bottom-color: #f2c94c;
}

/* ========================================
   CONTAINER / LAYOUT
   ======================================== */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ========================================
   SEÇÕES
   ======================================== */

.section {
  margin-bottom: 60px;
  scroll-margin-top: 60px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.aula-badge {
  background: linear-gradient(135deg, #f2c94c, #f2994a);
  color: #000;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-header h2 {
  font-size: 1.6em;
  font-weight: 700;
  color: #fff;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: #1e2535;
  border: 1px solid #ffffff12;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #f2c94c33;
}

.card h3 {
  font-size: 1em;
  font-weight: 700;
  color: #f2c94c;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card p,
.card li {
  color: #94a3b8;
  font-size: 0.95em;
}

.card ul {
  padding-left: 18px;
}

.card li {
  margin-bottom: 6px;
}

/* ========================================
   GRID
   ======================================== */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   HIGHLIGHT BOX
   ======================================== */

.highlight {
  background: linear-gradient(135deg, #f2c94c18, #f2994a10);
  border: 1px solid #f2c94c44;
  border-left: 4px solid #f2c94c;
  border-radius: 10px;
  padding: 20px 24px;
  margin: 20px 0;
}

.highlight .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #f2c94c;
  font-weight: 700;
  margin-bottom: 8px;
}

.highlight p {
  color: #e2e8f0;
  font-size: 1em;
  font-style: italic;
}

/* ========================================
   PIPELINE
   ======================================== */

.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 20px 0;
}

.pipe-step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 100px;
}

.pipe-box {
  background: #1e2535;
  border: 1px solid #ffffff18;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  flex: 1;
  transition: all 0.2s ease;
}

.pipe-box:hover {
  background: #f2c94c15;
  border-color: #f2c94c55;
}

.pipe-box .icon {
  font-size: 1.6em;
  margin-bottom: 6px;
}

.pipe-box .name {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.pipe-box .sub {
  font-size: 10px;
  color: #64748b;
  margin-top: 3px;
}

.pipe-arrow {
  color: #f2c94c;
  font-size: 1.2em;
  padding: 0 4px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .pipeline {
    flex-direction: column;
  }

  .pipe-arrow {
    transform: rotate(90deg);
    text-align: center;
    padding: 4px 0;
  }
}

/* ========================================
   COMPARE CARDS
   ======================================== */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

@media (max-width: 500px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

.cmp-card {
  border-radius: 12px;
  padding: 20px;
}

.cmp-a {
  background: #1a2e4a;
  border: 1px solid #3b82f655;
}

.cmp-b {
  background: #2a1e35;
  border: 1px solid #a855f755;
}

.cmp-card h4 {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: 700;
}

.cmp-a h4 {
  color: #60a5fa;
}

.cmp-b h4 {
  color: #c084fc;
}

.cmp-card p {
  font-size: 0.9em;
  color: #94a3b8;
}

/* ========================================
   CODE BLOCKS
   ======================================== */

.code-block {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 18px 20px;
  font-family: 'Courier New', 'Monaco', monospace;
  font-size: 0.88em;
  color: #e2e8f0;
  margin: 14px 0;
  overflow-x: auto;
  line-height: 1.5;
}

.code-block .kw {
  color: #f2c94c;
  font-weight: 600;
}

.code-block .fn {
  color: #79c0ff;
}

.code-block .cm {
  color: #8b949e;
  font-style: italic;
}

/* ========================================
   FUNÇÕES - GRID
   ======================================== */

.fn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.fn-item {
  background: #1e2535;
  border: 1px solid #ffffff12;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  transition: all 0.2s ease;
}

.fn-item:hover {
  border-color: #60a5fa55;
  background: #1a2e4a;
}

.fn-item .fn-name {
  font-family: 'Courier New', monospace;
  font-size: 1em;
  font-weight: 700;
  color: #79c0ff;
  margin-bottom: 6px;
}

.fn-item .fn-desc {
  font-size: 0.8em;
  color: #64748b;
}

/* ========================================
   BOAS PRÁTICAS - LIST
   ======================================== */

.bp-list {
  list-style: none;
  padding: 0;
}

.bp-list li {
  background: #1e2535;
  border: 1px solid #ffffff10;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
}

.bp-list li:hover {
  border-color: #22c55e33;
  background: #142214;
}

.bp-list li .bp-icon {
  font-size: 1.3em;
  flex-shrink: 0;
  margin-top: 2px;
}

.bp-list li .bp-text strong {
  color: #e2e8f0;
  display: block;
  margin-bottom: 3px;
}

.bp-list li .bp-text span {
  color: #64748b;
  font-size: 0.88em;
}

/* ========================================
   ROADMAP
   ======================================== */

.roadmap {
  position: relative;
  padding-left: 30px;
}

.roadmap::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #f2c94c, #f2994a, #a855f7);
  border-radius: 2px;
}

.rm-step {
  position: relative;
  margin-bottom: 28px;
}

.rm-step::before {
  content: attr(data-n);
  position: absolute;
  left: -30px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #f2c94c, #f2994a);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
}

.rm-step h4 {
  color: #fff;
  font-size: 1em;
  margin-bottom: 4px;
}

.rm-step p {
  color: #64748b;
  font-size: 0.9em;
}

/* ========================================
   INSIGHT BOX
   ======================================== */

.insight-box {
  background: linear-gradient(135deg, #1a1035, #0d2137);
  border: 2px solid #f2c94c33;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}

.insight-box h3 {
  color: #f2c94c;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.insight-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.insight-item {
  background: #ffffff08;
  border-radius: 10px;
  padding: 14px 20px;
  color: #e2e8f0;
  font-size: 0.95em;
  text-align: left;
}

.insight-item .tag {
  color: #f2c94c;
  font-weight: 700;
  margin-right: 8px;
}

/* ========================================
   DIVIDER
   ======================================== */

.divider {
  border: none;
  border-top: 1px solid #ffffff10;
  margin: 40px 0;
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #f2c94c;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px #f2c94c44;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
  .hero {
    padding: 40px 24px 35px;
  }

  .hero h1 {
    font-size: 2em;
  }

  .hero p {
    font-size: 1em;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header h2 {
    font-size: 1.3em;
  }

  .container {
    padding: 30px 16px 60px;
  }

  .card {
    padding: 18px;
  }

  .insight-box {
    padding: 24px 16px;
  }
}

/* ========================================
   SCROLLBAR GLOBAL
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f1117;
}

::-webkit-scrollbar-thumb {
  background: #f2c94c44;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f2c94c66;
}
