:root {
  --bg: #1b1c20;
  --ink: rgba(248, 250, 252, 0.86);
  --muted: rgba(203, 213, 225, 0.62);
  --line: rgba(255, 255, 255, 0.14);
  --blue-1: #33c2ff;
  --blue-2: #257cff;
  --blue-3: #165dff;
  --font: "Noto Sans SC", Inter, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100dvh;
}

.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(104, 114, 145, 0.12), transparent 32%),
    radial-gradient(circle at 20% 72%, rgba(72, 76, 88, 0.1), transparent 36%),
    linear-gradient(100deg, #1b1c20 0%, rgba(27, 28, 32, 0.96) 32%, rgba(27, 28, 32, 0.76) 56%, rgba(27, 28, 32, 0.4) 100%);
}

.nav-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.copy-scrim {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(27, 28, 32, 0.98) 0%, rgba(27, 28, 32, 0.95) 78%, rgba(27, 28, 32, 0.84) 100%);
}
@media (min-width: 1024px) {
  .copy-scrim { display: none; }
}

.boot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10121b;
  transition: opacity 0.22s, visibility 0.22s;
}
.boot.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.boot-ring {
  width: 200px;
  height: 68px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(51, 194, 255, 0.28);
  background: rgba(16, 18, 27, 0.92);
  padding: 0 20px;
}
.boot-logo {
  width: auto;
  height: 34px;
  max-width: 170px;
  object-fit: contain;
  opacity: 0.96;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 64px;
  padding: 0 22px 0 20.4%;
  background: linear-gradient(180deg, rgba(27, 28, 32, 0.42) 0%, rgba(27, 28, 32, 0.18) 70%, transparent 100%);
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
  line-height: 0;
  width: fit-content;
}
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}
.brand-mark,
.brand-name { display: none !important; }
.brand + .topnav { margin-left: 2px; }
.topnav {
  display: none;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-left: 0;
}
@media (min-width: 900px) {
  .topnav { display: flex; }
}
.navlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: rgba(226, 232, 240, 0.72);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: color 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out, transform 0.3s ease-out;
}
.navlink::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: radial-gradient(circle at 50% 0%, rgba(92, 124, 255, 0.16), transparent 64%);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.navlink::after {
  content: "";
  pointer-events: none;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 1px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(92, 124, 255, 0.94), rgba(92, 124, 255, 0.12));
  transition: transform 0.3s ease-out;
}
.navlink > .navlink-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.3s ease-out;
}
.navlink:hover,
.navlink:focus-visible {
  color: rgba(248, 250, 252, 0.92);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-2px);
  outline: none;
}
.navlink:hover::before,
.navlink:focus-visible::before {
  opacity: 1;
}
.navlink:hover::after,
.navlink:focus-visible::after {
  transform: scaleX(1);
}
.navlink:hover > .navlink-label,
.navlink:focus-visible > .navlink-label {
  transform: translateY(-1px);
}
.navlink.is-active {
  color: rgba(248, 250, 252, 0.96);
}
.navlink.is-active::after {
  transform: scaleX(1);
  height: 2px;
  bottom: 4px;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
}
.badge {
  position: relative;
  z-index: 1;
  border-radius: 4px;
  border: 1px solid rgba(52, 211, 153, 0.24);
  background: rgba(52, 211, 153, 0.12);
  color: rgba(94, 234, 212, 0.86);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  padding: 3px 6px;
}
@media (prefers-reduced-motion: reduce) {
  .navlink,
  .navlink::before,
  .navlink::after,
  .navlink > .navlink-label {
    transition: none;
  }
}

.hero {
  position: relative;
  z-index: 10;
  height: 100svh;
  overflow: hidden;
}
.hero-grid {
  max-width: 1192px;
  margin: 0 auto;
  height: 100%;
  padding: 96px 24px 64px;
  display: grid;
  align-items: center;
  gap: 20px;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
    padding-top: 96px;
  }
}
.hero-copy { min-width: 0; }
.hero-side { min-height: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(248, 250, 252, 0.9);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pill:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.065);
  color: #fff;
}
.pill svg { color: rgba(226, 232, 240, 0.5); }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.46);
}

