/* Jarvis investor site - estilos complementares ao Tailwind */

* {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

code, .font-mono {
  font-family: 'JetBrains Mono', ui-monospace, 'Consolas', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Orb holográfico do Jarvis — iframe com Three.js.
   Decoração de fundo na hero. Sem interação, sem scroll. */
.jarvis-orb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  /* glow amber por trás do canvas pra reforcar presenca sem pesar shader */
  background:
    radial-gradient(circle at 50% 45%, rgba(251, 191, 36, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(180, 83, 9, 0.08) 0%, transparent 45%);
}

@media (prefers-reduced-motion: reduce) {
  .jarvis-orb { display: none; }
}

/* Phase list */
.phase {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s;
}

.phase:hover {
  border-color: rgba(34, 211, 238, 0.3);
}

.phase-marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.phase-done .phase-marker {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.4);
}

.phase-active .phase-marker {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 211, 238, 0.3); }
  50% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.6); }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Selection */
::selection {
  background: rgba(34, 211, 238, 0.3);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #0a0e1a;
}
::-webkit-scrollbar-thumb {
  background: rgba(34, 211, 238, 0.2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 211, 238, 0.4);
}

/* Utility: gradient border card */
.gradient-border {
  position: relative;
  background: linear-gradient(#0a0e1a, #0a0e1a) padding-box,
              linear-gradient(135deg, #22d3ee, #3b82f6) border-box;
  border: 1px solid transparent;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .jarvis-orb { opacity: 0.45; }
  html { scroll-padding-top: 64px; }
}

/* Telas bem pequenas: tira o orb Three.js (economia de bateria/GPU,
   evita disputa de espaco com o headline curto) */
@media (max-width: 480px) {
  .jarvis-orb { display: none; }
}

/* Permite quebra de palavra grande em mobile (nome longo, URN, etc) */
@media (max-width: 640px) {
  h1, h2, h3, p, li, summary { overflow-wrap: anywhere; word-break: normal; }
}

/* Previne overflow horizontal causado por qualquer elemento */
html, body { overflow-x: hidden; width: 100%; max-width: 100vw; }
body { -webkit-text-size-adjust: 100%; }
* { min-width: 0; }
img, video { max-width: 100%; height: auto; }
iframe:not(.jarvis-orb) { max-width: 100%; }

/* Hero: altura natural em mobile (evita o salto da barra de endereco no Safari/Chrome mobile) */
.hero-section {
  min-height: auto;
}
@media (min-width: 768px) {
  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
  }
}

/* Melhora tap targets em mobile */
@media (max-width: 768px) {
  button, a.inline-block, summary { min-height: 44px; }
}
