/* ============================================================
   BASE / RESET
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #121216;
  --ink-2: #1a1a22;
  --ink-3: #1a1a1f;
  /* Cores atualizadas para Azul Tecnológico (Tech Blue) */
  --accent: #38bdf8; 
  --accent-soft: #bae6fd;
  --accent-dim: rgba(56, 189, 248, 0.35);
  --bone: #f5f2ec;
  --muted: #a1a1aa;
  --line: rgba(245, 242, 236, 0.09);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'Fira Code', 'Courier New', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--bone);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Textura de grão sutil */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: overlay;
}

/* ============================================================
   MENU DE NAVEGAÇÃO (INJETADO VIA JS)
   ============================================================ */
#global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 64px;
}

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  padding: 0 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.global-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}

.global-nav a:hover,
.global-nav a.active {
  color: var(--accent);
}

/* ============================================================
   CAMADAS DE FUNDO
   ============================================================ */
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    620px circle at var(--mx, 50%) var(--my, 40%),
    rgba(56, 189, 248, 0.08),
    transparent 55%
  );
  transition: background 0.25s ease;
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.55) 100%);
}

.grid-lines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at 50% 45%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black 20%, transparent 80%);
}

/* ============================================================
   PARTÍCULAS
   ============================================================ */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  box-shadow: 0 0 6px var(--accent);
  animation: drift linear infinite;
}

@keyframes drift {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  10% { opacity: 0.7; }
  90% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-100vh) scale(1); }
}

/* ============================================================
   PALCO / PAINEL
   ============================================================ */
.stage {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin: auto; /* Centraliza o card na tela disponível */
  padding: 100px 20px 40px; /* Espaço para o menu fixo no topo */
  animation: stageIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes stageIn {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel {
  position: relative;
  padding: 72px 56px 64px;
  background: linear-gradient(180deg, rgba(40, 40, 52, 0.85) 0%, rgba(26, 26, 34, 0.95) 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-align: center;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(245, 242, 236, 0.06);
  overflow: hidden;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  animation: lineShift 6s ease-in-out infinite;
}

@keyframes lineShift {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* CANTOS DECORATIVOS */
.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--accent-dim);
  pointer-events: none;
}
.corner.tl { top: 14px;    left: 14px;    border-right: none; border-bottom: none; }
.corner.tr { top: 14px;    right: 14px;   border-left: none;  border-bottom: none; }
.corner.bl { bottom: 14px; left: 14px;    border-right: none; border-top: none; }
.corner.br { bottom: 14px; right: 14px;   border-left: none;  border-top: none; }

/* FOTO */
.photo {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 34px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
  animation: floatSlow 7s ease-in-out infinite;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(56, 189, 248, 0.25),
    0 0 40px rgba(56, 189, 248, 0.12);
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.03) saturate(0.98);
  background: var(--ink-3);
}

.photo::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  opacity: 0.7;
  pointer-events: none;
}

.photo::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(56, 189, 248, 0.18);
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

/* TIPOGRAFIA */
.name {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 8vw, 4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin-bottom: 18px;
  opacity: 0;
  animation: revealText 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.name em {
  font-style: italic;
  color: var(--accent-soft);
}

@keyframes revealText {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 8px auto 20px;
  opacity: 0;
  animation: revealText 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.ornament .line {
  height: 1px;
  width: 48px;
  background: linear-gradient(90deg, transparent, var(--accent-dim));
}
.ornament .line:last-child {
  background: linear-gradient(90deg, var(--accent-dim), transparent);
}

.ornament .diamond {
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--accent-dim);
}

.role {
  font-family: var(--mono);
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  opacity: 0;
  animation: revealText 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.role strong { color: var(--bone); font-weight: 500; }

.typing-container {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent-soft);
  margin-bottom: 32px; /* Aumentado para separar o texto animado do botão */
  min-height: 1.5em;
  opacity: 0;
  animation: revealText 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.intro-text {
  font-family: var(--sans);
  font-size: 0.75rem; /* Deixei o texto menor e mais discreto */
  color: var(--muted);
  line-height: 1.6;
  margin-top: 32px; /* Dá o espaçamento abaixo do botão */
  margin-bottom: 0; /* Remove a margem de baixo */
  padding: 0 10px;
  opacity: 0;
  animation: revealText 1.1s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards; /* A animação entra por último */
  letter-spacing: 0.02em;
}

.intro-text strong {
  color: var(--bone);
  font-weight: 500;
}

.cursor {
  display: inline-block;
  width: 2px;
  background-color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* BOTÃO */
.cta {
  opacity: 0;
  animation: revealText 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 40px;
  min-width: 280px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  background: #128C7E;
  border: 1px solid #128C7E;
  border-radius: 1px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 10px 30px rgba(18, 140, 126, 0.25);
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.btn span { position: relative; z-index: 2; }

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #075E54;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.btn:hover, .btn:focus-visible {
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 40px rgba(18, 140, 126, 0.35);
  outline: none;
}

.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:hover svg { transform: translateX(3px) scale(1.05); }
.btn:active { transform: translateY(1px); }

/* ============================================================
   RODAPÉ (INJETADO VIA JS)
   ============================================================ */
#global-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  background: rgba(18, 18, 22, 0.95);
  border-top: 1px solid var(--line);
  padding: 30px 20px;
  margin-top: auto; /* Empurra o rodapé para o final da tela */
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.footer-content {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.footer-email a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-email a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-social a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s;
}

.footer-social a:hover { color: var(--accent); }

/* ============================================================
   MODAL DE AVISO
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  background: linear-gradient(180deg, rgba(40, 40, 52, 0.98) 0%, rgba(26, 26, 34, 0.98) 100%);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(245, 242, 236, 0.06);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border-top: 1px solid var(--accent);
}

.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }

.modal-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--bone);
  margin-bottom: 20px;
  font-weight: 400;
}

.modal-title em { font-style: italic; color: var(--accent-soft); }

.modal-content {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.modal-content p { margin-bottom: 12px; }
.modal-content strong { color: var(--bone); font-weight: 500; }

.modal-actions { display: flex; gap: 12px; justify-content: center; }

.modal-btn {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.modal-btn.cancel { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.modal-btn.cancel:hover { color: var(--bone); border-color: var(--bone); }
.modal-btn.confirm { background: #128C7E; color: #fff; border: 1px solid #128C7E; }
.modal-btn.confirm:hover { background: #075E54; border-color: #075E54; box-shadow: 0 4px 15px rgba(18, 140, 126, 0.4); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 520px) {
  .panel { padding: 56px 28px 48px; }
  .role { letter-spacing: 0.15em; }
  
  .btn { 
    min-width: 0; 
    width: 100%; 
    padding: 16px 12px;
    letter-spacing: 0.08em;
    font-size: 0.70rem;
  }
  
  .btn span { white-space: nowrap; }
  .btn svg { flex-shrink: 0; width: 20px; height: 20px; }

  .corner { width: 14px; height: 14px; }
  .corner.tl, .corner.tr { top: 10px; }
  .corner.bl, .corner.br { bottom: 10px; }
  .corner.tl, .corner.bl { left: 10px; }
  .corner.tr, .corner.br { right: 10px; }
  .photo { width: 112px; height: 112px; }
  
  .modal-box { padding: 32px 24px; }
  .modal-actions { flex-direction: column; }
  .modal-title { font-size: 1.6rem; }
  
  .global-nav ul { gap: 15px; }
  .global-nav a { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .name, .ornament, .role, .typing-container, .cta {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}