:root {
  --surface: #0e1321;
  --on-surface: #dee2f6;
  --on-surface-variant: #b9cacb;
  --primary: #e1fdff;
  --primary-container: #00f2ff;
  --on-primary-container: #006a71;
  --primary-fixed-dim: #00dbe7;
  --tertiary-fixed-dim: #00e475;
  --tertiary-container: #37fa87;
  --on-tertiary-container: #006f35;
  --surface-container: #1a1f2e;
  --surface-container-lowest: #090e1c;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "Consolas", "SF Mono", "Space Grotesk", monospace;
  --max-w: 80rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--on-surface);
  background: var(--surface);
}

::selection {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

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

.ico {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.2em;
  flex-shrink: 0;
}

.ico--lg {
  width: 3rem;
  height: 3rem;
}

.ico--sm {
  width: 1em;
  height: 1em;
}

.ico--cyan {
  color: var(--primary-container);
}

.ico--green {
  color: var(--tertiary-fixed-dim);
}

/* loading */
#loadingMask {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#loadingMask.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loadingMask.auto-hide {
  animation: loading-mask-fallback 1ms linear var(--loading-duration, 15s) forwards;
}

@keyframes loading-mask-fallback {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

.circle-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 6;
}

.circle-progress {
  fill: none;
  stroke: #00e475;
  stroke-width: 6;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.1s linear;
}

.count-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: bold;
  color: #ffdd00;
}

.loading-text {
  color: #dee2f6;
  font-size: 18px;
  letter-spacing: 1px;
}

#temp-copy {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* nav */
.site-nav {
  position: relative;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.site-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.site-nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav__link {
  color: #94a3b8;
  transition: color 0.2s;
}

.site-nav__link:hover {
  color: #67e8f9;
}

.site-nav__link--active {
  color: #22d3ee;
  border-bottom: 2px solid #22d3ee;
  padding-bottom: 0.25rem;
}

.lang-dropdown {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #cbd5e1;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.lang-toggle:hover {
  border-color: rgba(34, 211, 238, 0.6);
  color: #67e8f9;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 140px;
  padding: 0.5rem 0;
  border-radius: 0.75rem;
  background: var(--surface-container);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.24s ease;
  max-height: 420px;
  overflow-y: auto;
}

.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .site-nav__links {
    display: flex;
  }

  .lang-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* main */
.main {
  flex: 1;
}

/* hero */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 16px;
}

.hero__glow-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  margin: -400px 0 0 -400px;
  border-radius: 50%;
  background: rgba(0, 219, 231, 0.1);
  filter: blur(120px);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 56rem;
  text-align: center;
}

.badge-online {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 1rem;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: var(--surface-container);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-online__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tertiary-fixed-dim);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.badge-online__text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--tertiary-fixed-dim);
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero {
    padding-left: 0;
    padding-right: 0;
  }

  .hero__title {
    font-size: 3.75rem;
  }
}

.hero__desc {
  font-size: 18px;
  line-height: 1.55;
  color: var(--on-surface-variant);
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pay-card {
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
  border-radius: 2.5rem;
  text-align: center;
  border-color: rgba(0, 242, 255, 0.2);
}

@media (min-width: 768px) {
  .pay-card {
    padding: 2.5rem;
  }
}

.pay-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.1), transparent 50%);
  opacity: 0.5;
  pointer-events: none;
}

.pay-card__inner {
  position: relative;
  z-index: 1;
}

.pay-card__title {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
}

.addr-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: var(--surface-container-lowest);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s;
}

.pay-card:hover .addr-row {
  border-color: rgba(0, 242, 255, 0.4);
}

@media (min-width: 768px) {
  .addr-row {
    flex-direction: row;
    padding: 1rem;
  }
}

.addr-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--primary-container);
  word-break: break-all;
  text-align: center;
  width: 100%;
}

