/* Bootstrap 5.3 theme overrides + custom components */
:root {
  --brand: #012578;
  --brand-dark: #011a55;
  --brand-light: #e6ecf8;
  --ink: #0A1628;
  --ink-3: #6B7A90;
  --surface: #F5F8FF;
  --border: #E2E8F4;
  --shadow: 0 8px 40px rgba(10,22,40,0.10);

  --bs-primary: #012578;
  --bs-primary-rgb: 1, 37, 120;
  --bs-link-color: #012578;
  --bs-link-color-rgb: 1, 37, 120;
  --bs-link-hover-color: #011a55;
  --bs-body-font-family: 'DM Sans', sans-serif;
  --bs-body-color: #0A1628;
  --bs-secondary-color: #6B7A90;
  --bs-secondary-color-rgb: 107, 122, 144;
  --bs-tertiary-bg: #F5F8FF;
  --bs-tertiary-bg-rgb: 245, 248, 255;
  --bs-border-color: #E2E8F4;
}

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { overflow-x: hidden; }

h1, h2, h3, h4, h5, h6, .btn, .navbar-brand, .accordion-button {
  font-family: 'Manrope', sans-serif;
}
h1, h2, h3, h4, h5, h6 { color: var(--ink); letter-spacing: -.01em; }

/* ── Buttons ── */
.btn-primary {
  --bs-btn-bg: #012578;
  --bs-btn-border-color: #012578;
  --bs-btn-hover-bg: #011a55;
  --bs-btn-hover-border-color: #011a55;
  --bs-btn-active-bg: #011a55;
  --bs-btn-active-border-color: #011a55;
  --bs-btn-disabled-bg: #012578;
  --bs-btn-disabled-border-color: #012578;
  --bs-btn-focus-shadow-rgb: 1, 37, 120;
  font-weight: 600;
  transition: all .22s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline-primary {
  --bs-btn-color: #012578;
  --bs-btn-border-color: #cfd6e6;
  --bs-btn-hover-bg: #012578;
  --bs-btn-hover-border-color: #012578;
  --bs-btn-active-bg: #012578;
  --bs-btn-active-border-color: #012578;
  --bs-btn-focus-shadow-rgb: 1, 37, 120;
  font-weight: 600;
  border-width: 2px;
}
.btn-light { transition: all .22s; }
.btn-light:hover { transform: translateY(-2px); }

/* ── Navbar ── */
#nav {
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, box-shadow .3s, border-color .3s;
}
#nav.scrolled,
#nav:has(.navbar-collapse.show) {
  background: #012578;
  border-bottom-color: rgba(255,255,255,.1);
}
#nav.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.25); }
#nav .nav-link { color: #fff; font-weight: 500; opacity: .85; transition: opacity .2s; }
#nav .nav-link:hover { opacity: 1; }
#nav .btn-link:hover { color: rgba(255,255,255,.75) !important; }
#nav .btn-outline-light:hover { background: #fff; color: #012578; }
@media (max-width: 991.98px) {
  #nav .navbar-collapse { border-top: 1px solid rgba(255,255,255,.12); margin-top: .5rem; }
}

