:root {
  color-scheme: light;
  --bg: #f0f6f4;
  --surface: rgba(252, 255, 254, 0.74);
  --surface-strong: #fbfefd;
  --text: #17312f;
  --muted: #627a77;
  --line: rgba(30, 74, 69, 0.14);
  --accent: #397d73;
  --accent-strong: #26665e;
  --accent-soft: rgba(57, 125, 115, 0.11);
  --grid-line: rgba(43, 100, 92, 0.02);
  --serif: "Iowan Old Style", "Songti SC", "STSong", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  transition: color 180ms ease, background-color 180ms ease;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
select {
  font: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
}

.header-inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 66px;
  margin-inline: auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hero {
  display: grid;
  min-height: 680px;
  padding-block: 96px 86px;
  align-items: center;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  gap: 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(50px, 6.8vw, 66px);
  line-height: 1.06;
}

.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  gap: 18px;
}

.hero-actions span {
  color: var(--muted);
  font-size: 13px;
}

.download-button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 28%, transparent);
  opacity: 0.48;
  cursor: not-allowed;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-image {
  display: block;
  width: min(100%, 760px);
  height: auto;
  object-fit: contain;
}

.section {
  padding-block: 92px;
}

.section-heading {
  display: grid;
  margin-bottom: 42px;
  grid-template-columns: 1.4fr 0.6fr;
  column-gap: 48px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.12;
}

.section-heading > p:last-child {
  margin: 0 0 5px;
  color: var(--muted);
}

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

.feature-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.feature-card h3 {
  margin: 42px 0 12px;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.25;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-index {
  color: var(--accent-strong);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
}

.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.footer-inner {
  display: flex;
  min-height: 170px;
  padding-block: 42px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.footer-inner p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-copyright,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--muted);
  font-size: 13px;
}

.footer-copyright {
  text-decoration: none;
}

.footer-links {
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: none;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-image {
    width: min(100%, 620px);
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 30px, 1120px);
  }

  .header-inner {
    width: calc(100% - 24px);
    min-height: 60px;
    gap: 14px;
  }

  .brand img { width: 32px; height: 32px; }
  .hero {
    padding-block: 58px 60px;
  }

  h1 {
    font-size: clamp(45px, 14vw, 64px);
  }

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

  .section {
    padding-block: 70px;
  }

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

  .feature-card {
    min-height: 220px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
}

/* Mark II home */
body.markii-home {
  --home-content-width: min(976px, 80vw);
  --home-heading: rgba(238, 247, 255, .56);
  --home-paper: #e8f0fa;
  --home-muted: rgba(210, 224, 240, .68);
  --home-line: rgba(225, 237, 255, .16);
  overflow-x: hidden;
  color: var(--home-paper);
  color-scheme: dark;
  background:
    linear-gradient(rgba(2, 12, 28, .25), rgba(2, 12, 28, .64)),
    url("images/navy-canvas.jpg") center top / cover,
    #071a36;
  font-size: 17px;
  line-height: 1.65;
}

.markii-home main {
  overflow: hidden;
}

