/***************************************************************
 * crypto.confiaro.com — BTC ↔ XMR
 * Design 2026 • Glass Additive • Neon Cyber • Futurista
 * Landing + App • Responsivo • Produção
 ***************************************************************/

/* ===============================
   RESET + BASE
================================ */
[hidden] { display: none !important; }

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===============================
   TOKENS VISUAIS (mesmo DNA do conversor)
================================ */
:root {
  --bg-deep: #05070f;

  --glass-weak:   rgba(18, 26, 52, 0.72);
  --glass-medium: rgba(28, 42, 78, 0.72);
  --glass-strong: rgba(35, 50, 90, 0.82);

  --neon-cyan: #6bf0d1;
  --neon-blue: #7aa2ff;
  --neon-blue-dark: #5a82df;
  --neon-cyan-dark: #4dd8b8;

  --text-main:  #f2f8ff;
  --text-soft:  #c2d4f8;
  --text-muted: #8ca0d2;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --blur-md: 14px;
  --blur-lg: 22px;

  --shadow-glow: 0 0 42px rgba(107,240,209,.35);
  --shadow-deep: 0 18px 56px rgba(0,0,0,.60);

  --ease: cubic-bezier(.34,1.56,.64,1);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
  min-height: 100%;
  background: transparent;
  color: var(--text-main);
  font-family: var(--font-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  overflow-x: hidden;
}

/* =========================================================
   FUNDO — CAMADAS (igual o conversor)
========================================================= */

/* Camada "Corel" viva */
.fx-color-blend {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -5;

  background:
    radial-gradient(circle at 15% 25%, rgba(255, 120, 0, 0.22), rgba(0,0,0,0.28) 45%),
    radial-gradient(circle at 85% 70%, rgba(122, 162, 255, 0.22), transparent 50%),
    linear-gradient(180deg, rgba(22, 32, 58, 0.35), rgba(5, 7, 15, 0.88));

  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));
  mix-blend-mode: screen;
}

/* Canvas animado */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
}

/* Camada 2 — imagem espacial */
body::after {
  content: "";
  position: fixed;
  inset: 0;

  background-image: url("/static/img/bg-space.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  opacity: 0.42;
  mix-blend-mode: screen;

  z-index: -3;
  pointer-events: none;
}

/* Camada 3 — overlay de contraste */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 30%, rgba(122,162,255,.08), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(107,240,209,.06), transparent 55%),
    linear-gradient(to bottom, rgba(5,7,15,.22), rgba(5,7,15,.85));
}

/* ===============================
   TOPBAR
================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;

  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.20), rgba(0, 77, 255, 0.20)),
    rgba(15, 22, 42, 0.72);

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border-bottom: 1px solid rgba(122,162,255,.18);
  box-shadow: 0 4px 24px rgba(0,0,0,.45);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 5vw;
  overflow: visible;

  background-blend-mode: screen;
}

.brand {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;

  background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===============================
   MENU DE IDIOMAS
================================ */
.lang-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.lang-visible {
  display: flex;
  gap: .5rem;
}

.lang-item {
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: all .25s var(--ease);
  white-space: nowrap;
}

.lang-item:hover,
.lang-item.active {
  background: rgba(107,240,209,.18);
  color: #fff;
  box-shadow: 0 0 16px rgba(107,240,209,.35);
}

.lang-more-btn {
  display: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(122,162,255,.18);
  color: #fff;
  transition: all .25s var(--ease);
}

.lang-more-btn:hover {
  background: rgba(107,240,209,.35);
  box-shadow: 0 0 14px rgba(107,240,209,.35);
}

/* Dropdown */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  min-width: 200px;
  padding: 10px;

  display: none;
  flex-direction: column;
  gap: 4px;

  background: rgba(18,26,52,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  border: 1px solid rgba(122,162,255,.22);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.60);

  z-index: 2000;
}

.lang-dropdown a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text-soft);
  text-decoration: none;
  transition: all .25s var(--ease);
}

.lang-dropdown a:hover,
.lang-dropdown a.active {
  background: rgba(107,240,209,.22);
  color: #fff;
}

/* ===============================
   HERO (Landing)
================================ */
.hero {
  min-height: 65vh;
  padding: 1vh 5vw 5vh;
  text-align: center;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -0.025em;
}

.gradient-text {
  background: linear-gradient(90deg,var(--neon-blue),var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 760px;
  margin: 1.2rem auto 2.8rem;
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  color: var(--text-soft);
  opacity: .94;
}

/* CTA */
.btn-cta {
  padding: 1.2rem 3.2rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: #081326;

  background: linear-gradient(90deg,var(--neon-cyan),var(--neon-blue));
  box-shadow: var(--shadow-glow);

  transition: all .3s var(--ease);
  display: inline-block;
}

.btn-cta:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 0 56px rgba(107,240,209,.65);
}

