/* ============================================================================
   Comunidade Perito S.A — Apresentação Pedagógica
   Identidade visual clonada do v6 (comunidade-perito-sa-v6)
   Paleta IFS: dourado + preto fosso
   ============================================================================ */

:root {
  color-scheme: dark;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Dourado mate premium */
  --gold-300: #d9c08c;
  --gold-400: #c9a65b;
  --gold-500: #b8954a;
  --gold-600: #8a6f37;
  --gold-700: #5c5036;

  /* Preto fosso */
  --ink-900: #0f0f0f;
  --ink-850: #141414;
  --ink-800: #1a1a1a;
  --ink-700: #1f1f1f;
  --ink-600: #262626;
  --ink-500: #2d2d2d;

  /* Off-white */
  --cream-50: #faf7f1;
  --cream-100: #f3ede1;
  --cream-200: #e9e0cc;
  --cream-ink: #2a241a;
  --cream: #F5F1E8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html, body {
  background-color: var(--ink-900);
  color: var(--cream);
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img, picture, svg { display: block; max-width: 100%; height: auto; }

.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

/* ------- CONTAINERS ------- */
.container-lp {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 1.5rem;
}
.container-narrow {
  max-width: 820px;
  margin-inline: auto;
  padding: 0 1.5rem;
}
.container-wide {
  max-width: 1360px;
  margin-inline: auto;
  padding: 0 1.5rem;
}

/* ------- SECTIONS ------- */
.section {
  padding: 4rem 0;
  position: relative;
}
@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}
.section-compact {
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .section-compact { padding: 4rem 0; }
}

/* ------- EYEBROWS ------- */
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 166, 91, 0.35);
  background: rgba(201, 166, 91, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold-300);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
}

.pill-gold {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--ink-900);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ------- TIPOGRAFIA DISPLAY ------- */
.display-xl {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  font-size: clamp(2.25rem, 4.8vw, 3.85rem);
  color: var(--cream);
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  font-size: clamp(2rem, 4vw, 3.25rem);
  color: var(--cream);
}
.display-md {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--cream);
}
.display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  color: var(--cream);
}

.gold { color: var(--gold-400); }

/* ------- HEADER FIXO ------- */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(15, 15, 15, 0.78);
  border-bottom: 1px solid rgba(201, 166, 91, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.brand img {
  width: 38px;
  height: 38px;
  opacity: 0.9;
}
.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cream);
  display: block;
  line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #6b6b6b;
  display: block;
  margin-top: 0.15rem;
}
.header-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--gold-400);
  text-transform: uppercase;
  text-align: right;
}
@media (max-width: 640px) {
  .header-meta { display: none; }
}

/* ------- HERO ------- */
.hero {
  position: relative;
  padding: 7rem 0 3.5rem;
  background: var(--ink-900);
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero { padding: 8.5rem 0 5rem; }
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 166, 91, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 166, 91, 0.6) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80rem;
  max-width: 100vw;
  height: 40rem;
  opacity: 0.4;
  pointer-events: none;
  background: radial-gradient(50% 50% at 50% 0%, rgba(201, 166, 91, 0.2) 0%, transparent 70%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 1fr;
    gap: 3.5rem;
  }
}
.hero h1 {
  margin: 1.25rem 0 1.25rem;
  max-width: 22ch;
}
.hero-lead {
  color: #d4d4d4;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 54ch;
  font-weight: 300;
}
@media (min-width: 768px) {
  .hero-lead { font-size: 1.15rem; }
}
.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--ink-800) 0%, var(--ink-900) 100%);
  border: 1px solid rgba(201, 166, 91, 0.25);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 60px rgba(201, 166, 91, 0.1);
}
@media (min-width: 900px) {
  .hero-photo { margin-left: auto; margin-right: 0; }
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-chip {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 166, 91, 0.3);
  font-size: 0.8rem;
  color: var(--cream);
  font-weight: 600;
}
.hero-chip-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--gold-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-chip-dot svg { width: 14px; height: 14px; }

/* ------- INTRO ------- */
.intro {
  text-align: center;
  color: #b0b0b0;
}
.intro p {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 70ch;
  margin: 1.5rem auto 0;
}
@media (min-width: 768px) {
  .intro p { font-size: 1.15rem; }
}

/* ------- DIVIDER ------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201, 166, 91, 0.45) 50%, transparent 100%);
  margin: 0;
}

/* ------- SECTION HEAD ------- */
.section-head {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 720px;
  margin-inline: auto;
}
.section-head .eyebrow-tag {
  margin-bottom: 1.5rem;
}
.section-head p {
  color: #a0a0a0;
  font-size: 1.05rem;
  line-height: 1.65;
  margin-top: 1rem;
  max-width: 60ch;
  margin-inline: auto;
}

/* ------- CURSOS GRID ------- */
.cursos-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .cursos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .cursos-grid { grid-template-columns: repeat(3, 1fr); }
}

