/* =========================================================
   DYANE FRANCO — Editorial Neuroscience Stylesheet
   Tipografia: Fraunces (display variável) · Inter Tight (corpo) · DM Mono (labels)
   ========================================================= */

:root {
  /* Paleta — noite cerebral profunda com toque violeta */
  --noite: #08060e;
  --noite-2: #0f0a1a;
  --noite-3: #18122a;
  --noite-4: #221a3a;

  /* Texto */
  --marfim: #f5f0ff;
  --marfim-soft: #c9c0e0;
  --cinza-sombra: #7a7090;

  /* Cores neurais da marca Dyane (extraídas da logo) */
  --magenta: #ff2d92;
  --magenta-soft: #ff5fad;
  --magenta-deep: #c7166e;

  --ciano: #00d9ff;
  --ciano-soft: #56e8ff;
  --ciano-deep: #0094b5;

  --roxo: #8a3dff;
  --roxo-soft: #a86bff;

  /* Verde-jade mantido como acento (também aparece na logo) */
  --jade: #3de08e;
  --jade-soft: #5fe89f;

  /* Gradients neurais — usados em destaques */
  --grad-neural: linear-gradient(135deg, var(--magenta) 0%, var(--roxo) 50%, var(--ciano) 100%);
  --grad-neural-h: linear-gradient(90deg, var(--magenta) 0%, var(--ciano) 100%);
  --grad-neural-v: linear-gradient(180deg, var(--magenta) 0%, var(--ciano) 100%);

  /* Aliases — compatibilidade com classes antigas (jade era acento principal antes) */
  --jade-deep: #2a9b5f;
  --dourado: #00d9ff;        /* reusado: o "ouro" agora é ciano */
  --dourado-soft: #56e8ff;

  /* Linhas e bordas */
  --linha: rgba(245,240,255,0.08);
  --linha-forte: rgba(245,240,255,0.15);
  --linha-jade: rgba(255,45,146,0.4);   /* glow magenta nos cards */
  --linha-ciano: rgba(0,217,255,0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--noite);
  color: var(--marfim);
  font-family: 'Inter Tight', -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  font-feature-settings: 'ss01', 'cv11';
  /* Ambiente neural — auras magenta + ciano + roxo flutuantes */
  background-image:
    radial-gradient(circle at 80% 0%, rgba(255,45,146,0.10) 0%, transparent 45%),
    radial-gradient(circle at 0% 30%, rgba(0,217,255,0.08) 0%, transparent 45%),
    radial-gradient(circle at 100% 70%, rgba(138,61,255,0.10) 0%, transparent 45%),
    radial-gradient(circle at 20% 100%, rgba(255,45,146,0.07) 0%, transparent 45%);
  background-attachment: fixed;
}

/* ===== Brilho sutil em headlines neurais ===== */
.glow-magenta {
  text-shadow: 0 0 24px rgba(255,45,146,0.4), 0 0 48px rgba(255,45,146,0.2);
}
.glow-ciano {
  text-shadow: 0 0 24px rgba(0,217,255,0.4), 0 0 48px rgba(0,217,255,0.2);
}

/* Gradient text helper */
.grad-text {
  background: var(--grad-neural);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ===== Tipografia ===== */
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ciano);
}
.eyebrow.jade { color: var(--magenta); }
.eyebrow.marfim { color: var(--marfim-soft); }
.eyebrow.dourado { color: var(--ciano); }

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--marfim);
}
h1 { font-variation-settings: 'opsz' 144, 'SOFT' 30; }
h2 { font-variation-settings: 'opsz' 96, 'SOFT' 20; }
h3 { font-variation-settings: 'opsz' 36, 'SOFT' 10; }

em, .ital {
  font-style: italic;
  font-variation-settings: 'opsz' 96, 'SOFT' 80;
}

