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

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
  --bg-main: #060607;
  --bg-card: #0d0d0f;
  --bg-card-hover: #121215;
  --bg-glass: rgba(13, 13, 15, 0.7);
  --border-glass: rgba(255, 255, 255, 0.05);
  --border-glass-active: rgba(35, 114, 84, 0.3);
  
  --brand-green: #237254;
  --brand-green-hover: #2d8262;
  --brand-green-glow: rgba(35, 114, 84, 0.15);
  --brand-green-rgb: 35, 114, 84;
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  --status-success: #10b981;
  --status-success-bg: rgba(16, 185, 129, 0.1);
  --status-error: #ef4444;
  --status-error-bg: rgba(239, 68, 68, 0.1);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

/* --- BASE STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
  color: var(--text-secondary);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.green-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- LAYOUT UTILITIES --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 8rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

/* Background grid effect */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 114, 84, 0.06) 0%, rgba(35, 114, 84, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background-color: var(--brand-green);
  color: #ffffff;
  box-shadow: 0 4px 24px var(--brand-green-glow);
}

.btn-primary:hover {
  background-color: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(35, 114, 84, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* --- NAVIGATION --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(6, 6, 7, 0.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand-green), #1b5e43);
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon::before {
  content: '';
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 2px;
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: rgba(35, 114, 84, 0.1);
  border: 1px solid rgba(35, 114, 84, 0.2);
  color: var(--brand-green);
  border-radius: 50px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* --- HERO SECTION --- */
/* --- HERO SECTION --- */
/* --- HERO SECTION --- */
.hero {
  position: relative;
  overflow: visible;
  padding: 10rem 0 40rem 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: #060607;
}

/* Layer 1: Dashboard Mockup Background (100% width and height coverage - Fill Model) */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/hero-bg-mockup-original.png?v=4');
  background-size: cover;
  background-position: center bottom 40px;
  background-repeat: no-repeat;
  opacity: 1.0;
  z-index: 1;
  pointer-events: none;
  
  /* WebKit specific rendering optimization for maximum screenshot/text sharpness on macOS */
  image-rendering: -webkit-optimize-contrast;
}

/* Layer 2: Overlay disabled to ensure 100% original image quality, colors, and brightness */
.hero::after {
  display: none;
}

.hero-container-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 3; /* Layer 4: Conteúdo Centralizado */
  width: 100%;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  margin-bottom: 0.65rem; /* Reduced spacing to headline from 1rem to 0.65rem */
  display: inline-flex;
  align-items: center;
}

.hero-badge-text {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 3.25rem);
  line-height: 1.22; /* Balanced line-height for balanced composition */
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem; /* Increased margin-bottom from 0.75rem to 1.5rem */
  max-width: 950px;
  text-align: center;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 620px; /* Improved max-width for cleaner layout and reading comfort */
  margin-bottom: 0;
  line-height: 1.6; /* Increased line-height from 1.5 to 1.6 */
}

/* Wrapper to maintain centered flex layout on desktop/mobile */
.hero-text-block-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Hero CTA Button Spacing and Breathing Room */
.hero-cta-wrapper {
  margin-top: 2.1rem; /* Reduced spacing under subhead by 40% */
  margin-bottom: 0;
  z-index: 10;
  position: relative;
}

.btn-hero-main {
  padding: 1.15rem 2.85rem;
  font-size: 1.02rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px var(--brand-green-glow);
}

/* Horizontal Benefits */
.hero-horizontal-benefits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  max-width: 1000px;
  width: 100%;
}

.h-bullet-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.h-bullet-check {
  color: var(--brand-green);
  font-weight: bold;
}

/* CTA Block */
.hero-cta-block {
  margin-bottom: 2rem;
}

.btn-hero-cta {
  font-size: 1.05rem;
  padding: 1.25rem 3rem;
  border-radius: var(--radius-sm);
}

.hero-cta-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Infrastructure Metrics indicators */
.hero-infra-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  backdrop-filter: blur(5px);
}

.infra-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.infra-metric .metric-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.infra-metric .metric-dot.green {
  background: var(--status-success);
  box-shadow: 0 0 8px var(--status-success);
}

.infra-metric .metric-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.infra-sep {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
}

