:root {
  --bg: #0b1020;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef1f8;
  --muted: #a3acc4;
  --accent: #38bdf8;   /* marca pessoal */
  --accent-3: #a78bfa; /* comunidade */
  /* Cores das empresas (iguais às dos sites delas) */
  --eixo: #2fca7a;       /* verde Eixo, para texto sobre fundo escuro */
  --eixo-solid: #0f9d58; /* verde Eixo, para fundos */
  --t2: #5aa2e0;         /* azul T2, para texto sobre fundo escuro */
  --t2-solid: #2b7cc0;   /* azul T2, para fundos */
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  padding: max(40px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
}

a {
  color: inherit;
}

/* Fundo */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 5%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(700px circle at 90% 95%, rgba(167, 139, 250, 0.16), transparent 60%),
    var(--bg);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 20%, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 25%, transparent 70%);
}

.page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

/* Perfil */
.profile {
  text-align: center;
}

.avatar {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 20px;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 200deg, var(--accent), var(--accent-3), var(--accent));
  box-shadow: var(--shadow);
}

.avatar picture,
.avatar img,
.avatar__fallback {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar img,
.avatar__fallback {
  border: 4px solid var(--bg);
  background: #1a2238;
}

.avatar img {
  object-fit: cover;
}

.avatar__fallback {
  display: none;
  place-items: center;
  font-size: 44px;
  font-weight: 800;
}

.avatar.is-fallback picture {
  display: none;
}

.avatar.is-fallback .avatar__fallback {
  display: grid;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.role {
  margin: 8px 0 0;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--accent), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 4px 0 0;
  color: var(--text);
}

.founder {
  margin: 12px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: 0.95rem;
}

.founder a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.founder a:hover {
  text-decoration-color: currentColor;
}

/* Links principais */
.links {
  width: 100%;
  max-width: 480px;
  margin: -24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 14px 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 12px 30px -12px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link svg {
  position: absolute;
  left: 20px;
  width: 24px;
  height: 24px;
  fill: #fff;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(37, 211, 102, 0.8);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social {
  --brand: var(--accent);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social svg {
  width: 22px;
  height: 22px;
  fill: var(--text);
  transition: fill 0.2s ease;
}

.social:hover,
.social:focus-visible {
  transform: translateY(-2px);
  border-color: var(--brand);
  background: var(--surface-hover);
}

.social:hover svg,
.social:focus-visible svg {
  fill: var(--brand);
}

.social--instagram { --brand: #e1306c; }
.social--linkedin  { --brand: #0a8ae6; }
.social--facebook  { --brand: #1877f2; }
.social--github    { --brand: #ffffff; }
.social--wordpress { --brand: #3858e9; }

/* Seções */
.section__title {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section__lead {
  margin: 8px 0 0;
  color: var(--muted);
}

/* Empresas */
.companies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.company,
.community {
  --c: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 55%),
    var(--surface);
  scroll-margin-top: 24px;
}

.company--eixo { --c: var(--eixo); --c-solid: var(--eixo-solid); --c-on: #fff; }
.company--t2   { --c: var(--t2); --c-solid: var(--t2-solid); --c-on: #fff; }
.community     { --c: var(--accent-3); }

.company__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c);
}

.company h3,
.community h2 {
  margin: 6px 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.company p,
.community p {
  margin: 10px 0 0;
  color: var(--muted);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.chips li {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}

.company .company__focus {
  margin-top: 16px;
  color: var(--text);
  font-size: 0.92rem;
}

.company__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  background: var(--surface-hover);
  border-color: var(--c);
}

.btn--primary {
  background: var(--c-solid, var(--c));
  border-color: var(--c-solid, var(--c));
  color: var(--c-on, #0b1020);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: color-mix(in srgb, var(--c-solid, var(--c)) 85%, #fff);
}

/* Na prática */
.router {
  margin-top: 16px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.router__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}

.router ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.router li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.router li:first-child {
  border-top: 0;
}

.router__q {
  color: var(--muted);
}

.router__a {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.router__a--eixo { color: var(--eixo); background: rgba(47, 202, 122, 0.12); }
.router__a--t2   { color: var(--t2); background: rgba(90, 162, 224, 0.14); }
.router__a--both { color: var(--text); background: var(--surface-hover); }

a.router__a:hover {
  text-decoration: underline;
}

/* Comunidade */
.community .company__actions {
  margin-top: 0;
}


/* CTA e rodapé */
.cta {
  text-align: center;
}

.cta p {
  margin: 0 0 14px;
  font-weight: 600;
}

.share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.share:hover,
.share:focus-visible {
  background: var(--surface-hover);
}

.share svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer {
  margin-top: -24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #0b1020;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Animação de entrada */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 560px) {
  .page {
    gap: 48px;
  }

  .company,
  .community {
    padding: 20px;
  }

  .router {
    padding: 16px 18px;
  }

  .router li {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Página de aulas (/aulas) ---------- */
.page--aulas {
  gap: 32px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.back {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.back:hover {
  color: var(--text);
}

.search {
  display: block;
  margin-top: 20px;
}

.search input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  outline: none;
  border-color: var(--accent);
}

.search__empty {
  margin: 12px 0 0;
  color: var(--muted);
}

.courses {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.course {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.course[open] {
  border-color: rgba(56, 189, 248, 0.35);
}

.course summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.course summary::-webkit-details-marker {
  display: none;
}

.course summary:hover {
  background: var(--surface-hover);
}

.course__meta {
  grid-column: 1;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.course__title {
  grid-column: 1;
  font-size: 1.1rem;
  font-weight: 700;
}

.course__count {
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--muted);
  font-size: 0.85rem;
}

.course__count::after {
  content: " ▾";
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.course[open] .course__count::after {
  transform: rotate(180deg);
}

.course h3 {
  margin: 8px 20px 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.lessons {
  list-style: none;
  margin: 0;
  padding: 0 12px 12px;
}

.lessons li[hidden] {
  display: none;
}

.lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

a.lesson:hover,
a.lesson:focus-visible {
  background: var(--surface-hover);
}

.lesson__kind {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
}

.lesson--pending {
  color: var(--muted);
}

.lesson--pending .lesson__kind {
  background: var(--surface-hover);
  color: var(--muted);
}

/* ---------- Página Sobre (/sobre) ---------- */
/* Trajetória */
.timeline {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-3));
  opacity: 0.6;
}

.timeline li {
  position: relative;
  padding: 0 0 24px 36px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.timeline li:last-child::before {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.2);
}

.timeline__year {
  font-weight: 800;
  font-size: 1.05rem;
}

.timeline p {
  margin: 2px 0 0;
  color: var(--muted);
}

.timeline strong {
  color: var(--text);
}

.page--sobre {
  gap: 48px;
}

.crumbs {
  color: var(--muted);
  font-size: 0.9rem;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.about-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: -24px;
}

.about-hero .role {
  margin: 0 0 4px;
}

.about-hero .section__lead {
  margin-top: 8px;
}

.avatar--sm {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  margin: 0;
}

.prose p {
  margin: 0 0 16px;
  font-size: 1.05rem;
  color: #d4d9e6;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 3px;
}

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}

.facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.facts span {
  color: var(--muted);
  font-size: 0.9rem;
}

.beliefs {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.beliefs li {
  position: relative;
  padding-left: 32px;
  font-size: 1.05rem;
}

.beliefs li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.press {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.press__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.press__item:hover,
.press__item:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.press__outlet {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.press__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.press__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #0b1020;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s ease;
}

.press__item:hover .press__cta,
.press__item:focus-visible .press__cta {
  background: color-mix(in srgb, var(--accent) 85%, #fff);
}

.cta .link {
  max-width: 480px;
  margin: 0 auto;
}

.footer a {
  color: inherit;
}

.more {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .about-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .avatar--sm {
    width: 96px;
    height: 96px;
  }
}

.section .prose {
  margin-top: 16px;
}

.facts a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.facts a:hover {
  color: var(--accent);
}

.press__note {
  color: var(--muted);
  font-size: 0.92rem;
}

.story {
  margin: -16px 0 0;
  text-align: center;
}

.story .more {
  margin-top: 0;
  font-size: 1.05rem;
}

/* Menções às empresas sempre nas cores de cada marca */
.brand--eixo { color: var(--eixo); }
.brand--t2   { color: var(--t2); }

a.brand,
.founder a.brand,
.prose a.brand {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
}

a.brand--eixo { color: var(--eixo); }
a.brand--t2   { color: var(--t2); }

a.brand:hover {
  text-decoration-color: currentColor;
}

.timeline .brand--eixo { color: var(--eixo); }
.timeline .brand--t2   { color: var(--t2); }
