/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #e0dcd4; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* ===== Colors ===== */
:root {
  --navy: hsl(220, 45%, 8%);
  --navy-light: hsl(220, 40%, 15%);
  --sky: hsl(207, 70%, 55%);
  --gold: hsl(40, 80%, 45%);
  --cream: hsl(40, 30%, 92%);
  --dark: hsl(220, 50%, 18%);
  --destructive: hsl(0, 84%, 60%);
}

/* ===== Utilities ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-sky { color: var(--sky); }
.text-gold { color: var(--gold); }
.text-cream { color: var(--cream); }
.text-dark { color: var(--dark); }
.text-dark-muted { color: rgba(23, 33, 54, 0.6); }
.items-center { align-items: center; }

/* ===== Backgrounds ===== */
.bg-navy { background: var(--navy); }
.bg-navy-light { background: var(--navy-light); }
.bg-cream { background: var(--cream); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; border-radius: 8px; transition: all 0.2s; border: none; cursor: pointer; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 18px; }
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn-outline-sky { border: 2px solid var(--sky); color: var(--sky); background: transparent; }
.btn-outline-sky:hover { background: rgba(60, 148, 221, 0.1); }
.btn-whatsapp { box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.btn-whatsapp svg { width: 24px; height: 24px; }

/* ===== Header ===== */
.site-header { position: fixed; top: 0; width: 100%; z-index: 50; background: rgba(14, 20, 33, 0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.header-logo { height: 80px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a { color: rgba(224, 220, 212, 0.7); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.main-nav a:hover { color: var(--cream); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin: 5px 0; transition: 0.3s; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; padding-top: 160px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(11,17,30,0.85), rgba(23,33,54,0.7)); }
.hero-content { position: relative; z-index: 10; text-align: center; max-width: 900px; margin: 0 auto; padding: 0 24px; }
.hero-content h1 { font-size: clamp(2rem, 5vw, 4.2rem); font-weight: 700; color: var(--cream); margin-bottom: 24px; line-height: 1.15; }
.hero-content p { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(224,220,212,0.7); margin-bottom: 40px; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; color: rgba(224,220,212,0.5); }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section-label { font-weight: 600; text-transform: uppercase; letter-spacing: 3px; font-size: 13px; margin-bottom: 8px; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 16px; }
.section-subtitle { font-size: 18px; max-width: 640px; margin: 0 auto; }
.section-header { margin-bottom: 64px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.fade-up { animation: fadeUp 0.7s ease-out forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ===== Grids ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== Sobre (Avatar) ===== */
.avatar-wrapper { position: relative; display: inline-block; }
.avatar-img { width: 280px; height: 280px; border-radius: 50%; object-fit: cover; border: 4px solid var(--sky); box-shadow: 0 0 40px rgba(60,148,221,0.3); }
.avatar-badge { position: absolute; bottom: -16px; right: -16px; background: var(--gold); color: var(--dark); border-radius: 9999px; padding: 8px 16px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* ===== Check list ===== */
.check-list { margin-bottom: 32px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; color: rgba(224,220,212,0.7); margin-bottom: 12px; }
.check-list li::before { content: '✓'; color: var(--gold); font-weight: 700; font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ===== Quote ===== */
.quote { border-left: 4px solid var(--sky); padding-left: 16px; font-style: italic; color: rgba(224,220,212,0.8); font-size: 18px; }

/* ===== Problem cards ===== */
.problem-card { border-radius: 12px; padding: 24px; text-align: center; border: 1px solid rgba(23,33,54,0.1); background: rgba(224,220,212,0.8); transition: all 0.3s; }
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.problem-card .emoji { font-size: 36px; display: block; margin-bottom: 16px; }
.problem-card h3 { font-weight: 700; font-size: 18px; color: var(--dark); margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: rgba(23,33,54,0.6); }
.result-text { margin-top: 48px; text-align: center; font-size: 20px; font-weight: 600; color: rgba(23,33,54,0.7); font-style: italic; }

/* ===== Service cards ===== */
.service-card { background: var(--navy-light); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 32px; transition: all 0.3s; }
.service-card:hover { border-color: rgba(60,148,221,0.5); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.service-card .emoji { font-size: 36px; display: block; margin-bottom: 20px; }
.service-card h3 { font-size: 20px; font-weight: 700; color: var(--cream); margin-bottom: 12px; }
.service-card p { color: rgba(224,220,212,0.6); line-height: 1.7; }

/* ===== Compare cards ===== */
.compare-card { border-radius: 12px; padding: 32px; }
.compare-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.compare-card ul li { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.compare-before { border: 1px solid rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.compare-before h3 { color: var(--destructive); }
.compare-before ul li { color: rgba(224,220,212,0.6); }
.compare-after { border: 1px solid rgba(60,148,221,0.3); background: rgba(60,148,221,0.05); box-shadow: 0 0 30px rgba(60,148,221,0.1); }
.compare-after h3 { color: var(--sky); }
.compare-after ul li { color: var(--cream); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-red { background: rgba(239,68,68,0.6); }
.dot-blue { background: var(--sky); }

/* ===== Steps ===== */
.step-card { text-align: center; }
.step-number { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; background: var(--navy); color: var(--sky); }
.step-card h3 { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: rgba(23,33,54,0.6); }

/* ===== CTA ===== */
.cta-section { position: relative; overflow: hidden; }
.cta-glow { position: absolute; inset: 0; opacity: 0.1; background: radial-gradient(circle, hsl(207, 70%, 55%), transparent 70%); }
.cta-content { position: relative; z-index: 10; max-width: 768px; }
.cta-content .section-title { margin-bottom: 24px; }
.cta-desc { color: rgba(224,220,212,0.6); font-size: 18px; margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-hint { color: rgba(224,220,212,0.4); font-size: 14px; margin-top: 24px; }

/* ===== Diagnostic Modal ===== */
.diag-modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.diag-modal-card { background: var(--navy-light); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 2rem; max-width: 460px; width: 100%; position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.4); }
.diag-modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; color: var(--cream); font-size: 1.75rem; cursor: pointer; line-height: 1; transition: opacity 0.2s; }
.diag-modal-close:hover { opacity: 0.7; }
.diag-modal-title { color: var(--cream); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.diag-modal-subtitle { color: rgba(245,240,232,0.6); font-size: 0.875rem; margin-bottom: 1.5rem; }
.diag-field { margin-bottom: 1rem; }
.diag-field label { display: block; color: rgba(245,240,232,0.8); font-size: 0.875rem; font-weight: 600; margin-bottom: 0.375rem; }
.diag-field input { width: 100%; padding: 0.75rem 1rem; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.04); color: var(--cream); font-size: 0.9375rem; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.diag-field input::placeholder { color: rgba(224,220,212,0.4); }
.diag-field input:focus { outline: none; border-color: rgba(60,148,221,0.7); box-shadow: 0 0 0 3px rgba(60,148,221,0.15); background: rgba(255,255,255,0.06); }
.diag-error { color: var(--destructive); font-size: 0.75rem; display: block; margin-top: 0.25rem; min-height: 1rem; }
.diag-submit { width: 100%; padding: 0.875rem; font-size: 1.1rem; font-weight: 700; margin-top: 0.5rem; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 24px; gap: 20px; border-top: 1px solid rgba(255,255,255,0.05); }
  .main-nav.active { display: flex; }
  .menu-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero-content h1 { font-size: 2rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .avatar-img { width: 200px; height: 200px; }
  .section { padding: 60px 0; }
}