:root {
  color-scheme: light dark;
  --bg: #f7f7f9;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-solid: #ffffff;
  --text: #161617;
  --muted: #69696f;
  --line: rgba(22, 22, 23, 0.12);
  --purple: #713cff;
  --pink: #ff4f70;
  --mint: #12ad7d;
  --shadow: 0 20px 60px rgba(30, 20, 60, 0.09);
  --radius: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(113, 60, 255, 0.08), transparent 28rem),
    radial-gradient(circle at 95% 20%, rgba(255, 79, 112, 0.07), transparent 30rem),
    var(--bg);
  font-family: inherit;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.brand {
  font-weight: 750;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

main {
  padding: 54px 0 90px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.lede {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero {
  padding: 38px 0 72px;
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}

.app-card {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 170px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: rgba(113, 60, 255, 0.36);
}

.app-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(33, 20, 70, 0.16);
}

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

.arrow {
  color: var(--purple);
  font-size: 1.6rem;
}

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 68px;
  padding: 42px 0 76px;
}

.app-hero .app-icon {
  width: min(100%, 240px);
  height: auto;
  border-radius: 28%;
  justify-self: end;
}

.title-mark {
  color: var(--purple);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-solid);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(120deg, var(--purple), var(--pink));
}

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

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

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

.screenshots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(235px, 29%);
  gap: 18px;
  overflow-x: auto;
  padding: 8px 2px 24px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--line) transparent;
}

.screenshots figure {
  margin: 0;
  scroll-snap-align: start;
}

.screenshots img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.screenshots figcaption {
  padding: 10px 4px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.document {
  max-width: 760px;
}

.document h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}

.document h2 {
  margin-top: 44px;
  font-size: 1.45rem;
}

.document p,
.document li {
  color: var(--muted);
}

.document strong {
  color: var(--text);
}

.document ul {
  padding-left: 1.25rem;
}

.contact-card {
  max-width: 680px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer p {
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101012;
    --surface: rgba(29, 29, 32, 0.82);
    --surface-solid: #1d1d20;
    --text: #f5f5f7;
    --muted: #aaaab1;
    --line: rgba(255, 255, 255, 0.13);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .site-header,
  .site-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding-top: 28px;
  }

  .hero {
    padding-top: 22px;
  }

  .app-card {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    padding: 20px;
  }

  .app-card .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .app-card .arrow {
    display: none;
  }

  .app-hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 22px;
  }

  .app-hero .app-icon {
    grid-row: 1;
    width: 130px;
    justify-self: start;
  }

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

  .screenshots {
    grid-auto-columns: 78%;
  }
}

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