/* --- GARGALOS SECTION --- */
.gargalos-section {
  background-color: #060607;
  padding: 8rem 0;
  position: relative;
  margin-top: -14rem !important; /* Overlaps bottom of hero laptop keyboard */
  z-index: 10;
}

.gargalos-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  margin-top: 3.5rem;
}

.gargalos-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.gargalo-card {
  background: rgba(239, 68, 68, 0.02);
  border: 1px solid rgba(239, 68, 68, 0.08);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.gargalo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--status-error);
  opacity: 0.4;
  transition: var(--transition-fast);
}

.gargalo-card:hover {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.2);
  transform: translateY(-4px);
}

.gargalo-card:hover::before {
  opacity: 1;
}

.gargalo-metric {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--status-error);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.gargalo-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.gargalo-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.gargalos-narrative {
  display: flex;
  align-items: stretch;
}

.narrative-box {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.narrative-icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.narrative-box h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.narrative-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.narrative-box p:last-child {
  margin-bottom: 0;
}

.narrative-box .highlight-text {
  color: var(--text-primary);
  font-weight: 500;
  border-left: 2px solid var(--brand-green);
  padding-left: 1rem;
}

.gargalos-cta {
  text-align: center;
  margin-top: 4rem;
}

.btn-gargalos-cta {
  padding: 1.1rem 2.5rem;
  font-size: 0.95rem;
}

.gargalos-cta-subtext {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* RESPONSIVE DESIGN */
@media (min-width: 769px) {
  .hero {
    min-height: 100vh;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 8rem;
    padding-bottom: 28rem; /* Increased bottom padding on tablet */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  
  .hero::before {
    display: block;
    background-size: cover;
    background-position: center bottom 20px; /* Position laptop slightly up on tablet */
    image-rendering: -webkit-optimize-contrast;
  }
  
  .hero-cta-wrapper {
    margin-top: 1.5rem; /* Reduced by 40% */
  }
  
  .hero-title {
    font-size: 2rem;
    line-height: 1.25;
  }
  
  .hero-horizontal-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
    text-align: left;
    padding: 0 1rem;
  }
  
  .hero-infra-metrics {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .gargalos-section {
    padding-top: 4rem !important;
    margin-top: -4.5rem !important; /* Safe overlap for small phones */
  }
}

/* --- DIFERENCIAIS SECTION --- */
.section-title-wrap {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-tag {
  color: var(--brand-green);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

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

@media (max-width: 1024px) {
  .grid-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.diff-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle 120px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(35, 114, 84, 0.06), transparent 80%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.diff-card:hover::before {
  opacity: 1;
}

.diff-card:hover {
  transform: translateY(-5px);
  border-color: rgba(35, 114, 84, 0.2);
  background: var(--bg-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.diff-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.diff-card:hover .diff-icon-box {
  background: rgba(35, 114, 84, 0.1);
  border-color: rgba(35, 114, 84, 0.3);
  transform: scale(1.05);
}

.diff-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

.diff-card p {
  font-size: 0.9rem;
}

/* --- INFRA PROVA / CREDIBILIDADE SECTION --- */
.infra-prova-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(35, 114, 84, 0.01) 50%, var(--bg-main) 100%);
  position: relative;
  padding: 8rem 0;
}

.infra-indicators-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: 4rem;
}

.infra-indicator-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.infra-indicator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(35, 114, 84, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-smooth);
}

.infra-indicator-card:hover {
  border-color: var(--border-glass-active);
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-4px);
}

.infra-indicator-card:hover::before {
  opacity: 1;
}

.infra-indicator-card .indicator-val {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.infra-indicator-card .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.infra-indicator-card .status-dot.green {
  background: var(--status-success);
  box-shadow: 0 0 10px var(--status-success);
}

.infra-indicator-card .indicator-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.infra-benefits-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  max-width: 1100px;
  margin: 0 auto 4rem auto;
  backdrop-filter: blur(5px);
}

.infra-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-primary);
}

.infra-benefit-icon {
  color: var(--brand-green);
  font-weight: bold;
}

.infra-cta-block {
  text-align: center;
}

.btn-infra-cta {
  padding: 1.25rem 3rem;
  font-size: 1.05rem;
}

.infra-cta-subtext {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

@media (max-width: 1024px) {
  .infra-indicators-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .infra-indicators-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .infra-benefits-row {
    border-radius: var(--radius-md);
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .infra-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .infra-indicators-grid {
    grid-template-columns: 1fr;
  }
}

/* --- QUALIFICAÇÃO SECTION --- */
.qualificacao {
  position: relative;
}

.qualificacao-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

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

.qual-block {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.qual-block.approved {
  border-top: 4px solid var(--status-success);
}

.qual-block.rejected {
  border-top: 4px solid var(--status-error);
}

.qual-block h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

.qual-status-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.approved .qual-status-icon {
  background: var(--status-success-bg);
  color: var(--status-success);
}

.rejected .qual-status-icon {
  background: var(--status-error-bg);
  color: var(--status-error);
}

.qual-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.qual-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.qual-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.approved .qual-item-dot {
  background: var(--status-success);
}

.rejected .qual-item-dot {
  background: var(--status-error);
}

.qual-item-text {
  color: var(--text-primary);
}

.rejected .qual-item-text {
  color: var(--text-secondary);
}

/* --- MULTISTEP FORM SECTION --- */
.contact-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(35, 114, 84, 0.02) 50%, var(--bg-main) 100%);
}

.form-layout-centered {
  max-width: 720px;
  margin: 0 auto;
}

.form-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

@media (max-width: 640px) {
  .form-card {
    padding: 2rem 1.5rem;
  }
}

.form-header {
  margin-bottom: 2.5rem;
}

/* Progress bar */
.progress-container {
  margin-bottom: 1.5rem;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 12.5%; /* Initial step percentage (1 of 8) */
  background: linear-gradient(90deg, var(--brand-green), #2d8262);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* Form steps wrapper */
.form-step {
  display: none;
  animation: stepFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.form-step.active {
  display: block;
}

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

.step-question {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
}

/* Options selectors (buttons) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.5rem;
  color: var(--text-primary);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.option-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.option-btn.selected {
  border-color: var(--brand-green);
  background: rgba(35, 114, 84, 0.08);
  box-shadow: 0 0 15px rgba(35, 114, 84, 0.15), inset 0 1px 0 rgba(35, 114, 84, 0.1);
  color: #ffffff;
}

.option-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.option-btn.selected .option-radio {
  border-color: var(--brand-green);
  background: var(--brand-green);
}

.option-btn.selected .option-radio::after {
  content: '✓';
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: bold;
}

/* Form Checkbox Grid (multi-select) */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.checkbox-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.5rem;
  color: var(--text-primary);
  text-align: left;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkbox-btn:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-btn.selected {
  border-color: var(--brand-green);
  background: rgba(35, 114, 84, 0.08);
  box-shadow: 0 0 15px rgba(35, 114, 84, 0.15), inset 0 1px 0 rgba(35, 114, 84, 0.1);
  color: #ffffff;
}

.checkbox-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.checkbox-btn.selected .checkbox-box {
  border-color: var(--brand-green);
  background: var(--brand-green);
}

.checkbox-btn.selected .checkbox-box::after {
  content: '✓';
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: bold;
}

/* Inputs styling */
.form-input-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-input-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .form-input-row {
    grid-template-columns: 1fr;
  }
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-green);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 15px rgba(35, 114, 84, 0.1);
}

.form-input.error {
  border-color: var(--status-error);
}

.error-msg {
  font-size: 0.75rem;
  color: var(--status-error);
  position: absolute;
  bottom: -1.25rem;
  left: 0;
}

/* Navigation buttons inside form */
.form-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  border-top: 1px solid var(--border-glass);
  padding-top: 1.5rem;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.btn-back:hover {
  color: var(--text-primary);
}

.btn-next {
  margin-left: auto;
}

/* Blocker screen / Fail Screen */
.block-screen {
  text-align: center;
  padding: 2rem 1rem;
  animation: stepFadeIn 0.5s ease;
}

.block-icon {
  width: 64px;
  height: 64px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--status-error);
  font-size: 1.75rem;
  margin: 0 auto 2rem auto;
}

.block-screen h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.block-screen p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 460px;
  margin: 0 auto 2.5rem auto;
}

/* Success Screen */
.success-screen {
  text-align: center;
  padding: 3rem 1rem;
  animation: stepFadeIn 0.5s ease;
}

.success-icon {
  width: 72px;
  height: 72px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--status-success);
  font-size: 2rem;
  margin: 0 auto 2rem auto;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.success-screen h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.success-screen p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Lead Priority simulation card */
.priority-badge-box {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(35, 114, 84, 0.05);
  border: 1px solid rgba(35, 114, 84, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--brand-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0;
  animation: fadeIn 1s 0.5s ease forwards;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 5rem 0 3rem 0;
  background: #040405;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-title {
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

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

.footer-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.badge-sec {
  font-size: 0.75rem;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-sec-dot {
  width: 4px;
  height: 4px;
  background: var(--status-success);
  border-radius: 50%;
}

/* --- ANIMATIONS --- */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(35, 114, 84, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(35, 114, 84, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(35, 114, 84, 0);
  }
}

@keyframes drawLine {
  0% {
    stroke-dashoffset: 1000;
  }
  40% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scrollLogs {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Reveal on scroll styling */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Validation Error and Shake Animation */
.form-validation-error {
  color: var(--status-error);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  display: none;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

/* Hide mobile inline dashboard on desktop by default */
.hero-dashboard-mobile {
  display: none;
}

/* ==========================================================================
   MOBILE-FIRST OVERRIDES & STYLES (screens <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* --- NAVBAR MOBILE --- */
  .header {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }

  .header-inner {
    height: 68px !important; /* height between 64px and 72px */
    padding-left: 1.25rem !important; /* consistent distance from edges */
    padding-right: 1.25rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .logo {
    font-size: 1.2rem !important;
    gap: 0.25rem !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .logo-img {
    height: 24px !important; /* responsive logo height */
    width: auto !important;
    display: block !important;
  }

  .header-inner .btn-secondary {
    padding: 0.45rem 0.9rem !important; /* slightly smaller padding for mobile */
    font-size: 0.8rem !important; /* slightly smaller font-size */
    white-space: nowrap !important;
  }

  /* --- HERO & LOGO --- */
  .hero {
    padding-top: 5rem !important;
    padding-bottom: 340px !important; /* Increased by +40px */
    min-height: 100vh !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    background-color: #000000 !important;
  }
  
  /* Render the high-fidelity mobile asset (441x1024) to cover 100% of height and width */
  .hero::before {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url('assets/hero-bg-mobile.png?v=4') !important;
    background-size: cover !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    opacity: 1.0 !important;
    z-index: 1 !important;
    image-rendering: -webkit-optimize-contrast !important;
  }
  
  /* Add a sutil top-to-bottom dark gradient to protect contrast for text and buttons */
  .hero::after {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to bottom, 
      rgba(0, 0, 0, 0.8) 0%,
      rgba(0, 0, 0, 0.65) 35%,
      rgba(0, 0, 0, 0.1) 75%,
      rgba(0, 0, 0, 0.0) 100%
    ) !important;
    z-index: 2 !important;
    pointer-events: none !important;
  }
  
  /* Push centered container to fit full height dynamically */
  .hero-container-centered {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 1.5rem 1.25rem 0 1.25rem !important;
    box-sizing: border-box !important;
    z-index: 3 !important;
  }

  /* Wrap content elements at the top */
  .hero-text-block-mobile {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 1rem !important;
  }

  .hero-badge {
    margin-bottom: 0.5rem !important; /* Reduced spacing */
  }
  
  .hero-title {
    font-size: clamp(1.65rem, 8.5vw, 1.95rem) !important;
    line-height: 1.15 !important;
    max-width: 330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-weight: 800 !important;
  }
  
  .hero-desc {
    font-size: clamp(0.85rem, 4.2vw, 0.95rem) !important;
    line-height: 1.45 !important;
    max-width: 290px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0.45rem !important; /* Reduced spacing */
    margin-bottom: 0 !important;
    opacity: 0.85 !important;
  }
  
  /* Pin CTA block above the laptop area, giving it breathing room */
  .hero-cta-wrapper {
    margin-top: 0.95rem !important; /* Reduced spacing */
    margin-bottom: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  /* Hidden because we are using the original background image instead */
  .hero-dashboard-mobile {
    display: none !important;
  }
  
  .hero-dashboard-mobile img {
    display: none !important;
  }
  
  /* --- GARGALOS SECTION --- */
  .gargalos-section {
    padding-top: 4rem !important;
    margin-top: 0 !important; /* Remove negative overlap with desktop laptop keyboard */
  }
  
  .gargalos-layout {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
    margin-top: 2rem !important;
  }
  
  .gargalos-cards {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
  
  .gargalo-card {
    padding: 1.75rem 1.5rem !important;
    background: rgba(239, 68, 68, 0.03) !important;
    border-color: rgba(239, 68, 68, 0.12) !important;
  }
  
  .gargalo-metric {
    font-size: 2.25rem !important;
    font-weight: 850 !important;
    color: var(--brand-green) !important; /* Dynamic high-contrast green metric */
    margin-bottom: 0.25rem !important;
  }
  
  .gargalo-label {
    font-size: 0.95rem !important;
    margin-bottom: 0.5rem !important;
    color: var(--text-primary) !important;
  }
  
  .gargalos-narrative {
    width: 100%;
  }
  
  .narrative-box {
    padding: 2rem 1.5rem !important;
  }
  
  /* --- BENEFITS --- */
  .infra-benefits-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
    width: 100% !important;
    max-width: 500px;
    margin: 0 auto 3rem auto !important;
    border-radius: var(--radius-md) !important;
    padding: 1.75rem 1.5rem !important;
  }
  
  .infra-benefit-item {
    width: 100% !important;
    font-size: 0.95rem !important;
  }
  
  /* --- QUALIFICATION SECTION --- */
  .qual-block {
    padding: 2rem 1.5rem !important;
  }
  
  .qual-block h3 {
    margin-bottom: 1.5rem !important;
    font-size: 1.25rem !important;
  }
  
  /* --- FORM & ZOOM PREVENTION --- */
  .form-input {
    font-size: 16px !important; /* Force min 16px to prevent iOS Safari auto-zoom */
    padding: 0.9rem 1.15rem !important;
  }
  
  .form-nav-buttons {
    flex-direction: column-reverse !important;
    gap: 1rem !important;
    padding-top: 1.25rem !important;
    margin-top: 1.5rem !important;
  }
  
  .btn-next {
    width: 100% !important;
    margin-left: 0 !important;
    text-align: center;
    justify-content: center;
    padding: 1.1rem !important;
    font-size: 1rem !important;
  }
  
  .btn-back {
    width: 100% !important;
    text-align: center;
    justify-content: center;
    padding: 0.75rem !important;
    font-size: 0.95rem !important;
  }
  
  /* --- GLOBAL BUTTONS FULL WIDTH --- */
  .btn-hero-main,
  .btn-gargalos-cta,
  .btn-infra-cta {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding: 1.1rem 2rem !important;
    font-size: 1.02rem !important;
  }
}

/* --- STICKY BOTTOM CTA BAR --- */
.sticky-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  
  /* Spacing: safe margins, padding, safe areas */
  padding: 0.75rem 1.25rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); /* Respect safe area of iPhone */
  
  /* Background style: Translucent dark background with backdrop blur */
  background: rgba(6, 6, 7, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border-glass);
  
  z-index: 99;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.sticky-cta-bar.visible {
  transform: translateY(0);
}

.btn-sticky-cta {
  width: 100%;
  max-width: calc(100vw - 2.5rem); /* Margem lateral segura */
  box-sizing: border-box;
  text-align: center;
  display: flex !important;
  align-items: center;
  justify-content: center;
  
  /* Touch target size comfort */
  padding: 0.9rem 1rem !important; /* Visual breathing room padding */
  min-height: 48px; /* Accessible minimum touch height */
  
  /* Prevent word clip on small screens */
  font-size: clamp(0.8rem, 3.8vw, 0.925rem) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: 0 4px 20px rgba(35, 114, 84, 0.35) !important;
  
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

@media (min-width: 769px) {
  .sticky-cta-bar {
    display: none !important;
  }
}
