/* ==========================================================================
   METODO AGÊNCIA MDS® - PREMIUM FINANCIAL B2B DESIGN SYSTEM
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Colors */
  --bg-dark: #070a10;
  --bg-surface-1: #0f1624;
  --bg-surface-2: #162035;
  --bg-card: rgba(22, 32, 53, 0.65);
  --bg-card-hover: rgba(28, 41, 68, 0.85);

  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-cyan: rgba(0, 242, 254, 0.3);

  /* Accents */
  --gold-primary: #f5d061;
  --gold-secondary: #e2a727;
  --gold-dark: #b87a0b;
  --gold-gradient: linear-gradient(135deg, #ffe58f 0%, #f5d061 50%, #d4af37 100%);
  --gold-glow: rgba(245, 208, 97, 0.25);

  --cyan-primary: #00f2fe;
  --cyan-secondary: #4facfe;
  --cyan-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --cyan-glow: rgba(0, 242, 254, 0.25);

  --green-accent: #10b981;
  --alert-red: #f43f5e;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Transitions */
  --tr-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows & Glass */
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --shadow-gold: 0 10px 30px -10px rgba(226, 167, 39, 0.4);
  --glass-blur: blur(16px);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--tr-fast);
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Utility Classes & Gradients --- */
.gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cyan-gradient {
  background: var(--cyan-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-accent {
  color: var(--gold-primary);
}

.gold { color: var(--gold-primary) !important; }
.cyan { color: var(--cyan-primary) !important; }
.green { color: var(--green-accent) !important; }
.alert-color { color: var(--alert-red) !important; }

.section-padding {
  padding: 6rem 0;
  position: relative;
}

.bg-dark {
  background-color: #0b0f19;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--tr-normal);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto;
}

.text-center { text-align: center; }
.w-100 { width: 100%; }
.margin-top { margin-top: 1.5rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--tr-fast);
}

.btn-primary {
  background: var(--gold-gradient);
  color: #070a10;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(245, 208, 97, 0.5);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.05rem;
}

.btn-xl {
  padding: 1.25rem 2.75rem;
  font-size: 1.15rem;
}

/* --- Floating Navbar --- */
.navbar-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: var(--tr-normal);
}

.navbar-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(7, 10, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #070a10;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(245, 208, 97, 0.3);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover, .nav-link.highlight {
  color: var(--text-main);
}

.nav-link.highlight {
  color: var(--gold-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 6rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 208, 97, 0.12) 0%, rgba(0, 242, 254, 0.06) 40%, rgba(7, 10, 16, 0) 70%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background: rgba(245, 208, 97, 0.08);
  border: 1px solid var(--border-gold);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1.2;
}

.trust-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trust-divider {
  width: 1px;
  height: 30px;
  background: var(--border-light);
}

/* --- Hero Visual Dashboard Preview --- */
.hero-dashboard-preview {
  padding: 1.75rem;
  border: 1px solid var(--border-gold);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(245, 208, 97, 0.1);
  position: relative;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.company-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-primary);
}

.status-badge.live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--green-accent);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.live i {
  font-size: 0.5rem;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.iaf-score-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.iaf-gauge-mini {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.gauge-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 8;
}

.gauge-fill-hero {
  fill: none;
  stroke: var(--gold-primary);
  stroke-width: 8;
  stroke-dasharray: 264;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease-out;
}

.gauge-hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-val {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--gold-primary);
}

.gauge-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-weight: 700;
}

.iaf-hero-info h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.score-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.highlight-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-accent);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 0.85rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.metric-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.metric-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.metric-value.alert { color: var(--alert-red); }

.card-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

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

.feature-card {
  padding: 2.25rem 1.75rem;
  position: relative;
}

.feature-card.highlight-border {
  border-color: var(--cyan-primary);
  background: rgba(0, 242, 254, 0.03);
  box-shadow: 0 20px 40px -10px rgba(0, 242, 254, 0.15);
}

