/* SafeCandle — responsive black header, fluid logo, cross-device type scale */

/* =========================================================
   Design tokens (fluid — phone → tablet → desktop)
   ========================================================= */
:root {
  /* Header slim, estilo compacto (~70px) */
  --sc-header-h: 72px;
  /* Logo compacto no desktop (não escudo 180px a esmagar o menu) */
  --sc-logo: 40px;
  --sc-logo-slot: 48px;
  --sc-logo-top: 0px;
  --sc-pad-x: clamp(0.75rem, 2vw, 1.25rem);

  /* Type scale */
  --sc-fs-display: clamp(1.55rem, 4.2vw, 3.15rem);
  --sc-fs-h2: clamp(1.35rem, 3vw, 2.35rem);
  --sc-fs-h3: clamp(1.1rem, 2vw, 1.55rem);
  --sc-fs-lead: clamp(0.95rem, 1.6vw, 1.2rem);
  --sc-fs-body: clamp(0.9375rem, 1.1vw, 1rem);
  --sc-fs-small: clamp(0.8rem, 1vw, 0.875rem);
  --sc-fs-btn: clamp(0.9rem, 1.2vw, 1.05rem);
  --sc-fs-nav: 0.9375rem; /* 15px — abas legíveis */
  --sc-lh-tight: 1.15;
  --sc-lh-title: 1.22;
  --sc-lh-body: 1.55;

  /* Colors — black theme */
  --sc-bg: #000000;
  --sc-text: #f5f5f5;
  --sc-muted: rgba(255, 255, 255, 0.78);
}

/* Safe-area aware body (iPhone notch / home indicator) */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-size: var(--sc-fs-body);
  line-height: var(--sc-lh-body);
  background-color: var(--sc-bg);
  overflow-x: hidden;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* Coins hero: NÃO aplicar max-width global — senão a composição
   (position absolute + width fixo) colapsa e some na direita */
.coins-animation img,
.coins-animation__coin-image,
.coins-animation__coin-light,
.david-animation img {
  max-width: none !important;
  width: 100%;
  height: auto;
}

/* Kill leftover brand filters */
.navbar-brand img,
header img[src*="logo"] {
  filter: none !important;
  max-width: none; /* allow logo larger than container slot */
}

.sc-local-banner {
  display: none !important;
}

/* Brand block */
.sc-brand {
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0;
  text-decoration: none !important;
  color: var(--sc-text) !important;
  line-height: 1;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}
.sc-brand:hover {
  text-decoration: none !important;
  opacity: 0.96;
}

/* —— Slim solid black header —— */
#mainHeader,
#mainHeader.bg-black-off,
#mainHeader.bg-black {
  background: rgba(0, 0, 0, 0.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: none !important; /* sem linha de separação das abas */
  box-shadow: none !important;
  overflow: visible !important;
  z-index: 1030;
  padding-top: env(safe-area-inset-top, 0px);
}

#mainHeader .navbar {
  min-height: var(--sc-header-h) !important;
  height: var(--sc-header-h);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0;
  padding-right: 0;
  background: transparent !important;
  overflow: visible !important;
}

#mainHeader .navbar > .container {
  position: relative;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center !important;
  height: var(--sc-header-h);
  overflow: visible !important;
  gap: 0.75rem;
  max-width: 1320px;
  padding-left: max(var(--sc-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--sc-pad-x), env(safe-area-inset-right, 0px));
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between !important;
}

/* Logo compacto à esquerda (não “pendurado” enorme) */
#mainHeader .navbar-brand.sc-brand {
  position: relative;
  z-index: 40;
  width: auto !important;
  min-width: 0 !important;
  height: var(--sc-header-h) !important;
  padding: 0 !important;
  margin: 0 0.5rem 0 0 !important;
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  justify-content: flex-start;
  overflow: visible !important;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

#mainHeader .navbar-brand + .navbar-brand {
  display: none !important;
}

.navbar-brand::before,
.navbar-brand::after {
  content: none !important;
}

/* —— Desktop nav: abas centradas / fluidas —— */
@media (min-width: 1200px) {
  #mainHeader .navbar-toggler {
    display: none !important; /* nunca hamburger no desktop */
  }

  #mainHeader .collapse.navbar-collapse {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    margin-left: 0.5rem;
  }

  #mainHeader .navbar-nav {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    gap: 0.15rem 1.15rem !important;
    margin: 0 auto 0 0.75rem !important;
    padding: 0 !important;
  }

  #mainHeader .navbar-nav > .menu-item,
  #mainHeader .navbar-nav > li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }

  #mainHeader .navbar-nav > li > .menu-link,
  #mainHeader .navbar-nav > li > a.main-menu-link {
    font-family: "Open Sans", system-ui, sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.9375rem !important;
    line-height: 1.2 !important;
    color: rgba(255, 255, 255, 0.82) !important;
    padding: 0.45rem 0 !important;
    letter-spacing: 0.01em;
    white-space: nowrap !important;
    text-decoration: none !important;
  }

  #mainHeader .navbar-nav > li > .menu-link:hover,
  #mainHeader .navbar-nav > li > a.main-menu-link:hover {
    color: #ffffff !important;
  }

  /* Grupo direita: Documentação · Entrar · Começar · PT */
  #mainHeader .collapse.navbar-collapse > .d-flex {
    -ms-flex-negative: 0;
    flex-shrink: 0;
    gap: 0.85rem !important;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-left: 0.5rem;
  }
}

