/* main.css — Redesign Premium "Lex Aurea" */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ── Variables ── */
:root {
  --navy-deep:   #07101E;
  --navy-mid:    #0F1C33;
  --navy-light:  #1B2A4A;
  --navy-card:   rgba(255,255,255,0.04);
  --navy-border: rgba(255,255,255,0.08);
  --gold:        #C9A84C;
  --gold-dim:    rgba(201,168,76,0.18);
  --gold-faint:  rgba(201,168,76,0.07);
  --white:       #FFFFFF;
  --text-primary:   rgba(255,255,255,0.92);
  --text-secondary: rgba(255,255,255,0.55);
  --text-muted:     rgba(255,255,255,0.30);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--navy-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Screens ── */
.screen { display: none; min-height: 100vh; }
.screen.active { display: flex; flex-direction: column; }

/* ═══════════════════════════════════════════
   WELCOME SCREEN
═══════════════════════════════════════════ */
#screen-welcome {
  position: relative;
  background: linear-gradient(160deg, #07101E 0%, #0D1A2E 50%, #101E36 100%);
  align-items: center;
  padding: 48px 24px 56px;
  overflow: hidden;
}

/* ── Background decoration ── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(201,168,76,0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow--tl {
  width: 500px; height: 500px;
  top: -180px; left: -180px;
  background: rgba(201,168,76,0.05);
}
.bg-glow--br {
  width: 600px; height: 600px;
  bottom: -200px; right: -200px;
  background: rgba(37,99,235,0.06);
}

/* ── Spline background robot ── */
.spline-bg {
  position: fixed;
  bottom: -60px;
  right: -80px;
  width: 440px;
  height: 440px;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
  overflow: hidden;
  border-radius: 50%;
  mask-image: radial-gradient(ellipse 80% 80% at 60% 60%, black 30%, transparent 100%);
}
.spline-bg spline-viewer {
  width: 100%;
  height: 100%;
}

/* ── Inner wrapper ── */
.welcome-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

/* ── Header ── */
.welcome__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeUp 0.7s var(--ease-out) both;
}

.welcome__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.welcome__badge::before { content: '●'; font-size: 6px; }

.welcome__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

/* Logo real — fundo removido, branca, fundida ao fundo escuro */
.logo-img {
  height: 110px;
  width: auto;
  opacity: 0.92;
  mix-blend-mode: screen;
  filter:
    brightness(1.15)
    drop-shadow(0 0 18px rgba(255,255,255,0.12))
    drop-shadow(0 2px 6px rgba(0,0,0,0.4));
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.header-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 200px;
  color: var(--gold);
  font-size: 8px;
  opacity: 0.5;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}
.divider-diamond { letter-spacing: 0; }

.welcome__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
}
.welcome__title em {
  font-style: italic;
  color: var(--gold);
}

.welcome__subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   SPECIALIST GRID
═══════════════════════════════════════════ */
.specialist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
}

/* ── Card ── */
.specialist-card {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: var(--navy-card);
  border: 1px solid var(--navy-border);
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  opacity: 0;
  animation: cardReveal 0.6s var(--ease-out) forwards;
  min-height: 160px;
}

.specialist-card:nth-child(1) { animation-delay: 0.10s; }
.specialist-card:nth-child(2) { animation-delay: 0.17s; }
.specialist-card:nth-child(3) { animation-delay: 0.24s; }
.specialist-card:nth-child(4) { animation-delay: 0.31s; }
.specialist-card:nth-child(5) { animation-delay: 0.38s; }
.specialist-card:nth-child(6) { animation-delay: 0.45s; }

.specialist-card:hover {
  transform: translateY(-5px);
  background: var(--clight);
  border-color: var(--c);
  box-shadow:
    0 0 0 1px var(--c),
    0 12px 48px var(--cglow),
    0 4px 12px rgba(0,0,0,0.5);
}

.specialist-card:active { transform: translateY(-2px) scale(0.99); }

/* Left color bar */
.card-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c);
  border-radius: 16px 0 0 16px;
  transition: width 0.3s var(--ease-out);
  z-index: 1;
}
.specialist-card:hover .card-bar { width: 5px; }

/* Robot image column */
.card-robot {
  flex-shrink: 0;
  width: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 8px 8px;
  position: relative;
}

.card-robot-img {
  width: 100px;
  height: auto;
  display: block;
  animation: robotFloat 3.6s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
  transition: filter 0.3s ease;
}
.specialist-card:hover .card-robot-img {
  filter: drop-shadow(0 8px 20px var(--cglow, rgba(0,0,0,0.5)));
}

@keyframes robotFloat {
  0%,100% { transform: translateY(0px) rotate(0deg); }
  30%      { transform: translateY(-7px) rotate(0.8deg); }
  70%      { transform: translateY(-4px) rotate(-0.5deg); }
}

/* Delay diferente por card para não sincronizar */
.specialist-card:nth-child(1) .card-robot-img { animation-delay: 0s; }
.specialist-card:nth-child(2) .card-robot-img { animation-delay: 0.6s; }
.specialist-card:nth-child(3) .card-robot-img { animation-delay: 1.2s; }
.specialist-card:nth-child(4) .card-robot-img { animation-delay: 0.3s; }
.specialist-card:nth-child(5) .card-robot-img { animation-delay: 0.9s; }
.specialist-card:nth-child(6) .card-robot-img { animation-delay: 1.5s; }

/* Body */
.card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px 18px 12px;
  justify-content: center;
}

.card-tag {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c);
}

.card-name {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.card-desc {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.6;
  transition: color 0.3s ease;
}
.specialist-card:hover .card-desc { color: rgba(255,255,255,0.78); }

/* CTA */
.card-cta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--c);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
  margin-top: 2px;
}
.specialist-card:hover .card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ── */
.welcome__footer {
  text-align: center;
  animation: fadeUp 0.7s var(--ease-out) 0.5s both;
}

.welcome__disclaimer {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1000px) {
  .specialist-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .specialist-grid { grid-template-columns: 1fr; gap: 12px; }
  .welcome-inner { gap: 28px; }
  #screen-welcome { padding: 28px 16px 44px; }
  .card-robot { width: 90px; }
  .card-robot-img { width: 82px; height: 120px; }
  .welcome__subtitle { font-size: 14px; }
}
