/* Simulados AWS — Guilherme Benfica
   Paleta: azul-noite com dourado (Golden Jacket). Títulos em Bricolage Grotesque, texto em Instrument Sans. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #070b16;
  --bg-2: #0c1428;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --ink: #eef2fb;
  --muted: #9aa8c4;
  --faint: #6f7d9b;
  --line: rgba(255, 255, 255, 0.09);
  --gold: #f5c451;
  --gold-hi: #ffe39a;
  --gold-deep: #c98f22;
  --ink-on-gold: #1d1300;
  --radius: 22px;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 85% -10%, rgba(245, 196, 81, 0.13), transparent 60%),
    radial-gradient(800px 700px at -10% 10%, rgba(76, 110, 255, 0.16), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64l28 16v33M28 64L0 80v33' fill='none' stroke='%23ffffff' stroke-opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--gold); color: var(--ink-on-gold); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- aviso de idioma ---------- */
.hint {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 48px 10px 16px; position: relative;
  background: linear-gradient(90deg, rgba(245, 196, 81, 0.16), rgba(245, 196, 81, 0.06));
  border-bottom: 1px solid rgba(245, 196, 81, 0.25);
  font-size: 15px; color: var(--ink);
}
.hint[hidden] { display: none; }
.hint a { color: var(--gold-hi); font-weight: 600; text-underline-offset: 3px; }
.hint button {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); font-size: 22px; line-height: 1;
}
.hint button:hover { color: var(--ink); background: var(--panel-2); }

/* ---------- topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.hex {
  width: 22px; height: 25px; flex: none;
  background: linear-gradient(160deg, var(--gold-hi), var(--gold-deep));
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.lang { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.lang a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .2s, background .2s;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--ink-on-gold); box-shadow: 0 6px 18px -8px rgba(245, 196, 81, 0.8); }
.lang-code { font-family: var(--display); font-weight: 800; letter-spacing: 0.04em; }
@media (max-width: 560px) { .lang-name { display: none; } .lang a { padding: 0 14px; } }

main, footer { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- hero ---------- */
.hero {
  display: grid; justify-items: center; text-align: center;
  padding: 56px 0 40px;
}
.hero-photo {
  width: 132px; height: 132px; border-radius: 50%; padding: 4px;
  background: conic-gradient(from 210deg, var(--gold-deep), var(--gold-hi), var(--gold), var(--gold-deep));
  box-shadow: 0 18px 50px -18px rgba(245, 196, 81, 0.65);
}
.hero-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }
.eyebrow {
  margin-top: 22px; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold);
}
.hero h1 {
  margin-top: 12px; max-width: 15ch;
  font-family: var(--display); font-weight: 800; font-size: clamp(38px, 7.4vw, 76px); line-height: 1.02; letter-spacing: -0.035em;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-hi), var(--gold) 45%, #ff9d3c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 20px; max-width: 58ch; color: var(--muted); font-size: clamp(17px, 2.1vw, 19px); }
.cta {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 55%, #f0a531);
  color: var(--ink-on-gold); font-weight: 600; font-size: 17px; text-decoration: none;
  box-shadow: 0 16px 40px -14px rgba(245, 196, 81, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform .2s, box-shadow .2s;
}
.cta svg { width: 20px; height: 20px; stroke-width: 2.4; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(245, 196, 81, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.stats {
  margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 640px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden;
}
.stats li { padding: 18px 12px; display: grid; gap: 2px; }
@media (min-width: 980px) { .stats li { padding: 20px 22px; } }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4.4vw, 36px); line-height: 1.1; letter-spacing: -0.02em; }
.stats span { font-size: 14px; color: var(--muted); line-height: 1.3; }
.badges { margin-top: 34px; display: flex; justify-content: center; align-items: center; gap: clamp(4px, 2vw, 18px); }
.badges img { width: clamp(64px, 15vw, 104px); filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45)); transition: transform .3s; }
.badges li:hover img { transform: translateY(-4px) scale(1.05); }

/* ---------- títulos de seção ---------- */
.kicker { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin-top: 8px; }

