/* =============================================
   IFC Tools — Landing Page Styles
   ============================================= */

/* ── Hero ── */
.hero {
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge-wrap { margin-bottom: 24px; }

.hero-title {
  margin-bottom: 24px;
  max-width: 680px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.trust-avatars {
  display: flex;
}

.trust-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  margin-left: -8px;
}
.trust-avatars .trust-avatar:first-child { margin-left: 0; }

.trust-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Hero Visual */
.hero-visual {
  margin-top: 64px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--bg-subtle);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.hero-browser-chrome {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}
.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
}
.browser-dots span:nth-child(1) { background: #FE5F57; }
.browser-dots span:nth-child(2) { background: #FEBC2E; }
.browser-dots span:nth-child(3) { background: #28C840; }

.browser-url {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.hero-app-preview {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 380px;
}

.preview-sidebar {
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preview-sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: default;
}
.preview-sidebar-item.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
}
.preview-sidebar-item.muted { color: var(--text-muted); border: 1px dashed var(--border); }
.preview-sidebar-item .preview-icon { font-size: 1rem; }

.preview-sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.preview-viewport {
  display: flex;
  flex-direction: column;
}

.preview-3d {
  flex: 1;
  background: linear-gradient(145deg, #F1F5F9 0%, #E8EDF5 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-3d-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.preview-3d-building {
  position: relative;
  z-index: 1;
}

.building-block {
  position: absolute;
  border: 1.5px solid rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.06);
  border-radius: 2px;
}
.b1 { width: 120px; height: 80px; bottom: -40px; left: -60px; }
.b2 { width: 80px;  height: 120px; bottom: -40px; left: -20px; background: rgba(99,102,241,0.10); }
.b3 { width: 100px; height: 60px; bottom: -40px; right: -50px; }
.b4 { width: 60px;  height: 140px; bottom: -40px; right: -10px; background: rgba(99,102,241,0.12); }

.building-grid-lines {
  position: absolute;
  bottom: -40px;
  left: -60px;
  width: 240px;
  height: 140px;
}
.building-grid-lines div {
  position: absolute;
  width: 100%;
  height: 1px;
  background: rgba(99,102,241,0.15);
}
.building-grid-lines div:nth-child(1) { top: 33%; }
.building-grid-lines div:nth-child(2) { top: 66%; }

.preview-3d-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overlay-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.tag-structural { background: rgba(99,102,241,0.15); color: #4F46E5; border: 1px solid rgba(99,102,241,0.3); }
.tag-hydraulic  { background: rgba(6,182,212,0.15);  color: #0891B2; border: 1px solid rgba(6,182,212,0.3); }
.tag-electrical { background: rgba(245,158,11,0.15); color: #D97706; border: 1px solid rgba(245,158,11,0.3); }

.preview-toolbar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-toolbar button {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: default;
}
.preview-toolbar-spacer { flex: 1; }

/* ── Problem Section ── */
.problem-section { background: var(--bg-subtle); }

.problem-cards {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

.problem-card {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.problem-card.arrow-right {
  flex: 0 0 48px;
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}
.problem-card-solution {
  border-color: var(--accent);
  background: linear-gradient(135deg, #FAFAFE 0%, var(--accent-light) 100%);
  box-shadow: 0 0 0 3px var(--accent-glow), var(--shadow-md);
}

.problem-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.problem-icon-bad  { background: #FEF2F2; color: var(--danger); }
.problem-icon-good { background: #ECFDF5; color: var(--success); }

.problem-card h3 { margin-bottom: 8px; font-size: 1rem; }
.problem-card p  { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card-soon { opacity: 0.75; }
.feature-card-soon:hover { transform: none; border-color: var(--border); }

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-icon-muted { background: var(--bg-subtle); color: var(--text-muted); }

.feature-badge-wrap { margin-bottom: 10px; }

.feature-card h3 { margin-bottom: 10px; }
.feature-card p  { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; margin-bottom: 16px; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-list li { font-size: 0.85rem; color: var(--text-secondary); }

.feature-coming-soon-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(248,250,252,0.95), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── How It Works ── */
.how-it-works-section { background: var(--bg-subtle); }

.steps-container {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr 200px;
  gap: 24px;
  align-items: center;
}

.step-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-light);
  -webkit-text-stroke: 2px var(--accent);
  text-stroke: 2px var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
}

.step-content h3 { margin-bottom: 8px; }
.step-content p  { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

.step-visual {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-visual-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}
.step-visual-inner svg { color: var(--accent); }

.upload-mock small { font-size: 0.72rem; color: var(--text-muted); }

.viewer-mock-3d {
  width: 60px;
  height: 40px;
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  background: var(--accent-light);
  margin-bottom: 6px;
}

.step-connector {
  padding-left: 48px;
  padding-right: calc(200px + 24px);
}
.step-connector div {
  height: 32px;
  border-left: 2px dashed var(--border);
  margin-left: 0;
}

/* ── Pricing ── */
.pricing-section { background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-lg);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-header { margin-bottom: 24px; }
.pricing-header h3 { margin-bottom: 12px; }
.pricing-header p  { color: var(--text-secondary); font-size: 0.88rem; margin-top: 8px; }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-value { font-size: 2rem; font-weight: 800; }
.price-period { color: var(--text-muted); font-size: 0.9rem; }

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.pricing-features li.muted { color: var(--text-muted); }

/* ── CTA ── */
.cta-section { padding-bottom: 80px; }

.cta-card {
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg-decoration {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
  /* TODO: Substituir por imagem/ilustração de fundo */
}

.cta-content { position: relative; z-index: 1; }
.cta-content h2 { color: white; margin-bottom: 16px; }
.cta-content p  { color: rgba(255,255,255,0.8); font-size: 1.05rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-app-preview { grid-template-columns: 1fr; }
  .preview-sidebar  { display: none; }
  .features-grid    { grid-template-columns: 1fr; }
  .pricing-grid     { grid-template-columns: 1fr; }
  .pricing-card-featured { transform: none; }
  .problem-cards    { flex-direction: column; }
  .problem-card.arrow-right { transform: rotate(90deg); }
  .step             { grid-template-columns: 48px 1fr; }
  .step-visual      { display: none; }
  .step-connector   { padding-right: 0; }
  .cta-card         { padding: 48px 24px; }
}

@media (max-width: 600px) {
  .hero { padding: 48px 0 0; }
  .hero-visual { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .hero-app-preview { height: 240px; }
  .preview-3d { height: 200px; }
}