.badge-card-top {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--cyan-gradient);
  color: #070a10;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.icon-wrapper.gold {
  background: rgba(245, 208, 97, 0.1);
  color: var(--gold-primary);
  border: 1px solid var(--border-gold);
}

.icon-wrapper.cyan {
  background: rgba(0, 242, 254, 0.1);
  color: var(--cyan-primary);
  border: 1px solid var(--border-cyan);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list.bad i {
  color: var(--alert-red);
  margin-top: 0.2rem;
}

.feature-list.good i {
  color: var(--green-accent);
  margin-top: 0.2rem;
}

/* --- Section: As 4 Fases (Tabs & Content) --- */
.phases-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.phase-tab-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.25rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  text-align: left;
  transition: var(--tr-fast);
}

.phase-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.phase-tab-btn.active {
  background: rgba(245, 208, 97, 0.08);
  border-color: var(--gold-primary);
  box-shadow: 0 10px 25px -5px rgba(245, 208, 97, 0.2);
}

.phase-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dim);
}

.phase-tab-btn.active .phase-num {
  color: var(--gold-primary);
}

.phase-tab-info {
  display: flex;
  flex-direction: column;
}

.phase-tab-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.phase-tab-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.phase-panel {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.phase-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.phase-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: flex-start;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
}

.phase-tag {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 2px;
}

.phase-description h3 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.phase-description p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.phase-highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(245, 208, 97, 0.08);
  border-left: 3px solid var(--gold-primary);
  padding: 1rem 1.25rem;
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

.phase-highlight-box i {
  color: var(--gold-primary);
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.pillars-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.85rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--tr-fast);
}

.pillar-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-gold);
}

.pillar-card i {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

/* --- Fase 2 Interactive Architecture --- */
.arch-selector {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.arch-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 0.6rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--tr-fast);
}

.arch-btn.active {
  background: var(--gold-gradient);
  color: #070a10;
  font-weight: 700;
}

.arch-card-display {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 1.5rem;
}

.arch-header-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.arch-header-box h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.arch-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.arch-item {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}

.arch-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.arch-val {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

/* --- Timeline Fase 3 --- */
.phase-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.timeline-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #070a10;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* --- Gestao Grid Fase 4 --- */
.gestao-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gestao-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.25rem;
}

.gestao-mini-card i {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.gestao-mini-card h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.gestao-mini-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --- Section: Indicador IAF KPI Comparison --- */
.kpi-comparison-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.kpi-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.kpi-badge {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.kpi-badge.gold-bg {
  color: #070a10;
  background: var(--gold-gradient);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  align-self: flex-start;
}

.kpi-card h3 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.kpi-card p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.kpi-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

.iaf-featured-card {
  background: rgba(245, 208, 97, 0.05);
  border: 1px solid var(--gold-primary);
  box-shadow: 0 15px 35px -10px rgba(245, 208, 97, 0.2);
}

/* --- Interactive IAF Simulator Section --- */
.simulator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  padding: 2.5rem;
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.control-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-primary);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.input-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold-primary);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 0 12px rgba(245, 208, 97, 0.6);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.radio-buttons {
  display: flex;
  gap: 0.75rem;
}

.radio-pill {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.75rem;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--tr-fast);
}

.radio-pill input {
  display: none;
}

.radio-pill.active {
  background: rgba(245, 208, 97, 0.1);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  font-weight: 600;
}

.sim-cta-box {
  margin-top: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 1px solid var(--border-light);
  text-align: center;
}

