:root {
  color-scheme: dark;
  --bg: #141413;
  --surface: #1a1918;
  --surface-raised: #22201e;
  --line: #393430;
  --text: #f5efe8;
  --muted: #bdb3a9;
  --copper: #edbc93;
  --copper-strong: #ffcca2;
  --ink: #24160e;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem / 1.6 system-ui, "Segoe UI", sans-serif;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, figure, ul { margin: 0; }
p + p { margin-top: 1em; }
em { font-style: normal; }
::selection { background: var(--copper); color: var(--ink); }
:focus-visible { outline: 2px solid var(--copper-strong); outline-offset: 5px; }
.shell { width: min(100% - 5rem, 76rem); margin-inline: auto; }

.skip {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  padding: .65rem 1rem;
  transform: translateY(-200%);
  color: var(--ink);
  background: var(--copper);
  border-radius: 6px;
}

.skip:focus { transform: none; }
.site-header { background: #121211; border-bottom: 1px solid #2d2926; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.wordmark { display: inline-flex; align-items: center; gap: .7rem; flex: 0 0 auto; text-decoration: none; }
.wordmark img { border-radius: 8px; }
.wordmark span { display: grid; font-size: 1.15rem; font-weight: 720; line-height: 1.15; letter-spacing: -.03em; }
.wordmark small { margin-top: .3rem; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.5rem; }
nav a { text-decoration: none; font-size: .9375rem; font-weight: 540; color: var(--muted); }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 690;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button-small { min-height: 40px; padding-inline: .95rem; font-size: .875rem; }
.button-primary { background: var(--copper); color: var(--ink); }
.button-primary:hover { background: var(--copper-strong); }
.button-outline { border-color: #62534a; background: #171513; color: var(--text); }
.button-outline:hover { border-color: var(--copper); background: #30251f; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: #151310;
  border-bottom: 1px solid var(--line);
}

.hero-art { position: absolute; inset: 0 0 0 31%; z-index: -2; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #151310 25%, #151310 32%, #151310ee 39%, #15131070 53%, transparent 72%),
    linear-gradient(0deg, #151310bd, transparent 24%);
}

.hero-inner { display: flex; align-items: center; position: relative; min-height: clamp(34rem, 46vw, 44rem); padding-block: 4.9rem; }
.hero-copy { max-width: 36rem; }
.eyebrow { color: var(--copper); font-size: .875rem; font-weight: 710; letter-spacing: .105em; text-transform: uppercase; }
h1 { font-size: clamp(3.4rem, 6.3vw, 6.25rem); font-weight: 700; letter-spacing: -.078em; line-height: .98; }
.hero h1 { max-width: 10ch; margin-top: 1.05rem; }
.hero h1 em { color: var(--copper); }
.hero-lede { max-width: 29rem; color: #d7cbc1; font-size: clamp(1rem, 1.6vw, 1.18rem); line-height: 1.65; margin-top: 1.6rem; }
.hero .actions { margin-top: 1.9rem; }
.hero-credit { position: absolute; right: 0; bottom: 1.15rem; padding: .22rem .55rem; border-radius: 5px; background: #201a17d9; color: #e1d3c7; font-size: .8125rem; }

.section { padding-block: clamp(3.5rem, 7.4vw, 6.5rem); scroll-margin-top: 1rem; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 42rem; margin-bottom: 2rem; }
h2 { font-size: clamp(2.2rem, 4.7vw, 4.05rem); line-height: 1.05; font-weight: 680; letter-spacing: -.065em; }
.section-heading h2 { margin-top: .45rem; }
.section-heading > p:last-child { color: var(--muted); margin-top: .85rem; max-width: 38rem; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 3.1fr) minmax(0, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); align-items: stretch; }
.preview { min-width: 0; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #100f0f; display: flex; flex-direction: column; }
.preview-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem .8rem; padding: .75rem 1rem; background: #201e1c; font-weight: 650; font-size: .875rem; }
.preview-top span + span { color: var(--muted); font-weight: 500; }
.preview img { width: 100%; height: auto; }
.preview-phone { align-items: stretch; }
.preview-phone img { width: 100%; max-width: 16.75rem; align-self: center; }
.preview figcaption { margin-top: auto; padding: .85rem 1rem .95rem; background: var(--surface); color: var(--muted); border-top: 1px solid var(--line); font-size: .9375rem; }
.preview figcaption a { display: block; width: fit-content; margin-top: .4rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 2.3rem; }
.feature-grid article { border-top: 1px solid var(--line); padding-top: 1rem; }
h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -.035em; }
.feature-grid p { margin-top: .55rem; color: var(--muted); }

.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.download-card { padding: clamp(1.25rem, 3.6vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 1rem; }
.download-card:target { border-color: var(--copper); }
.platform-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 1.05rem; border: 1px solid #4d3b30; border-radius: 11px; color: var(--copper); background: #292019; }
.download-card h3 { font-size: 1.65rem; }
.download-card h3 + p { margin-top: .4rem; color: var(--muted); }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; padding: 0; gap: .25rem .8rem; list-style: none; margin-block: 1rem 1.3rem; font-size: .875rem; color: var(--muted); }
.release-meta li + li { border-left: 1px solid #5b5049; padding-left: .8rem; }
.download-card .availability { margin-top: 0; color: var(--copper); font-weight: 650; }
.download-card .text-link { display: block; width: fit-content; margin-top: .65rem; }
.text-link, .doc-body a { color: var(--copper); text-underline-offset: .23em; text-decoration-thickness: 1px; }
.text-link:hover, .doc-body a:hover { color: var(--copper-strong); }

.site-footer { border-top: 1px solid var(--line); background: #111110; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem 2rem; padding-block: 2rem; }
.footer-inner nav { gap: .35rem 1.2rem; }

.doc { min-height: 70vh; padding-block: clamp(2.75rem, 7vw, 5.5rem); }
.doc-head { max-width: 54rem; margin-bottom: 2rem; }
.doc-head h1 { font-size: clamp(2.8rem, 6vw, 5rem); margin-block: .55rem .9rem; }
.doc-head > p:last-child { color: var(--muted); max-width: 41rem; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 14rem; align-items: start; gap: 2rem; max-width: 65rem; }
.doc-body { max-width: 46rem; min-width: 0; }
.doc-body section { padding-block: 1.45rem; border-top: 1px solid var(--line); }
.doc-body h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); line-height: 1.24; letter-spacing: -.04em; margin-bottom: .6rem; }
.doc-body p, .doc-body li { color: var(--muted); }
.doc-body ul, .doc-body ol { padding-inline-start: 1.25rem; margin-block: .6rem 0; }
.doc-body li + li { margin-top: .55rem; }
.doc-body .button { color: var(--ink); margin-top: 1rem; }
.doc-body .button:hover { color: var(--ink); }
.doc-nav { display: grid; gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.doc-nav strong { font-size: .875rem; }
.doc-nav a { width: fit-content; }
details { padding-block: .75rem; border-bottom: 1px solid var(--line); }
summary { cursor: pointer; color: var(--text); font-weight: 650; }
details > p { margin-top: .5rem; }

@media (max-width: 900px) {
  .shell { width: min(100% - 3rem, 76rem); }
  .hero-art { left: 18%; }
  .hero::after {
    background: linear-gradient(90deg, #151310 17%, #151310f2 31%, #151310a0 48%, #15131013 77%),
      linear-gradient(0deg, #1513109c, transparent 25%);
  }
  .preview-grid { grid-template-columns: minmax(0, 2.7fr) minmax(0, 1fr); }
  .doc-layout { grid-template-columns: minmax(0, 1fr) 12rem; }
}

@media (max-width: 650px) {
  .shell { width: min(100% - 2.25rem, 76rem); }
  .header-inner { min-height: 66px; gap: .75rem; flex-wrap: wrap; padding-block: .7rem .55rem; }
  .header-inner nav { order: 1; width: 100%; padding-top: .45rem; border-top: 1px solid #332b26; gap: .4rem 1.15rem; }
  .header-inner nav a { padding-block: .25rem; }
  .hero-inner { align-items: start; min-height: 0; padding-block: 2.35rem clamp(11rem, 52vw, 23rem); }
  .hero-art { inset: 40% 0 0; }
  .hero-art img { object-position: 62% 50%; }
  .hero::after { background: linear-gradient(180deg, #151310 38%, #151310da 48%, #15131021 66%, transparent 85%, #15131075); }
  .hero h1 { font-size: clamp(3.15rem, 12.5vw, 5rem); margin-top: .8rem; }
  .hero-lede { margin-top: 1.15rem; max-width: 28rem; }
  .hero .actions { margin-top: 1.35rem; }
  .hero-credit { bottom: .7rem; }
  .preview-grid, .download-grid, .feature-grid, .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .preview-phone { width: min(100%, 25rem); justify-self: center; }
  .feature-grid { gap: 1rem; }
  .doc-nav { order: -1; display: flex; }
}

@media (max-width: 390px) {
  .actions .button { width: 100%; }
  .hero-art { top: 53%; }
  .hero::after { background: linear-gradient(180deg, #151310 51%, #151310b3 58%, transparent 80%, #1513106b); }
}

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