h1 {
  margin: 20px 0 0;
  max-width: 760px;
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0;
  color: var(--ink);
}
h1 span { display: block; }
.h1-sub { color: rgba(113, 139, 255, 0.72); }
@media (min-width: 640px) {
  h1 { margin-top: 28px; font-size: clamp(3.8rem, 6.8vw, 4.45rem); }
}

.lead {
  margin: 20px 0 0;
  max-width: 670px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
@media (min-width: 640px) {
  .lead { margin-top: 28px; font-size: 20px; line-height: 1.6; }
}

.caps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  max-width: 720px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.72);
}

.cta-row {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  max-width: 520px;
}
@media (min-width: 560px) {
  .cta-row { grid-template-columns: 1fr 1fr; }
}

.cta {
  width: 100%;
  height: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  border-radius: 6px;
  font-size: 16.8px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0;
}
.cta-primary {
  color: #fff;
  border: 0;
  background: linear-gradient(92.06deg, #33c2ff -17.9%, #257cff 43.39%, #165dff 99.4%);
  box-shadow: 0 10px 30px -8px #257cff99;
  transition: box-shadow 0.3s, transform 0.3s;
}
.cta-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 38px -8px #257cffcc;
}
.cta-primary:active { transform: translateY(0); }
.cta-secondary {
  color: #e3e3e3;
  background: #ffffff14;
  border: 1px solid #ffffff1f;
  box-shadow: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.cta-secondary:hover {
  color: #2a2a2b;
  background: #fff;
  border-color: transparent;
}

[data-intro] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
}
@media (prefers-reduced-motion: reduce) {
  [data-intro] {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 10;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.72);
}
@media (min-width: 640px) {
  .scroll-cue { display: flex; }
}
.scroll-cue i {
  display: block;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, rgba(51, 194, 255, 0.9), rgba(22, 93, 255, 0.1));
  transform-origin: top center;
}


.nav-grid-toggle {
  position: fixed;
  top: 76px;
  left: 12px;
  z-index: 40;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(232, 238, 242, 0.28);
  background: rgba(16, 18, 27, 0.78);
  color: rgba(51, 194, 255, 0.95);
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  border-radius: 6px;
}
.nav-grid-toggle:hover {
  border-color: rgba(51, 194, 255, 0.7);
  color: #7dd3fc;
}
.nav-grid-toggle.is-off {
  color: rgba(148, 163, 184, 0.55);
  border-color: rgba(232, 238, 242, 0.14);
}
.nav-grid-toggle.is-off::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 1px;
  background: rgba(148, 163, 184, 0.7);
  transform: rotate(-25deg);
}
.nav-grid {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}
.nav-grid-h,
.nav-grid-v {
  position: absolute;
  inset: 0;
}
.nav-grid-h span,
.nav-grid-v span {
  position: absolute;
  pointer-events: auto;
  z-index: 16;
  box-sizing: border-box;
  background: transparent;
}
.nav-grid-h span {
  left: 0;
  width: 100%;
  height: 12px;
  margin-top: -6px;
  cursor: ns-resize;
  border-top: 1px solid rgba(226, 232, 240, 0.28);
}
.nav-grid-v span {
  top: 0;
  height: 100%;
  width: 12px;
  margin-left: -6px;
  cursor: ew-resize;
  border-left: 1px solid rgba(226, 232, 240, 0.28);
}
.nav-grid-h span.is-dragging { border-top-color: rgba(51, 194, 255, 0.95); }
.nav-grid-v span.is-dragging { border-left-color: rgba(51, 194, 255, 0.95); }
body.nav-grid-dragging { user-select: none; cursor: grabbing; }
body.nav-grid-hidden .nav-grid { display: none; }
.nav-grid-h span > i,
.nav-grid-v span > i {
  position: absolute;
  font-style: normal;
  font-family: "Noto Sans SC", Inter, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: rgba(125, 211, 252, 0.92);
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}
.nav-grid-h span > i {
  left: 48px;
  top: -8px;
}
.nav-grid-v span > i {
  top: 48px;
  left: 8px;
}