/* ===============================
   FEATURES — GLASS ADDITIVE
================================ */
.features {
  max-width: 1200px;
  margin: 0 auto 10vh;
  padding: 0 5vw;

  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap: 2.4rem;
}

.feature {
  position: relative;

  background:
    linear-gradient(135deg, rgba(107,240,209,0.18), rgba(122,162,255,0.18)),
    rgba(18, 26, 52, 0.72);

  background-blend-mode: screen;

  border-radius: var(--radius-lg);
  padding: 2.2rem;
  text-align: center;

  border: 1px solid rgba(107,240,209,.22);

  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));

  box-shadow:
    var(--shadow-deep),
    0 0 36px rgba(107,240,209,.22),
    0 0 52px rgba(122,162,255,.20);

  transition: all .35s var(--ease);
}

.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 25%, rgba(107,240,209,.35), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(122,162,255,.32), transparent 55%);

  mix-blend-mode: screen;
  opacity: .85;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: rgba(107,240,209,.55);

  box-shadow:
    0 20px 60px rgba(0,0,0,.62),
    0 0 44px rgba(107,240,209,.38),
    0 0 62px rgba(122,162,255,.28);
}

.feature h3 {
  margin: 1rem 0 .6rem;
  color: var(--neon-blue);
}

/* ===============================
   TRUST / TEXTOS SEO
================================ */
.trust,
.how-works {
  max-width: 820px;
  margin: 0 auto 10vh;
  padding: 0 5vw;
  text-align: center;
}

.trust h2,
.how-works h2 {
  font-size: 2rem;
  color: var(--neon-blue);
  margin-bottom: 1.4rem;
}

/* How works */
.how-works ol {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}

.how-works li {
  counter-increment: step;
  margin-bottom: 1.8rem;
  padding-left: 3.2rem;
  position: relative;
  line-height: 1.6;
  color: rgba(242,248,255,.92);
}

.how-works li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;

  width: 40px;
  height: 40px;
  border-radius: 50%;

  background: var(--neon-cyan);
  color: #081326;

  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(107,240,209,.35);
}

/* ===============================
   FOOTER
================================ */
.footer {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.20), rgba(0, 77, 255, 0.20)),
    rgba(15, 22, 42, 0.72);

  background-blend-mode: screen;

  border-top: 1px solid rgba(122,162,255,.16);
  padding: 6vh 5vw 4vh;

  box-shadow: 0 -10px 40px rgba(0,0,0,.45) inset;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(160px,1fr));
  gap: 2.2rem;
}

.footer strong {
  color: var(--neon-cyan);
}

/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 1100px) {
  .lang-visible .lang-item:nth-child(n+5) { display: none; }
  .lang-more-btn { display: inline-flex; }
}

@media (max-width: 640px) {
  .lang-visible .lang-item { display: none; }
  .lang-visible .lang-item.active { display: inline-flex; }
  .lang-more-btn { display: inline-flex; }
}

/* ===============================
   ÍCONES — filtros (mantidos)
================================ */

/* Ícone do alerta (Monero — SVG local) */
.xmr-icon {
  filter: invert(30%) sepia(95%) saturate(1800%)
          hue-rotate(10deg) brightness(1.2);
}

.btc-icon {
  filter: invert(65%) sepia(95%) saturate(1800%)
          hue-rotate(10deg) brightness(1.2);
}

.lightning-icon {
  filter: invert(60%) sepia(80%) saturate(300%)
          hue-rotate(130deg);
}

.tor-icon {
  filter: invert(50%) sepia(100%) saturate(500%) hue-rotate(270deg);
}

/* ===============================
   DEMO — VÍDEO + CARROSSEL
================================ */
.demo {
  max-width: 1200px;
  margin: 0 auto 8vh;
  padding: 0 5vw;
  text-align: center;
}

.demo h2 {
  font-size: 2.1rem;
  color: var(--neon-blue);
  margin-bottom: 1rem;
}

.demo .hero-subtitle {
  margin-bottom: 3rem;
}

/* CTA FINAL — hero compacto */
.hero-final {
  min-height: unset;      /* 🔥 remove o vazio */
  padding: 8vh 5vw 8vh;   /* ainda bonito, mas sem exagero */
}

/* ===== CARROSSEL (glass additive) ===== */
.demo-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 3rem;

  border-radius: var(--radius-lg);

  background: transparent;

  background-blend-mode: screen;

  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));

  border: 1px solid rgba(107,240,209,.22);

  box-shadow:
    var(--shadow-deep),
    0 0 42px rgba(107,240,209,.22),
    0 0 58px rgba(122,162,255,.18);

  padding: 42px;

  /* 🔒 ALTURA FIXA — NÃO MUDA */
  height: 600px;
}

