:root {
  color-scheme: light;
  --bg: #f8f7f3;
  --bg-soft: #efede7;
  --surface: #ffffff;
  --surface-2: #f4f0f8;
  --ink: #16131b;
  --ink-soft: #5f5968;
  --muted: #8a8192;
  --line: #ded8e6;
  --brand: #6f557f;
  --brand-strong: #2c2037;
  --accent: #c7a0ee;
  --accent-2: #ffe2a6;
  --good: #20765c;
  --shadow: 0 24px 70px rgba(45, 32, 55, 0.14);
  --max: 1180px;
  --radius: 8px;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, monospace;
  --body: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0711;
  --bg-soft: #17101d;
  --surface: #1d1425;
  --surface-2: #261b30;
  --ink: #f4eef8;
  --ink-soft: #d0c4d8;
  --muted: #a798b1;
  --line: #3c3047;
  --brand: #c7a0ee;
  --brand-strong: #31243b;
  --accent: #d7b5fa;
  --accent-2: #ffd981;
  --good: #8bdcbf;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, color-mix(in oklab, var(--accent) 18%, transparent), transparent 38rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
  font-family: var(--body);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  transition: background 180ms ease, color 180ms ease, padding-left 180ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--line) 34%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in oklab, var(--line) 26%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black, transparent 74%);
  opacity: 0.32;
}

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

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

code,
pre {
  font-family: var(--mono);
}

pre {
  overflow-x: auto;
  padding: 18px;
  color: var(--ink);
  background: color-mix(in oklab, var(--surface-2) 80%, black 3%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

::selection {
  color: #140d1b;
  background: var(--accent);
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -54px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: #111;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(20px);
}

.site-header[data-elevated="true"] {
  border-color: var(--line);
}

.brand,
.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 780;
  letter-spacing: 0;
}

.brand img,
.sidebar-brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px;
  background: color-mix(in oklab, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 720;
}

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

.theme-button,
.menu-button,
.sidebar-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  color: var(--ink-soft);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.theme-button:hover,
.menu-button:hover,
.sidebar-close:hover {
  color: var(--ink);
  background: var(--surface);
}

.theme-button,
.menu-button,
.button,
.pager a,
.page-nav a,
.sidebar-nav a {
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.icon {
  width: 1.12em;
  height: 1.12em;
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(10, 6, 14, 0.48);
}

.sidebar-overlay[hidden] {
  display: none;
}

.site-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: min(332px, 88vw);
  padding: 20px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(-102%);
  transition: transform 180ms ease;
}

.sidebar-open .site-sidebar {
  transform: translateX(0);
}

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.sidebar-nav {
  display: grid;
  gap: 8px;
  padding: 20px 0;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink-soft);
  border-radius: var(--radius);
  font-weight: 740;
}

.sidebar-nav a:hover,
.sidebar-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-2);
}

.sidebar-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  margin-top: auto;
  color: #170e20;
  background: var(--accent);
  border-radius: var(--radius);
  font-weight: 800;
}

