:root {
  color-scheme: dark;
  --bg: #081014;
  --panel: #101a20;
  --text: #f5f8f8;
  --muted: #a7b5b8;
  --line: rgba(255, 255, 255, 0.16);
  --cyan: #38d8ee;
  --green: #65e073;
  --amber: #f7bc39;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  min-height: 92vh;
  display: grid;
  grid-template-rows: auto 1fr;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 16, 20, 0.96), rgba(8, 16, 20, 0.72) 43%, rgba(8, 16, 20, 0.42)),
    linear-gradient(180deg, rgba(8, 16, 20, 0.08), var(--bg)),
    url("og.png") center / cover no-repeat;
}

.topbar {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.navlinks a:hover,
footer a:hover {
  color: var(--cyan);
}

.hero__content {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 64px 0 112px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 9vw, 7.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  color: #d8e1e3;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 750;
}

.button--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #031014;
}

.button--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

main {
  background: var(--bg);
}

.section {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
  border-top: 1px solid var(--line);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: 48px;
  align-items: start;
}

h2 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

.intro p:last-child,
.featured > p + h2 + .resource-list,
.faq p {
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.category-grid article {
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.category-grid h3 {
  margin-bottom: 10px;
  font-size: 1.12rem;
}

.category-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.resource-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.resource-list a {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--panel);
}

.resource-list a:hover {
  border-color: rgba(56, 216, 238, 0.72);
}

.resource-list span {
  font-weight: 800;
}

.resource-list small {
  color: var(--muted);
  font-size: 0.98rem;
}

.faq {
  padding-bottom: 96px;
}

details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.08rem;
}

details p {
  max-width: 860px;
  margin: 14px 0 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 16px 42px;
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .hero {
    min-height: 88vh;
    background:
      linear-gradient(180deg, rgba(8, 16, 20, 0.94), rgba(8, 16, 20, 0.76), var(--bg)),
      url("og.png") center / cover no-repeat;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .navlinks {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero__content {
    padding: 54px 0 84px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .intro,
  .category-grid,
  .resource-list a {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }
}
