:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --surface: #f9fbfa;
  --surface-strong: #ffffff;
  --ink: #1c2723;
  --muted: #627169;
  --line: #d5ddda;
  --green: #12312b;
  --green-2: #1f594c;
  --teal: #19867a;
  --amber: #b56b1b;
  --blue: #395f90;
  --shadow: 0 20px 50px rgb(20 40 35 / 16%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--green-2);
  text-decoration-color: rgb(31 89 76 / 36%);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--teal);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgb(216 210 197 / 80%);
  background: rgb(246 248 247 / 92%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.04rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

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

.intro {
  position: relative;
  display: grid;
  min-height: calc(100vh - 72px);
  padding: clamp(44px, 7vw, 84px) clamp(20px, 5vw, 72px) 56px;
  overflow: hidden;
  isolation: isolate;
  justify-items: center;
  text-align: center;
}

.intro::before {
  position: absolute;
  inset: auto -8vw -22vw auto;
  z-index: -1;
  width: min(760px, 64vw);
  height: min(520px, 50vw);
  border: 1px solid rgb(18 49 43 / 8%);
  background:
    linear-gradient(90deg, rgb(25 134 122 / 10%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(25 134 122 / 10%) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  transform: rotate(-9deg);
}

.intro-copy {
  max-width: 760px;
}

.hero-logo {
  display: block;
  width: clamp(64px, 9vw, 86px);
  height: auto;
  margin: 0 auto 22px;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.lede {
  max-width: 770px;
  margin-bottom: 20px;
  color: #273833;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  line-height: 1.12;
}

.summary {
  max-width: 720px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.04rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #f4fbf7;
}

.button.primary:hover {
  background: #19463d;
  color: #f4fbf7;
}

.button.secondary {
  border-color: var(--line);
  background: rgb(255 255 255 / 68%);
  color: var(--green);
}

.button.secondary:hover {
  border-color: rgb(25 134 122 / 50%);
  color: var(--teal);
}

.support-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.product-visual {
  align-self: end;
  width: min(100%, 1240px);
  margin-top: clamp(34px, 7vw, 70px);
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  border: 1px solid rgb(18 49 43 / 14%);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.content-band,
.links-section {
  padding: clamp(56px, 8vw, 94px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.content-band {
  background: #ffffff;
}

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

.secondary-band {
  background: #f3f6f5;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.section-inner > h2 {
  max-width: 720px;
  margin-right: auto;
  margin-bottom: 18px;
  margin-left: auto;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-lede {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.feature-grid article {
  min-height: 188px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  text-align: left;
}

.feature-grid h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

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

.provider-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
}

.provider-grid article,
.download-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 152px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.provider-grid span {
  color: var(--green);
  font-weight: 800;
}

.provider-grid p,
.download-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.downloads-band {
  background: #ffffff;
}

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

.download-grid h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.download-grid code {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f6f8f7;
  color: #273833;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.download-grid a {
  align-self: end;
  font-weight: 800;
}

.download-note {
  max-width: 760px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.resource-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
  list-style: none;
  text-align: left;
}

.resource-list li {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 20px;
  padding: 18px 20px;
  background: #ffffff;
}

.resource-list span {
  color: var(--muted);
  font-weight: 700;
}

.resource-list a {
  overflow-wrap: anywhere;
  font-weight: 700;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

.download-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.download-router {
  width: min(100%, 520px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.download-router img {
  width: 72px;
  height: auto;
  margin-bottom: 18px;
}

.download-router h1 {
  max-width: none;
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 0.95;
}

.download-router p {
  margin-bottom: 18px;
  color: var(--muted);
}

.download-router a {
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
  }

  .intro {
    min-height: auto;
  }

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

@media (max-width: 620px) {
  .top-nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(3.4rem, 19vw, 5rem);
  }

  .button {
    width: 100%;
  }

  .product-visual {
    margin-right: -10px;
    margin-left: -10px;
    width: calc(100% + 20px);
  }

  .resource-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
