:root {
  color-scheme: dark;
  --bg: #070a0d;
  --surface: #10161d;
  --surface-strong: #151d26;
  --surface-soft: #0c1117;
  --border: rgba(157, 176, 195, 0.18);
  --border-strong: rgba(125, 211, 252, 0.36);
  --text: #edf3f8;
  --muted: #a7b4c2;
  --faint: #718094;
  --accent: #37d6b2;
  --accent-strong: #15b8a6;
  --accent-ink: #03221d;
  --info: #7dd3fc;
  --warning: #f8c76b;
  --danger: #fb7185;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --radius-sm: 6px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(20, 31, 42, 0.96) 0%, rgba(7, 10, 13, 1) 42%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body::before {
  opacity: 0.56;
  background:
    linear-gradient(90deg, rgba(125, 211, 252, 0.085) 1px, transparent 1px),
    linear-gradient(180deg, rgba(125, 211, 252, 0.07) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 72%, transparent 100%);
}

body::after {
  opacity: 0.86;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(94, 234, 212, 0.13), transparent 32%),
    radial-gradient(ellipse at 12% 72%, rgba(125, 211, 252, 0.08), transparent 28%),
    linear-gradient(135deg, transparent 0 44%, rgba(94, 234, 212, 0.055) 44.3%, transparent 45.4% 100%),
    linear-gradient(28deg, transparent 0 62%, rgba(125, 211, 252, 0.048) 62.2%, transparent 63.2% 100%);
}

.site-shell {
  position: relative;
  z-index: 1;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

code {
  overflow-wrap: anywhere;
  color: var(--info);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

[hidden] {
  display: none !important;
}

.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;
}

.site-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.auth-actions,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(55, 214, 178, 0.45);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--info));
  color: #041110;
  box-shadow: 0 12px 34px rgba(55, 214, 178, 0.2);
}

.nav-links {
  justify-content: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(8, 13, 18, 0.74);
}

.nav-links a,
.nav-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-button:hover,
.nav-links a:focus-visible,
.nav-button:focus-visible {
  background: rgba(125, 211, 252, 0.1);
  color: var(--text);
  outline: none;
}

.auth-actions,
.hero-actions {
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.copy-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.primary-button {
  border: 1px solid rgba(55, 214, 178, 0.78);
  background: linear-gradient(135deg, var(--accent), #86efac);
  color: var(--accent-ink);
  padding: 11px 18px;
  box-shadow: 0 16px 38px rgba(21, 184, 166, 0.22);
}

.primary-button.small {
  min-height: 38px;
  padding: 8px 13px;
}

.secondary-button,
.ghost-button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 11px 18px;
}

.ghost-button {
  min-height: 38px;
  padding: 8px 13px;
  color: var(--muted);
}

.copy-button,
.text-button {
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.08);
  color: var(--info);
  padding: 10px 14px;
}

.text-button {
  width: max-content;
  max-width: 100%;
  margin-top: auto;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.copy-button:hover,
.text-button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.copy-button:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(125, 211, 252, 0.28);
  outline-offset: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 360px);
  padding: 34px 0 12px;
}

.hero-panel,
.step-card,
.announcement-card,
.modal {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 22, 29, 0.82);
  box-shadow: var(--shadow);
}

.hero-copy {
  min-width: 0;
  padding: clamp(28px, 5vw, 48px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-title {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 620px;
  margin: 0;
}

.hero-logo {
  display: inline-grid;
  grid-template-columns: auto 1px auto;
  gap: clamp(12px, 2vw, 20px);
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: clamp(14px, 2.5vw, 22px) clamp(16px, 3vw, 28px);
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.18), rgba(125, 211, 252, 0.08)),
    rgba(5, 9, 13, 0.56);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.hero-logo-glyph {
  display: block;
  color: #f8fbff;
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 8px 28px rgba(94, 234, 212, 0.14);
}

.hero-logo-divider {
  width: 1px;
  height: 0.72em;
  background: linear-gradient(180deg, transparent, rgba(94, 234, 212, 0.8), transparent);
}

.hero-title-tag {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(94, 234, 212, 0.26);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.08);
  font-size: clamp(1rem, 2vw, 1.22rem);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.endpoint-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 28px 0 20px;
  padding: 14px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: var(--radius);
  background: rgba(5, 9, 13, 0.76);
}

