@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --paper: #f5f1e8;
  --paper-deep: #ebe4d6;
  --paper-soft: #fbf9f4;
  --ink: #202a34;
  --ink-soft: #48545e;
  --ink-blue: #234960;
  --ink-blue-deep: #193a50;
  --line: #d5cdbd;
  --gold: #d2a83f;
  --gold-soft: #efddaa;
  --white: #fffdf8;
  --focus: #a34326;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", sans-serif;
  --content: 1180px;
  --radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink-blue-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--focus); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, p, figure, blockquote { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); font-weight: 500; line-height: 1.12; }
h1 { max-width: 13ch; margin-bottom: 1.15rem; font-size: clamp(2.8rem, 5.2vw, 5rem); letter-spacing: -0.035em; }
h1 em { color: var(--ink-blue); font-weight: 400; }
h2 { margin-bottom: 1rem; font-size: clamp(2.1rem, 3.4vw, 3.45rem); letter-spacing: -0.025em; }
h3 { margin-bottom: 0.6rem; font-size: 1.45rem; }
p { max-width: 68ch; }
::selection { background: var(--gold-soft); color: var(--ink); }

.page-wrap { width: min(var(--content), 100%); margin-inline: auto; padding-inline: 28px; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-150%); background: var(--ink-blue-deep); color: var(--paper); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; width: min(var(--content), 100%); margin-inline: auto; padding: 16px 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--sans); font-size: 1.08rem; font-weight: 700; letter-spacing: -0.035em; text-decoration: none; white-space: nowrap; }
.brand::before { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 10px; background: #0b756c; color: #fff; content: "M"; font-family: var(--sans); font-size: 1.18rem; font-weight: 800; }
.stage-label { justify-self: end; color: var(--ink-soft); font-size: 0.77rem; letter-spacing: 0.06em; text-transform: uppercase; }
.header-utilities { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.theme-toggle { display: none; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); font: 600 0.78rem var(--sans); cursor: pointer; }
.theme-ready .theme-toggle { display: inline-flex; align-items: center; }
.theme-toggle:hover { background: var(--paper-deep); }
nav ul { display: flex; justify-content: flex-end; gap: 5px; margin: 0; padding: 0; list-style: none; }
nav a { display: block; padding: 7px 10px; border-radius: 999px; color: var(--ink); font-size: 0.84rem; text-decoration: none; }
nav a:hover { background: var(--paper-deep); color: var(--ink-blue-deep); }
.site-header nav .nav-app a { background: #113b43; color: #fff; font-weight: 700; }
.site-header nav .nav-app a:hover { background: #075e59; color: #fff; }
.site-header nav a[aria-current="page"] { background: var(--paper-deep); color: var(--ink-blue-deep); font-weight: 700; }

.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; color: var(--ink-blue); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr); align-items: center; gap: clamp(36px, 7vw, 90px); padding-block: clamp(58px, 8vw, 110px) clamp(66px, 9vw, 120px); }
.hero-copy { position: relative; z-index: 1; }
.hero-lead { max-width: 60ch; margin-bottom: 26px; color: var(--ink-soft); font-size: 1.14rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 48px; padding: 10px 17px; border: 1px solid var(--ink-blue-deep); border-radius: 8px; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--ink-blue-deep); color: #fffdf8; }
.button-primary:hover { background: #102f42; color: #fffdf8; }
.button-secondary { background: transparent; color: var(--ink-blue-deep); }
.button-secondary:hover { background: var(--paper-deep); color: var(--ink-blue-deep); }
.text-link { font-size: 0.95rem; font-weight: 600; }
.hero-product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 23px 0 0; padding: 0; list-style: none; }
.hero-product-tags li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-soft); color: var(--ink-blue-deep); font-size: 0.78rem; font-weight: 700; }
.hero-note { margin: 20px 0 0; color: var(--ink-soft); font-size: 0.85rem; }
.hero-figure { min-width: 0; margin: 0; }
.product-showcase { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper-soft); box-shadow: 0 24px 54px rgb(32 42 52 / 10%); }
.showcase-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.showcase-head > div { display: grid; gap: 1px; }
.showcase-head > div span { color: var(--ink-soft); font-size: 0.69rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.showcase-head > div strong { color: var(--ink); font-size: 1rem; }
.showcase-status { padding: 4px 9px; border-radius: 999px; background: var(--paper-deep); color: var(--ink-soft); font-size: 0.7rem; font-weight: 600; }
.showcase-media { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.showcase-media .screen-image { border: 0; }
.showcase-media .screen-open { margin: 0 12px 8px; }
.hero-figure figcaption, .demo-card figcaption { margin-top: 10px; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.45; }

.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading > p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.section-intro { max-width: 63ch; font-size: 1.05rem; line-height: 1.65; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.7fr); align-items: end; gap: 48px; max-width: none; }
.split-heading > p { margin-bottom: 8px; color: var(--ink-soft); }
.section-footnote { margin: 24px 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.article-tag { display: inline-block; padding: 4px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink-blue-deep); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; }
.footer-inner p { margin: 0; color: var(--ink-soft); font-size: 0.8rem; }
.footer-inner > a:last-child { font-size: 0.85rem; }
.footer-inner > a:not(.brand) { font-size: 0.85rem; }
.footer-brand { font-size: 1rem; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121b22;
    --paper-deep: #1b2830;
    --paper-soft: #18242c;
    --ink: #f1eee6;
    --ink-soft: #c4c8c4;
    --ink-blue: #b3d1df;
    --ink-blue-deep: #c1dce8;
    --line: #3b484d;
    --gold: #e0bd62;
    --gold-soft: #594920;
    --white: #f7f5ef;
    --focus: #f0bc8d;
  }
  .button-primary { background: #c1dce8; color: #162c39; }
  .button-primary:hover { background: #d6e9f0; color: #162c39; }
  .button-secondary { color: #c1dce8; }
  .footer-inner .brand, .site-footer a { color: var(--ink); }
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr; gap: 6px 18px; }
  .header-utilities { justify-self: end; flex-wrap: wrap; gap: 8px; }
  .stage-label { font-size: 0.7rem; }
  nav { grid-column: 1 / -1; }
  nav ul { justify-content: flex-start; flex-wrap: wrap; }
  nav a { padding-inline: 8px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(310px, 0.9fr); gap: 36px; }
}

@media (max-width: 700px) {
  .page-wrap { padding-inline: 20px; }
  .header-inner { padding: 12px 20px; }
  .header-utilities { grid-column: 1 / -1; justify-content: space-between; }
  .stage-label { font-size: 0.67rem; }
  nav ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 6px; }
  nav a { padding: 6px 4px; font-size: 0.8rem; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-block: 52px 64px; }
  .hero-figure { width: min(100%, 590px); }
  .hero-lead { font-size: 1.02rem; }
  .split-heading { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .section-heading { margin-bottom: 26px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