/* Nav links (base) */
#mainHeader .navbar-nav .menu-link,
#mainHeader .navbar-nav .nav-link {
  font-weight: 500;
  font-size: var(--sc-fs-nav);
  color: var(--sc-muted) !important;
  -webkit-transition: color 0.15s ease;
  transition: color 0.15s ease;
  white-space: nowrap;
}
#mainHeader .navbar-nav .menu-link:hover,
#mainHeader .navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

/* Buttons header */
#mainHeader .btn-outline-light {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  background: transparent !important;
  padding: 0.45rem 1.1rem !important;
  font-weight: 600;
  font-size: 0.9rem !important;
  -webkit-transition: 0.15s ease;
  transition: 0.15s ease;
  white-space: nowrap;
  min-height: 40px;
  min-width: 0;
  line-height: 1.2 !important;
  height: auto !important;
}
#mainHeader .btn-outline-light:hover,
#mainHeader .btn-outline-light:focus {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: none;
}

#mainHeader .sign-in-link {
  font-weight: 600;
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.9) !important;
  white-space: nowrap;
  min-height: 40px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0 0.25rem;
}
#mainHeader .sign-in-link:hover {
  color: #ffffff !important;
}

#mainHeader .whitepaper_link {
  color: #4d7cfe !important;
  font-weight: 600;
  font-size: 0.9rem !important;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none !important;
  white-space: nowrap;
}
#mainHeader .whitepaper_link:hover {
  color: #7aa0ff !important;
}
#mainHeader .whitepaper_link svg {
  width: 18px;
  height: 18px;
}

#mainHeader .dropdown-toggle.btn-secondary {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  color: #f0f0f0 !important;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem !important;
  min-height: 36px;
}

#mainHeader .btn {
  font-size: 0.9rem !important;
}

/* Toggler: SÓ mobile/tablet — nunca forçar display no desktop */
#mainHeader .navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border: 0 !important;
  box-shadow: none !important;
  order: -1; /* hamburger à esquerda no mobile, como no print */
}
@media (max-width: 1199.98px) {
  #mainHeader .navbar-toggler {
    display: -webkit-inline-box !important;
    display: -ms-inline-flexbox !important;
    display: inline-flex !important;
  }
}
#mainHeader .navbar-toggler img {
  width: 22px;
  height: 22px;
  max-width: 22px;
}

/* Logo: compacto, centrado na barra */
.sc-logo-img {
  display: block;
  width: auto;
  height: auto;
  -o-object-fit: contain;
  object-fit: contain;
  background: transparent !important;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  -webkit-filter: none;
  filter: none;
}

.sc-logo-img--full {
  position: static !important;
  left: auto;
  top: auto;
  -webkit-transform: none !important;
  transform: none !important;
  width: auto !important;
  height: var(--sc-logo) !important;
  max-width: 160px !important;
  max-height: var(--sc-logo) !important;
  z-index: 45;
  pointer-events: auto;
}

/* Wordmark horizontal no header desktop */
.sc-logo-img--wordmark {
  position: static !important;
  width: 150px !important;
  height: 30px !important;
  max-width: 160px !important;
  max-height: 32px !important;
  -o-object-fit: contain;
  object-fit: contain;
}

.sc-logo-img--app {
  position: static !important;
  -webkit-transform: none !important;
  transform: none !important;
  width: clamp(64px, 14vw, 96px) !important;
  height: clamp(64px, 14vw, 96px) !important;
  max-width: clamp(64px, 14vw, 96px) !important;
  max-height: clamp(64px, 14vw, 96px) !important;
}

.sc-logo-img--footer {
  position: static !important;
  -webkit-transform: none !important;
  transform: none !important;
  width: clamp(120px, 28vw, 180px) !important;
  height: clamp(120px, 28vw, 180px) !important;
  max-width: clamp(120px, 28vw, 180px) !important;
  max-height: clamp(120px, 28vw, 180px) !important;
  -webkit-filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
  margin-left: auto;
  margin-right: auto;
}

