/* ==========================================================================
   KYcurso — Página flagship "Claude Code: Crie Apps sem Programar"
   Camada visual adicional sobre styles.css (reaproveita tokens, botões,
   currículo em acordeão, FAQ). Aqui entram: hero 3D, glass cards, gradientes
   e animações de scroll dramáticas — o pedido explícito foi "site com cara
   de curso de tecnologia", não um documento estático.
   ========================================================================== */

:root {
  --void-950: #021827;
  --void-900: #042238;
  --void-850: #082d45;
  --glass-border: rgba(255, 255, 255, 0.09);

  --neon-violet: #149889;
  --neon-violet-soft: #47cabb;
  --neon-cyan: #39b9a9;

  --grad-hero: linear-gradient(120deg, var(--brand-teal) 0%, var(--brand-gold) 52%, var(--brand-teal-light) 100%);
}

body.flagship {
  background: var(--void-950);
  color: var(--paper-100);
}

body.flagship a { color: inherit; }

/* ---------- Texto em gradiente ---------- */
.grad-text {
  background: var(--grad-hero);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .grad-text { animation: none; } }
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Header (variante escura translúcida) ---------- */
body.flagship .site-header {
  background: rgba(8, 7, 12, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
body.flagship .site-header.is-scrolled { border-color: var(--glass-border); }
body.flagship .logo, body.flagship .nav-links a { color: var(--paper-100); }
body.flagship .nav-links a:hover { color: var(--neon-violet-soft); }
body.flagship .brand-logo--light { display: none; }
body.flagship .brand-logo--dark { display: block; }

/* ---------- Botão animado (CTA principal) ---------- */
.btn-glow {
  position: relative;
  background: var(--grad-hero);
  background-size: 200% auto;
  color: var(--void-950);
  font-weight: 800;
  border: none;
  overflow: hidden;
  animation: grad-shift 6s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 18px 40px -14px rgba(20, 152, 137, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-glow:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 22px 48px -12px rgba(20, 152, 137, 0.7);
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}
.btn-glow:hover::before { transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) {
  .btn-glow, .btn-glow::before { animation: none; transition: none; }
}

/* ---------- Fundo 3D fixo (visível discretamente na página inteira) ---------- */
html { background: var(--void-950); }
body.flagship { background: transparent; }

.bg-3d-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 22%, rgba(20, 152, 137, 0.16), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(246, 183, 60, 0.08), transparent 30%),
    linear-gradient(145deg, #021421 0%, #031d2e 48%, #02131f 100%);
}
#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.76; /* ajustado dinamicamente via JS conforme o scroll */
  transition: opacity 0.4s ease;
  filter: saturate(1.16) contrast(1.08);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
  pointer-events: none;
}
.hero-glow.a { width: 560px; height: 560px; background: var(--neon-violet); top: -140px; right: -100px; }
.hero-glow.b { width: 460px; height: 460px; background: var(--neon-cyan); bottom: -160px; left: -120px; opacity: 0.2; }
.neural-status {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(241, 239, 233, 0.62);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.neural-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-teal-light);
  box-shadow: 0 0 14px var(--brand-teal-light);
  animation: neural-pulse 1.8s ease-in-out infinite;
}
@keyframes neural-pulse { 50% { opacity: 0.35; transform: scale(0.7); } }
@media (max-width: 760px) {
  #hero-3d { opacity: 0.48; }
  .neural-status { display: none; }
}

/* Todo o conteúdo real fica acima do fundo 3D */
body.flagship > header,
body.flagship > section,
body.flagship > footer,
body.flagship > .sticky-cta,
body.flagship > .exit-modal {
  position: relative;
  z-index: 1;
}

/* ---------- Hero ---------- */
.hero-flagship {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 96px;
  overflow: hidden;
}
.hero-flagship .container { position: relative; z-index: 2; }
.hero-flagship-copy { max-width: 780px; }
.hero-flagship h1 {
  color: var(--paper-100);
  font-size: clamp(2.2rem, 5vw, 3.9rem);
  line-height: 1.05;
}
.hero-flagship .hero-sub { color: var(--paper-200); max-width: 56ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); }

/* ---------- Faixa de destaques (stat highlights) ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--glass-border);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-top: 44px;
  backdrop-filter: blur(6px);
}
.stat-cell {
  background: rgba(20, 17, 30, 0.6);
  padding: 20px 18px;
  text-align: center;
}
.stat-cell .num {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--paper-100);
  display: block;
}
.stat-cell .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--paper-200);
  text-transform: uppercase;
  margin-top: 6px;
  display: block;
}
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Glass cards (destaques de informação) ---------- */
.glass-section { background: rgba(8, 7, 12, 0.86); position: relative; }
.glass-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 44px);
  backdrop-filter: blur(8px);
}

/* Origem do curso — bloco de destaque */
.origin-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.origin-block .glass-card p { color: var(--paper-200); font-size: 1.02rem; }
.origin-visual { display: grid; gap: 14px; }
.origin-row {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 13px; color: var(--paper-200);
  padding: 14px 18px; border: 1px solid var(--glass-border); border-radius: var(--radius-s);
  background: rgba(255,255,255,0.03);
}
.origin-row strong { color: var(--brass-300); font-family: var(--font-body); }
@media (max-width: 860px) { .origin-block { grid-template-columns: 1fr; } }