/* ── Hero ── */
.hero {
  padding: 130px 0 90px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(1,26,85,.35) 0%, rgba(1,20,70,.55) 100%),
    url("../images/bg-1.png") center / cover no-repeat,
    #012578;
}
.hero-tag {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-weight: 600; letter-spacing: .04em;
  padding: .55em 1em;
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.2vw, 3.5rem); line-height: 1.12; letter-spacing: -1px; }
.hero h1 em { font-style: normal; color: #8fb2ff; position: relative; }
.hero h1 em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 3px; background: #8fb2ff; opacity: .5; border-radius: 2px;
}
.hero-sub { max-width: 480px; color: rgba(255,255,255,.8); }
.hero .btn-outline-light { border-width: 2px; }
.hero .btn-outline-light:hover { background: #fff; color: #012578; }
.hero-perks { color: rgba(255,255,255,.8); }
.hero-perks .bi { color: #8fb2ff; }

.hero-visual { animation: float 5s ease-in-out infinite; }
@media (min-width: 992px) { .hero-visual { margin-right: -5vw; } }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.dashboard-mock {
  color: var(--ink);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(10,22,40,0.15), 0 0 0 1px var(--border);
  overflow: hidden;
}
.mock-bar { background: var(--ink); padding: 12px 16px; display: flex; gap: .5rem; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot:nth-child(1) { background: #FF5F57; }
.mock-dot:nth-child(2) { background: #FFBD2E; }
.mock-dot:nth-child(3) { background: #28CA41; }
.mock-shot { display: block; width: 100%; height: auto; }
.mock-body { padding: 20px; background: var(--surface); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mock-stat { background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 2px 12px rgba(10,22,40,.07); }
.mock-stat-label { font-size: .65rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.mock-stat-val { font-family: 'Manrope', sans-serif; font-size: 1.4rem; font-weight: 700; }
.mock-stat-val span { color: var(--brand); font-size: .75rem; }
.mock-chart { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 16px; }
.mock-chart-title { font-size: .7rem; color: var(--ink-3); margin-bottom: 10px; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 60px; }
.bar { flex: 1; border-radius: 4px 4px 0 0; background: var(--brand); opacity: .7; }
.bar:nth-child(3), .bar:nth-child(6) { opacity: 1; }
.bar:nth-child(even) { background: var(--border); opacity: 1; }
.mock-list { display: flex; flex-direction: column; gap: 8px; }
.mock-row { background: #fff; border-radius: 8px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; }
.mock-row-left { display: flex; gap: 10px; align-items: center; }
.mock-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-light); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700;
}
.mock-name { font-size: .75rem; font-weight: 600; }
.mock-date { font-size: .65rem; color: var(--ink-3); }
.mock-amount { font-size: .8rem; font-weight: 700; }
.mock-row .badge { font-size: .6rem; }

/* ── Strip ── */
.strip { background: var(--ink); color: rgba(255,255,255,.75); font-size: .9rem; }
.strip .bi { color: #6f9bff; }

/* ── Sections ── */
.section-dark,
.cta-section {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(1,26,85,.35) 0%, rgba(1,20,70,.55) 100%),
    url("../images/bg-1.png") center / cover no-repeat,
    #012578;
}
.section-dark .section-label { color: #8fb2ff; }
.section-dark .section-title { color: #fff; }
.section-dark .section-lead { color: rgba(255,255,255,.8); }

.section { padding: 100px 0; }
.section-head { max-width: 640px; }
.section-label {
  display: inline-block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--brand); margin-bottom: .8rem;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.5px;
  margin-bottom: 1rem;
}

/* Problems */
.problem-card {
  padding: 1.75rem; border-radius: 16px;
  background: #fff; border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  transition: all .25s;
}
.problem-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.problem-icon { font-size: 1.8rem; color: var(--brand); margin-bottom: 1rem; line-height: 1; }

/* Features */
.feature-card { border-radius: 16px; transition: all .25s; position: relative; overflow: hidden; }
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand); opacity: 0; transition: opacity .25s;
}
.feature-card:hover { box-shadow: var(--shadow) !important; transform: translateY(-4px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-light); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}

/* How it works */
.step { opacity: 0; transform: translateX(-20px); transition: all .5s; }
.step.visible { opacity: 1; transform: none; }
.step-num {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--brand); color: #fff;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 1.05rem;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.how-visual {
  border-radius: 24px; position: relative; overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(1,26,85,.35) 0%, rgba(1,20,70,.55) 100%),
    url("../images/bg-1.png") center / cover no-repeat,
    #012578;
}
.onboarding { aspect-ratio: 10 / 11; box-shadow: 0 24px 60px rgba(1,37,120,.25); }
.onb {
  position: absolute; margin: 0; width: 60%;
  transition: transform .4s ease, z-index 0s;
}
.onb img { width: 100%; height: auto; display: block; filter: drop-shadow(0 20px 36px rgba(0,10,40,.45)); }
.onb-1 { left: 5%; top: 5%; z-index: 1; transform: rotate(-4deg); animation: floatA 6s ease-in-out infinite; }
.onb-2 { right: 5%; bottom: 5%; z-index: 2; transform: rotate(3deg); animation: floatB 7s ease-in-out infinite; }
.onb:hover { z-index: 3; animation-play-state: paused; transform: rotate(0deg) scale(1.04); }
@keyframes floatA {
  0%,100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-10px); }
}
@keyframes floatB {
  0%,100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(10px); }
}
.onb-step {
  position: absolute; top: -10px; left: -10px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand);
  font-family: 'Manrope', sans-serif; font-weight: 800;
  box-shadow: 0 6px 16px rgba(0,10,40,.35);
}
.onb-chip {
  position: absolute; z-index: 3; left: 6%; bottom: 7%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  padding: .5rem 1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 700;
}
.onb-chip .bi { color: #ffd34d; }

/* Devices */
.cloud-badge {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 1.8rem;
  box-shadow: 0 0 0 10px rgba(1,37,120,.08), 0 0 0 22px rgba(1,37,120,.04);
}
.devices {
  display: flex; align-items: flex-end; justify-content: center;
  max-width: 1100px; margin: 0 auto;
}
.device { position: relative; flex: none; }
.device img { display: block; width: 100%; height: auto; background: #fff; }
.device-laptop { width: 66%; z-index: 1; }
.device-laptop img {
  border: 10px solid #0b1222; border-bottom-width: 12px; border-radius: 16px 16px 0 0;
  box-shadow: 0 30px 60px rgba(10,22,40,.25);
}
.device-laptop::after {
  content: ''; position: absolute; left: -6%; right: -6%; bottom: -14px; height: 14px;
  background: linear-gradient(#c3c9d9, #8f98b0); border-radius: 0 0 18px 18px;
  box-shadow: 0 14px 24px rgba(10,22,40,.2);
}
.device-tablet { width: 22%; margin-right: -4%; z-index: 2; margin-bottom: -14px; }
.device-tablet img {
  border: 9px solid #0b1222; border-radius: 22px;
  box-shadow: 0 24px 50px rgba(10,22,40,.3);
}
.device-phone { width: 13%; margin-left: -3%; z-index: 2; margin-bottom: -14px; }
.device-phone img {
  border: 6px solid #0b1222; border-radius: 22px;
  box-shadow: 0 24px 50px rgba(10,22,40,.3);
}
.scan-callouts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  max-width: 1000px; margin: 3rem auto 0;
}
.scan-callout {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: 16px; box-shadow: var(--shadow);
}
.scan-icon {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 1.7rem;
}
@media (max-width: 991.98px) { .scan-callouts { grid-template-columns: 1fr; max-width: 640px; } }
@media (max-width: 575.98px) { .scan-callout { flex-direction: column; text-align: center; } }
.device-perks .bi { font-size: 1.8rem; color: var(--brand); }
@media (max-width: 767.98px) {
  .devices { flex-wrap: wrap; gap: 1.5rem 1rem; align-items: flex-start; }
  .device-laptop { width: 100%; margin-bottom: 14px; order: -1; }
  .device-tablet { width: 48%; margin: 0; }
  .device-phone { width: 30%; margin: 0; }
}

/* Pricing */
.plan-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,10,40,.4);
}
.plan-badge { font-size: .75rem; letter-spacing: .08em; }
.plan-price { font-family: 'Manrope', sans-serif; font-size: 4rem; font-weight: 800; line-height: 1; }
.plan-price sup { font-size: 1.6rem; vertical-align: super; top: 0; }
.plan-features .list-group-item { font-size: .95rem; }

