:root {
  --bg: #040d1a;
  --bg-accent: #061225;
  --primary: #1877f2;
  --primary-light: #2e8fff;
  --gold: #fcc21b;
  --text: #ffffff;
  --text-muted: #8e9db1;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(20px);
  --radius: 12px;
  --max-width: 1400px;
  --transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

.container { width: min(92%, var(--max-width)); margin: 0 auto; position: relative; }
.section { padding: 120px 0; }
.text-center { text-align: center; }

/* TYPOGRAPHY - Minimalist & Centered */
h1 { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.05em; margin-bottom: 30px; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px; line-height: 1.1; }
h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 15px; color: #fff; }
.eyebrow { display: inline-block; color: var(--gold); font-weight: 800; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 20px; }
.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--text-muted); max-width: 700px; margin-inline: auto; margin-bottom: 40px; font-weight: 400; }

/* BUTTONS - Sleek & Square-ish */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 20px 48px; border-radius: 8px; font-weight: 800; text-decoration: none;
  transition: var(--transition); cursor: pointer; border: none;
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 20px 40px rgba(24, 119, 242, 0.2); }
.btn-gold { background: var(--gold); color: #040d1a; }
.btn-gold:hover { filter: brightness(1.1); transform: translateY(-3px); box-shadow: 0 20px 40px rgba(252, 194, 27, 0.2); }
.btn-outline { border: 1.5px solid var(--glass-border); color: white; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: #fff; transform: translateY(-3px); }

/* HEADER - Universal Sync */
.header { position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; padding: 25px 0; background: rgba(4, 13, 26, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
.nav { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; height: 60px; text-decoration: none; }
.logo img { height: 110px; width: auto; object-fit: contain; margin: -25px 0; transition: var(--transition); z-index: 10; }
.logo-text { display: none; }

.menu { display: flex; gap: 30px; align-items: center; }
.menu a { text-decoration: none; color: var(--text-muted); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; transition: var(--transition); }
.menu a:hover, .menu a.active { color: #fff; }
.menu a.active { border-bottom: 2px solid var(--gold); padding-bottom: 5px; }

/* HERO - Clean & High Impact */
.hero { min-height: 85vh; display: flex; align-items: center; padding: 40px 0; gap: 60px; }
.hero-content { flex: 1.2; text-align: left; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; position: relative; }
.hero-image img { width: 100%; height: auto; max-height: 90vh; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)); transition: var(--transition); }
.hero-image:hover img { transform: translateY(-5px); filter: drop-shadow(0 30px 60px rgba(24, 119, 242, 0.15)); }
.hero-image::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(24, 119, 242, 0.05), transparent 60%); z-index: -1; }

@media (max-width: 1024px) {
  .hero { flex-direction: column; text-align: center; padding-top: 50px; gap: 60px; }
  .hero-content { text-align: center; }
  .hero-image { justify-content: center; flex: 1; width: 100%; }
  .hero-image img { max-height: 60vh; }
}

/* CARDS - No Icons, Only Typography & Borders */
.grid { display: grid; gap: 40px; margin-top: 60px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  padding: 50px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: var(--radius);
  transition: var(--transition);
  height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.card:hover { border-color: var(--primary); background: rgba(255,255,255,0.05); }
.card-num { font-size: 0.9rem; font-weight: 900; color: var(--gold); margin-bottom: 20px; letter-spacing: 0.2em; border: 1px solid var(--gold); padding: 5px 12px; border-radius: 4px; }

/* DECORATIVE IMAGE (Cards) - Safe & Elegant Circles */
.img-decor { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin-bottom: 25px; border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--primary); transition: var(--transition); }
.card { padding: 40px; }
.card[style*="padding: 40px 20px"] { padding: 40px 20px; }
.card:hover .img-decor { transform: scale(1.05); box-shadow: 0 0 0 2px var(--gold); }

/* SECTION SPLIT V2 - Safe Image Containment */
.split-v2 { display: flex; align-items: center; gap: 60px; margin-bottom: 80px; }
.split-v2-text { flex: 1.2; text-align: left; }
.split-v2-img { flex: 1; display: flex; justify-content: center; align-items: center; }
.split-v2-img img { width: 100%; max-width: 550px; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,0.4); border: 1px solid var(--glass-border); transition: var(--transition); }
.split-v2:hover .split-v2-img img { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0,0,0,0.6); }

@media (max-width: 900px) { .split-v2 { flex-direction: column; text-align: center; gap: 40px; } .split-v2-text { text-align: center; } .split-v2-img img { max-width: 90%; } }

/* TABS SYSTEM (Diferenciais) - Flowchart Bracket Style */
.tabs-wrapper { display: flex; gap: 0; align-items: stretch; margin-top: 60px; min-height: 480px; position: relative; }

/* Side Navigation (Trunk) */
.tab-nav { flex: 0 0 350px; display: flex; flex-direction: column; gap: 15px; z-index: 10; padding-right: 50px; justify-content: center; position: relative; }
.tab-nav::before { content: ''; position: absolute; right: 0; top: 10%; bottom: 10%; width: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; }