.serif-light {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

/* ===== NAV ===== */
nav.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 22px 56px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  transition: all 0.4s cubic-bezier(.2,.7,.2,1);
  background: linear-gradient(180deg, rgba(10,14,20,0.85) 0%, rgba(10,14,20,0) 100%);
}
nav.navbar.scrolled {
  background: rgba(10,14,20,0.92);
  backdrop-filter: blur(18px) saturate(140%);
  padding: 16px 56px;
  border-bottom: 1px solid var(--linha);
}
.logo {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 36;
  color: var(--marfim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo .glyph {
  width: 28px; height: 28px;
  display: inline-block;
}
.logo .name { letter-spacing: 0.02em; }
.logo .surname {
  font-style: italic;
  font-weight: 400;
  background: var(--grad-neural-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variation-settings: 'opsz' 36, 'SOFT' 100;
}

.nav-links {
  display: flex; gap: 36px; align-items: center;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav-links a {
  color: var(--marfim-soft);
  position: relative;
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--marfim); }
.nav-links a:not(.btn-wa)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--jade);
  transition: width 0.3s ease;
}
.nav-links a:not(.btn-wa):hover::after { width: 100%; }

.btn-wa {
  background: var(--jade);
  color: var(--noite) !important;
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-wa:hover {
  background: var(--jade-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(61,166,104,0.3);
}
.btn-wa::after { display: none !important; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 56px 100px;
  overflow: hidden;
  background-color: var(--noite);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/ai/hero-home.webp');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  z-index: 0;
  animation: kenburns 28s ease-in-out infinite alternate;
  filter: saturate(1.05);
}
@keyframes kenburns {
  0%   { transform: scale(1.0)  translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, -1%); }
}
.hero::before {
  /* Overlay editorial — escurece pra legibilidade do texto */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(10,14,20,0.92) 0%, rgba(10,14,20,0.78) 35%, rgba(10,14,20,0.45) 65%, rgba(10,14,20,0.6) 100%),
    linear-gradient(180deg, transparent 0%, transparent 70%, var(--noite) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  /* Brilhos neurais — magenta + ciano flutuantes */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255,45,146,0.22) 0%, transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(0,217,255,0.18) 0%, transparent 40%),
    radial-gradient(circle at 60% 100%, rgba(138,61,255,0.15) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
  animation: aurora 14s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { opacity: 0.85; transform: translate(0, 0); }
  50%  { opacity: 1;    transform: translate(2%, -1%); }
  100% { opacity: 0.85; transform: translate(-1%, 1%); }
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 760px;
}
.hero-credit {
  position: absolute;
  bottom: 36px; right: 56px;
  z-index: 2;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--marfim-soft);
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-credit::before {
  content: ''; width: 24px; height: 1px; background: var(--linha-forte);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,45,146,0.25), 0 0 18px rgba(255,45,146,0.8);
  animation: pulse-neon 2.2s ease-in-out infinite;
}
@keyframes pulse-neon {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255,45,146,0.25), 0 0 18px rgba(255,45,146,0.8); }
  50%      { box-shadow: 0 0 0 8px rgba(255,45,146,0.10), 0 0 32px rgba(255,45,146,1); }
}
.hero h1 {
  font-size: clamp(56px, 7.5vw, 124px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 36px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero h1 .ital {
  background: linear-gradient(95deg, var(--magenta) 0%, var(--roxo) 50%, var(--ciano) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
  font-weight: 400;
  filter: drop-shadow(0 0 20px rgba(255,45,146,0.35));
}
.hero h1 .ampersand {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  color: var(--ciano);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.hero p.lead {
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--marfim-soft);
  max-width: 580px;
  margin-bottom: 44px;
  font-weight: 400;
  line-height: 1.55;
}
.hero p.lead em {
  color: var(--marfim);
  font-style: italic;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.2,.7,.2,1);
  text-decoration: none;
  position: relative;
}
.btn-primary {
  background: var(--marfim);
  color: var(--noite);
}
.btn-primary:hover { background: var(--jade-soft); color: var(--noite); transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--marfim);
  border: 1px solid var(--linha-forte);
}
.btn-secondary:hover { background: var(--linha); border-color: var(--marfim-soft); }

/* ===== Botão "A trajetória" — destaque sinapse animada ===== */
@property --btn-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.btn-trajetoria {
  position: relative;
  background: rgba(10,14,20,0.55) !important;
  backdrop-filter: blur(8px);
  border-color: transparent !important;
  isolation: isolate;
  overflow: visible !important;
}
.btn-trajetoria::before {
  /* Borda gradient rotativa (sinapse rolando) */
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 100px;
  padding: 1.5px;
  background: conic-gradient(from var(--btn-angle),
    var(--magenta) 0%,
    var(--roxo) 30%,
    var(--ciano) 55%,
    var(--magenta-soft) 80%,
    var(--magenta) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: btn-spin 3.5s linear infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes btn-spin {
  to { --btn-angle: 360deg; }
}
/* Fallback pra browsers sem @property — gira o pseudo inteiro */
@supports not (background: conic-gradient(from 0deg, red, blue)) {
  .btn-trajetoria::before {
    animation: btn-spin-legacy 3.5s linear infinite;
  }
  @keyframes btn-spin-legacy {
    to { transform: rotate(360deg); }
  }
}
.btn-trajetoria::after {
  /* Halo magenta/ciano pulsante atrás */
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 100px;
  background: radial-gradient(ellipse at center,
    rgba(255,45,146,0.45) 0%,
    rgba(0,217,255,0.18) 50%,
    transparent 75%);
  filter: blur(14px);
  z-index: -1;
  animation: btn-halo 2.6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes btn-halo {
  from { opacity: 0.55; transform: scale(0.95); }
  to   { opacity: 1;    transform: scale(1.08); }
}
.btn-trajetoria .live-dot {
  position: absolute;
  top: -4px; right: 8px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow:
    0 0 0 2px var(--noite),
    0 0 10px rgba(255,45,146,0.9),
    0 0 22px rgba(255,45,146,0.55);
  animation: live-blink 1.5s ease-in-out infinite;
  z-index: 2;
}
@keyframes live-blink {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.35); opacity: 0.65; }
}
.btn-trajetoria:hover {
  background: rgba(10,14,20,0.75) !important;
  transform: translateY(-2px);
}
.btn-trajetoria:hover::before {
  animation-duration: 1.8s; /* gira mais rápido no hover */
}
.btn-trajetoria:hover::after {
  filter: blur(20px);
}
.btn .arrow {
  transition: transform 0.3s ease;
}
.btn:hover .arrow { transform: translateX(4px); }

/* Hero portrait (usado só no /sobre — quando .hero tem grid 2-col) */
.hero.hero--split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.hero.hero--split .hero-bg { display: none; }
.hero.hero--split::before,
.hero.hero--split::after { display: none; }
.hero-portrait {
  position: relative; z-index: 1;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background-size: cover;
  background-position: center 18%;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6),
              0 0 0 1px var(--linha-forte);
}
.hero-portrait::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(10,14,20,0.1) 0%, transparent 30%),
    linear-gradient(180deg, transparent 60%, rgba(10,14,20,0.5) 100%);
  pointer-events: none;
}
.hero-portrait-label {
  position: absolute;
  bottom: 20px; left: 20px;
  padding: 8px 14px;
  background: rgba(10,14,20,0.6);
  backdrop-filter: blur(10px);
  border-radius: 100px;
  border: 1px solid var(--linha-forte);
  z-index: 2;
}
.hero-portrait-label span {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--marfim);
}

