:root {
  --bg-top: #f7fafc;
  --bg-bottom: #ffffff;
  --text-strong: #172236;
  --text-body: #4d5f7a;
  --text-muted: #8a97ad;
  --line-soft: #e8eef5;
  --line-focus: #c9deef;
  --panel: rgba(255, 255, 255, 0.86);
  --accent: #0a7ecf;
  --accent-hover: #066fb8;
  --radius-card: 12px;
  --radius-panel: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text-strong);
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-bottom) 30%);
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(100%, 56rem);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(5px);
}

.site-header .container {
  padding-block: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  text-decoration: none;
}

.wordmark-logo {
  display: block;
  height: 2.6rem;
  width: auto;
}

.wordmark-text {
  font-size: 1.755rem;
  font-weight: 560;
  color: var(--text-strong);
  letter-spacing: 0.01em;
  line-height: 1;
}

.main-content {
  padding-block: 2.95rem 4.3rem;
}

.section {
  margin-bottom: 2.6rem;
}

.main-content > .section:last-child {
  margin-bottom: 0;
}

h2,
h3,
p {
  margin: 0;
}

h2 {
  margin-bottom: 1.95rem;
  font-size: 1.28rem;
  font-weight: 530;
  color: #324865;
}

h3 {
  font-size: 1.03rem;
  font-weight: 530;
  line-height: 1.45;
  color: var(--text-strong);
}

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

.start-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.64);
  padding: 1.45rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.start-item:hover {
  border-color: var(--line-focus);
  background: rgba(255, 255, 255, 0.9);
}

.start-item p {
  margin-top: 0.32rem;
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.56;
}

.download h2 {
  margin-bottom: 0.85rem;
}

.download-supporting {
  margin-bottom: 1.95rem;
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.56;
}

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

.download-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.64);
  padding: 1.45rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.download-item:hover {
  border-color: var(--line-focus);
  background: rgba(255, 255, 255, 0.9);
}

.download-item p {
  margin-top: 0.32rem;
  color: var(--text-body);
  font-size: 0.96rem;
  line-height: 1.56;
  transition: color 0.2s ease;
}

.download-item-active:hover p,
.download-item-active:focus-visible p {
  color: var(--accent);
}

.download-item-disabled {
  position: relative;
  cursor: not-allowed;
}

.download-item-disabled::after {
  content: attr(data-release-tip);
  position: absolute;
  top: 0.72rem;
  right: 0.88rem;
  border: 1px solid #dae6f2;
  border-radius: 999px;
  background: #ffffff;
  color: #7d8ea6;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  opacity: 0;
  transform: translateY(-0.18rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.download-item-disabled:hover::after,
.download-item-disabled:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.seeper-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.seeper-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.35rem 1.55rem;
  border-bottom: 1px solid #edf2f8;
}

.seeper-row:last-child {
  border-bottom: 0;
}

.seeper-row-stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.42rem;
}

.seeper-row-stacked .link-with-qr {
  width: 100%;
  justify-content: space-between;
  gap: 0.9rem;
}

.seeper-row-stacked .link-with-qr a,
.seeper-row-stacked .placeholder-link {
  min-width: 0;
  overflow-wrap: anywhere;
}

.link-with-qr {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.seeper-link-group {
  display: flex;
  align-items: center;
  gap: 0.18rem;
  flex-wrap: wrap;
}

.seeper-link-note {
  font-size: 0.95rem;
  color: var(--text-body);
}

.seeper-link-note a {
  color: var(--accent);
  text-decoration: none;
}

.seeper-link-note a:hover {
  color: var(--accent-hover);
}

.link-with-qr-placeholder {
  gap: 0.45rem;
}

.placeholder-link {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.qr-placeholder {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px dashed #d7e2ee;
  color: #95a6bc;
}

.qr-placeholder svg {
  width: 0.98rem;
  height: 0.98rem;
  fill: currentColor;
}

.link-with-qr a {
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

.link-with-qr a:hover {
  color: var(--accent-hover);
}

.qr-wrapper {
  position: relative;
}

.qr-trigger {
  width: 1.7rem;
  height: 1.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: #72839d;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.qr-trigger:hover,
.qr-trigger:focus-visible {
  background: #f1f6fb;
  color: var(--accent);
}

.qr-trigger:focus-visible {
  outline: 1px solid #b8d5ef;
  outline-offset: 1px;
}

.qr-trigger svg {
  width: 0.98rem;
  height: 0.98rem;
  fill: currentColor;
}

.qr-popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 50%;
  transform: translate(-50%, -0.2rem);
  width: 9.25rem;
  padding: 0.58rem;
  border: 1px solid #dee8f3;
  border-radius: 0.9rem;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  box-shadow: 0 7px 20px rgba(11, 46, 82, 0.06);
  z-index: 20;
}

.qr-popover img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.4rem;
}

.qr-wrapper:hover .qr-popover,
.qr-wrapper:focus-within .qr-popover {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.75);
}

.site-footer .container {
  padding-block: 1.95rem;
}

.site-footer p {
  text-align: left;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 780px) {
  .main-content {
    padding-block: 2.1rem 2.8rem;
  }

  .section {
    margin-bottom: 1.7rem;
  }

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

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

  .seeper-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
