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

/* ── PRELOADER ── */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hide {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  z-index: 2;
}

.preloader-logo {
  width: 120px;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  animation: preloaderFadeIn 0.8s ease forwards 0.3s;
}

.preloader-brand {
  margin-top: 1.5rem;
  opacity: 0;
  animation: preloaderFadeIn 0.6s ease forwards 0.8s;
}

.preloader-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  color: #ffffff;
  letter-spacing: 3px;
}

.preloader-divider {
  color: #06b6d4;
  margin: 0 1rem;
  font-weight: 300;
}

.preloader-tagline {
  font-size: 1.1rem;
  background: linear-gradient(90deg, #c7d9ed, #b0e0e8, #73d8e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.preloader-bar-container {
  width: 350px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 2.5rem auto 1rem;
  overflow: hidden;
  opacity: 0;
  animation: preloaderFadeIn 0.4s ease forwards 1.2s;
}

.preloader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #67e8f9);
  border-radius: 10px;
  transition: width 0.1s linear;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4), 0 0 30px rgba(6, 182, 212, 0.4);
}

.preloader-percent {
  font-size: 0.9rem;
  color: #67e8f9;
  font-weight: 600;
  letter-spacing: 2px;
  opacity: 0;
  animation: preloaderFadeIn 0.4s ease forwards 1.2s;
}

.preloader-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.preloader-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #06b6d4;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 3s ease-in-out infinite;
}

@keyframes preloaderFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes particleFloat {

  0%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }

  50% {
    opacity: 0.6;
    transform: translateY(-30px);
  }
}

/* ── PRELOADER RESPONSIVO 768px+ ── */
@media (min-width: 768px) {
  .preloader-logo {
    width: 160px;
  }

  .preloader-name {
    font-size: 3.5rem;
  }

  .preloader-tagline {
    font-size: 0.85rem;
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .preloader-bar-container {
    width: 400px;
    height: 8px;
  }

  .preloader-percent {
    font-size: 1.1rem;
  }
}

:root {
  --bg: #0a0a0a;
  --card-bg: #111111;
  --text-primary: #ffffff;
  --text-secondary: #d0d0d0;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #a855f7;
  --accent-green: #10b981;
  --glow-purple: rgba(139, 92, 246, 0.4);
  --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 55px;
  background: var(--bg);
  border: none;
}

.container>.hero+.ticker {
  margin-top: 0;
}

section {
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 91vh;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: none;
  outline: none;
}

/* Hero full width no mobile */
@media (max-width: 480px) {
  .hero {
    width: 100vw;
    height: calc(91vh + 4px);
    /* estende 4px além do viewport para esconder o artefato de clip */
    margin-left: calc(-50vw + 50%);
    margin-bottom: -28px;
    /* gap(24px) + extensão(4px) */
    position: relative;
    z-index: 1;
  }

  .ticker {
    position: relative;
    z-index: 2;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: 16px;
    padding-right: 16px;
  }

  .preloader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .preloader-divider {
    display: none;
  }

  .preloader-name {
    font-size: 2.6rem;
  }

  .preloader-tagline {
    font-size: 1.3rem;
    background: linear-gradient(90deg, #c7d9ed, #b0e0e8, #73d8e8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* Imagem de fundo */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 1;
}

/* Placeholder */
.hero-bg-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #1a1030 0%, #0d0d1a 50%, #0a0a0a 100%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-placeholder svg {
  color: rgba(139, 92, 246, 0.2);
}

/* Fumaça */
.hero-fog {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top,
      rgba(10, 10, 10, 1) 0%,
      rgba(10, 10, 10, 0.95) 15%,
      rgba(10, 10, 10, 0.7) 40%,
      transparent 100%);
  z-index: 2;
}

/* Conteúdo */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.hero-welcome {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.text-purple {
  color: var(--accent-purple-light);
  font-weight: 600;
}

/* Hero animations */
.hero-welcome,
.hero-title,
.hero-subtitle,
.hero-cta,
.hero-scroll {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.6s ease forwards;
}

.hero-welcome {
  animation-delay: 3.0s;
}

.hero-title {
  animation-delay: 3.3s;
  transform: translateY(30px);
}

.hero-subtitle {
  animation-delay: 3.6s;
}

.hero-cta {
  animation-delay: 3.9s;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-cta {
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #c7d9ed, #b0e0e8, #73d8e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  filter: brightness(1.2);
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.6s ease forwards 4.2s, bounce 2s infinite 4.8s;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

/* CTA Mini Site */
.cta-mini-site {
  position: relative;
  overflow: hidden;
  border: none;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cta-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 24px;
}

.cta-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.cta-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.cta-mini-site .card-btn {
  background: white;
  color: #5b21b6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-mini-site .card-btn::after {
  background: linear-gradient(90deg, transparent, rgba(91, 33, 182, 0.2), transparent);
}

.cta-bg {
  object-position: center 100% !important;
}

/* Profile */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0 30px;
}

.profile-img-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.profile-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-purple);
  box-shadow: 0 0 25px var(--glow-purple);
}

.status-dot {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  background: var(--accent-green);
  border-radius: 50%;
  border: 3px solid var(--bg);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-purple-light);
  background: rgba(139, 92, 246, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Cards */
.card {
  position: relative;
  min-height: 380px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.card:active {
  transform: scale(0.98);
}

/* Hover effect - desktop e mobile */
.card-hover {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.card-hover:hover,
.card-hover.active {
  border-color: var(--accent-purple);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
  transform: translateY(-4px);
}

/* Imagem de fundo */
.card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 10% center;
  z-index: 1;
}

/* Placeholder (quando não tiver imagem) */
.card-bg-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-bg-placeholder svg {
  color: rgba(139, 92, 246, 0.3);
}

/* Fumaça / gradiente */
.card-fog {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.9) 25%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.2) 75%,
      transparent 100%);
  z-index: 2;
}