/* Stats */
.stats {
  display: flex;
  gap: 56px;
  padding: 32px 0 0;
  margin-top: 32px;
  border-top: 1px solid var(--linha);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat .num {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--marfim);
  font-variation-settings: 'opsz' 96, 'SOFT' 20;
  line-height: 1;
}
.stat .num .ital { color: var(--jade); }
.stat .label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cinza-sombra);
}

/* ===== Divisor com sinapse ===== */
.synapse-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 56px;
  margin: 80px 0 24px;
}
.synapse-divider .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--linha-forte) 30%, var(--linha-forte) 70%, transparent);
}
.synapse-divider .neuron {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--magenta);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--magenta), 0 0 32px rgba(255,45,146,0.5);
  animation: synapse-pulse 3.5s ease-in-out infinite;
}
.synapse-divider .neuron::before,
.synapse-divider .neuron::after {
  content: '';
  position: absolute;
  width: 4px; height: 4px;
  background: var(--ciano);
  border-radius: 50%;
  top: 3px;
  box-shadow: 0 0 8px var(--ciano);
}
.synapse-divider .neuron::before { left: -16px; animation: synapse-pulse 3.5s ease-in-out infinite 0.4s; }
.synapse-divider .neuron::after { right: -16px; animation: synapse-pulse 3.5s ease-in-out infinite 0.8s; }
@keyframes synapse-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.3); }
}
.synapse-divider .line {
  background: linear-gradient(90deg, transparent, rgba(255,45,146,0.3) 30%, rgba(0,217,255,0.3) 70%, transparent);
}

