:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #5b665f;
  --line: #d9ddd4;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --copper: #b46e35;
  --copper-dark: #74441d;
  --green: #00462c;
  --green-soft: #d9eadf;
  --gold: #f0b95a;
  --shadow: 0 24px 80px rgba(28, 24, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(23, 33, 29, 0.1);
  background: rgba(251, 250, 245, 0.88);
  backdrop-filter: blur(14px);
}

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

.brand img {
  border-radius: 9px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover {
  color: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(120deg, rgba(217, 234, 223, 0.78), transparent 44%),
    linear-gradient(180deg, #fffdf8 0%, #f2eee1 100%);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--copper-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lede {
  max-width: 60ch;
  color: #34413a;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: #fffdf8;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover {
  transform: translateY(-1px);
}

.hero-media {
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 8px;
  background: #1b211e;
  box-shadow: var(--shadow);
}

.hero-media img,
figure img {
  display: block;
  width: 100%;
  height: auto;
}

.notice {
  padding: 16px clamp(18px, 4vw, 56px);
  border-block: 1px solid #d8c39d;
  background: #fff3d7;
  color: #50320f;
}

.section {
  padding: clamp(54px, 7vw, 104px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.download-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.download-card,
.feature-grid article,
.limits,
.terminal {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.download-card,
.feature-grid article {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.download-card.featured {
  background: var(--green);
  color: #f8fff9;
}

.download-card.featured .tag,
.download-card.featured p {
  color: #d6eadc;
}

.download-card.featured .button.primary {
  border-color: #f8fff9;
  background: #f8fff9;
  color: var(--green);
}

pre {
  overflow-x: auto;
  max-width: 100%;
  margin: 0;
  padding: 14px;
  border-radius: 6px;
  background: #17211d;
  color: #f7f0df;
  font-size: 0.9rem;
  line-height: 1.45;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

p code,
li code {
  padding: 0.1em 0.32em;
  border-radius: 4px;
  background: rgba(0, 70, 44, 0.1);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.terminal {
  padding: 16px;
  background: #ffffff;
}

.terminal pre {
  min-height: 220px;
}

.screenshots {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding-top: 0;
}

figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-table {
  display: grid;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.project-table [role="row"] {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 140px;
  gap: 18px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}

.project-table [role="row"]:first-child {
  border-top: 0;
}

.table-head {
  background: #edf5ee;
  color: #2c4437;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-table a {
  color: var(--green);
  font-weight: 850;
}

.limits {
  padding: 24px;
}

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

.limits li + li {
  margin-top: 10px;
}

.support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.support p {
  max-width: 760px;
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: #d9eadf;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .screenshots {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

@media (max-width: 700px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  nav a {
    padding-left: 0;
    padding-right: 12px;
  }

  .download-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .project-table,
  .project-table [role="row"],
  .table-head {
    display: block;
  }

  .table-head {
    display: none;
  }

  .project-table [role="row"] {
    padding: 18px;
  }

  .project-table span {
    display: block;
  }

  .project-table span + span {
    margin-top: 8px;
  }

  pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

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