:root {
  color-scheme: dark;
  --bg: #070907;
  --panel: #10140f;
  --panel-strong: #151b12;
  --text: #f5f7ef;
  --muted: #bac5ae;
  --line: rgba(216, 255, 151, 0.18);
  --accent: #a6ff1f;
  --accent-strong: #68d900;
  --danger: #ff3b30;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #090d08 0%, var(--bg) 42rem, #050605 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(7, 9, 7, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(166, 255, 31, 0.42);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(166, 255, 31, 0.2), rgba(104, 217, 0, 0.05));
  color: var(--accent);
  box-shadow: 0 0 26px rgba(166, 255, 31, 0.18);
}

.brand__text {
  font-size: 15px;
  letter-spacing: 0;
}

.brand__text strong {
  color: var(--accent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line);
  color: var(--text);
  outline: none;
}

.hero {
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #020402;
}

.hero__image {
  display: block;
  width: 100%;
  height: clamp(300px, 64vh, 650px);
  object-fit: cover;
  object-position: center;
}

.intro,
.toolbar,
.catalog-grid,
.empty-state,
.access {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 22px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
  text-transform: uppercase;
}

.intro__copy p:last-child {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
}

.intro__stats {
  min-width: 118px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 20, 15, 0.78);
  text-align: center;
}

.intro__stats strong {
  display: block;
  color: var(--accent);
  font-size: 34px;
  line-height: 1;
}

.intro__stats span {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.toolbar {
  position: sticky;
  top: 72px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(7, 9, 7, 0.96), rgba(7, 9, 7, 0.84));
  backdrop-filter: blur(16px);
}

.search {
  display: grid;
  grid-template-columns: auto minmax(180px, 360px);
  align-items: center;
  gap: 10px;
}

.search span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d110c;
  color: var(--text);
  font: inherit;
  padding: 0 14px;
}

.search input:focus {
  border-color: rgba(166, 255, 31, 0.72);
  box-shadow: 0 0 0 3px rgba(166, 255, 31, 0.12);
  outline: none;
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.result-count span {
  color: var(--text);
  font-weight: 800;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  padding: 12px 0 56px;
}

.course-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 20, 15, 0.92);
  box-shadow: var(--shadow);
}

.course-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #030503;
}

.course-card__body {
  display: grid;
  min-height: 150px;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  padding: 16px;
}

.course-card__number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.course-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.16;
  text-transform: uppercase;
}

.course-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.course-card__link {
  align-self: end;
  justify-self: start;
  padding: 9px 12px;
  border: 1px solid rgba(166, 255, 31, 0.36);
  border-radius: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.course-card__link:hover,
.course-card__link:focus-visible {
  background: rgba(166, 255, 31, 0.12);
  outline: none;
}

.empty-state {
  padding: 48px 0 80px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.access {
  margin-bottom: 42px;
  padding: clamp(28px, 7vw, 72px);
  border: 1px solid rgba(166, 255, 31, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 9, 7, 0.96), rgba(7, 9, 7, 0.72)),
    url("../images/155_o-acesso-a-qualquer-curso-e-apenas-r-20-00-isso-me-ajuda-na_f7c80d8fd2.jpg") center / cover;
  box-shadow: var(--shadow);
}

.access__content {
  max-width: 680px;
}

.access h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.04;
  text-transform: uppercase;
}

.access p:not(.eyebrow) {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(166, 255, 31, 0.6);
  border-radius: 8px;
  background: var(--accent);
  color: #071006;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  background: #c4ff63;
  outline: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-header,
  .intro,
  .toolbar,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-header {
    position: static;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .hero__image {
    height: clamp(220px, 50vh, 430px);
  }

  .toolbar {
    position: static;
  }

  .search {
    grid-template-columns: 1fr;
  }

  .intro__stats {
    width: 100%;
  }
}
