:root {
  --bg: #0a0a0a;
  --surface: rgba(20, 20, 20, 0.78);
  --surface-2: rgba(16, 16, 16, 0.9);
  --surface-hover: rgba(30, 30, 30, 0.88);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(213, 255, 0, 0.34);
  --text: #f0f0f2;
  --muted: #a1a1aa;
  --quiet: #737373;
  --accent: #d5ff00;
  --blue: #7dd3fc;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  background: linear-gradient(180deg, #111111 0%, var(--bg) 54%, #050505 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  opacity: 0.42;
  pointer-events: none;
  position: fixed;
}

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

em {
  font-style: italic;
}

.page-shell {
  margin: 0 auto;
  max-width: 1120px;
  min-height: 100vh;
  padding: 28px 22px;
  position: relative;
  z-index: 1;
}

.narrow {
  max-width: 680px;
}

.site-header {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 58px;
}

.brand {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

nav a,
footer a {
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
footer a:hover {
  color: var(--text);
}

.app-icon {
  border-radius: 22%;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
  height: 92px;
  width: 92px;
}

h1 {
  color: var(--text);
  font-size: clamp(42px, 8vw, 68px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
}

.intro {
  margin: 0 auto 34px;
  max-width: 540px;
  text-align: center;
}

.intro .app-icon {
  margin-bottom: 28px;
}

.intro p {
  margin: 18px auto 0;
  max-width: 460px;
}

.link-list {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 520px;
}

.download-link,
.platform-card,
.preview-card,
.choice-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.download-link {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 76px;
  padding: 16px 18px 16px 20px;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.download-link:hover,
.platform-card[href]:hover,
.preview-card:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.recommended {
  border-color: var(--border-strong);
}

.download-link strong,
.platform-card strong {
  display: block;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.15;
}

.download-link small,
.platform-card small,
.preview-card small {
  color: var(--muted);
  display: block;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 5px;
}

.download-link > span:last-child {
  color: var(--accent);
  flex: 0 0 auto;
  font-size: 26px;
  line-height: 1;
}

.disabled {
  box-shadow: none;
  opacity: 0.74;
}

.status {
  border: 1px solid rgba(213, 255, 0, 0.24);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  text-transform: uppercase;
}

.split-hero {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) 380px;
  margin: 40px auto 36px;
  max-width: 960px;
}

.split-copy {
  max-width: 520px;
}

.split-copy .app-icon {
  margin-bottom: 28px;
}

.split-copy p {
  margin-top: 20px;
  max-width: 430px;
}

.qr-panel {
  background: rgba(13, 13, 13, 0.86);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.qr-row {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 112px 1fr;
}

.qr-row img {
  background: #fff;
  border-radius: 8px;
  height: 112px;
  padding: 7px;
  width: 112px;
}

.qr-row strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.qr-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.qr-note {
  border-top: 1px solid var(--border);
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.45;
  padding-top: 14px;
}

.qr-grid-shell {
  max-width: 1120px;
}

.qr-grid-hero {
  margin: 28px auto 30px;
  text-align: center;
}

.qr-grid-hero .app-icon {
  margin-bottom: 24px;
}

.qr-grid-layout {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 420px;
}

.qr-grid-layout .choice-grid {
  margin: 0;
  max-width: none;
}

.choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 640px;
}

.choice-cell {
  align-items: center;
  color: var(--text);
  display: flex;
  justify-content: center;
  min-height: 172px;
  overflow: hidden;
  padding: 18px;
  text-align: center;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.choice-cell:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.qr-choice {
  flex-direction: column;
}

.qr-choice img {
  background: transparent;
  border-radius: 0;
  height: 112px;
  margin: 0;
  padding: 0;
  width: 112px;
}

.cell-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.symbol-choice {
  flex-direction: column;
  gap: 12px;
}

.platform-word {
  color: var(--text);
  display: block;
  font-size: 34px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
}

.ios-word {
  font-size: 42px;
}

.android-word {
  font-size: 30px;
}

.macos-word {
  font-size: 38px;
}

.platform-icon {
  color: var(--accent);
  display: block;
  height: 52px;
  width: 52px;
}

.platform-icon svg {
  display: block;
  fill: none;
  height: 100%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  width: 100%;
}

.span-2 {
  grid-column: 1 / -1;
  min-height: 124px;
}

.matrix-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: 360px 1fr;
  margin: 36px auto;
  max-width: 1020px;
}

.matrix-intro {
  align-self: start;
  position: sticky;
  top: 28px;
}

.matrix-intro .app-icon {
  height: 78px;
  margin-bottom: 24px;
  width: 78px;
}

.matrix-intro p {
  margin-top: 18px;
}

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

.platform-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 18px;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.platform-card .meta {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  margin-top: 26px;
}

.platform-card.disabled .meta {
  color: var(--quiet);
}

.comparison-intro {
  margin: 56px 0 28px;
  max-width: 720px;
}

.comparison-intro p {
  margin-top: 16px;
}

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

.preview-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 260px;
  padding: 18px;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.preview-card strong {
  font-size: 22px;
}

.preview-card p {
  font-size: 15px;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.mini-list span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  padding: 8px 10px;
}

footer {
  align-items: center;
  color: var(--quiet);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 14px;
  justify-content: center;
  margin-top: 54px;
  padding-bottom: 4px;
  text-align: center;
}

@media (max-width: 1040px) {
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .split-hero,
  .matrix-layout {
    display: block;
  }

  .split-copy,
  .matrix-intro {
    margin: 0 auto 30px;
    max-width: 540px;
    padding-top: 0;
    position: static;
    text-align: center;
  }

  .qr-panel {
    display: none;
  }

  .platform-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding: 22px 16px;
  }

  .site-header {
    margin-bottom: 46px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 13px;
  }

  .intro {
    margin-bottom: 28px;
  }

  .app-icon,
  .intro .app-icon {
    height: 82px;
    margin-bottom: 22px;
    width: 82px;
  }

  p,
  .intro p {
    font-size: 16px;
  }

  .download-link {
    min-height: 72px;
    padding: 15px 16px;
  }

  .choice-grid {
    gap: 10px;
  }

  .choice-cell {
    min-height: 154px;
    padding: 14px;
  }

  .qr-choice img {
    height: 112px;
    width: 112px;
  }

  .ios-word,
  .macos-word {
    font-size: 34px;
  }

  .android-word {
    font-size: 26px;
  }

  .span-2 {
    min-height: 112px;
  }
}
