:root {
  color-scheme: dark;
  --bg: #070b13;
  --panel: rgba(18, 23, 34, 0.74);
  --line: rgba(175, 202, 255, 0.18);
  --text: #eef4ff;
  --muted: rgba(214, 224, 244, 0.68);
  --blue: #5e9dff;
  --cyan: #65d8ff;
  --pink: #f132a3;
  --green: #54f0a8;
}

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at 18% 24%, rgba(94, 157, 255, 0.2), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(241, 50, 163, 0.16), transparent 30%),
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 42px 42px, 42px 42px, auto;
  color: var(--text);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

body::after {
  background: linear-gradient(180deg, rgba(7, 11, 19, 0), rgba(7, 11, 19, 0.84));
  bottom: 0;
  content: "";
  height: 34vh;
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  z-index: 0;
}

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

.hero-video {
  filter: grayscale(0.5) saturate(1.18) contrast(1.08) brightness(0.52);
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: fixed;
  width: 100%;
  z-index: -2;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 19, 27, 0.9) 0%, rgba(16, 19, 27, 0.68) 45%, rgba(16, 19, 27, 0.24) 100%),
    linear-gradient(180deg, rgba(10, 14, 22, 0.24), rgba(10, 14, 22, 0.48)),
    linear-gradient(to right, rgba(255, 255, 255, 0.042) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
  background-size: auto, auto, 40px 40px, 40px 40px;
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

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

.topbar {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: clamp(58px, 10vh, 118px);
}

.brand,
.nav-actions,
.actions {
  align-items: center;
  display: flex;
}

.brand {
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 10px;
  padding: 8px 14px 8px 8px;
}

.brand-mark {
  align-items: center;
  background: #02050b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: inline-flex;
  font-size: 22px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.nav-actions,
.actions {
  flex-wrap: wrap;
  gap: 10px;
}

.nav-actions a,
.actions a,
button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 16px;
}

.nav-actions a:hover,
.nav-actions a.is-active,
.actions a:hover,
button:hover {
  border-color: rgba(175, 202, 255, 0.48);
  color: var(--text);
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.hero {
  min-height: calc(100vh - 220px);
}

.hero-copy {
  max-width: min(860px, 68vw);
  padding: 12px 0 0;
}

.kicker {
  color: var(--cyan);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(54px, 9vw, 112px);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  max-width: 820px;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  margin: 28px 0 0;
  max-width: 720px;
}

.lead.zh {
  color: rgba(238, 244, 255, 0.82);
  font-size: 18px;
  margin-top: 14px;
}

.actions {
  margin-top: 34px;
}

.actions .primary {
  color: #ffffff;
}

.primary,
.actions .primary {
  background: linear-gradient(135deg, var(--blue), #8e6eff 52%, var(--pink));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 46px rgba(94, 157, 255, 0.22);
}

.page-heading {
  margin-bottom: 34px;
  max-width: 900px;
}

.page-heading h1 {
  font-size: clamp(48px, 7vw, 86px);
}

.currency-switch {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 20px;
  padding: 5px;
}

.currency-switch button {
  background: transparent;
  border-color: transparent;
  cursor: pointer;
  min-width: 76px;
}

.currency-switch button.is-active {
  background: rgba(101, 216, 255, 0.13);
  border-color: rgba(101, 216, 255, 0.4);
  color: var(--text);
}

.pricing-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  overflow-x: auto;
  padding-bottom: 8px;
}

.price-card,
.auth-panel {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), transparent 34%),
    rgba(17, 23, 35, 0.8);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.24);
  min-width: 0;
  padding: 22px;
  position: relative;
}

.price-card.is-featured {
  border-color: rgba(101, 216, 255, 0.54);
  box-shadow: 0 0 0 1px rgba(101, 216, 255, 0.16), 0 26px 70px rgba(94, 157, 255, 0.2);
}

.public-node {
  color: var(--cyan);
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.price-card h2,
.auth-panel h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.price-card p,
.auth-panel p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.price-card strong {
  display: block;
  font-size: 42px;
  line-height: 1;
  margin-top: 26px;
}

.price-card small {
  color: var(--muted);
  font-size: 15px;
  margin-right: 4px;
}

.price-note {
  color: rgba(238, 244, 255, 0.72);
  display: block;
  font-size: 12px;
  margin-top: 10px;
}

.ribbon {
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  border-radius: 999px;
  color: #08111d;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  position: absolute;
  right: 16px;
  top: 16px;
}

.price-card dl {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding-top: 16px;
}

.price-card dl div {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.price-card dt {
  color: var(--muted);
  font-size: 12px;
}

.price-card dd {
  font-weight: 800;
  margin: 0;
}

.price-card button,
.auth-panel button {
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  width: 100%;
}

.price-card button.primary,
.auth-panel button.primary {
  color: #ffffff;
}

.footnote {
  color: var(--muted);
  line-height: 1.6;
  max-width: 820px;
}

.auth-shell {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

.panel-title {
  margin-bottom: 18px;
}

.auth-panel {
  display: grid;
  gap: 14px;
}

.auth-panel label {
  color: rgba(238, 244, 255, 0.78);
  display: grid;
  font-size: 13px;
  gap: 8px;
}

input,
select {
  background: rgba(5, 9, 16, 0.74);
  border: 1px solid rgba(175, 202, 255, 0.24);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  min-height: 48px;
  outline: none;
  padding: 12px 14px;
}

input:focus,
select:focus {
  border-color: rgba(101, 216, 255, 0.72);
  box-shadow: 0 0 0 3px rgba(101, 216, 255, 0.14);
}

.phone-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 0.85fr) minmax(0, 1fr);
}

.inline-action {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 124px;
}

.inline-action button {
  border-radius: 8px;
  padding: 0 12px;
}

.check-row {
  align-items: start;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 18px 1fr;
}

.check-row input {
  min-height: auto;
  margin-top: 2px;
}

.toast {
  background: rgba(8, 13, 22, 0.92);
  border: 1px solid rgba(101, 216, 255, 0.34);
  border-radius: 8px;
  bottom: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
  color: var(--text);
  left: 50%;
  max-width: min(560px, calc(100vw - 40px));
  opacity: 0;
  padding: 14px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 20px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 10;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .hero-copy {
    max-width: 760px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .auth-shell,
  .phone-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page-shell {
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 54px;
  }

  .nav-actions,
  .actions {
    width: 100%;
  }

  .nav-actions a,
  .actions a {
    text-align: center;
    width: 100%;
  }

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

  .page-heading h1,
  h1 {
    font-size: 48px;
  }

  .inline-action {
    grid-template-columns: 1fr;
  }
}