/* Conteúdo */
.card-content {
  position: relative;
  z-index: 3;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Botão gradiente */
.card-btn {
  margin-top: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(91, 33, 182, 0.3);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.card-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine-btn 3s infinite;
}

@keyframes shine-btn {
  0% {
    left: -100%;
  }

  50%,
  100% {
    left: 200%;
  }
}

.card-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 30px rgba(139, 92, 246, 0.5);
}

/* Card Site - destaque */
.card-site .card-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Ajuste de posição das imagens */
.card-landing .card-bg {
  object-position: center 20%;
}

.card-anuncios .card-bg {
  object-position: center 20%;
}

/* ═══ ANIMAÇÕES DOS CARDS ═══ */

/* Base - todos os cards com animação */
.anim-flip,
.anim-shine,
.anim-glow,
.anim-bounce,
.anim-glitch,
.anim-blur {
  opacity: 0;
  transition: all 0.3s ease;
}

/* 0. FLIP - Landing Pages */
.anim-flip {
  perspective: 1000px;
}

.anim-flip.visible {
  opacity: 1;
  animation: flipIn 1.2s ease forwards;
}

@keyframes flipIn {
  0% {
    opacity: 0;
    transform: rotateY(-90deg);
  }

  100% {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

/* 1. SHINE SWEEP - Landing Pages */
.anim-shine {
  overflow: hidden;
}

.anim-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  z-index: 10;
  pointer-events: none;
}

.anim-shine.visible {
  opacity: 1;
}

.anim-shine.visible::after {
  animation: shineSweep 0.8s ease forwards 0.3s;
}

@keyframes shineSweep {
  to {
    left: 150%;
  }
}

/* 2. GLOW - Anúncios */
.anim-glow {
  border: 1px solid transparent;
}

.anim-glow.visible {
  opacity: 1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(139, 92, 246, 0.2);
  }

  50% {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
  }
}

/* 3. SLIDE FROM LEFT - Agente de IA */
.anim-bounce.visible {
  opacity: 1;
  animation: slideFromLeft 0.8s ease forwards;
}

@keyframes slideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 4. GLITCH - Vídeos */
.anim-glitch.visible {
  opacity: 1;
  animation: glitchIn 0.6s ease forwards;
}

@keyframes glitchIn {
  0% {
    opacity: 0;
    transform: translateX(-5px);
    filter: hue-rotate(90deg);
  }

  20% {
    opacity: 1;
    transform: translateX(5px);
    filter: hue-rotate(0deg);
  }

  40% {
    transform: translateX(-3px);
  }

  60% {
    transform: translateX(2px);
  }

  80% {
    transform: translateX(-1px);
  }

  100% {
    transform: translateX(0);
  }
}

/* 5. BLUR - Sistemas */
.anim-blur.visible {
  opacity: 1;
  animation: blurIn 0.8s ease forwards;
}

@keyframes blurIn {
  0% {
    opacity: 0;
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* 6. SURGE - Aparece do nada */
.anim-surge {
  opacity: 0;
  transform: scale(0.8);
}

.anim-surge.visible {
  opacity: 1;
  transform: scale(1);
  animation: surgeIn 0.8s ease forwards;
}

@keyframes surgeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  60% {
    transform: scale(1.03);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 7. SLIDE FROM RIGHT - Entra pela direita */
.anim-slide-right {
  opacity: 0;
}

.anim-slide-right.visible {
  opacity: 1;
  animation: slideFromRight 0.8s ease forwards;
}

@keyframes slideFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 8. SLIDE FROM LEFT - Entra pela esquerda */
.anim-slide-left {
  opacity: 0;
}

.anim-slide-left.visible {
  opacity: 1;
  animation: slideFromLeftCard 0.8s ease forwards;
}

@keyframes slideFromLeftCard {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}