/* ============================================================
   XadrezValle — CSS compartilhado das páginas de curso
   Tokens idênticos à landing (index.html)
   ============================================================ */
:root {
  --bg: #0a0f0d;
  --bg-2: #0d1512;
  --bg-3: #111c17;
  --card: #0f1915;
  --card-2: #14211b;
  --border: rgba(150, 216, 186, 0.12);
  --border-strong: rgba(150, 216, 186, 0.24);
  --green: #2e9e72;
  --green-bright: #4fd6a0;
  --green-deep: #16543e;
  --mint: #a8e6c9;
  --text: #ecf5f0;
  --text-2: #a9bcb2;
  --text-3: #71867a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(79, 214, 160, 0.28); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(79, 214, 160, 0.2); border-radius: 4px; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(10, 15, 13, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.4s var(--ease);
}
.header.scrolled { padding: 0.7rem 2rem; }
.header .logo img { height: 34px; width: auto; }
.header nav { display: flex; align-items: center; gap: 2rem; }
.header nav a { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text); transition: color 0.25s; }
.header nav a:hover { color: var(--mint); }
.header .nav-cta {
  background: var(--green);
  color: #06271a;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.header .nav-cta:hover { background: var(--green-bright); transform: translateY(-1px); }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  width: 42px; height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Layout geral */
.wrap { max-width: 1180px; margin: 0 auto; }
.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: var(--green); opacity: 0.6; }

/* Hero do curso */
.curso-hero {
  padding: 9.5rem 2rem 4.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(46, 158, 114, 0.16), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(28, 110, 80, 0.18), transparent 55%),
    var(--bg);
}
.curso-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(168, 230, 201, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 230, 201, 0.5) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.crumb { font-size: 0.8rem; color: var(--text-3); margin-bottom: 1.6rem; position: relative; z-index: 1; }
.crumb a { color: var(--text-2); transition: color 0.25s; }
.crumb a:hover { color: var(--mint); }
.curso-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative; z-index: 1;
}
.curso-cat {
  display: inline-block;
  background: rgba(46, 158, 114, 0.16);
  border: 1px solid rgba(46, 158, 114, 0.35);
  color: var(--green-bright);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.curso-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 20ch;
}
.curso-hero .desc {
  margin-top: 1.2rem;
  max-width: 52ch;
  color: var(--text-2);
  font-size: 1.04rem;
}
.curso-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.8rem;
}
.curso-meta .m {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-2);
}
.curso-meta svg { width: 18px; height: 18px; stroke: var(--green-bright); }
.curso-meta .stars { display: inline-flex; gap: 2px; }
.curso-meta .stars svg { width: 15px; height: 15px; fill: var(--green-bright); stroke: none; }

/* Card de compra */
.buy-card {
  background: linear-gradient(165deg, #12241c 0%, #0e1a15 55%, #0b1410 100%);
  border: 1px solid rgba(79, 214, 160, 0.28);
  border-radius: 24px;
  padding: 2.2rem 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 70px rgba(46,158,114,0.06);
  position: relative;
  overflow: hidden;
}
.buy-card::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 158, 114, 0.2), transparent 70%);
}
.buy-card .thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.4rem;
  aspect-ratio: 16/9;
  position: relative; z-index: 1;
}
.buy-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.buy-card .price { position: relative; z-index: 1; }
.buy-card .price .old { font-size: 0.92rem; color: var(--text-3); text-decoration: line-through; }
.buy-card .price .now { font-family: 'Fraunces', serif; font-size: 2.5rem; font-weight: 600; color: var(--mint); line-height: 1.1; }
.buy-card .price .now small { font-size: 1rem; font-weight: 500; color: var(--text-2); }
.buy-card .price .inst { color: var(--text-2); font-size: 0.9rem; margin-top: 0.3rem; }
.buy-card .cta-buy {
  margin-top: 1.5rem;
  width: 100%;
  background: var(--green-bright);
  color: #052016;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease);
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.buy-card .cta-buy:hover { background: #7fe8bd; transform: translateY(-2px); }
.buy-card .cta-plano {
  margin-top: 0.8rem;
  width: 100%;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.buy-card .cta-plano:hover { border-color: var(--green); color: var(--mint); }
.buy-note { margin-top: 1rem; font-size: 0.76rem; color: var(--text-3); text-align: center; position: relative; z-index: 1; }
.buy-card .included-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(79, 214, 160, 0.12);
  border: 1px solid rgba(79, 214, 160, 0.3);
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.buy-card .included-tag svg { width: 15px; height: 15px; stroke: var(--green-bright); }

/* Seções internas */
.curso-sec { padding: 4rem 2rem; }
.curso-sec h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  margin-bottom: 1.8rem;
  max-width: 24ch;
}
.curso-sec h2 em { color: var(--green-bright); font-style: italic; font-weight: 500; }
.aprender-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.6rem; }
.aprender-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text-2);
  font-size: 0.95rem;
  list-style: none;
}
.aprender-grid li svg { flex-shrink: 0; width: 19px; height: 19px; stroke: var(--green-bright); margin-top: 0.2rem; }
.para-quem { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.9rem; }
.para-quem span {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.3rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.para-quem strong { color: var(--mint); font-weight: 600; }

/* CTA final */
.final-cta {
  text-align: center;
  padding: 5.5rem 2rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(168, 230, 201, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 230, 201, 0.6) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.final-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  max-width: 22ch;
  margin: 0 auto;
  position: relative; z-index: 1;
}
.final-cta h2 em { color: var(--green-bright); font-style: italic; font-weight: 500; }
.final-cta p { margin: 1rem auto 0; max-width: 50ch; color: var(--text-2); position: relative; z-index: 1; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  margin-top: 2rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  position: relative; z-index: 1;
}
.btn-primary {
  background: var(--green);
  color: #06271a;
  box-shadow: 0 10px 34px rgba(46, 158, 114, 0.35);
}
.btn-primary:hover { background: var(--green-bright); transform: translateY(-2px); }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 2.5rem;
  background: var(--bg);
}
.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer .logo img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer p { color: var(--text-3); font-size: 0.85rem; max-width: 32ch; }
.footer h4 { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer ul a { color: var(--text-3); font-size: 0.88rem; transition: color 0.25s; }
.footer ul a:hover { color: var(--mint); }
.footer .socials { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.footer .socials a {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.footer .socials a:hover { border-color: var(--green); background: rgba(46,158,114,0.1); transform: translateY(-2px); }
.footer .socials svg { width: 17px; height: 17px; fill: var(--text-2); }
.footer .socials a:hover svg { fill: var(--mint); }
.footer-bottom {
  max-width: 1180px;
  margin: 2.8rem auto 0;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-3);
}
.footer-bottom .pay { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.footer-bottom .pay span {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  color: var(--text-2);
}

/* Reveal */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }

/* Responsivo */
@media (max-width: 980px) {
  .curso-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .header nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 1rem; right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .header nav.open a { padding: 0.7rem 0.6rem; border-radius: 8px; }
  .header nav.open a:hover { background: rgba(46,158,114,0.1); }
  .header nav.open .nav-cta { text-align: center; margin-top: 0.4rem; }
  .curso-hero { padding: 8rem 1.2rem 3.5rem; }
  .curso-sec { padding: 3.2rem 1.2rem; }
  .aprender-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