/* ===== Coleção ===== */
.colecao {
  padding: 32px 0;
  position: relative;
}
.colecao-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 0 56px;
  margin-bottom: 28px;
}
.colecao-titulo {
  display: flex; flex-direction: column; gap: 8px;
}
.colecao-titulo h2 {
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 72, 'SOFT' 30;
}
.colecao-titulo h2 .ital {
  background: var(--grad-neural-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 400;
  filter: drop-shadow(0 0 14px rgba(255,45,146,0.2));
}
.colecao-counter {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--cinza-sombra);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
}
.colecao-counter::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--linha-forte);
}

/* Cards row */
.cards-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 12px 56px 32px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--noite-4) transparent;
}
.cards-row::-webkit-scrollbar { height: 4px; }
.cards-row::-webkit-scrollbar-track { background: transparent; }
.cards-row::-webkit-scrollbar-thumb { background: var(--noite-4); border-radius: 4px; }
.cards-row::-webkit-scrollbar-thumb:hover { background: var(--jade-deep); }

/* ===== CARD ===== */
.card {
  flex: 0 0 300px;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  background: var(--noite-2);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), box-shadow 0.4s;
  isolation: isolate;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 28px 56px -12px rgba(0,0,0,0.8),
    0 0 0 1px var(--linha-jade),
    0 0 36px rgba(255,45,146,0.25);
  z-index: 10;
}
.card-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.7s cubic-bezier(.2,.7,.2,1), filter 0.5s ease;
  filter: saturate(0.95);
}
.card:hover .card-img {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1.05);
}

/* Máscara degradê — escura por padrão, clareia no hover */
.card-mask {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,20,0.15) 0%, rgba(10,14,20,0.55) 45%, rgba(10,14,20,0.92) 100%);
  transition: background 0.5s ease, opacity 0.5s ease;
  z-index: 1;
}
.card:hover .card-mask {
  background:
    linear-gradient(180deg, rgba(10,14,20,0.0) 0%, rgba(10,14,20,0.25) 50%, rgba(10,14,20,0.85) 100%);
}

.card-corner-line {
  /* Filete dourado decorativo no canto superior esquerdo */
  position: absolute;
  top: 16px; left: 16px;
  width: 20px; height: 20px;
  border-top: 1px solid var(--dourado);
  border-left: 1px solid var(--dourado);
  z-index: 2;
  opacity: 0.7;
  transition: all 0.4s ease;
}
.card:hover .card-corner-line {
  width: 32px; height: 32px;
  opacity: 1;
}

.card-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 20px;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.card-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ciano);
  margin-bottom: 10px;
  display: inline-block;
  text-shadow: 0 0 12px rgba(0,217,255,0.5);
}
.card h3 {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--marfim);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 36, 'SOFT' 20;
}
.card h3 .ital {
  font-style: italic;
  background: var(--grad-neural-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-variation-settings: 'opsz' 36, 'SOFT' 100;
}
.card-meta {
  font-size: 12px;
  color: var(--marfim-soft);
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0.85;
}
.card-arrow {
  position: absolute;
  bottom: 20px; right: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(244,237,228,0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: all 0.4s cubic-bezier(.2,.7,.2,1);
  transform: translateX(8px);
}
.card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
}
.card-arrow svg { color: var(--marfim); }

/* ===== MODAL ===== */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(10,14,20,0.92);
  backdrop-filter: blur(12px) saturate(140%);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}