/* ---------- cursos ---------- */
.courses { padding: 48px 0 24px; scroll-margin-top: 80px; }
.grid { margin-top: 28px; display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  --acc: #9fb3d9;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: linear-gradient(180deg, var(--bg-2), rgba(12, 20, 40, 0.6));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--acc), transparent 85%); }
.c-clf { --acc: #a9bddf; }
.c-aif { --acc: #2ec4b6; }
.c-aib { --acc: #ff4f8b; }
.c-mla { --acc: #6b85ff; }
.card-media { overflow: hidden; aspect-ratio: 750 / 422; background: var(--bg-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.code { padding: 4px 10px; border-radius: 8px; background: color-mix(in srgb, var(--acc) 18%, transparent); color: color-mix(in srgb, var(--acc) 70%, #fff); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); }
.level { color: var(--faint); }
.card h3 { margin-top: 12px; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }
.tag { margin-top: 6px; font-size: 15px; font-weight: 600; color: color-mix(in srgb, var(--acc) 65%, #fff); }
.desc { margin-top: 10px; color: var(--muted); font-size: 16px; }
.facts { font-size: 14px; color: var(--faint); }
.btn {
  margin-top: 20px; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; border-radius: 14px; font-weight: 600; font-size: 16px;
  border: 1px solid rgba(245, 196, 81, 0.45); color: var(--gold-hi); background: rgba(245, 196, 81, 0.06);
  transition: background .2s, color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; stroke-width: 2.4; }
.card-body .btn { margin-top: auto; }
.facts-row { margin: 16px 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.clang { position: relative; z-index: 4; display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); }
.clang[hidden] { display: none; }
.clang button {
  min-width: 48px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.05em;
  transition: background .2s, color .2s;
}
.clang button:hover { color: var(--ink); }
.clang button[aria-pressed="true"] { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--ink-on-gold); }
.card:hover, .card:focus-within { transform: translateY(-4px); border-color: color-mix(in srgb, var(--acc) 45%, transparent); box-shadow: 0 34px 70px -38px color-mix(in srgb, var(--acc) 60%, #000); }
.card:hover .card-media img { transform: scale(1.035); }
.card:hover .btn, .card:focus-within .btn { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--ink-on-gold); border-color: transparent; }
.card:focus-within h3 a:focus-visible { outline: none; }
.card:has(h3 a:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.switch-note { margin-top: 24px; text-align: center; color: var(--muted); font-size: 16px; }
.switch-note a { color: var(--gold-hi); font-weight: 600; text-underline-offset: 3px; }

/* ---------- benefícios ---------- */
.benefits { padding: 56px 0 16px; }
.benefits ul { margin-top: 26px; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .benefits ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .benefits ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.benefits li { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; color: var(--ink-on-gold); background: linear-gradient(135deg, var(--gold-hi), var(--gold)); stroke-width: 2.2; }
.benefits h3 { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.benefits p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* ---------- autor ---------- */
.author {
  margin-top: 56px; display: grid; gap: 22px; align-items: center; grid-template-columns: 1fr;
  padding: 30px; border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.12), rgba(245, 196, 81, 0.02) 60%), var(--panel);
  border: 1px solid rgba(245, 196, 81, 0.22);
}
@media (min-width: 720px) { .author { grid-template-columns: 150px 1fr; padding: 36px 40px; gap: 36px; } }
.author img { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--gold); object-fit: cover; }
@media (min-width: 720px) { .author img { width: 150px; height: 150px; } }
.author p:not(.kicker) { margin-top: 12px; color: var(--muted); max-width: 66ch; }
.author-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(245, 196, 81, 0.4); background: rgba(245, 196, 81, 0.07); color: var(--gold-hi);
  font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s, color .2s, border-color .2s;
}
.pill-link svg { width: 18px; height: 18px; stroke-width: 2.2; flex: none; }
.pill-link:hover { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: var(--ink-on-gold); border-color: transparent; }

/* ---------- FAQ ---------- */
.faq { padding: 56px 0 8px; max-width: 820px; }
.faq h2 { margin-bottom: 18px; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 2px; font-weight: 600; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(245, 196, 81, 0.45);
  background: linear-gradient(var(--gold), var(--gold)) center / 12px 2px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 2px 12px no-repeat;
  transition: background-color .2s, border-color .2s;
}
summary:hover::after { border-color: var(--gold); }
details[open] summary::after {
  border-color: transparent;
  background: linear-gradient(var(--ink-on-gold), var(--ink-on-gold)) center / 12px 2px no-repeat, linear-gradient(135deg, var(--gold-hi), var(--gold));
}
details p { padding: 0 2px 20px; color: var(--muted); max-width: 70ch; }

/* ---------- rodapé ---------- */
footer { padding-top: 48px; padding-bottom: 40px; color: var(--faint); font-size: 14px; display: grid; gap: 10px; }
.social { display: flex; gap: 18px; }
.social a { color: var(--muted); font-weight: 600; text-underline-offset: 3px; }
.social a:hover { color: var(--ink); }

/* ---------- desktop: hero em duas colunas ---------- */
@media (min-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); grid-template-areas: "eyebrow photo" "h1 photo" "lede photo" "cta photo" "stats badges";
    justify-items: start; text-align: left; column-gap: 48px; padding: 80px 0 48px;
  }
  .hero-photo { grid-area: photo; justify-self: center; align-self: center; width: 280px; height: 280px; padding: 6px; }
  .eyebrow { grid-area: eyebrow; margin-top: 0; }
  .hero h1 { grid-area: h1; max-width: 17ch; }
  .lede { grid-area: lede; }
  .cta { grid-area: cta; }
  .stats { grid-area: stats; }
  .badges { grid-area: badges; align-self: center; justify-self: center; margin-top: 40px; }
  .badges img { width: 84px; }
}

/* ---------- entrada animada ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero > *, .card { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero-photo { animation-delay: .05s; }
  .eyebrow { animation-delay: .1s; }
  .hero h1 { animation-delay: .16s; }
  .lede { animation-delay: .24s; }
  .cta { animation-delay: .32s; }
  .stats { animation-delay: .4s; }
  .badges { animation-delay: .48s; }
  .card:nth-child(1) { animation-delay: .2s; }
  .card:nth-child(2) { animation-delay: .28s; }
  .card:nth-child(3) { animation-delay: .36s; }
  .card:nth-child(4) { animation-delay: .44s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
