/* Tokens — espelham o tailwind.config.js / index.css do SaaS (mesma cara). */
:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-hover: #1c1c1c;
  --border: #2a2a2a;
  --fg: #f5f5f5;
  --muted: #a0a0a0;
  --hint: #6b6b6b;
  --gold: #c9a961;
  --gold-hover: #d4b876;
  --gold-dim: #8a7340;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --shadow-ios: 0 4px 12px -2px rgb(0 0 0 / 0.4), 0 2px 6px -2px rgb(0 0 0 / 0.2);
  --shadow-ios-lg: 0 12px 32px -8px rgb(0 0 0 / 0.5), 0 4px 12px -4px rgb(0 0 0 / 0.3);
  --maxw: 1080px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "kern", "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
}

h1, h2, h3 { letter-spacing: -0.022em; font-weight: 600; }
h1 { letter-spacing: -0.03em; }

/* Atmosfera: brilho dourado discreto no topo (igual à profundidade sutil do
   app — nada flashy) + leve vinheta nas bordas. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 50% -8%, rgba(201, 169, 97, 0.07), transparent 70%),
    radial-gradient(40% 30% at 90% 4%, rgba(201, 169, 97, 0.03), transparent 70%),
    linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ---- Header ---- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; display: block; }
.brand-name { color: var(--fg); font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand-tag {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 169, 97, 0.3);
  background: rgba(201, 169, 97, 0.08);
  padding: 5px 11px;
  border-radius: 999px;
}

/* ---- Hero ---- */
.hero { max-width: 680px; margin: 0 auto; padding: 52px 24px 26px; text-align: center; }
.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 18px;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 18px;
}
.hero-meta {
  color: var(--hint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  gap: 9px;
  align-items: center;
}
.hero-meta .dot { opacity: 0.5; }

/* ---- Lessons grid ---- */
.lessons {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(296px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}
.card:hover, .card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-ios-lg);
  outline: none;
}
.card:focus-visible { border-color: var(--gold); }

.poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(80% 60% at 28% 18%, rgba(201, 169, 97, 0.08), transparent 60%),
    linear-gradient(160deg, var(--surface-hover), var(--bg));
}
.num-badge {
  position: absolute;
  top: 12px; left: 12px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--gold);
  color: #1a1206;
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(201, 169, 97, 0.45);
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.card:hover .play { transform: scale(1.07); background: rgba(201, 169, 97, 0.16); border-color: var(--gold); }
.card-body { padding: 14px 16px 16px; }
.card-kicker {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  font-weight: 700;
}
.card-title { margin-top: 5px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--fg); }

/* ---- Modal ---- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); }
.modal-panel {
  position: relative; z-index: 1;
  width: min(860px, 100%);
  max-height: 92vh; overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-ios-lg);
  animation: pop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pop { from { transform: scale(0.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
  position: absolute; top: 10px; right: 12px; z-index: 3;
  width: 34px; height: 34px;
  border: none; border-radius: 9px;
  background: rgba(0, 0, 0, 0.5); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background 0.2s;
}
.modal-close:hover { background: rgba(0, 0, 0, 0.75); }
.modal-video { background: #000; min-height: clamp(220px, 44vw, 460px); display: grid; place-items: center; }
.modal-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-video vturb-smartplayer { width: 100%; display: block; }
.modal-placeholder { text-align: center; color: var(--hint); padding: 28px; }
.modal-placeholder .ph-play {
  width: 56px; height: 56px; margin: 0 auto 12px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(201, 169, 97, 0.1); border: 1px solid rgba(201, 169, 97, 0.3);
}
.modal-meta { display: flex; align-items: center; gap: 12px; padding: 15px 18px; }
.modal-num {
  width: 27px; height: 27px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 7px;
  background: var(--gold); color: #1a1206; font-weight: 700; font-size: 13px;
}
.modal-title { font-size: 16.5px; font-weight: 600; color: var(--fg); }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 26px 24px 40px;
  color: var(--hint);
  font-size: 13px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---- Reveal (fadeIn igual ao app) ---- */
.reveal { opacity: 0; transform: translateY(8px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.45s ease-out, transform 0.45s ease-out; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .modal-panel { animation: none; }
}
@media (max-width: 560px) {
  .lessons { grid-template-columns: 1fr; gap: 14px; padding-bottom: 56px; }
  .hero { padding-top: 34px; }
}