.modal-bg.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--noite-2);
  border: 1px solid var(--linha-forte);
  border-radius: 8px;
  max-width: 620px;
  width: 100%;
  overflow: hidden;
  position: relative;
  animation: slideUp 0.4s cubic-bezier(.2,.7,.2,1);
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.7);
}
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  background: rgba(10,14,20,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--linha-forte);
  color: var(--marfim);
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 18px;
  z-index: 3;
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--noite-3);
  transform: rotate(90deg);
}
.modal-img {
  height: 280px;
  background-size: cover;
  background-position: center 25%;
  position: relative;
}
.modal-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,20,0.1) 0%, transparent 50%, var(--noite-2) 100%);
}
.modal-body { padding: 30px 36px 36px; position: relative; }
.modal-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ciano);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 0 12px rgba(0,217,255,0.5);
}
.modal-tag::before {
  content: ''; width: 20px; height: 1px;
  background: var(--grad-neural-h);
}
.modal h2 {
  font-family: 'Fraunces', serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
  font-variation-settings: 'opsz' 72, 'SOFT' 30;
}
.modal-desc {
  color: var(--marfim-soft);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.65;
}
.modal-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 18px 0;
  margin-bottom: 26px;
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}
.modal-info-item {
  padding: 0 20px;
}
.modal-info-item:first-child {
  border-right: 1px solid var(--linha);
  padding-left: 0;
}
.modal-info-item .label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cinza-sombra);
  margin-bottom: 8px;
}
.modal-info-item .value {
  font-size: 14px;
  color: var(--marfim);
  font-weight: 500;
}
.modal-cta {
  display: flex;
  align-items: center; justify-content: center;
  gap: 12px;
  width: 100%;
  background: var(--grad-neural-h);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #fff;
  padding: 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.modal-cta:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,45,146,0.4), 0 0 24px rgba(0,217,255,0.25);
}

/* ===== FAQ ===== */
.faq-section {
  padding: 120px 56px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .eyebrow {
  margin-bottom: 18px;
  display: inline-block;
}
.section-header h2 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  margin-bottom: 18px;
}
.section-header h2 .ital {
  background: var(--grad-neural-h);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 400;
  filter: drop-shadow(0 0 16px rgba(255,45,146,0.25));
}
.section-header p {
  color: var(--marfim-soft);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--linha);
  padding: 24px 0;
  transition: padding 0.3s ease;
}
.faq-item:last-child { border-bottom: 1px solid var(--linha); }
.faq-q {
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--marfim);
  font-variation-settings: 'opsz' 36, 'SOFT' 30;
  gap: 24px;
}
.faq-q-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--linha-forte);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.faq-q-icon::before,
.faq-q-icon::after {
  content: '';
  position: absolute;
  background: var(--marfim);
  transition: transform 0.3s;
}
.faq-q-icon::before { width: 12px; height: 1px; }
.faq-q-icon::after { width: 1px; height: 12px; }
.faq-item.open .faq-q-icon { background: var(--jade); border-color: var(--jade); }
.faq-item.open .faq-q-icon::before { background: var(--noite); }
.faq-item.open .faq-q-icon::after { transform: rotate(90deg); background: var(--noite); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--marfim-soft);
  font-size: 15px;
  line-height: 1.7;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  padding-right: 56px;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 16px;
  opacity: 1;
}

/* ===== FOOTER ===== */
footer {
  background: var(--noite-2);
  padding: 80px 56px 32px;
  border-top: 1px solid var(--linha);
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--linha-jade) 50%, transparent 100%);
}
.footer-top {
  max-width: 1280px;
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo {
  margin-bottom: 18px;
  font-size: 24px;
}
.footer-brand p {
  color: var(--marfim-soft);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--linha-forte);
  border-radius: 100px;
  font-size: 13px;
  color: var(--marfim);
  transition: all 0.25s;
}
.footer-cta:hover {
  background: var(--linha);
  border-color: var(--jade);
  color: var(--jade-soft);
}