/* Individual Tab Nodes */
.tab-btn { background: transparent; border: none; padding: 25px 30px; text-align: left; color: var(--text-muted); font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: var(--transition); border-radius: 8px; position: relative; }
.tab-btn::after { content: ''; position: absolute; right: -56px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; background: var(--bg); border: 2px solid var(--text-muted); border-radius: 50%; transition: var(--transition); z-index: 2; }
.tab-btn:hover { color: #fff; background: rgba(255,255,255,0.02); }
.tab-btn:hover::after { border-color: #fff; transform: translateY(-50%) scale(1.2); }

/* Active Tab Styles */
.tab-btn.active { color: var(--primary); background: rgba(24, 119, 242, 0.05); }
.tab-btn.active::after { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 15px rgba(24, 119, 242, 0.6); right: -58px; width: 14px; height: 14px; }
.tab-btn.active::before { content: ''; position: absolute; right: -100px; top: 50%; width: 50px; height: 2px; background: var(--primary); z-index: 1; box-shadow: 0 0 10px rgba(24, 119, 242, 0.4); }

/* Main Content Area */
.tab-main { flex: 1; position: relative; display: flex; align-items: center; padding-left: 50px; }
.tab-panel { display: none; width: 100%; position: relative; z-index: 2; animation: fadeInRight 0.4s ease; flex-direction: column; justify-content: center; }
.tab-panel.active { display: block; }

/* Metric Panel Box */
.metric-box { background: linear-gradient(135deg, rgba(24,119,242,0.08), rgba(4,13,26,0.95)); padding: 50px; border-radius: 16px; border: 1px solid var(--glass-border); border-left: 4px solid var(--primary); backdrop-filter: var(--glass-blur); box-shadow: 0 20px 40px rgba(0,0,0,0.3); position: relative; overflow: hidden; transition: var(--transition); }
.metric-box::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(24,119,242,0.1), transparent 70%); z-index: -1; pointer-events: none; }

/* Perfect Flowchart Geometric Alignment */
#rapido .metric-box { transform: translateY(-85px); }
#assertivo .metric-box { transform: translateY(0); }
#proximo .metric-box { transform: translateY(85px); }

.metric-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.metric-item:last-child { margin-bottom: 0; }
.metric-icon { color: var(--primary); font-size: 1.5rem; font-weight: 900; margin-top: 2px; }
.metric-text { font-size: 1.05rem; color: var(--text-muted); line-height: 1.6; font-weight: 400; }
.metric-text strong { color: #fff; font-weight: 700; }

/* SIDE IMAGE FOR TABS */
.circle-decor { display: none; }
.circle-img-wrap { display: none; }

@keyframes fadeInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 900px) { 
  .tabs-wrapper { flex-direction: column; min-height: auto; margin-top: 40px; } 
  .tab-nav { flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 0; } 
  .tab-nav::before, .tab-btn::before, .tab-btn::after { display: none; }
  .tab-btn { flex: 1; text-align: center; padding: 15px; border-radius: 8px; border: 1px solid var(--glass-border); margin: 5px; } 
  .tab-main { padding-left: 0; }
  #rapido .metric-box, #assertivo .metric-box, #proximo .metric-box { transform: none; }
}

/* UTILS */
.highlight { color: var(--gold); font-weight: 800; }
footer { padding: 80px 0; border-top: 1px solid var(--glass-border); text-align: center; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(4, 13, 26, 0.98); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card { text-align: center; max-width: 500px; width: 90%; }
.modal-card h2 { margin-bottom: 40px; }

@media (max-width: 768px) {
  /* Grids */
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  
  /* Typography */
  h1 { font-size: 2.2rem; line-height: 1.15; }
  h2 { font-size: 1.7rem; line-height: 1.3; }
  h3 { font-size: 1.25rem; }
  p.lead { font-size: 1rem; }
  
  /* Layout Spacing */
  .section { padding: 60px 0; }
  .split-v2 { gap: 30px; margin-bottom: 40px; }
  
  /* Navigation Menu - Swipeable */
  .menu {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px; /* space for scroll bar/swipe */
    margin-bottom: -15px;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    max-width: 100vw;
  }
  .menu::-webkit-scrollbar { display: none; }
  .nav { flex-direction: column; gap: 15px; }
  .logo img { height: 80px; margin: 0; }
  
  /* Hero Section specifically for Index */
  .hero { padding-top: 20px; min-height: auto; }
  .hero-content div[style*="display:flex"] { 
    flex-direction: column; 
    width: 100%; 
  }
  .hero-content div a.btn { width: 100%; text-align: center; }
  
  /* Overriding inline hero image bloat */
  .hero-image img {
    width: 100% !important;
    max-width: 450px !important;
    margin-left: 0 !important;
    transform: none !important;
    margin-top: 30px;
  }
  
  /* Complex Footer Mobile Overrides */
  footer.footer-complex { padding: 40px 0 20px !important; margin-top: 40px !important; padding-bottom: 60px !important; }
  footer .container > div {
    gap: 40px !important;
    margin-bottom: 40px !important;
  }

  /* App-Like Navbar Selection Pill */
  .menu a { padding: 8px 14px; white-space: nowrap; border: 1px solid transparent; border-radius: 20px; }
  .menu a.active {
    background: rgba(252, 194, 27, 0.15) !important;
    color: var(--gold) !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
    border: 1px solid rgba(252, 194, 27, 0.4) !important;
    box-shadow: 0 4px 15px rgba(252, 194, 27, 0.1) !important;
  }

  /* App-Like Pagination Dots */
  .swipe-dots-container {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 9999;
    background: rgba(0,0,0,0.6);
    padding: 8px 14px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.1);
  }
  .swipe-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: all 0.3s;
  }
  .swipe-dot.active {
    background: var(--gold); width: 14px; border-radius: 10px;
  }
}