/* brilho interno */
.demo-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;

  background:
    radial-gradient(circle at 20% 30%, rgba(107,240,209,.30), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(122,162,255,.28), transparent 55%);

  mix-blend-mode: screen;
  opacity: .75;
}

/* TRACK */
.carousel-track {
  display: flex;
  gap: 2rem;

  cursor: grab;
  user-select: none;

  touch-action: pan-x;          /* 🔥 CORREÇÃO-CHAVE */
  will-change: transform;       /* 🔥 performance mobile */

  transition: transform .45s cubic-bezier(.22,.61,.36,1);
}

.carousel-track:active {
  cursor: grabbing;
}

/* ===== IMAGENS ===== */
.carousel-track img {
  flex: 0 0 100%;
  max-width: 100%;

  height: 500px;
  object-fit: cover;
  object-position: center;

  border-radius: var(--radius-md);

  box-shadow: 0 14px 48px rgba(0,0,0,.52);
  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease);
}

.carousel-track img:hover {
  transform: scale(1.02);
  box-shadow: 0 22px 70px rgba(0,0,0,.72);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .demo-carousel {
    height: 520px;
    padding: 26px;
  }

  .carousel-track img {
    flex: 0 0 100%;
    max-width: 100%;
    height: 440px;
    object-fit: cover;
    object-position: center;
  }
}

/* ===============================
   VISIBILIDADE DESKTOP / MOBILE
================================ */

/* Por padrão: desktop */
.desktop-only { display: block; }
.mobile-only { display: none; }

/* Mobile */
@media (max-width: 768px) {
  .desktop-only { display: none; }
  .mobile-only { display: block; }
}

/* LANDING — corrigir scroll fantasma do layout base */
main.app {
  min-height: auto !important;
}

body {
  overflow-y: auto;
}

/* ===============================
   BANNER SEO
================================ */
.seo-banner{
  max-width: 1200px;
  margin: 0 auto 1vh;
  padding: 0 5vw;
  text-align: center;
}

.seo-banner-img{
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122,162,255,.14);
  box-shadow:
    0 18px 60px rgba(0,0,0,.55),
    0 0 34px rgba(107,240,209,.16);
}


/* ===============================
   DEMO VIDEO — GLASS CINEMA
================================ */
.demo-video {
  max-width: 1100px;
  margin: 0 auto 10vh;
  padding: 0 5vw;
}

.video-glass {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      rgba(107,240,209,0.18),
      rgba(122,162,255,0.18)
    ),
    var(--glass-strong);

  background-blend-mode: screen;

  border: 1px solid rgba(107,240,209,.28);

  backdrop-filter: blur(var(--blur-lg));
  -webkit-backdrop-filter: blur(var(--blur-lg));

  box-shadow:
    var(--shadow-deep),
    0 0 48px rgba(107,240,209,.28),
    0 0 64px rgba(122,162,255,.24);

  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

/* brilho interno */
.video-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;

  background:
    radial-gradient(circle at 20% 25%, rgba(107,240,209,.35), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(122,162,255,.30), transparent 55%);

  mix-blend-mode: screen;
  opacity: .85;
}

/* hover premium */
.video-glass:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 72px rgba(0,0,0,.70),
    0 0 64px rgba(107,240,209,.45),
    0 0 82px rgba(122,162,255,.35);
}

/* VIDEO */
.video-glass video {
  position: relative;
  z-index: 2;

  width: 100%;
  height: auto;
  display: block;

  border-radius: inherit;

  background: #000;
}

/* ===============================
   MOBILE
================================ */
@media (max-width: 768px) {
  .demo-video {
    margin-bottom: 8vh;
  }

  .video-glass {
    border-radius: var(--radius-md);
  }
}


/* ===============================
   PLAY CENTRAL — VIDEO CTA
================================ */
.video-glass {
  cursor: pointer;
}

/* botão play central */
.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;

  width: 96px;
  height: 96px;
  border-radius: 50%;

  display: grid;
  place-items: center;

  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: #081326;

  background:
    linear-gradient(
      135deg,
      var(--neon-cyan),
      var(--neon-blue)
    );

  border: none;
  cursor: pointer;

  z-index: 3;

  box-shadow:
    0 0 42px rgba(107,240,209,.55),
    0 0 72px rgba(122,162,255,.35);

  transition:
    transform .35s var(--ease),
    opacity .25s ease,
    box-shadow .35s var(--ease);
}

/* hover premium */
.video-play-btn:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 60px rgba(107,240,209,.75),
    0 0 96px rgba(122,162,255,.55);
}

/* estado tocando */
.video-glass.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

/* garante clique em qualquer lugar */
.video-glass video {
  cursor: pointer;
}

/* ===============================
   MOBILE AJUSTES
================================ */
@media (max-width: 768px) {
  .video-play-btn {
    width: 72px;
    height: 72px;
    font-size: 2.4rem;
  }
}
