* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: rgba(12, 24, 42, 0.82);
  --panel: rgba(11, 23, 40, 0.92);
  --panel-alt: rgba(15, 30, 53, 0.84);
  --line: rgba(156, 184, 221, 0.18);
  --text: #f5f8ff;
  --muted: #aebed6;
  --accent: #4c8dff;
  --accent-strong: #2f6df6;
  --accent-soft: rgba(76, 141, 255, 0.18);
  --success: #3dd79d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(51, 94, 190, 0.28), transparent 28%),
    linear-gradient(180deg, #08111d 0%, #091524 48%, #07111f 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

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

.site-header,
.site-footer,
main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 18px;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

.nav-links {
  display: inline-flex;
  gap: 24px;
  color: var(--muted);
}

.developer-contact {
  display: grid;
  gap: 2px;
  margin-left: auto;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}

.developer-contact span {
  color: var(--text);
  font-weight: 700;
}

.developer-contact strong {
  font-weight: 600;
}

.header-action,
.primary-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 30px rgba(47, 109, 246, 0.26);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  gap: 42px;
  align-items: center;
  padding: 38px 0 54px;
}

.hero-copy,
.hero-visual,
.download-card,
.flow-step,
.feature-list div {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #8eb4ff;
}

.hero h1,
.section-heading h2,
.feature-copy h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  max-width: 11ch;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-lead,
.section-heading p,
.feature-copy p,
.flow-step p,
.download-card p,
.feature-list p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-lead {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
}

.hero-metrics div,
.flow-step,
.feature-list div {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-metrics div {
  min-width: 150px;
  padding: 18px 18px 16px;
  border-radius: 8px;
}

.hero-metrics dt {
  font-size: 28px;
  font-weight: 700;
}

.hero-metrics dd {
  margin: 10px 0 0;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 27, 49, 0.92), rgba(8, 16, 29, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-visual img {
  border-radius: 6px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.status-strip {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(6, 14, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 18px rgba(61, 215, 157, 0.55);
}

.download-section,
.flow-section,
.feature-section,
.architecture-section,
.status-section,
.faq-section {
  padding: 56px 0 18px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

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

.download-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-alt));
  box-shadow: var(--shadow);
}

.download-card.featured {
  border-color: rgba(99, 151, 255, 0.45);
  background: linear-gradient(180deg, rgba(16, 32, 60, 0.94), rgba(9, 20, 38, 0.98));
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: #b9d1ff;
  font-size: 13px;
  font-weight: 700;
}

.download-card h3,
.flow-step h3,
.feature-list h3 {
  margin: 0;
  font-size: 22px;
}

.download-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
}

.download-card dl div {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.download-card dt {
  color: #88a3c7;
  font-size: 13px;
}

.download-card dd {
  margin: 6px 0 0;
  font-weight: 600;
}

.manifest-link,
.release-status {
  color: var(--muted);
}

.manifest-link {
  font-size: 14px;
}

.release-status {
  margin: 0;
  min-height: 24px;
  font-size: 14px;
}

.release-status.ready {
  color: #9bd9bf;
}

.release-status.pending {
  color: #f5c66f;
}

.release-status.error {
  color: #f0a3a3;
}

.download-disabled {
  cursor: not-allowed;
  opacity: 0.56;
  filter: grayscale(0.35);
  box-shadow: none;
}

.download-disabled-link {
  cursor: not-allowed;
  opacity: 0.58;
}

.flow-grid,
.feature-section {
  display: grid;
  gap: 18px;
}

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

.flow-step,
.feature-list div {
  padding: 22px;
  border-radius: 8px;
}

.flow-step span {
  display: inline-block;
  margin-bottom: 16px;
  color: #8eb4ff;
  font-size: 12px;
  font-weight: 700;
}

.feature-section {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  padding-bottom: 72px;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.architecture-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.arch-node,
.status-grid div,
.faq-list details {
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.arch-node span {
  display: inline-block;
  margin-bottom: 14px;
  color: #8eb4ff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.arch-node h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.arch-node p,
.status-grid span,
.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.status-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.faq-list {
  display: grid;
  gap: 16px;
  padding-bottom: 72px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
}

.faq-list p {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 0 28px;
  color: #8ba0bd;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 1080px) {
  .hero,
  .feature-section,
  .flow-grid,
  .architecture-map {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    padding-top: 16px;
  }

  .header-action {
    display: none;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 28px;
    width: auto;
  }

  .developer-contact {
    margin-left: 0;
    white-space: normal;
  }

  .site-header,
  .site-footer,
  main {
    width: min(calc(100% - 24px), 1240px);
  }

  .hero {
    gap: 28px;
    padding-top: 24px;
  }

  .hero h1 {
    font-size: 31px;
    line-height: 1.14;
    max-width: none;
  }

  .hero-lead {
    font-size: 15px;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button,
  .download-button {
    width: 100%;
  }

  .hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-metrics div {
    min-width: 0;
  }

  .hero-visual {
    padding: 12px;
  }

  .status-strip {
    position: static;
    margin-top: 12px;
  }

  .download-card,
  .flow-step,
  .feature-list div {
    padding: 18px;
  }

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

  .arch-node,
  .status-grid div,
  .faq-list details {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 29px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
