:root {
  color-scheme: light;
  --bg: #f4f7f8;
  --ink: #17212b;
  --muted: #5d6975;
  --line: #d9e0e4;
  --panel: #ffffff;
  --teal: #1f7a77;
  --red: #c74f34;
  --gold: #d89b20;
  --blue: #315c91;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 56px);
  border-bottom: 1px solid rgba(23, 33, 43, 0.08);
  background: rgba(244, 247, 248, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(16, 24, 32, 0.14);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--gold);
  color: #101820;
  font-size: 15px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  min-width: 50px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.nav a:hover {
  background: #e7eef0;
  color: var(--ink);
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 34px;
  align-items: center;
  padding: 54px 0 28px;
  scroll-margin-top: 150px;
}

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

.app-icon {
  display: block;
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(16, 24, 32, 0.2);
}

.overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: center;
  padding: 58px 0 30px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 680px;
  font-size: 46px;
  line-height: 1.08;
}

.lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.button.primary {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.visual {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.visual img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual {
  position: relative;
}

.download-panel {
  padding: 26px 0 44px;
  scroll-margin-top: 150px;
}

.beta-panel {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 150px;
}

.beta-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.beta-heading h2 {
  margin: 0;
  font-size: 28px;
}

.beta-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #b97a10;
  border-radius: 6px;
  background: #fff4d6;
  color: #81520a;
  font-size: 12px;
  font-weight: 800;
}

.beta-content {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(300px, 1.7fr) minmax(170px, 0.7fr);
  gap: 22px;
  align-items: center;
  padding: 22px;
  border: 1px solid #d5b66f;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffdf7;
}

.beta-version strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 22px;
  line-height: 1.25;
}

.beta-version small,
.beta-action small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.beta-description p {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
}

.beta-description p:last-child {
  margin-bottom: 0;
}

.beta-warning {
  color: #73520f;
}

.beta-action {
  text-align: center;
}

.button.beta-button {
  width: 100%;
  border-color: #9b6812;
  background: #9b6812;
  color: #ffffff;
}

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

.version-card {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

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

.status-card,
.version-card {
  min-height: 128px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.label {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.status-card strong,
.version-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
}

.status-card small,
.version-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.content-band {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 150px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
}

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

.relay-list article,
.announcement-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.relay-list article {
  min-height: 176px;
  padding: 18px;
}

.relay-list span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  background: #e6f1f0;
  color: var(--teal);
  font-weight: 800;
}

.relay-list h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.relay-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.announcement-list {
  display: grid;
  gap: 12px;
}

.announcement-list article {
  padding: 18px;
}

.announcement-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.announcement-list time {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}

.announcement-list p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.notice-empty {
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .overview,
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  h1 {
    font-size: 36px;
  }

  .status-grid,
  .relay-list,
  .version-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .beta-content {
    grid-template-columns: minmax(160px, 0.65fr) minmax(0, 1.35fr);
  }

  .beta-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  main,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .actions,
  .footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .status-grid,
  .relay-list,
  .version-row {
    grid-template-columns: 1fr;
  }

  .beta-heading {
    align-items: flex-start;
  }

  .beta-content {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .beta-action {
    grid-column: auto;
    text-align: left;
  }
}