.home-hero {
  display: flex;
  padding: min(18.056vw, 260px) max(20px, min(1.667vw, 24px)) min(6.25vw, 90px);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.home-brand {
  width: var(--home-content-width);
  min-width: 0;
  margin: auto;
  container-type: inline-size;
}

.home-heading {
  width: 95%;
  max-width: 100%;
  margin: 0 auto;
}

.home-heading h1 {
  max-width: none;
  margin: 0;
  color: rgba(238, 247, 255, .39);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25.9cqw;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: .8;
  transform: scaleY(1.3);
  transform-origin: bottom left;
  white-space: nowrap;
}

.home-heading p {
  max-width: none;
  margin: min(.833vw, 12px) 0 min(4.167vw, 60px);
  color: var(--home-heading);
  font-size: clamp(13px, 1.875vw, 27px);
  font-weight: 420;
  line-height: 1.65;
  text-align: left;
}

.home-download {
  display: inline-flex;
  max-width: 100%;
  min-height: clamp(78px, 7.778vw, 112px);
  padding: clamp(8px, .694vw, 10px) clamp(22px, 2.361vw, 34px) clamp(8px, .694vw, 10px) clamp(10px, .972vw, 14px);
  border: 0;
  border-radius: clamp(24px, 2.083vw, 30px);
  align-items: center;
  gap: clamp(10px, 1.111vw, 16px);
  color: white;
  text-align: left;
  text-decoration: none;
  background:
    radial-gradient(circle at 19% 52%, rgba(0, 7, 22, .52) 0%, rgba(5, 16, 35, .30) 23%, transparent 48%),
    radial-gradient(circle at 24% 0%, rgba(94, 133, 184, .18), transparent 46%),
    linear-gradient(145deg, #203754 0%, #192d4b 54%, #0c1a31 100%);
  box-shadow:
    inset 0 0 0 1px rgba(173, 199, 231, .14),
    inset 0 1px rgba(255,255,255,.12),
    inset 0 -2px rgba(0,7,22,.36),
    0 16px 38px rgba(0, 5, 18, .28);
  cursor: pointer;
}

.home-download img {
  width: clamp(64px, 6.667vw, 96px);
  height: clamp(62px, 6.389vw, 92px);
  object-fit: contain;
}

.home-download span {
  display: grid;
  min-width: 0;
  gap: clamp(4px, .417vw, 6px);
}

.home-download strong {
  font-size: clamp(17px, 1.389vw, 20px);
}

.home-download small {
  color: rgba(244,236,220,.64);
  font-size: 12px;
}

.home-product {
  width: var(--home-content-width);
  margin: 0 auto;
}

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

.home-features {
  width: var(--home-content-width);
  margin: min(5.833vw, 84px) auto 0;
}

.home-section-title {
  display: flex;
  margin-bottom: min(2.361vw, 34px);
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.home-section-title h2 {
  margin: 0;
  color: rgba(238,247,255,.80);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(28px, 3.75vw, 54px);
  font-weight: 650;
  letter-spacing: -.035em;
}

.home-more {
  flex: none;
  color: rgba(210, 224, 240, .74);
  font-size: clamp(12px, 1.042vw, 15px);
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.home-more span {
  display: inline-block;
  margin-left: .35em;
  transition: transform 160ms ease;
}

.home-more:hover {
  color: #f1f6fc;
}

.home-more:hover span {
  transform: translateX(3px);
}

.feature-lines {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
  list-style: none;
}

.feature-lines li > a {
  display: grid;
  text-decoration: none;
  min-height: clamp(70px, 6.111vw, 88px);
  padding: clamp(14px, 1.389vw, 20px) clamp(6px, 1.25vw, 18px);
  border-bottom: 1px solid var(--home-line);
  align-items: center;
  grid-template-columns: clamp(16px, 1.667vw, 24px) clamp(90px, 13.194vw, 190px) minmax(0, 1fr);
  gap: clamp(4px, .556vw, 8px);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.feature-lines li > a:hover {
  border-color: rgba(225,237,255,.26);
  background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.012));
}

.feature-lines li > a:focus-visible {
  outline: 2px solid var(--home-muted);
  outline-offset: -2px;
}

.feature-bullet {
  width: clamp(10px, .833vw, 12px);
  aspect-ratio: 1;
  border-radius: 50%;
  align-self: center;
  background: rgba(169, 195, 226, .72);
  color: transparent;
  font-size: 0;
}

.feature-lines h3,
.feature-lines p {
  margin: 0;
}

.feature-lines h3 {
  color: rgba(232, 240, 250, .94);
  font-family: var(--sans);
  font-size: clamp(13px, 1.181vw, 17px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.feature-lines p {
  color: var(--home-muted);
  font-size: clamp(11px, 1.042vw, 15px);
  line-height: 1.65;
}

.home-footer {
  margin-top: min(8.194vw, 118px);
  background: rgba(2, 11, 27, .24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-footer > div {
  display: flex;
  width: var(--home-content-width);
  min-height: clamp(96px, 9.583vw, 138px);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.home-footer a {
  color: rgba(244,236,220,.58);
  font-size: clamp(11px, .903vw, 13px);
  text-decoration: none;
  transition: color 160ms ease;
}

.home-footer a:hover {
  color: rgba(244,236,220,.92);
}

.home-footer .footer-links,
.detail-footer .footer-links,
.privacy-footer .footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Feature details */
body.markii-detail {
  --detail-width: min(976px, 80vw);
  --detail-text: #e8f0fa;
  --detail-muted: rgba(210, 224, 240, .72);
  --detail-line: rgba(225, 237, 255, .16);
  overflow-x: hidden;
  color: var(--detail-text);
  color-scheme: dark;
  background:
    linear-gradient(rgba(2, 12, 28, .38), rgba(2, 12, 28, .72)),
    url("images/navy-canvas.jpg") center top / cover,
    #071a36;
}

.detail-header,
.detail-main,
.detail-footer > div {
  width: var(--detail-width);
  margin-inline: auto;
}

.detail-header {
  padding: clamp(28px, 4.167vw, 60px) 0 clamp(36px, 5.208vw, 75px);
}

.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.detail-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(232, 240, 250, .9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.detail-brand img {
  width: 48px;
  height: 46px;
  object-fit: contain;
}

.detail-back {
  color: var(--detail-muted);
  font-size: 14px;
  text-decoration: none;
}

.detail-back:hover {
  color: var(--detail-text);
}

.detail-intro {
  max-width: 800px;
  margin-top: clamp(72px, 9.028vw, 130px);
}

.detail-eyebrow,
.detail-index {
  color: rgba(152, 188, 229, .82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}

.detail-intro h1 {
  margin: 12px 0 24px;
  color: rgba(238, 247, 255, .86);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.12;
}

.detail-intro > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--detail-muted);
  font-size: clamp(16px, 1.528vw, 20px);
  line-height: 1.9;
}

.detail-main {
  border-top: 1px solid var(--detail-line);
}

.detail-section {
  padding: clamp(28px, 3.82vw, 55px) 0;
  border-bottom: 1px solid var(--detail-line);
}

.detail-copy {
  max-width: 780px;
}

.detail-index {
  margin: 0 0 12px;
}

.detail-section h2 {
  margin: 0 0 24px;
  color: rgba(238, 247, 255, .92);
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(30px, 3.611vw, 52px);
  font-weight: 650;
  letter-spacing: -.035em;
}

.detail-section p:not(.detail-index) {
  margin: 0;
  color: var(--detail-muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.9;
}

.detail-section p:not(.detail-index) + p {
  margin-top: 16px;
}

.detail-section code {
  padding: .12em .38em;
  border-radius: 5px;
  color: rgba(232, 240, 250, .9);
  background: rgba(255, 255, 255, .08);
  font-size: .9em;
}

.detail-visual-placeholder {
  margin: clamp(38px, 5.556vw, 80px) 0 0;
}

.detail-visual {
  margin: clamp(38px, 5.556vw, 80px) 0 0;
}

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

.detail-visual-placeholder > div {
  display: grid;
  min-height: clamp(220px, 38vw, 460px);
  border: 1px dashed rgba(173, 199, 231, .28);
  border-radius: clamp(18px, 2.083vw, 30px);
  place-items: center;
  color: rgba(210, 224, 240, .42);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  font-size: 13px;
  letter-spacing: .12em;
}

.detail-visual-placeholder figcaption,
.detail-visual figcaption {
  margin-top: 14px;
  color: rgba(210, 224, 240, .52);
  font-size: 13px;
  line-height: 1.65;
}

.detail-footer {
  margin-top: clamp(56px, 8.194vw, 118px);
  background: rgba(2, 11, 27, .24);
}

.detail-footer > div {
  display: flex;
  min-height: clamp(96px, 9.583vw, 138px);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.detail-footer a {
  color: rgba(210, 224, 240, .58);
  font-size: clamp(11px, .903vw, 13px);
  text-decoration: none;
}

.detail-footer a:hover {
  color: rgba(232, 240, 250, .9);
}