.endpoint-label {
  color: var(--faint);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.endpoint-card code {
  min-width: 0;
  padding: 8px 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.status-line {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--warning);
}

.hero-panel {
  display: grid;
  gap: 0;
  padding: 22px;
}

.signal-row {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(157, 176, 195, 0.14);
}

.signal-row:first-of-type {
  padding-top: 0;
}

.signal-row:last-of-type {
  padding-bottom: 0;
  border-bottom: 0;
}

.signal-row span {
  color: var(--faint);
  font-size: 0.9rem;
}

.signal-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.section {
  padding: 54px 0;
}

.start-guide {
  padding-top: 12px;
}

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

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.section-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.step-card,
.announcement-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.step-card {
  min-height: 250px;
  padding: 30px;
  border: 1px solid rgba(157, 176, 195, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    rgba(16, 22, 29, 0.76);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

.step-card h3,
.announcement-card h3,
.modal h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.step-card p,
.announcement-card p,
.modal p,
.footer p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.1);
  font-size: 0.95rem;
  font-weight: 900;
}

.step-kicker {
  color: var(--faint) !important;
  font-size: 0.82rem;
  font-weight: 900;
}

.cta-panel {
  margin: 76px auto 8px;
  padding: clamp(32px, 6vw, 58px);
  border: 1px solid rgba(157, 176, 195, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(94, 234, 212, 0.14), transparent 58%),
    rgba(16, 22, 29, 0.78);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.34);
  text-align: center;
}

.cta-panel h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.cta-panel p {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.announcements {
  padding: 4px 0 8px;
}

.announcement-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border: 1px solid rgba(157, 176, 195, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.08), rgba(125, 211, 252, 0.035)),
    rgba(16, 22, 29, 0.58);
}

.announcement-shell .section-heading {
  margin-bottom: 0;
}

.announcement-shell .eyebrow {
  margin: 0;
}

.announcement-shell .section-heading h2 {
  display: inline;
  margin-right: 10px;
  font-size: 1.05rem;
}

.announcement-shell .section-heading > p:last-child {
  display: inline;
  margin: 0;
  font-size: 0.9rem;
}

.announcement-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 8px;
  color: var(--accent);
  background: rgba(94, 234, 212, 0.08);
  font-size: 0.9rem;
}

.announcement-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(94, 234, 212, 0.72);
}

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

.announcement-card {
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--accent);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(16, 22, 29, 0.78);
}

.announcement-card {
  padding: 9px 12px;
}

.announcement-card h3 {
  font-size: 0.92rem;
}

.announcement-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.08), transparent);
  pointer-events: none;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 12px;
  border-top: 1px solid var(--border);
}

.footer-links {
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--info);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(10px);
}

.modal {
  width: min(100%, 480px);
  padding: 26px;
}

.modal p {
  margin: 12px 0 20px;
}

.modal .primary-button {
  width: 100%;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 100%;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

@media (max-width: 760px) {
  body::before {
    opacity: 0.36;
    background-size: 54px 54px;
  }

  body::after {
    opacity: 0.66;
    background:
      radial-gradient(ellipse at 86% 18%, rgba(94, 234, 212, 0.11), transparent 34%),
      linear-gradient(135deg, transparent 0 56%, rgba(94, 234, 212, 0.04) 56.3%, transparent 57.2% 100%);
  }

  .site-shell {
    padding: 16px;
  }

  .topbar {
    position: static;
    gap: 12px;
  }

  .auth-actions,
  .hero-actions,
  .footer {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-actions a,
  .hero-actions a,
  .copy-button,
  .text-button,
  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
    min-height: 48px;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .nav-links a,
  .nav-button {
    width: 100%;
    min-height: 46px;
    white-space: normal;
  }

  .hero {
    padding: 38px 0 34px;
    width: 100%;
    max-width: 100%;
  }

  .hero-copy,
  .hero-panel,
  .step-card,
  .announcement-card,
  .modal {
    padding: 18px;
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 32px);
    padding-right: 0;
    padding-left: 0;
  }

  .eyebrow,
  .hero-subtitle {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero-title {
    max-width: 100%;
  }

  .hero-logo {
    width: 100%;
    grid-template-columns: 1fr 1px 1fr;
    justify-items: center;
    padding: 14px;
  }

  .hero-logo-glyph {
    font-size: clamp(3.35rem, 20vw, 5rem);
  }

  .hero-title-tag {
    width: 100%;
    font-size: 0.98rem;
    word-break: keep-all;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .endpoint-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .endpoint-label {
    white-space: normal;
  }

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

  .announcement-shell {
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .announcement-status {
    justify-content: center;
  }

  .step-card {
    min-height: auto;
  }

  .cta-actions {
    flex-direction: column;
  }

  .section {
    padding: 38px 0;
  }

  .footer {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