.sim-cta-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* Simulator Dashboard (Right Column) */
.simulator-dashboard {
  background: rgba(7, 10, 16, 0.7);
  border: 1px solid var(--border-gold);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.dash-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-light);
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.dash-period {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.main-iaf-result {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.iaf-gauge-container {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.gauge-svg-large {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.gauge-bg-large {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.gauge-fill-large {
  fill: none;
  stroke: var(--gold-primary);
  stroke-width: 10;
  stroke-dasharray: 314;
  stroke-dashoffset: 180;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease-out, stroke 0.4s ease;
}

.gauge-center-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-big-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--gold-primary);
}

.gauge-big-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.iaf-status-info h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.4rem;
  margin-bottom: 0.3rem;
}

.iaf-status-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.status-tag-wrapper {
  display: inline-block;
}

.status-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(244, 63, 94, 0.15);
  color: var(--alert-red);
}

.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.metric-card.alert-border {
  border-color: rgba(244, 63, 94, 0.3);
}

.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.metric-icon.gold { background: rgba(245, 208, 97, 0.1); color: var(--gold-primary); }
.metric-icon.cyan { background: rgba(0, 242, 254, 0.1); color: var(--cyan-primary); }
.metric-icon.alert-color { background: rgba(244, 63, 94, 0.1); color: var(--alert-red); }

.metric-body {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.metric-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.dash-footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
}

.dash-footer-note i {
  color: var(--gold-primary);
}

/* --- Section CTA Gradient --- */
.bg-gradient-cta {
  background: linear-gradient(135deg, rgba(245, 208, 97, 0.1) 0%, rgba(0, 242, 254, 0.05) 100%), #070a10;
  border-top: 1px solid var(--border-gold);
  border-bottom: 1px solid var(--border-light);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* --- Footer --- */
.site-footer {
  background: #04060a;
  padding-top: 4rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border-light);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-column h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--gold-primary);
}

.link-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-column a, .link-column .location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.link-column a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Modal Overlay & Form --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--tr-fast);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  max-width: 580px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  border-color: var(--border-gold);
  transform: translateY(20px);
  transition: var(--tr-normal);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input, .form-group select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
  background: var(--bg-surface-1);
  color: var(--text-main);
}

.modal-success {
  padding: 2rem 1rem;
}

.success-icon {
  font-size: 3.5rem;
  color: var(--green-accent);
  margin-bottom: 1rem;
}

.modal-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.modal-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-trust-bar {
    justify-content: center;
  }

  .grid-3-cards, .kpi-comparison-grid {
    grid-template-columns: 1fr;
  }

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

  .phase-grid {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .simulator-wrapper {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Hide Navbar CTA button on Mobile view */
  .nav-actions .btn {
    display: none !important;
  }

  /* Hamburger toggle position & alignment */
  .mobile-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--gold-primary);
    font-size: 1.35rem;
    cursor: pointer;
    transition: var(--tr-fast);
    margin-left: auto;
  }

  .mobile-toggle:hover, .mobile-toggle:active {
    background: rgba(245, 208, 97, 0.15);
    border-color: var(--gold-primary);
  }

  /* Full height slide-down mobile menu */
  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background: rgba(7, 10, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 1.5rem;
    gap: 1.75rem;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    padding: 0.5rem 0;
  }

  /* Prevent horizontal scroll / overflow */
  .section-padding {
    padding: 3.5rem 0;
  }

  .hero-section {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-trust-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .trust-divider {
    display: none;
  }

  .phases-tabs {
    grid-template-columns: 1fr;
  }

  .phase-grid {
    padding: 1.25rem 1rem;
    border-radius: 18px;
    gap: 1.5rem;
  }

  .phase-description h3 {
    font-size: 1.35rem;
  }

  .simulator-wrapper {
    padding: 1.25rem 1rem;
    border-radius: 18px;
    gap: 1.5rem;
  }

  .simulator-dashboard {
    padding: 1.25rem 1rem;
    border-radius: 16px;
  }

  .main-iaf-result {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1.25rem;
  }

  .hero-dashboard-preview {
    padding: 1.25rem 1rem;
  }

  .iaf-score-hero {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .iaf-hero-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pillars-grid, .arch-items-grid, .gestao-cards-grid, .dashboard-metrics-grid, .footer-links {
    grid-template-columns: 1fr;
  }

  .arch-selector {
    flex-direction: column;
    width: 100%;
  }

  .arch-btn {
    width: 100%;
    text-align: center;
  }

  .radio-buttons {
    flex-direction: column;
    width: 100%;
  }

  .modal-card {
    padding: 1.75rem 1.25rem;
    margin: 1rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-close {
    top: 0.75rem;
    right: 1rem;
  }
}
