:root {
  color-scheme: light;
  --ink: #18211f;
  --muted: #5a6661;
  --line: #d8ded8;
  --paper: #f7f8f4;
  --surface: #ffffff;
  --forest: #285744;
  --moss: #dfe9d3;
  --blue: #265d77;
  --amber: #d28b2c;
  --shadow: 0 18px 48px rgba(24, 33, 31, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 222, 216, 0.86);
  background: rgba(247, 248, 244, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--forest);
  color: white;
  font-size: 13px;
}

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

.nav-links a {
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--moss);
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(90deg, rgba(10, 18, 16, 0.84), rgba(10, 18, 16, 0.52) 48%, rgba(10, 18, 16, 0.1)),
    url("video-library.png") center / cover no-repeat;
  color: white;
}

.hero__content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 88px 24px 80px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--moss);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.96;
}

.hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

.hero__actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 16px;
  background: var(--forest);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: #1d4435;
}

.button--light {
  background: white;
  color: var(--ink);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.button--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.section {
  padding: 76px 24px;
}

.section--white {
  background: var(--surface);
}

.section--paper {
  background: var(--paper);
}

.section__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 34px;
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
}

.section-heading p,
.page-title p,
.lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.workflow-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workflow-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(24, 33, 31, 0.1);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.workflow-card:hover,
.workflow-card:focus-visible {
  border-color: rgba(40, 87, 68, 0.42);
  box-shadow: 0 18px 42px rgba(24, 33, 31, 0.14);
  transform: translateY(-1px);
}

.workflow-card:focus-visible {
  outline: 3px solid rgba(40, 87, 68, 0.2);
  outline-offset: 3px;
}

.workflow-card[aria-pressed="true"] {
  border-color: rgba(40, 87, 68, 0.5);
}

.workflow-card__media {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  object-fit: contain;
  background: var(--paper);
}

.workflow-card--primary .workflow-card__media {
  aspect-ratio: 16 / 10.8;
}

.workflow-card__body {
  padding: 18px;
}

.workflow-card h3,
.release-grid h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.workflow-card p,
.release-card p {
  margin: 0;
  color: var(--muted);
}

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

.value-card {
  display: grid;
  gap: 22px;
  min-height: 240px;
  align-content: space-between;
  border: 1px solid rgba(216, 222, 216, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.56));
  padding: 22px;
}

.value-card:nth-child(2n) .value-card__tag {
  color: var(--blue);
}

.value-card:nth-child(3n) .value-card__tag {
  color: #8a5d1d;
}

.value-card__tag {
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.value-card h3 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.page-hero {
  padding: 70px 24px 42px;
  background: var(--surface);
}

.page-title {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.5fr);
  gap: 26px;
  align-items: start;
}

.panel,
.release-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
}

.download-box {
  box-shadow: var(--shadow);
}

.meta-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.meta-row span:first-child {
  color: var(--muted);
}

.code {
  overflow-x: auto;
  border-radius: 8px;
  background: #15211d;
  color: #f0f4ee;
  padding: 16px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.release-list {
  display: grid;
  gap: 18px;
}

.release-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.release-card__header h2 {
  margin: 0;
  font-size: 1.8rem;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0;
}

.release-grid--single {
  grid-template-columns: 1fr;
}

.release-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.checksum {
  margin-top: 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.checksum span {
  display: block;
  color: var(--muted);
  font-family: inherit;
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  color: var(--muted);
}

.site-footer__inner {
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 900px) {
  .workflow-grid,
  .download-layout,
  .release-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .workflow-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 760px;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding: 8px 6px;
    font-size: 0.92rem;
  }

  .workflow-side {
    grid-template-columns: 1fr;
  }

  .workflow-card__media,
  .workflow-card--primary .workflow-card__media {
    aspect-ratio: 16 / 11;
  }

  .value-card {
    min-height: 0;
  }

  .hero__content,
  .section,
  .page-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: 680px;
  }

  .site-footer__inner,
  .meta-row {
    flex-direction: column;
  }
}
