/* ==========================================================================
   KRYO DIGITAL — Sistema de estilo compartilhado
   Identidade premium, minimalista e tecnológica. Dark mode.
   Fontes: Outfit (display) + Inter (texto). Acento: cyan/blue.
   ========================================================================== */

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

body {
  font-family: "Inter", sans-serif;
  background: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

.font-display {
  font-family: "Outfit", sans-serif;
}

/* Vortex Animation */
.vortex-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  pointer-events: none;
  z-index: 0;
}

.vortex {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(6, 182, 212, 0.4) 0%,
    rgba(59, 130, 246, 0.2) 30%,
    rgba(0, 0, 0, 0) 70%
  );
  animation: vortexPulse 4s ease-in-out infinite;
}

.vortex-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(6, 182, 212, 0.3);
  border-radius: 50%;
  animation: vortexSpin 20s linear infinite;
}

.vortex-ring:nth-child(1) {
  width: 200px;
  height: 200px;
  animation-duration: 15s;
}
.vortex-ring:nth-child(2) {
  width: 400px;
  height: 400px;
  animation-duration: 25s;
  animation-direction: reverse;
}
.vortex-ring:nth-child(3) {
  width: 600px;
  height: 600px;
  animation-duration: 35s;
}

@keyframes vortexPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

@keyframes vortexSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* CTA Pulse */
.cta-pulse {
  animation: ctaPulse 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.8);
    transform: scale(1.02);
  }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(
    135deg,
    #06b6d4 0%,
    #3b82f6 50%,
    #06b6d4 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Device Mockups */
.device-mockup {
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.device-mockup:hover {
  transform: rotateY(-5deg) rotateX(5deg) scale(1.02);
}

.laptop-mockup {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow:
    0 25px 50px -12px rgba(6, 182, 212, 0.25),
    0 0 0 1px rgba(6, 182, 212, 0.1);
  position: relative;
  overflow: hidden;
}

.phone-mockup {
  background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow:
    0 25px 50px -12px rgba(6, 182, 212, 0.3),
    0 0 0 1px rgba(6, 182, 212, 0.1);
  position: absolute;
  bottom: -20px;
  right: -40px;
  z-index: 10;
  overflow: hidden;
}

/* Screen Content with Images */
.screen-content {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #0a0a0a;
}

.screen-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.screen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 182, 212, 0.1) 0%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
}

/* Notifications */
.notification {
  position: absolute;
  background: rgba(6, 182, 212, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  opacity: 0;
  transform: translateY(10px);
  animation: notificationPop 3s ease-in-out infinite;
  z-index: 20;
}

@keyframes notificationPop {
  0%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
  10%,
  90% {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.notification:nth-child(2) {
  top: 60%;
  right: 5%;
  animation-delay: 1s;
}
.notification:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 2s;
}

/* Form Steps */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}

.form-step.active {
  display: block;
}

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

.option-btn {
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.option-btn:hover {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-2px);
}

.option-btn.selected-yes {
  background: rgba(6, 182, 212, 0.2);
  border-color: #06b6d4;
  color: #06b6d4;
}

.option-btn.selected-no {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

/* Progress Bar */
.progress-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  height: 100%;
  transition: width 0.5s ease;
}

/* Revenue Counter */
.revenue-counter {
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 4rem;
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
  }
}

/* Navigation */
.nav-glass {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Grid Pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Project Badge */
.project-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 15;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   NOVOS COMPONENTES — mesma linguagem visual (cyan/blue, dark, glass)
   ========================================================================== */

/* Card base reutilizável (Problemas, Benefícios, Autoridade) */
.kryo-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.kryo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.04);
}

.kryo-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #06b6d4;
  margin-bottom: 1.25rem;
}

/* Variante "dor" — acento âmbar/vermelho sutil */
.kryo-card--pain .kryo-card__icon {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
}
.kryo-card--pain:hover {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.04);
}

/* Cards de Mercado (com link) */
.market-card {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem;
  overflow: hidden;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.market-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 120% at 100% 0%,
    rgba(6, 182, 212, 0.12) 0%,
    rgba(0, 0, 0, 0) 55%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.market-card:hover {
  transform: translateY(-6px);
  border-color: rgba(6, 182, 212, 0.4);
}

.market-card:hover::after {
  opacity: 1;
}

.market-card__arrow {
  transition: transform 0.35s ease;
}

.market-card:hover .market-card__arrow {
  transform: translateX(6px);
}

/* Card de mercado INDISPONÍVEL (sem conteúdo publicado) */
.market-card--disabled {
  cursor: default;
  opacity: 0.55;
}
.market-card--disabled:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.08);
}
.market-card--disabled:hover::after {
  opacity: 0;
}
.market-card__soon {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
}

/* ==========================================================================
   PÁGINAS DE MERCADO — MarketIntro (muito espaço em branco, cards discretos)
   ========================================================================== */
.diff-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.4s ease, background 0.4s ease;
}
.diff-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.03);
}
.diff-card__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  color: #06b6d4;
  margin-bottom: 1rem;
}

/* Placeholder de case (usado enquanto o print real não é enviado) */
.case-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(6, 182, 212, 0.12) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(145deg, #0f172a, #000);
  color: #64748b;
}
.case-placeholder .case-placeholder__label {
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #06b6d4;
}

/* ==========================================================================
   Transição suave entre páginas (View Transitions — progressive enhancement)
   ========================================================================== */
@view-transition {
  navigation: auto;
}
@keyframes vt-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes vt-fade-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}
::view-transition-old(root) {
  animation: vt-fade-out 0.28s ease both;
}
::view-transition-new(root) {
  animation: vt-fade-in 0.32s ease both;
}

/* Timeline de Processo */
.process-line {
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(6, 182, 212, 0.6) 0%,
    rgba(59, 130, 246, 0.2) 100%
  );
}

.process-step {
  position: relative;
  padding-left: 4.5rem;
}

.process-dot {
  position: absolute;
  left: 8px;
  top: 2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #06b6d4;
  background: #000;
  border: 2px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
  z-index: 2;
}

/* Horizontal (desktop) timeline variant reutiliza .process-step no fluxo vertical;
   mantido simples e responsivo para preservar performance. */

/* FAQ Accordion */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item[open] {
  border-color: rgba(6, 182, 212, 0.35);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.35rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-chevron {
  flex-shrink: 0;
  color: #06b6d4;
  transition: transform 0.3s ease;
}

.faq-item[open] summary .faq-chevron {
  transform: rotate(180deg);
}

.faq-item .faq-body {
  padding: 0 1.5rem 1.5rem;
  color: #9ca3af;
  line-height: 1.7;
}

/* Diagnóstico — selo de "ferramenta exclusiva" */
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.08);
  color: #06b6d4;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: #d1d5db;
}

/* Footer link hover */
.footer-link {
  color: #9ca3af;
  transition: color 0.25s ease, padding-left 0.25s ease;
}
.footer-link:hover {
  color: #06b6d4;
  padding-left: 4px;
}

/* Reveal on scroll (aplicado via JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  .vortex,
  .vortex-ring,
  .cta-pulse,
  .gradient-text,
  .whatsapp-float,
  .notification {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }
}