@media (min-width: 640px) {
  .addr-code {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .addr-code {
    flex: 1;
    font-size: 1.25rem;
    white-space: nowrap;
    overflow: visible;
  }
}

@media (min-width: 1024px) {
  .addr-code {
    font-size: 1.5rem;
  }
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--primary-container);
  color: var(--on-primary-container);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.btn-copy:active {
  transform: scale(0.95);
}

.glow-blue {
  box-shadow: 0 0 15px rgba(0, 219, 231, 0.4);
}

.pay-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--on-surface-variant);
  font-size: 16px;
  text-align: left;
}

/* pricing */
.section-pricing {
  padding: 5rem 16px;
  background: rgba(9, 14, 28, 0.3);
}

.section-pricing__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head__title {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
}

.section-head__sub {
  font-size: 18px;
  color: var(--on-surface-variant);
}

.pricing-grid {
  display: grid;
  gap: 2rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem;
  border-radius: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  border-color: rgba(0, 242, 255, 0.3);
  box-shadow: 0 0 12px rgba(0, 219, 231, 0.25);
}

.plan-card__icon-wrap {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-container);
}

.plan-card__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--on-surface-variant);
  margin-bottom: 0.5rem;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.plan-card__amount {
  font-size: 40px;
  font-weight: 700;
  color: #fff;
}

.plan-card__unit {
  font-size: 24px;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.plan-card__divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.plan-card__features {
  width: 100%;
  margin-bottom: 2rem;
}

.plan-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.plan-feature--muted {
  color: var(--on-surface-variant);
}

.plan-feature__text {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
}

.plan-feature--muted .plan-feature__text {
  font-size: 16px;
  font-weight: 400;
  color: var(--on-surface-variant);
}

.btn-plan {
  width: 100%;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--primary-container);
  color: var(--primary-container);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.btn-plan:hover {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.active-glass {
  border: 1px solid rgba(0, 242, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 5px rgba(0, 219, 231, 0.4);
    border-color: rgba(0, 219, 231, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 219, 231, 0.6);
    border-color: rgba(0, 219, 231, 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 219, 231, 0.4);
    border-color: rgba(0, 219, 231, 0.3);
  }
}

.plan-card--featured {
  position: relative;
  overflow: hidden;
}

.plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
}

.plan-card--featured .plan-card__icon-wrap {
  background: rgba(0, 242, 255, 0.1);
}

.btn-plan--primary {
  border: none;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.btn-plan--primary:hover {
  transform: scale(1.02);
}

/* support */
.section-support {
  padding: 6rem 16px;
  overflow: hidden;
}

.section-support__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.support-intro {
  margin-bottom: 3rem;
}

.support-intro__title {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.5rem;
}

.support-intro__desc {
  font-size: 18px;
  color: var(--on-surface-variant);
}

.support-list {
  display: grid;
  gap: 1.5rem;
}

.support-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s;
}

.support-item:hover {
  border-color: rgba(0, 242, 255, 0.2);
}

.support-item__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: rgba(0, 242, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-container);
}

.support-item__body {
  flex: 1;
  min-width: 0;
}

.support-item__title {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.support-item__desc {
  font-size: 16px;
  color: var(--on-surface-variant);
  margin-bottom: 1rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary-container);
  font-weight: 700;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* footer */
.site-footer {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #020617;
}

.site-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.site-footer__brand {
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__brand {
    text-align: left;
  }
}

.site-footer__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-footer__copy {
  color: #64748b;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.site-footer__links a {
  color: #64748b;
  opacity: 0.8;
  transition: color 0.2s, opacity 0.2s;
}

.site-footer__links a:hover {
  color: #fff;
  opacity: 1;
}

/* toast */
#toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#toast-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 1.5rem;
  font-weight: 700;
  background: var(--primary-container);
  color: var(--on-primary-container);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 50px rgba(0, 219, 231, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s;
}

#toast-inner .toast-text {
  font-size: 1.125rem;
}

@media (max-width: 767px) {
  .site-nav,
  .glass-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .active-glass {
    animation: none;
    box-shadow: 0 0 12px rgba(0, 219, 231, 0.35);
  }

  .hero__glow-wrap {
    display: none;
  }
}