/* FAQ */
.accordion {
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(1,37,120,.15);
  --bs-accordion-active-bg: var(--brand-light);
  --bs-accordion-active-color: var(--brand);
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23012578'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.accordion-button { font-size: 1.12rem; font-weight: 700; padding: 1.3rem 1.25rem; }
.accordion-body { color: var(--ink-3); line-height: 1.7; }

/* CTA */
.cta-section {
  border-radius: 28px; padding: 64px 5vw;
  position: relative; overflow: hidden;
}

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,.5); }
.footer-desc { max-width: 300px; line-height: 1.7; }
.footer-col h4 {
  font-size: .95rem; font-weight: 700; color: #fff;
  margin-bottom: 1rem; text-transform: uppercase; letter-spacing: .08em;
}
.footer-col li { margin-bottom: .55rem; }
.footer-col a { font-size: .88rem; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .bi-heart-fill { color: #e5484d; }

/* Páginas internas */
#nav.nav-solid { background: #012578; border-bottom-color: rgba(255,255,255,.1); }
.page-hero {
  padding: 140px 0 70px; color: #fff;
  background:
    linear-gradient(180deg, rgba(1,26,85,.35) 0%, rgba(1,20,70,.55) 100%),
    url("../images/bg-1.png") center / cover no-repeat,
    #012578;
}
.page-hero-inner { max-width: 720px; }
.page-hero .section-label { color: #8fb2ff; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -1px; }
.page-hero .lead { color: rgba(255,255,255,.8); margin-bottom: 0; }
.legal h2 { font-size: 1.25rem; font-weight: 800; margin: 2.2rem 0 .8rem; }
.legal p, .legal li { color: #4a5568; line-height: 1.75; }
.legal ul { padding-left: 1.2rem; }
.info-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 2rem; transition: all .25s;
}
.info-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .75rem; padding: .6rem 0; color: #4a5568; line-height: 1.6; }
.check-list .bi { color: var(--brand); flex-shrink: 0; margin-top: .2rem; }
.cta-strip {
  border-radius: 24px; padding: 3rem 1.5rem; color: #fff;
  background:
    linear-gradient(180deg, rgba(1,26,85,.35) 0%, rgba(1,20,70,.55) 100%),
    url("../images/bg-1.png") center / cover no-repeat,
    #012578;
}

/* Back to top */
#backToTop {
  position: fixed; right: 24px; bottom: 24px; z-index: 1030;
  width: 48px; height: 48px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background-color .22s;
}
#backToTop.show { opacity: 1; visibility: visible; transform: none; }
#backToTop.show:hover { transform: translateY(-3px); }

/* Scroll animations */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .hero { padding-top: 110px; }
  .section { padding: 70px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual, .onb { animation: none; }
  .reveal, .step { opacity: 1; transform: none; transition: none; }
}
