/* ==========================================================================
   Frame AG - Ecossistema Imobiliário AI-First (ecossistema.css)
   Padrão Visual Oficial: 15px Border Radius, Dark Navy Glass, Zero AI Slop
   Otimizado para Desktop de Alta Resolução e Smartphones (Mobile-First)
   ========================================================================== */

:root {
  --bg-deep: #050d1a;
  --bg-surface: #071326;
  --bg-surface-elevated: #0a1b35;
  --bg-surface-card: rgba(10, 27, 53, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(120, 183, 255, 0.25);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --blue-primary: #0063e1;
  --blue-glow: #65afff;
  --blue-light: #d3e6ff;
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --radius-frame: 15px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Atmosphere & Grid */
.ecosystem-ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(circle at 50% 0%, rgba(0, 99, 225, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 70%, rgba(56, 189, 248, 0.06) 0%, transparent 50%);
}

.ecosystem-dot-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

/* Container */
.eco-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Reading Progress Bar */
#eco-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-glow));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Navbar */
.eco-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 13, 26, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

.eco-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eco-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.eco-logo-img {
  width: 38px;
  height: 25px;
  object-fit: contain;
}

.eco-brand-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.eco-badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-frame);
  background: rgba(0, 99, 225, 0.15);
  border: 1px solid rgba(120, 183, 255, 0.25);
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eco-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Quick Anchor Pill Bar */
.eco-pillar-nav-bar {
  position: sticky;
  top: 61px;
  z-index: 90;
  background: rgba(7, 19, 38, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 8px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.eco-pillar-nav-bar::-webkit-scrollbar {
  display: none;
}

.eco-pillar-nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  white-space: nowrap;
}

.eco-pillar-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-frame);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s ease;
}

.eco-pillar-nav-link:hover,
.eco-pillar-nav-link.is-active {
  background: rgba(0, 99, 225, 0.2);
  border-color: rgba(120, 183, 255, 0.4);
  color: #ffffff;
}

/* Hero Section */
.eco-hero-section {
  padding: 72px 0 54px;
  text-align: center;
  position: relative;
}

.eco-hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-frame);
  background: rgba(0, 99, 225, 0.12);
  border: 1px solid rgba(120, 183, 255, 0.25);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-glow);
  margin-bottom: 24px;
}

.eco-hero-h1 {
  font-size: clamp(32px, 5.5vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.2px;
  color: #ffffff;
  max-width: 960px;
  margin: 0 auto 20px;
}

.eco-hero-h1 span.gradient-text {
  background: linear-gradient(135deg, #ffffff 40%, var(--blue-glow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eco-hero-subtitle {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-muted);
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Metrics Banner (KPIs) */
.eco-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1040px;
  margin: 44px auto 0;
}

.eco-kpi-card {
  background: var(--bg-surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-frame);
  padding: 22px 18px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.eco-kpi-val {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 4px;
}

.eco-kpi-val.highlight {
  color: var(--accent-cyan);
}

.eco-kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eco-kpi-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Blocks and Sections Structure */
.eco-pillar-block {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.eco-block-header {
  margin-bottom: 36px;
}

.eco-block-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue-glow);
  margin-bottom: 8px;
}

.eco-block-title {
  font-size: clamp(24px, 3.8vw, 34px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.eco-block-summary {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 820px;
  line-height: 1.6;
}

/* Sections Grid within Pillar */
.eco-sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.eco-section-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-frame);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.eco-section-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.eco-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.eco-sec-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-light);
  background: rgba(0, 99, 225, 0.2);
  border: 1px solid rgba(120, 183, 255, 0.3);
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.eco-sec-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
}

.eco-sec-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.eco-sec-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Operational Highlights / Flow Box */
.eco-process-box {
  background: rgba(5, 13, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

.eco-process-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin-bottom: 6px;
  display: block;
}

.eco-checklist {
  list-style: none;
}

.eco-checklist li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #cbd5e1;
}

.eco-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: 700;
}

.eco-card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim);
}

.eco-card-metric {
  color: var(--blue-glow);
  font-weight: 600;
}

/* Big Comparison Table */
.eco-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-frame);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin: 32px 0;
}

.eco-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.eco-table th, .eco-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.eco-table th {
  background: rgba(10, 27, 53, 0.9);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eco-table tr:last-child td {
  border-bottom: none;
}

.eco-table td.col-feature {
  font-weight: 600;
  color: #ffffff;
}

.eco-table td.col-ai-first {
  background: rgba(0, 99, 225, 0.08);
  color: var(--blue-light);
  font-weight: 500;
}

.eco-table td.col-traditional {
  color: var(--text-dim);
}

/* Call to Action Banner */
.eco-cta-section {
  padding: 84px 0 96px;
  text-align: center;
  position: relative;
}

.eco-cta-card {
  background: linear-gradient(180deg, rgba(10, 27, 53, 0.9) 0%, rgba(7, 19, 38, 0.95) 100%);
  border: 1px solid rgba(120, 183, 255, 0.3);
  border-radius: var(--radius-frame);
  padding: 54px 32px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -20px 40px -20px rgba(0, 99, 225, 0.4),
    0 12px 40px rgba(0, 0, 0, 0.6);
}

.eco-cta-title {
  font-size: clamp(26px, 4.2vw, 38px);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.eco-cta-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Footer */
.eco-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.eco-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.eco-footer a:hover {
  color: #ffffff;
}

/* Responsividade Mobile-First Estrita */
@media (max-width: 768px) {
  .eco-container {
    padding: 0 16px;
  }

  .eco-hero-section {
    padding: 48px 0 36px;
  }

  .eco-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .eco-sections-grid {
    grid-template-columns: 1fr;
  }

  .eco-section-card {
    padding: 20px;
  }

  .eco-cta-card {
    padding: 36px 20px;
  }
}

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