.account-actions {
  position: fixed;
  top: 0;
  left: 68%;
  z-index: 22;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Sans SC", Inter, system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.acct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.acct-ico {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.acct-lang {
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  gap: 6px;
  font-size: 13px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.85);
}
.acct-lang .acct-ico { width: 12px; height: 12px; }
.acct-lang:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}
.acct-login {
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  color: #111;
  background: #ffffff;
  border: 1px solid #ffffff;
}
.acct-login:hover {
  color: #111827;
  background: rgba(248, 250, 252, 0.94);
  border-color: #ffffff;
}
.acct-register {
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  color: #fff;
  background: #4668ff;
  border: 1px solid #4668ff;
}
.acct-register:hover { background: #5571f6; }
.acct-reg-short { display: none; }
.acct-reg-full { display: inline; }
@media (max-width: 479px) {
  .acct-reg-short { display: inline; }
  .acct-reg-full { display: none; }
}
@media (max-width: 900px) {
  .account-actions { left: auto; right: 12px; gap: 6px; }
  .acct-login, .acct-register { padding: 0 12px; min-height: 36px; font-size: 13px; }
  .acct-lang span { display: none; }
  .acct-lang { min-height: 36px; width: 36px; padding: 0; }
}

/* SPA page panels */
.page-stage {
  position: relative;
  z-index: 10;
  min-height: 100svh;
}
.page-panel {
  display: none;
}
.page-panel.is-active {
  display: block;
}
.page-panel.hero {
  height: 100svh;
  overflow: hidden;
}

.lead-note {
  margin-top: 18px;
  max-width: 670px;
  color: rgba(226, 232, 240, 0.62);
  font-size: 15px;
}
@media (min-width: 640px) {
  .lead-note { font-size: 17px; }
}

/* ===== logged-in account menu ===== */
body.is-logged-in .acct-login,
body.is-logged-in .acct-register { display: none !important; }
body.is-logged-in .acct-console,
body.is-logged-in .acct-user-wrap { display: inline-flex !important; }
.acct-console {
  display: none;
  height: 36px;
  min-height: 36px;
  padding: 0 16px;
  color: #111;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 6px;
  text-decoration: none;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
}
.acct-console:hover { background: #f8fafc; }
.acct-user-wrap {
  display: none;
  position: relative;
  align-items: center;
}
.acct-avatar-btn {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 999px;
}
.acct-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 700 13px "Noto Sans SC", Inter, system-ui, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #5c7cfa, #845ef7);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}
.acct-avatar-lg { width: 48px; height: 48px; font-size: 18px; flex: 0 0 auto; }
.acct-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  padding: 14px 14px 10px;
  border-radius: 12px;
  background: #1a1d24;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  z-index: 80;
  color: #eceff4;
  font-family: "Noto Sans SC", Inter, system-ui, sans-serif;
}
.acct-menu[hidden] { display: none !important; }
.acct-menu-head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.acct-menu-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.acct-menu-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.acct-lv {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #ced4da;
  background: rgba(255,255,255,0.08);
}
.acct-menu-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #868e96;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.acct-menu-bal {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 10px;
}
.acct-menu-bal-lab {
  font-size: 12px;
  color: #868e96;
  margin-bottom: 6px;
}
.acct-menu-bal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.acct-menu-bal-val {
  font-size: 22px;
  font-weight: 700;
  color: #ffa94d;
  letter-spacing: 0.02em;
}
.acct-menu-bal-go {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 18px;
  line-height: 1;
}
.acct-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #e9ecef;
  padding: 11px 8px;
  border-radius: 8px;
  cursor: pointer;
  font: 500 14px "Noto Sans SC", Inter, system-ui, sans-serif;
  text-align: left;
}
.acct-menu-item:hover { background: rgba(255,255,255,0.05); }
.ami-ico { width: 20px; text-align: center; }
.acct-menu-logout {
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #adb5bd;
  padding: 12px 8px 6px;
  cursor: pointer;
  font: 500 14px "Noto Sans SC", Inter, system-ui, sans-serif;
}
.acct-menu-logout:hover { color: #ff6b6b; }