.sidebar-note {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.shell {
  width: min(var(--max), calc(100vw - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
  gap: 58px;
  align-items: center;
  min-height: 760px;
  padding: 72px 0 88px;
}

.hero > * {
  animation: fade-up 520ms ease both;
}

.hero > *:nth-child(2) {
  animation-delay: 90ms;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
li {
  text-wrap: pretty;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
  letter-spacing: -0.016em;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.lead {
  max-width: 670px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.button.primary {
  color: #170e20;
  background: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 70%, var(--ink));
}

.button.secondary:hover,
.button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(75, 49, 95, 0.16);
}

.fineprint {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-visual {
  min-width: 0;
}

.screen-wall {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.shot-card {
  position: relative;
  overflow: hidden;
  padding: 10px;
  background:
    linear-gradient(180deg, #19101f, #060407),
    #09050d;
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.shot-card::before,
.app-gallery figure::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 2;
  width: 64px;
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  transform: translateX(-50%);
}

.shot-card::after,
.app-gallery figure::after {
  content: "";
  position: absolute;
  top: 24%;
  right: -3px;
  width: 3px;
  height: 72px;
  background: color-mix(in oklab, var(--line) 60%, black);
  border-radius: 999px;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 720 / 1612;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;
}

.shot-card.large {
  grid-column: span 2;
}

.shot-card.small {
  align-self: start;
  margin-top: 42px;
}

.shot-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: 13px;
  font-weight: 760;
  border-radius: 0 0 24px 24px;
}

.section {
  padding: 88px 0 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 32px;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

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

.feature-card,
.doc-card,
.release-card,
.callout,
.markdown-panel {
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-card,
.doc-card {
  padding: 24px;
}

.feature-card p,
.doc-card p,
.markdown-panel p,
.markdown-panel li {
  color: var(--ink-soft);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 22%);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.app-gallery figure {
  position: relative;
  min-width: 180px;
  margin: 0;
  padding: 10px;
  background: linear-gradient(180deg, #19101f, #060407);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 16px 40px rgba(20, 10, 28, 0.16);
  scroll-snap-align: start;
}

.app-gallery img {
  aspect-ratio: 720 / 1612;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;
}

.app-gallery figcaption {
  margin: 10px 4px 2px;
  color: #e7dcef;
  font-weight: 760;
}

.carousel-shell {
  position: relative;
}

.carousel-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: -8px 0 14px;
}

.carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.carousel-button:hover {
  color: var(--ink);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.system-list,
.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-list {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.system-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.system-list li:last-child {
  border-bottom: 0;
}

.system-list span {
  color: var(--brand);
  font-weight: 850;
}

.detail-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  margin: 13px 0;
}

.detail-list .icon {
  margin-top: 3px;
  color: var(--brand);
}

.release-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: -36px;
  padding: 18px 22px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.release-strip span {
  display: block;
  color: var(--ink-soft);
}

.text-link {
  color: var(--brand);
  font-weight: 820;
}

.text-link:hover {
  color: var(--ink);
}

.page-hero {
  padding: 74px 0 36px;
}

.page-hero h1 {
  max-width: 920px;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 42px;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 760;
}

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

.content-section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

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

.markdown-panel {
  padding: 30px;
  overflow: hidden;
}

.markdown-panel h2,
.markdown-panel h3 {
  margin-top: 0;
}

.markdown-panel h2:not(:first-child) {
  margin-top: 42px;
}

.markdown-panel p,
.markdown-panel ul,
.markdown-panel ol {
  max-width: 78ch;
}

.markdown-panel code {
  padding: 0.15em 0.36em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.92em;
}

.release-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.release-table th,
.release-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  vertical-align: top;
}

.release-table tr:last-child td {
  border-bottom: 0;
}

.release-table th {
  color: var(--ink);
  background: var(--surface-2);
}

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

.pager a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pager a:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.pager small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pager span {
  font-weight: 820;
}

.pager .next {
  justify-content: flex-end;
  text-align: right;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 72px 0 48px;
  color: var(--ink-soft);
}

.site-footer p {
  max-width: 560px;
  margin: 8px 0 0;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  font-weight: 760;
}

.redirect-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.redirect-card {
  width: min(760px, 100%);
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.github-window {
  border: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  border-radius: var(--radius);
  overflow: hidden;
}

.github-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--ink-soft);
  background: color-mix(in oklab, var(--surface-2) 78%, transparent);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--muted);
}

.window-dot:nth-child(1) {
  background: #ff5f57;
}

.window-dot:nth-child(2) {
  background: #ffbd2e;
}

.window-dot:nth-child(3) {
  background: #28c840;
}

.github-body {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 34px;
}

.github-mark {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.github-mark .icon {
  width: 42px;
  height: 42px;
}

.redirect-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--good);
  font-weight: 780;
}

.redirect-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse-dot 1100ms ease infinite;
}

.redirect-card .lead {
  margin-top: 16px;
}

.redirect-card h1 {
  font-size: clamp(38px, 7vw, 68px);
}

.landing-shell {
  --landing-ink: #f7f1fb;
  --landing-muted: #b8a9c3;
  --landing-panel: rgba(24, 16, 31, 0.78);
  --landing-panel-strong: rgba(14, 9, 19, 0.94);
  --landing-line: rgba(215, 181, 250, 0.18);
  --landing-warm: #f2d9a0;
}

.landing-hero {
  position: relative;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  min-height: 820px;
  isolation: isolate;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 4rem -10vw auto auto;
  z-index: -1;
  width: min(760px, 70vw);
  height: 620px;
  background:
    radial-gradient(circle at 60% 40%, rgba(199, 160, 238, 0.32), transparent 34%),
    radial-gradient(circle at 28% 68%, rgba(242, 217, 160, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 52%);
  filter: blur(10px);
  border-radius: 999px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.android-stage {
  position: relative;
  min-height: 650px;
}

.android-stage::before {
  content: "";
  position: absolute;
  inset: 18% 4% 10% 6%;
  background:
    linear-gradient(90deg, rgba(215, 181, 250, 0.2) 1px, transparent 1px),
    linear-gradient(180deg, rgba(215, 181, 250, 0.14) 1px, transparent 1px),
    rgba(16, 10, 21, 0.72);
  background-size: 54px 54px;
  border: 1px solid var(--landing-line);
  border-radius: 36px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32);
  transform: rotate(-2deg);
}

.android-phone {
  position: relative;
  margin: 0;
  padding: 10px;
  color: var(--landing-ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #161019, #050407);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 34px;
  box-shadow: 0 28px 80px rgba(5, 3, 8, 0.38);
}

.android-phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  width: 58px;
  height: 5px;
  background: rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  transform: translateX(-50%);
}

.android-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 17px;
  z-index: 3;
  width: 78px;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  transform: translateX(-50%);
}

.phone-glass {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  background: #070408;
}

.phone-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.18), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.05));
  mix-blend-mode: screen;
}