.sc-logo-img--mark {
  width: 40px !important;
  height: 40px !important;
  position: static !important;
  -webkit-transform: none !important;
  transform: none !important;
}

/* =========================================================
   Mobile / tablet header actions layout
   ========================================================= */
@media (max-width: 1199.98px) {
  /* Compact CTAs so they don't crush the logo */
  #mainHeader .btn-outline-light.w-100 {
    width: auto !important;
    max-width: none !important;
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
    padding: 0.35rem 0.75rem !important;
    font-size: 0.8rem !important;
  }

  #mainHeader .sign-in-link.ms-auto {
    margin-left: auto !important;
  }

  #mainHeader .dropdown.d-xl-none {
    -ms-flex-negative: 0;
    flex-shrink: 0;
  }
}

/* Small phones: hide secondary chrome, keep logo + menu */
@media (max-width: 419.98px) {
  #mainHeader .sign-in-link.d-xl-none {
    display: none !important;
  }
  #mainHeader .btn-outline-light.d-xl-none {
    display: none !important;
  }
  #mainHeader .dropdown.d-xl-none {
    display: none !important;
  }
  :root {
    --sc-logo: 36px;
    --sc-logo-slot: 40px;
    --sc-header-h: 56px;
  }
}

/* Large phones / small tablets */
@media (min-width: 420px) and (max-width: 767.98px) {
  :root {
    --sc-logo: 38px;
    --sc-logo-slot: 44px;
    --sc-header-h: 60px;
  }
}

/* Tablets */
@media (min-width: 768px) and (max-width: 1199.98px) {
  :root {
    --sc-logo: 40px;
    --sc-logo-slot: 48px;
    --sc-header-h: 66px;
  }
}

/* Desktop XL+ — logo compacto, abas em linha (não wrap) */
@media (min-width: 1200px) {
  :root {
    --sc-logo: 40px;
    --sc-logo-slot: 48px;
    --sc-header-h: 72px;
  }
}

/* Landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
  :root {
    --sc-logo: 32px;
    --sc-logo-slot: 36px;
    --sc-header-h: 52px;
  }
  body.home .hero-section,
  body.home section:first-of-type,
  body.home .homeSliderNew {
    padding-top: 72px !important;
  }
}

/* Offcanvas — black, safe areas */
.offcanvas.text-bg-dark,
.offcanvas-end.text-bg-dark {
  background: #000000 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  max-width: min(100vw, 360px);
}
.offcanvas-header {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  overflow: visible;
}
.offcanvas-header .sc-brand {
  position: relative;
  margin-right: auto;
  width: clamp(80px, 28vw, 120px);
  height: var(--sc-header-h);
  overflow: visible;
}
.offcanvas-header .sc-logo-img--full {
  width: clamp(96px, 28vw, 130px) !important;
  height: clamp(96px, 28vw, 130px) !important;
  max-width: clamp(96px, 28vw, 130px) !important;
  max-height: clamp(96px, 28vw, 130px) !important;
  position: absolute !important;
  top: 2px;
  left: 0;
}
.offcanvas-body {
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.offcanvas-body .menu-link,
.offcanvas-body a {
  font-size: 1rem;
  min-height: 44px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

/* =========================================================
   Type scale (responsive) — body/sections only
   HERO usa métricas de referência (bloco abaixo) — NÃO esmagar
   ========================================================= */
.testimonial h2,
.last-operation-section h2,
.section-title,
.security-priority-section h2,
.ai-trading-section h2,
.ai-benefits-section h2,
.blog-section h2,
.profitability-section h2,
.about-section h2,
.faq-section h2,
.tech-section h2,
.token-section h2,
.aiao-section h2,
main h2:not(.hero-section .h2):not(.hero-section-2 .h2) {
  font-size: var(--sc-fs-h2) !important;
  line-height: var(--sc-lh-title) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

main h3,
.card-title,
.ai-benefits-section__card h3 {
  font-size: var(--sc-fs-h3) !important;
  line-height: 1.3 !important;
  font-weight: 600 !important;
}

/* Body copy fora do hero */
main > section:not(.hero-section) p,
.section__text,
.ai-trading-section .content .desc {
  font-size: var(--sc-fs-body);
  line-height: var(--sc-lh-body);
}

.last-operation-section .btn,
.section__btn,
main .btn.section__btn,
main a.section__btn {
  font-size: var(--sc-fs-btn) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  height: auto !important;
  min-height: 48px;
  padding: 0.75rem 1.2rem !important;
  border-radius: 12px !important;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

/* =========================================================
   HERO TYPE = referência (títulos grandes, parágrafos certos)
   ========================================================= */
.hero-section .h2,
.hero-section-2 .h2,
.hero-section .slide3 .h2 {
  font-family: "Montserrat", system-ui, sans-serif !important;
  font-size: clamp(2.5rem, 4.6vw, 4.05rem) !important; /* ~64px no desktop */
  line-height: 1.08 !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  color: #ffffff !important;
  word-wrap: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

.hero-section .slide3 .h2 {
  font-size: clamp(2.65rem, 4.8vw, 4rem) !important; /* 64px target */
  line-height: 1.06 !important;
  padding-bottom: 2.5rem !important;
  max-width: 14ch;
}

.hero-section .h4,
.hero-section-2 .h4 {
  font-family: "Montserrat", system-ui, sans-serif !important;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem) !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  color: #ffffff !important;
}

/* Parágrafos do hero — cor e corpo de referência */
.hero-section .desc,
.hero-section .desc p,
.hero-section .slide1 .col-xl-3 > p,
.hero-section .trial-text,
.hero-section p.white {
  font-family: "Open Sans", system-ui, sans-serif !important;
  font-size: 1rem !important; /* 16px */
  line-height: 1.55 !important;
  font-weight: 400 !important;
  color: rgba(251, 239, 236, 0.82) !important;
  letter-spacing: 0 !important;
}

.hero-section .slide3 .desc {
  max-width: 402px !important;
  padding-bottom: 1.5rem !important;
}

.hero-section .slide3 .desc p {
  margin: 0 0 1.25rem 0 !important;
  max-width: 38ch;
}

/* Botões do hero — tamanho de referência */
.hero-section .btn,
.hero-section-2 .btn {
  font-family: "Montserrat", system-ui, sans-serif !important;
  font-size: clamp(1.15rem, 1.6vw, 1.65rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  height: auto !important;
  min-height: 64px !important;
  padding: 1rem 1.75rem !important;
  border-radius: 16px !important;
  border-width: 1.5px !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em;
  max-width: none;
  text-align: center;
}

.hero-section .slide3 .btn {
  min-width: 280px;
  justify-content: center;
}

/* Imagem slide3 (moeda/logo) — lado direito cheio como referência */
@media (min-width: 1200px) {
  .hero-section .slide3 .wrap {
    height: 600px !important;
    min-height: 600px !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
  }

  .hero-section .slide3 .row {
    width: 100%;
    align-items: center !important;
  }

  .hero-section .slide3 .col-xl-7 {
    position: relative;
    z-index: 3;
  }

  .hero-section .slide3 .col-xl-5 {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
  }

  .hero-section .slide3 .image.d-none.d-xl-block {
    display: block !important;
    margin: -40px 0 -80px 0 !important;
    width: 100%;
    max-width: 520px;
    text-align: center;
  }

  .hero-section .slide3 .image.d-none.d-xl-block img {
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    margin: 0 auto;
    display: block;
  }

  .hero-section .slide3 .our-partners {
    align-self: flex-start;
    margin-top: 0.5rem;
    margin-left: 0;
    max-width: 280px;
  }
}

@media (max-width: 1199px) {
  .hero-section .h2,
  .hero-section .slide3 .h2 {
    font-size: clamp(1.85rem, 7vw, 2.6rem) !important;
    line-height: 1.12 !important;
    padding-bottom: 1.25rem !important;
    max-width: none;
  }

  .hero-section .btn {
    min-height: 52px !important;
    font-size: 1.05rem !important;
    padding: 0.85rem 1.25rem !important;
    white-space: normal !important;
  }
}

.trial-text,
.hero-section-2 .wrap:after {
  font-size: var(--sc-fs-small) !important;
  line-height: 1.4 !important;
}

.footer-section,
.footer-section p,
.footer-section a {
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  line-height: 1.5;
}

/* =========================================================
   Media / video / grids
   ========================================================= */
.video-container {
  width: 100% !important;
  max-width: min(842px, 100%) !important;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 56.25% !important; /* 16:9 mobile-friendly */
  max-height: none !important;
}

.video-container video,
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  -o-object-fit: contain;
  object-fit: contain;
  border-radius: clamp(12px, 2vw, 20px);
  background: #0a0a0a;
}

@media (min-width: 768px) {
  .video-container {
    padding-bottom: 36.25% !important;
    max-height: 478px !important;
  }
  .video-container video {
    -o-object-fit: cover;
    object-fit: cover;
  }
}

/* Containers don't spill on small screens */
.container {
  width: 100%;
  max-width: 100%;
  padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
  padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Hero clearance under slim bar + hanging logo */
body.home {
  scroll-padding-top: calc(var(--sc-header-h) + env(safe-area-inset-top, 0px) + 12px);
}

body.home .hero-section,
body.home section:first-of-type,
body.home .homeSliderNew {
  margin-top: 0;
  /* bar + part of hanging logo so text isn't covered */
  padding-top: calc(var(--sc-header-h) + env(safe-area-inset-top, 0px) + clamp(36px, 8vw, 72px));
}

/* Header never clips logo vertically; page can scroll horizontally clipped */
#mainHeader,
#mainHeader .navbar,
#mainHeader .navbar > .container {
  overflow: visible !important;
}

/* Prefer reduced motion — NÃO zerar width do ticker (senão fica "E" só) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    -webkit-animation-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    -webkit-transition-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  #change_coin > span > span.title {
    width: 100% !important;
    border-right-color: transparent !important;
    animation: none !important;
  }
  .coins-animation__coin {
    animation: none !important;
  }
}

/* High-DPI logo crispness */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .sc-logo-img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Touch: remove tap highlight flash on dark UI */
a,
button {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.08);
}

/* =========================================================
   Hero harmony — composição de referência (David + moedas)
   ========================================================= */

/* Swiper do hero NÃO corta conteúdo */
.hero-section .mainSlider.swiper,
.hero-section .mainSlider .swiper-wrapper,
.hero-section .mainSlider .swiper-slide {
  overflow: visible !important;
}

/* David images must not shrink */
.david-animation img,
.david-animation__david,
.david-animation__glasses-item-image {
  max-width: none !important;
  height: auto;
}
.david-animation__david {
  width: 100% !important;
  max-width: 100% !important;
  display: block;
}
.david-animation {
  margin: 0 auto;
  max-width: 463px;
}

/* Glasses overlay must show */
.david-animation__glasses {
  display: grid !important;
}

@media (min-width: 1200px) {
  .hero-section.with-slider {
    min-height: 640px;
  }

  .hero-section .wrap {
    height: auto !important;
    min-height: 560px !important;
    overflow: visible !important;
  }

  .hero-section .slide1 .wrap > .row,
  .hero-section .slide2 .wrap > .row,
  .hero-section .slide3 .wrap > .row {
    align-items: center !important;
    min-height: 520px;
  }

  /* ---- SLIDE 2 (moedas): preencher a DIREITA como referência ---- */
  .hero-section .slide2 {
    position: relative;
  }

  .hero-section .slide2 .wrap {
    position: relative;
    overflow: visible !important;
  }

  .hero-section .slide2 .col-xl-6.pl-xl-0,
  .hero-section .slide2 .col-xl-6.text-lg-end {
    position: relative !important;
    min-height: 520px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
  }

  .hero-section .slide2 .image.d-none.d-xl-block {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 760px !important;
    height: 520px !important;
    margin: 0 0 0 auto !important;
    overflow: visible !important;
    text-align: left !important;
  }

  .hero-section .slide2 .image.d-none.d-xl-block .coins-animation {
    position: absolute !important;
    left: 50% !important;
    top: 32% !important; /* sobe as moedas */
    width: 805px !important;
    height: 546px !important;
    max-width: none !important;
    margin: 0 !important;
    transform: translate(-48%, -58%) scale(0.85) !important;
    transform-origin: center center !important;
    z-index: 2;
  }

  .hero-section .slide2 .coins-animation__coin {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-section .slide2 .content {
    position: relative;
    z-index: 4;
    max-width: 480px;
  }

  /* fundo da seta mais à direita, atrás das moedas */
  .hero-section .slide2 {
    background-size: 70% auto !important;
    background-position: 85% 50% !important;
    background-repeat: no-repeat !important;
  }

  /* ---- SLIDE 1 (David): 3 colunas equilibradas ---- */
  .hero-section .slide1 .hero-main-image {
    display: block !important;
  }

  .hero-section .slide1 .h2 {
    max-width: 11ch;
  }
}

/* Ticker moeda legível */
#change_coin > span {
  display: inline-flex !important;
  align-items: center;
  min-width: 2.4em;
  padding: 0.1em 0.4em !important;
  border-radius: 12px !important;
}
#change_coin > span > span.title {
  width: auto !important;
  min-width: 1em;
  animation: none !important;
  border-right: none !important;
  overflow: visible !important;
}

/* Mobile coins */
@media (max-width: 1199px) {
  .hero-section .slide2 .desc .image {
    position: relative !important;
    height: 300px !important;
    margin: 0.75rem auto 1.5rem !important;
    overflow: visible !important;
  }
  .hero-section .slide2 .desc .image .coins-animation {
    position: absolute !important;
    left: 50% !important;
    top: 45% !important;
    width: 805px !important;
    height: 546px !important;
    transform: translate(-50%, -50%) scale(0.4) !important;
  }
}

/* Trading page full-bleed */
body.sc-info-page .sc-info-wrap,
body.sc-info-page .sc-info-body {
  max-width: none !important;
  overflow: visible !important;
}
body.sc-info-page .sc-info-wrap > h1:first-of-type,
body.sc-info-page .sc-page-notice {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
body.sc-info-page .trading-up-section {
  overflow: visible;
}
body.sc-info-page .trading-tier-benefits,
body.sc-info-page .trading-tiers-section {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Demo rating line (fills Trustpilot vertical slot) */
.sc-demo-rating {
  margin-top: 1.1rem;
  position: relative;
  z-index: 4;
  overflow: visible !important;
  padding-top: 0 !important;
}
.sc-demo-rating__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: rgba(251, 239, 236, 0.78);
}
.sc-demo-rating__label {
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 0.02em;
}
.sc-demo-rating__stars {
  color: #22c55e;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}
.sc-demo-rating__meta {
  color: rgba(251, 239, 236, 0.55);
  font-size: 0.78rem;
}

/* === DAVID SLIDE HARMONY (slide1 = hero de referência) === */

/* Keep slider from clipping David */
.hero-section .mainSlider.swiper,
.hero-section .mainSlider .swiper-wrapper,
.hero-section .mainSlider .swiper-slide {
  overflow: visible !important;
}

.david-animation,
.david-animation * {
  box-sizing: border-box;
}

.david-animation {
  position: relative;
  width: 463px;
  max-width: 100%;
  margin: 0 auto;
  background: transparent !important;
  z-index: 2;
}

.david-animation__david {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  position: relative;
  z-index: 2;
}

/* VR glasses strip over eyes — match original % */
.david-animation__glasses {
  display: grid !important;
  position: absolute !important;
  left: 37% !important;
  top: 26.5% !important;
  height: 8% !important;
  width: 42% !important;
  overflow: hidden !important;
  transform: skewY(4deg);
  grid-template-columns: repeat(9, 100%);
  z-index: 3;
  pointer-events: none;
}

.david-animation__glasses-item-image {
  max-width: none !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

@media (min-width: 1200px) {
  /* Fixed hero height like original (~607px) */
  .hero-section .slide1 .wrap {
    height: 607px !important;
    min-height: 607px !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .hero-section .slide1 .wrap > .row {
    width: 100%;
    align-items: center !important;
    min-height: 520px;
  }

  /* LEFT: title + CTA */
  .hero-section .slide1 .col-xl-5 {
    position: relative;
    z-index: 4;
  }

  .hero-section .slide1 .h2 {
    font-family: "Montserrat", system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(2.75rem, 4.5vw, 4.4rem) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    color: #fff !important;
    margin: 0 0 1.25rem 0 !important;
    max-width: none; /* não forçar 1 palavra por linha */
    white-space: normal;
  }

  /* Decorative ring image under title (hero-1) */
  .hero-section .slide1 .hero-1 {
    margin-top: -40px !important;
    margin-bottom: 12px !important;
    max-width: 280px;
    opacity: 0.95;
  }

  .hero-section .slide1 .btn.btn-outline-light {
    font-size: clamp(1.15rem, 1.6vw, 1.65rem) !important;
    min-height: 64px !important;
    height: auto !important;
    padding: 1rem 1.75rem !important;
    border-radius: 16px !important;
    border-width: 1.5px !important;
    white-space: nowrap !important;
  }

  /* Trial ao lado do botão — bloco normal, não 1 palavra/linha */
  .hero-section .slide1 .trial-text {
    max-width: 220px !important;
    min-width: 170px !important;
    margin-left: 1.1rem !important;
    font-size: 1rem !important;
    line-height: 1.45 !important;
    color: #fbefec !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word;
  }

  /* CENTER: David statue */
  .hero-section .slide1 .hero-main-image {
    display: block !important;
    position: relative !important;
    top: -40px !important;
    z-index: 2;
  }

  .hero-section .slide1 .hero-main-image:before {
    content: "" !important;
    background-image: url("../wp-content/themes/safecandle/assets/img/herobg.png") !important;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block !important;
    width: 914px;
    height: 476px;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-55%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
  }

  .hero-section .slide1 .david-animation {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
  }

  /* RIGHT: pitch + partners */
  .hero-section .slide1 .col-xl-3 {
    position: relative;
    z-index: 4;
    text-align: left !important;
    padding-top: 0.5rem;
  }

  .hero-section .slide1 .col-xl-3 .h4 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #fff !important;
    margin-bottom: 0.75rem !important;
  }

  .hero-section .slide1 .col-xl-3 > p {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
    color: rgba(251, 239, 236, 0.88) !important;
    margin-bottom: 1rem !important;
  }

  .hero-section .slide1 .hero-3 {
    max-width: 160px;
    margin: 0.5rem 0 1.25rem;
    opacity: 0.9;
  }

  .hero-section .slide1 .our-partners {
    margin-top: 0.5rem;
  }

  .hero-section .slide1 .our-partners .title {
    font-size: 0.85rem !important;
    color: #fbefec !important;
    padding-bottom: 8px !important;
  }

  .hero-section .slide1 .our-partners .logos {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: flex-start !important;
  }

  .hero-section .slide1 .our-partners .logos img {
    max-height: 28px;
    width: auto;
    max-width: 120px;
  }
}

/* Tablet / mobile: stack cleanly */
@media (max-width: 1199px) {
  .hero-section .slide1 .wrap {
    height: auto !important;
    min-height: 0 !important;
  }

  .hero-section .slide1 .h2 {
    font-size: clamp(2rem, 7vw, 2.75rem) !important;
    line-height: 1.1 !important;
    text-align: left;
  }

  .hero-section .slide1 .image.d-xl-none img {
    max-width: min(360px, 85vw);
    margin: 0.5rem auto 1rem;
    display: block;
  }
}

/* Coins exemption (keep) */
.coins-animation img,
.coins-animation__coin-image,
.coins-animation__coin-light {
  max-width: none !important;
}

/* =========================================================
   Slider pagination — FORA das letras (todas as páginas)
   ========================================================= */
.hero-section .mainSlider,
.hero-section.with-slider .mainSlider,
.trading-up-section .mainSlider {
  position: relative;
}

/* Bolinhas acima do título, com respiro — não cobrem o H2 */
.hero-section .mainSlider .swiper-pagination,
.trading-up-section .mainSlider .swiper-pagination {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  min-height: 36px;
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  z-index: 6;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: auto;
}

/* Empurra o conteúdo dos slides para BAIXO das bolinhas */
.hero-section .mainSlider .swiper-slide .wrap,
.trading-up-section .mainSlider .swiper-slide .wrap {
  padding-top: 56px !important; /* espaço livre sob a paginação */
}

.hero-section .mainSlider .swiper-slide .h2,
.hero-section .mainSlider .swiper-slide h1,
.trading-up-section .mainSlider .swiper-slide h1 {
  position: relative;
  z-index: 2;
}

/* Hero sob o header — espaço extra pela logo 180px */
body.home .hero-section {
  padding-top: calc(var(--sc-header-h) + env(safe-area-inset-top, 0px) + 1.5rem) !important;
}

@media (max-width: 1199px) {
  .hero-section .mainSlider .swiper-slide .wrap,
  .trading-up-section .mainSlider .swiper-slide .wrap {
    padding-top: 48px !important;
  }
}

/* === THREE SLIDES POLISH v20 === */

/* —— Logo 180px + sem linha de separação das abas —— */
#mainHeader,
#mainHeader.bg-black,
#mainHeader.bg-black-off {
  border-bottom: none !important; /* tira a “separação” sob o menu */
  box-shadow: none !important;
}

#mainHeader .navbar-brand.sc-brand {
  display: inline-flex !important;
  align-items: flex-start !important;
  gap: 0.65rem !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  height: var(--sc-header-h) !important;
  position: relative !important;
  z-index: 50 !important;
}

/* Escudo 180px — hang down, bem destacada */
.sc-logo-img--badge {
  position: absolute !important;
  left: 0 !important;
  top: 4px !important;
  width: 180px !important;
  height: 180px !important;
  max-width: 180px !important;
  max-height: 180px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.65)) !important;
  flex-shrink: 0;
  z-index: 55;
  pointer-events: auto;
}

/* Slot horizontal para a logo não esmagar as abas */
#mainHeader .navbar-brand.sc-brand {
  width: 190px !important;
  min-width: 190px !important;
  margin-right: 0.75rem !important;
}