.curso-card {
  position: relative;
  background: var(--ink-800);
  border: 1px solid rgba(201, 166, 91, 0.14);
  border-radius: 16px;
  padding: 1.75rem 1.75rem 1.5rem;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.curso-card:hover {
  border-color: rgba(201, 166, 91, 0.38);
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
.curso-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--gold-500);
  text-transform: uppercase;
  font-weight: 700;
}
.curso-titulo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.25;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.curso-hook {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold-300);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  margin-top: -0.25rem;
}
.curso-desc {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #bdbdbd;
}
.curso-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.curso-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #c5c5c5;
}
.curso-bullets li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--gold-500);
}
.curso-reco {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed rgba(201, 166, 91, 0.2);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #9a9a9a;
}
.curso-reco strong {
  color: var(--gold-400);
  font-weight: 600;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--font-mono);
}

/* ------- DESTAQUE IA ------- */
.ia-section {
  position: relative;
  background: linear-gradient(180deg, var(--ink-900) 0%, #0b0b0b 50%, var(--ink-900) 100%);
  overflow: hidden;
  padding: 5rem 0;
  border-block: 1px solid rgba(201, 166, 91, 0.15);
}
@media (min-width: 768px) {
  .ia-section { padding: 6.5rem 0; }
}
.ia-big-outline {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  opacity: 0.07;
  overflow: hidden;
}
.ia-big-outline span {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
  font-size: clamp(14rem, 32vw, 32rem);
  color: transparent;
  -webkit-text-stroke: 3px rgba(201, 166, 91, 0.6);
  letter-spacing: -0.08em;
}
.ia-inner {
  position: relative;
}
.ia-head {
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.ia-head h2 {
  margin-top: 1.5rem;
}
.ia-head p {
  color: #b5b5b5;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 62ch;
  margin: 1.25rem auto 0;
}
@media (min-width: 768px) {
  .ia-head p { font-size: 1.1rem; }
}

.ia-timeline {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 3rem;
}
.ia-line {
  display: none;
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(201, 166, 91, 0.1) 0%,
    var(--gold-500) 50%,
    rgba(201, 166, 91, 0.1) 100%);
}
@media (min-width: 860px) {
  .ia-line { display: block; }
}
.ia-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  position: relative;
}
@media (min-width: 640px) {
  .ia-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (min-width: 860px) {
  .ia-steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}
.ia-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}
.ia-step-num {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(201, 166, 91, 0.4);
  position: relative;
  z-index: 2;
}
.ia-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--cream);
  max-width: 24ch;
}
.ia-step p {
  color: #9b9b9b;
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 28ch;
}

/* --- IA metodo + ferramentas --- */
.ia-method-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .ia-method-row { grid-template-columns: 1.1fr 1fr; gap: 2rem; }
}
.ia-method-card {
  background: var(--ink-800);
  border: 1px solid rgba(201, 166, 91, 0.2);
  border-radius: 18px;
  padding: 2rem;
}
.ia-method-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.ia-method-card p {
  color: #c0c0c0;
  font-size: 0.95rem;
  line-height: 1.65;
}
.ia-method-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.ia-pillar {
  background: rgba(201, 166, 91, 0.08);
  border: 1px solid rgba(201, 166, 91, 0.25);
  border-radius: 10px;
  padding: 0.85rem 0.75rem;
  text-align: center;
}
.ia-pillar-letter {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--gold-400);
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}
.ia-pillar-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5a5a5;
  display: block;
}
.ia-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ia-tools-list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.93rem;
  line-height: 1.5;
  color: #c0c0c0;
}
.ia-tools-list li::before {
  content: "+";
  color: var(--gold-400);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}
.ia-tools-list strong {
  color: var(--cream);
  font-weight: 700;
}

/* ------- SINTESE ------- */
.sintese {
  background: linear-gradient(180deg, #0a0a0a 0%, var(--ink-900) 100%);
  padding: 5rem 0;
}
.sintese-inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.sintese p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #c0c0c0;
  margin-top: 1.5rem;
}
@media (min-width: 768px) {
  .sintese p { font-size: 1.15rem; }
}
.sintese p + p { margin-top: 1.25rem; }

/* ------- FOOTER ------- */
.footer {
  background: var(--ink-900);
  border-top: 1px solid rgba(201, 166, 91, 0.1);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.footer-brand img { width: 36px; height: 36px; opacity: 0.8; }
.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cream);
  font-size: 0.95rem;
}
.footer-contact {
  color: #7a7a7a;
  font-size: 0.82rem;
  line-height: 1.6;
}
.footer-contact a {
  color: #a0a0a0;
  transition: color 0.2s ease;
}
.footer-contact a:hover { color: var(--cream); }
.footer-contact .dot {
  opacity: 0.4;
  margin: 0 0.5rem;
}
.footer-legal {
  color: #555;
  font-size: 0.72rem;
  max-width: 600px;
  line-height: 1.6;
}

/* ------- FADE IN (scroll) ------- */
.fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade, .fade.visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------- SCROLLBAR ------- */
::selection { background: rgba(201, 166, 91, 0.4); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-900); }
::-webkit-scrollbar-thumb { background: rgba(201, 166, 91, 0.3); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201, 166, 91, 0.5); }
