:root {
  color-scheme: light;
  --paper: #f7faf8;
  --paper-soft: #edf4ef;
  --ink: #10201c;
  --muted: #5e6d68;
  --line: #cddbd4;
  --terminal: #071411;
  --accent: #00a884;
  --accent-dark: #007b63;
  --cyan: #0097a7;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(16, 32, 28, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 32, 28, 0.055) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(0deg, rgba(16, 32, 28, 0.04) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(0, 168, 132, 0.3);
}

.nav-links {
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(16, 32, 28, 0.12);
  border-radius: 999px;
  background: rgba(247, 250, 248, 0.82);
}

.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(1240px, calc(100% - 32px));
  margin: 58px auto 0;
  padding: 38px 0 72px;
}

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

.eyebrow,
.card-kicker,
.feature-number {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  line-height: 0.98;
}

h1 {
  max-width: 940px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7.4vw, 7.6rem);
  letter-spacing: -0.035em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4.1vw, 4.5rem);
  letter-spacing: -0.025em;
}

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

.hero-lede,
.section-heading p,
.preview-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 900;
}

.button-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 7px 7px 0 rgba(0, 168, 132, 0.3);
}

.button-secondary {
  border: 1px solid var(--ink);
  background: rgba(247, 250, 248, 0.78);
}

.hero-card {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: 26px;
  border: 1px solid rgba(16, 32, 28, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.hero-icon {
  width: min(180px, 46vw);
  border-radius: 24px;
}

.hero-card strong {
  display: block;
  margin: 8px 0 8px;
  font-size: 2rem;
  line-height: 1.02;
}

.hero-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.preview-section {
  width: min(1720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 0;
}

.preview-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
  gap: 34px;
  align-items: end;
  width: min(1240px, 100%);
  margin: 0 auto 28px;
}

.screenshot-frame {
  display: block;
  overflow: auto;
  border: 1px solid rgba(16, 32, 28, 0.16);
  border-radius: var(--radius);
  background: var(--terminal);
  box-shadow: var(--shadow);
}

.screenshot-frame img {
  width: 100%;
  min-width: 960px;
  border: 0;
}

.section {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.74fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.compact-heading {
  display: block;
  max-width: 820px;
}

.download-grid,
.feature-grid {
  display: grid;
  gap: 16px;
}

.download-grid {
  grid-template-columns: 1.08fr repeat(2, 0.96fr);
}

.download-card,
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.download-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.download-card:hover,
.download-card:focus-visible {
  border-color: var(--accent);
  box-shadow: 8px 8px 0 rgba(0, 168, 132, 0.22);
  transform: translate(-2px, -2px);
}

.download-card strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.08;
}

.download-card span:last-child {
  color: var(--muted);
}

.primary-card {
  background: var(--terminal);
  color: var(--white);
}

.primary-card .card-kicker {
  color: var(--accent);
}

.primary-card span:last-child {
  color: #dffcf3;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 98px;
}

.feature-grid article {
  min-height: 254px;
  padding: 24px;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(16px, calc((100vw - 1240px) / 2));
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin: 0;
  color: #dffcf3;
}

.site-footer div {
  display: flex;
  gap: 18px;
  font-weight: 800;
}

.site-footer a {
  color: var(--accent);
}

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

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

  .hero,
  .preview-heading,
  .section-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 24px;
  }

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

  .screenshot-frame img {
    min-width: 760px;
  }
}

@media (max-width: 620px) {
  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

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

  .screenshot-frame img {
    min-width: 680px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