.footer-col h4 {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--dourado);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col a {
  display: block;
  color: var(--marfim-soft);
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s, transform 0.2s;
}
.footer-col a:hover {
  color: var(--marfim);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--linha);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--cinza-sombra);
  letter-spacing: 0.02em;
}
.footer-bottom a.credito {
  color: var(--jade);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.footer-bottom a.credito:hover { border-bottom-color: var(--jade); }

/* ===== RESPONSIVO ===== */
@media (max-width: 1024px) {
  .hero { padding: 140px 24px 80px; }
  .hero h1 { font-size: clamp(48px, 11vw, 80px); }
  .hero-bg { background-position: 55% 25%; }
  .hero-credit { right: 24px; bottom: 24px; }
  .hero.hero--split { grid-template-columns: 1fr; gap: 48px; padding: 140px 24px 64px; }
  .hero.hero--split .hero-portrait { max-width: 480px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  nav.navbar { padding: 16px 20px; }
  nav.navbar.scrolled { padding: 12px 20px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.btn-wa) { display: none; }
  .navbar .btn-wa { display: none; }
  .hero .btn-primary {
    background: linear-gradient(95deg, var(--magenta) 0%, var(--roxo) 50%, var(--ciano) 100%);
    background-size: 220% 100%;
    background-position: 0% 50%;
    color: #fff;
    box-shadow: 0 8px 24px rgba(255,45,146,0.25);
  }
  .hero .btn-primary:hover {
    background-position: 100% 50%;
    color: #fff;
    transform: translateY(-2px);
  }
  .hero { padding: 120px 20px 60px; min-height: 90vh; }
  .hero-bg {
    background-position: 42% 28%;
    filter: saturate(1.15) contrast(1.06) brightness(1.05);
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(10,14,20,0.65) 0%, rgba(10,14,20,0.32) 38%, rgba(10,14,20,0.72) 100%);
  }
  .hero::after {
    background-image:
      radial-gradient(circle at 85% 12%, rgba(255,45,146,0.10) 0%, transparent 38%),
      radial-gradient(circle at 10% 88%, rgba(0,217,255,0.08) 0%, transparent 38%);
  }
  .hero-credit { display: none; }
  .stats { flex-wrap: wrap; gap: 24px; }
  .colecao-head { padding: 0 20px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .cards-row { padding: 12px 20px 24px; }
  .card { flex: 0 0 240px; }

  /* ===== Card "ativo" no mobile (auto, quando entra no centro da tela) ===== */
  .card.mobile-active {
    transform: translateY(-6px);
    box-shadow:
      0 28px 56px -12px rgba(0,0,0,0.85),
      0 0 0 1px var(--linha-jade),
      0 0 56px rgba(255,45,146,0.45),
      0 0 100px rgba(0,217,255,0.18);
    z-index: 10;
  }
  .card.mobile-active .card-img {
    transform: scale(1.06);
    filter: saturate(1.12) brightness(1.06);
  }
  .card.mobile-active .card-mask {
    background:
      linear-gradient(180deg, rgba(10,14,20,0.0) 0%, rgba(10,14,20,0.18) 50%, rgba(10,14,20,0.78) 100%);
  }
  .card.mobile-active .card-corner-line {
    width: 32px; height: 32px;
    opacity: 1;
  }
  .card.mobile-active .card-arrow {
    opacity: 1;
    transform: translateX(0);
  }
  .synapse-divider { padding: 0 20px; margin: 56px 0 12px; }
  .faq-section { padding: 80px 20px; }
  .faq-q { font-size: 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  footer { padding: 56px 20px 24px; }
  .modal h2 { font-size: 26px; }
  .modal-body { padding: 24px 24px 28px; }
}

/* ===== Animação ondas EEG no hero (sutil) ===== */
@keyframes eeg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.eeg-line {
  animation: eeg 4s ease-in-out infinite;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Card stagger inside a row */
.cards-row.in .card {
  animation: cardRise 0.7s cubic-bezier(.2,.7,.2,1) backwards;
}
.cards-row.in .card:nth-child(1) { animation-delay: 0.00s; }
.cards-row.in .card:nth-child(2) { animation-delay: 0.06s; }
.cards-row.in .card:nth-child(3) { animation-delay: 0.12s; }
.cards-row.in .card:nth-child(4) { animation-delay: 0.18s; }
.cards-row.in .card:nth-child(5) { animation-delay: 0.24s; }
.cards-row.in .card:nth-child(6) { animation-delay: 0.30s; }
.cards-row.in .card:nth-child(7) { animation-delay: 0.36s; }
.cards-row.in .card:nth-child(8) { animation-delay: 0.42s; }
@keyframes cardRise {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Camada de partículas neurais (canvas opcional, ou pseudo) ===== */
.neural-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.45;
}
.neural-bg::before,
.neural-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 18s ease-in-out infinite alternate;
}
.neural-bg::before {
  width: 480px; height: 480px;
  top: 5%; left: -10%;
  background: var(--magenta);
}
.neural-bg::after {
  width: 520px; height: 520px;
  bottom: 10%; right: -10%;
  background: var(--ciano);
  animation-delay: -6s;
}
@keyframes float {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 8%) scale(1.15); }
}

/* ===== Glow no botão WhatsApp ===== */
.btn-wa {
  box-shadow: 0 0 0 0 rgba(61,224,142,0);
  animation: wa-pulse 3s ease-in-out infinite;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61,224,142,0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(61,224,142,0); }
}