.phone-glass img {
  width: 100%;
  aspect-ratio: 720 / 1612;
  object-fit: cover;
}

.android-phone figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 8px 4px;
  color: var(--landing-muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.02em;
}

.android-phone figcaption span,
.android-phone figcaption strong {
  color: inherit;
}

.phone-primary {
  position: absolute;
  right: 18%;
  top: 6%;
  z-index: 3;
  width: min(310px, 45vw);
}

.phone-secondary {
  position: absolute;
  left: 2%;
  top: 22%;
  z-index: 2;
  width: min(250px, 35vw);
  transform: rotate(-7deg);
}

.phone-tertiary {
  position: absolute;
  right: 0;
  bottom: 2%;
  z-index: 1;
  width: min(228px, 32vw);
  transform: rotate(6deg);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: -54px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    var(--landing-panel-strong);
  border-color: var(--landing-line);
}

.trust-strip div {
  min-width: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--landing-ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.02em;
}

.trust-strip span {
  color: var(--landing-muted);
  font-size: 13px;
}

.editorial-head h2 {
  max-width: 820px;
}

.promise-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.promise-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 38%),
    var(--landing-panel);
  border: 1px solid var(--landing-line);
  border-radius: calc(var(--radius) * 1.5);
}

.promise-card::after {
  content: "";
  position: absolute;
  right: -4rem;
  bottom: -4rem;
  width: 12rem;
  height: 12rem;
  background: radial-gradient(circle, rgba(199, 160, 238, 0.18), transparent 62%);
  border-radius: 50%;
}

.promise-card-large {
  grid-row: span 2;
  min-height: 558px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, transparent, rgba(5, 4, 7, 0.72)),
    radial-gradient(circle at 18% 18%, rgba(242, 217, 160, 0.16), transparent 32%),
    var(--landing-panel-strong);
}

.promise-card h3 {
  max-width: 14ch;
  color: var(--landing-ink);
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.promise-card p {
  position: relative;
  z-index: 1;
  max-width: 54ch;
  color: var(--landing-muted);
}

.device-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding: 6px 4px 22px;
  scroll-snap-type: x mandatory;
}

.gallery-phone {
  min-width: 190px;
  scroll-snap-align: start;
}

.gallery-phone::after {
  display: none;
}

.gallery-phone figcaption {
  justify-content: center;
  color: var(--landing-ink);
  font-size: 13px;
}