/* Texto da marca ao lado (só se couber; logo já fala sozinha) */
.sc-brand-text {
  display: none !important; /* 180px já destaca — evita competir com abas */
}

@media (max-width: 1199.98px) {
  .sc-logo-img--badge {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
    position: static !important;
  }
  #mainHeader .navbar-brand.sc-brand {
    width: auto !important;
    min-width: 0 !important;
    align-items: center !important;
  }
  .sc-brand-text {
    display: inline !important;
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #f5f5f5;
    white-space: nowrap;
  }
  .sc-brand-text__accent {
    color: #4ade80;
  }
}

/* —— Slide 1 título: 3 linhas, sem palavra solta —— */
@media (min-width: 1200px) {
  .hero-section .slide1 .h2 {
    max-width: 9.5em !important;
    font-size: clamp(3rem, 4.8vw, 4.5rem) !important;
    line-height: 1.02 !important;
  }

  .hero-section .slide1 .col-xl-3 .our-partners {
    margin-top: 1.5rem;
    clear: both;
  }
}

/* —— SLIDE 2: moedas à direita (composição completa) —— */
@media (min-width: 1200px) {
  .hero-section .slide2 .wrap {
    height: auto !important;
    min-height: 560px !important;
    overflow: visible !important;
  }

  .hero-section .slide2 .row {
    align-items: center !important;
    min-height: 520px;
  }

  .hero-section .slide2 .col-xl-6:first-child {
    position: relative;
    z-index: 4;
  }

  .hero-section .slide2 .col-xl-6.pl-xl-0,
  .hero-section .slide2 .col-xl-6.text-lg-end {
    position: relative !important;
    min-height: 500px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  .hero-section .slide2 .image.d-none.d-xl-block {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    max-width: 700px !important;
    height: 520px !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  /* Moedas mais para CIMA (não cortadas embaixo) */
  .hero-section .slide2 .image.d-none.d-xl-block .coins-animation {
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    left: 50% !important;
    top: 28% !important;
    width: 805px !important;
    height: 546px !important;
    max-width: none !important;
    margin: 0 !important;
    transform: translate(-50%, -62%) scale(0.85) !important;
    transform-origin: center center !important;
    z-index: 3 !important;
  }

  .hero-section .slide2 .coins-animation__coin {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .hero-section .slide2 .coins-animation img {
    max-width: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .hero-section .slide2 .h2 {
    font-size: clamp(2.6rem, 4.4vw, 3.8rem) !important;
    line-height: 1.1 !important;
    max-width: 14ch;
  }

  .hero-section .slide2 .desc p,
  .hero-section .slide2 .desc {
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: rgba(251, 239, 236, 0.82) !important;
  }

  /* fundo da seta atrás das moedas */
  .hero-section .slide2 {
    background-size: 65% auto !important;
    background-position: 88% 48% !important;
  }
}

/* mobile slide2 coins */
@media (max-width: 1199px) {
  .hero-section .slide2 .desc .image {
    position: relative !important;
    height: 280px !important;
    margin: 1rem auto !important;
    overflow: visible !important;
  }
  .hero-section .slide2 .desc .image .coins-animation {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    width: 805px !important;
    height: 546px !important;
    transform: translate(-50%, -50%) scale(0.38) !important;
  }
}

/* —— SLIDE 3: mais informação —— */
.sc-slide3-points {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  max-width: 420px;
}
.sc-slide3-points li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.35rem;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(251, 239, 236, 0.85);
}
.sc-slide3-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.sc-demo-rating--slide3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 1200px) {
  .hero-section .slide3 .h2 {
    font-size: clamp(2.75rem, 4.6vw, 3.85rem) !important;
    line-height: 1.06 !important;
    max-width: 12ch !important;
    padding-bottom: 1.75rem !important;
  }

  .hero-section .slide3 .desc p {
    margin-bottom: 0.85rem !important;
  }

  .hero-section .slide3 .image.d-none.d-xl-block img {
    max-width: 420px !important;
  }

  .hero-section .slide3 .our-partners {
    margin-top: 1rem;
  }
}

/* ---- Polish: hide empty logo/mentions carousel (no content survives here) ---- */
.loop-logos-section {
  display: none !important;
}

/* ---- Polish: hide leftover third-party partner logo section (Polygon.io) ---- */
.official-partner-section {
  display: none !important;
}

/* ---- Polish: stronger primary CTA (existing blue accent, filled + depth) ---- */
#mainHeader .btn-outline-light,
main .btn-outline-light {
  border: 1px solid rgba(122, 160, 255, 0.55) !important;
  background: linear-gradient(135deg, rgba(77, 124, 254, 0.18), rgba(122, 160, 255, 0.08)) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(77, 124, 254, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#mainHeader .btn-outline-light:hover,
#mainHeader .btn-outline-light:focus,
main .btn-outline-light:hover,
main .btn-outline-light:focus {
  background: linear-gradient(135deg, #4d7cfe, #7aa0ff) !important;
  border-color: #7aa0ff !important;
  color: #06122e !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(77, 124, 254, 0.32);
}

/* keep header nav buttons compact — don't let the lift/shadow affect small topbar CTAs */
#mainHeader .topbar-actions .btn-outline-light,
#mainHeader .btn-outline-light.w-100 {
  box-shadow: none;
}

/* ---- Polish: tighten oversized section spacing, add depth to cards/mockups ---- */
.high-performance-section,
.security-priority-section,
.trading-tech-section,
.s-home--slider--new {
  padding-top: clamp(2rem, 5vw, 3.5rem) !important;
  padding-bottom: clamp(2rem, 5vw, 3.5rem) !important;
}

.security-priority-section .card,
.security-priority-section [class*="card"],
.s-home--slider--new img,
.trading-tech-section img {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  border-radius: 16px;
}

/* subtle entrance polish for content that scrolls into view — CSS-only, no JS dependency */
.security-priority-section,
.trading-tech-section,
.high-performance-section {
  transition: opacity 0.2s ease;
}