/* Promessa: grid de "você vai sair sabendo" */
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.promise-card {
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.promise-card:hover { transform: translateY(-4px); border-color: rgba(20,152,137,0.48); }
.promise-card .icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--grad-hero); background-size: 200% auto;
  display: flex; align-items: center; justify-content: center;
  color: var(--void-950); font-family: var(--font-display); font-weight: 700; font-size: 18px;
  margin-bottom: 16px;
}
.promise-card h3 { font-size: 1.02rem; color: var(--paper-100); margin-bottom: 8px; }
.promise-card p { font-size: 14px; color: var(--paper-200); margin: 0; }
@media (max-width: 900px) { .promise-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .promise-grid { grid-template-columns: 1fr; } }

/* Não promete / Serve pra quem */
.reality-check { display: flex; gap: 14px; align-items: flex-start; }
.reality-check .x { color: var(--danger-600); font-weight: 800; flex-shrink: 0; }
.reality-check .check { color: var(--neon-cyan); font-weight: 800; flex-shrink: 0; }

.audience-pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.audience-pill {
  font-family: var(--font-mono); font-size: 13px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--glass-border); background: rgba(255,255,255,0.03); color: var(--paper-200);
}

/* ---------- Currículo flagship (reaproveita .module/.module-head do styles.css) ---------- */
body.flagship .curriculum-list { border-top: 1px solid var(--glass-border); }
body.flagship .module { border-bottom: 1px solid var(--glass-border); }
body.flagship .module-chevron { color: var(--neon-violet-soft); }
body.flagship .module-num { color: var(--brass-300); }

/* ---------- Oferta flagship ---------- */
.offer-flagship {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.offer-flagship .price-old {
  font-family: var(--font-mono); font-size: 14px; color: var(--paper-200);
  text-decoration: line-through; opacity: 0.7;
}
.offer-flagship .price-new {
  font-family: var(--font-display); font-size: clamp(3rem, 7vw, 4.4rem);
  margin-top: 6px;
}
.offer-flagship .price-install { font-family: var(--font-mono); color: var(--paper-200); font-size: 14px; margin-top: 8px; }
.alt-offer {
  margin-top: 36px; padding-top: 28px; border-top: 1px dashed var(--glass-border);
  font-size: 14.5px; color: var(--paper-200);
}
.alt-offer a { color: var(--neon-cyan); text-decoration: underline; font-weight: 600; }

/* ---------- Grid de 2 ofertas lado a lado ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 44px;
  align-items: stretch;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.pricing-card.primary {
  order: -1;
  position: relative;
  background: linear-gradient(180deg, rgba(20,152,137,0.16), rgba(255,255,255,0.02));
  border: 1px solid rgba(57, 185, 169, 0.58);
  box-shadow: 0 0 0 1px rgba(20, 152, 137, 0.2), 0 40px 80px -30px rgba(20, 152, 137, 0.6);
  --reveal-scale: 1.055;
  padding-top: 40px;
}
.pricing-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-hero);
  background-size: 200% auto;
  color: var(--void-950);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 24px -8px rgba(20, 152, 137, 0.7);
}
.pricing-name {
  font-size: 1.05rem;
  color: var(--paper-100);
  margin-top: 18px;
  min-height: 2.6em;
}
.price-new--primary {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--paper-100);
  text-shadow: 0 0 28px rgba(20, 152, 137, 0.85), 0 0 60px rgba(246, 183, 60, 0.28);
  margin-top: 4px;
}
@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.primary { --reveal-scale: 1; order: 0; }
}

/* ---------- Modal de retenção (exit-intent) ---------- */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 3, 8, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.exit-modal.is-visible { opacity: 1; pointer-events: auto; }
.exit-modal-card {
  position: relative;
  max-width: 440px;
  width: 100%;
  text-align: center;
  background: var(--void-850);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s ease;
}
.exit-modal.is-visible .exit-modal-card { transform: translateY(0) scale(1); }
.exit-modal-card h3 { font-size: 1.3rem; color: var(--paper-100); margin-top: 10px; }
.exit-modal-card p { color: var(--paper-200); font-size: 14.5px; margin-top: 14px; margin-bottom: 24px; }
.exit-modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--paper-200);
}
.exit-modal-close:hover { color: var(--paper-100); }
@media (prefers-reduced-motion: reduce) {
  .exit-modal, .exit-modal-card { transition: none; }
}

/* ---------- Reveal dramático (scroll) ---------- */
body.flagship .reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1), filter 0.7s ease;
}
body.flagship .reveal.is-visible { opacity: 1; transform: translateY(0) scale(var(--reveal-scale, 1)); filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  body.flagship .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Stagger helper */
.stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

body.flagship footer.site-footer { background: rgba(8, 7, 12, 0.9); border-top: 1px solid var(--glass-border); }
body.flagship .testi-person strong { color: var(--paper-100); }
body.flagship .testi-person span { color: var(--paper-200); }