.architecture-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(215, 181, 250, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(215, 181, 250, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(22, 14, 30, 0.96), rgba(7, 5, 10, 0.98));
  background-size: 52px 52px, 52px 52px, auto;
  border: 1px solid var(--landing-line);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow);
}

.architecture-panel::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 217, 160, 0.7), rgba(199, 160, 238, 0.55), transparent);
}

.architecture-node {
  position: relative;
  z-index: 1;
  min-height: 210px;
  padding: 20px;
  background: rgba(12, 8, 17, 0.82);
  border: 1px solid rgba(215, 181, 250, 0.2);
  border-radius: var(--radius);
}

.architecture-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 46px;
  color: #17101d;
  background: var(--landing-warm);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
}

.architecture-node strong,
.architecture-node small {
  display: block;
}

.architecture-node strong {
  color: var(--landing-ink);
  font-size: 18px;
  line-height: 1.12;
}

.architecture-node small {
  margin-top: 10px;
  color: var(--landing-muted);
  line-height: 1.45;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 80px 34px;
  margin-top: 88px;
  background:
    radial-gradient(circle at 86% 18%, rgba(199, 160, 238, 0.22), transparent 34%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.5);
}

.final-cta .hero-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.final-cta .fineprint {
  grid-column: 1 / -1;
}

@media (min-width: 1180px) {
  body.sidebar-wide-open {
    padding-left: 296px;
  }

  body.sidebar-wide-open .site-sidebar {
    box-shadow: none;
  }

  body.sidebar-wide-open .site-nav {
    display: none;
  }
}

@media (max-width: 1050px) {
  .site-nav {
    display: none;
  }

  .hero,
  .split,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .screen-wall {
    max-width: 720px;
  }

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

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 32px, var(--max));
  }

  .site-header {
    padding-inline: 16px;
  }

  .hero {
    padding-top: 44px;
    gap: 36px;
  }

  .screen-wall {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    scroll-snap-type: x mandatory;
  }

  .screen-wall .shot-card {
    min-width: min(270px, 74vw);
    scroll-snap-align: start;
  }

  .shot-card.small {
    margin-top: 0;
  }

  .app-gallery {
    grid-auto-columns: minmax(210px, 72%);
  }

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

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

  .system-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .button {
    width: 100%;
  }

  .markdown-panel {
    padding: 22px;
  }

  .release-table,
  .release-table tbody,
  .release-table tr,
  .release-table td {
    display: block;
    width: 100%;
  }

  .release-table thead {
    display: none;
  }

  .release-table {
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    border: 0;
  }

  .release-table tr {
    margin: 0 0 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .release-table td {
    display: grid;
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }

  .release-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .release-table td:last-child {
    border-bottom: 0;
  }

  .github-body {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

@media (max-width: 1179px) {
  body.sidebar-open {
    overflow: hidden;
  }
}

@media (max-width: 1180px) {
  .architecture-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .android-stage {
    min-height: 620px;
    max-width: 720px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .promise-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .final-cta .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .landing-hero {
    padding-top: 42px;
  }

  .android-stage {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 72vw);
    gap: 16px;
    min-height: auto;
    overflow-x: auto;
    padding: 4px 4px 20px;
    scroll-snap-type: x mandatory;
  }

  .android-stage::before {
    display: none;
  }

  .phone-primary,
  .phone-secondary,
  .phone-tertiary {
    position: relative;
    inset: auto;
    width: auto;
    transform: none;
    scroll-snap-align: start;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .promise-card,
  .promise-card-large {
    min-height: auto;
  }

  .promise-card h3 {
    max-width: 100%;
  }

  .architecture-panel {
    grid-template-columns: 1fr;
  }

  .architecture-panel::before {
    top: 8%;
    bottom: 8%;
    left: 44px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, transparent, rgba(242, 217, 160, 0.7), rgba(199, 160, 238, 0.55), transparent);
  }

  .architecture-node {
    min-height: 150px;
  }

  .architecture-node span {
    margin-bottom: 24px;
  }

  .final-cta {
    padding: 34px 22px;
  }
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
