@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@500;600;700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --bg: #06080c;
  --bg-soft: #0c1018;
  --surface: rgba(18, 24, 36, 0.72);
  --surface-solid: #141b28;
  --text: #f2f5fa;
  --muted: #8b97ab;
  --accent: #5eb3ff;
  --accent-2: #c9a962;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(94, 179, 255, 0.15);
  --radius: 14px;
  --font-sans: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(94, 179, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(201, 169, 98, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(94, 179, 255, 0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #8ecaff; }

.wrap, .site-header, .site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid var(--border);
  background: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(16px);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
}

.brand:hover { text-decoration: none; color: var(--text); }

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3d7dd6 0%, #c9a962 100%);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 24px var(--glow);
}

.site-nav {
  display: flex;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a.nav-cta {
  color: var(--bg);
  background: linear-gradient(135deg, var(--accent), #3d7dd6);
  margin-left: 0.35rem;
}

.site-nav a.nav-cta:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* —— Typography & sections —— */
.page-hero {
  margin-bottom: 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.page-hero .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40em;
}

.section {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  font-weight: 600;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 1.5rem 1.75rem;
}

/* —— Home hero —— */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 0 3rem;
  min-height: min(72vh, 640px);
}

.home-hero-copy .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.home-hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

.home-hero-copy .hero-sub {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 500;
}

.home-hero-copy .hero-desc {
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 28em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.home-hero-visual {
  position: relative;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 320px;
  background: var(--surface-solid);
}

.home-hero-visual[data-theme="brand"] {
  background: linear-gradient(160deg, #0f1a2e 0%, #1a1520 100%);
}
.home-hero-visual[data-theme="commerce"] {
  background: linear-gradient(160deg, #0f1f28 0%, #121820 100%);
}
.home-hero-visual[data-theme="efficiency"] {
  background: linear-gradient(160deg, #12182a 0%, #0f1a18 100%);
}
.home-hero-visual[data-theme="creative"] {
  background: linear-gradient(160deg, #1a1428 0%, #0f1820 100%);
}

.slogan-showcase {
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.slogan-copy {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.38s ease, transform 0.38s ease;
}

.slogan-copy--visible {
  opacity: 1;
  transform: translateY(0);
}

.slogan-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--accent-2);
  margin: 0 0 0.5rem;
}

.slogan-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  margin: 0 0 0.35rem;
}

.slogan-subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.slogan-dots {
  display: flex;
  gap: 0.5rem;
}

.slogan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.slogan-dot--active { width: 24px; border-radius: 4px; }
.slogan-dot--brand.slogan-dot--active { background: var(--accent); }
.slogan-dot--commerce.slogan-dot--active { background: #4ecdc4; }
.slogan-dot--efficiency.slogan-dot--active { background: #7dd87d; }
.slogan-dot--creative.slogan-dot--active { background: #c9a962; }

/* —— Stats & cards —— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--accent-2);
  font-weight: 700;
}

.stat-card span { font-size: 0.88rem; color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.15rem;
}

.feature-card {
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(94, 179, 255, 0.25);
  transform: translateY(-2px);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-card a {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #4a9eff 0%, #2d6fd4 100%);
  color: #fff;
  box-shadow: 0 8px 28px rgba(74, 158, 255, 0.25);
}

.btn-gold {
  background: linear-gradient(135deg, #d4b76a 0%, #a8863a 100%);
  color: #0a0c10;
  box-shadow: 0 8px 28px rgba(201, 169, 98, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

.btn-block { width: 100%; }

.btn-text {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0;
  font-family: inherit;
}

.btn-text:hover { color: var(--text); }

/* —— Auth split page —— */
.auth-page {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 64px);
  max-width: 1120px;
  margin: 0 auto;
  gap: 0;
}

.auth-showcase-pane {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
}

.auth-form-pane {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(12, 16, 24, 0.5);
}

.auth-form-pane h1 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  margin: 0 0 0.35rem;
}

.auth-form-pane .sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.auth-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 4px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
}

.auth-tab {
  flex: 1;
  padding: 0.55rem 1rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.auth-tab--active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.auth-panel-hint {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.form-row { margin-bottom: 1rem; }

.form-row label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-row input {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}

.form-row input:focus {
  outline: none;
  border-color: rgba(94, 179, 255, 0.5);
  box-shadow: 0 0 0 3px var(--glow);
}

.auth-error {
  margin: 0 0 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: rgba(180, 60, 60, 0.15);
  color: #f0a8a8;
  font-size: 0.88rem;
}

/* —— Order / checkout —— */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.user-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.user-bar strong { color: var(--accent); }

.package-list {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pkg-card {
  display: block;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s, background 0.15s;
}

.pkg-card input { position: absolute; opacity: 0; pointer-events: none; }

.pkg-card--selected {
  border-color: rgba(94, 179, 255, 0.55);
  background: rgba(94, 179, 255, 0.08);
}

.pkg-card-body {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 1rem;
  align-items: center;
}

.pkg-name { font-weight: 600; grid-column: 1; }
.pkg-points { font-size: 0.88rem; color: var(--muted); grid-column: 1; }
.pkg-price {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-2);
}

.order-msg {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(94, 179, 255, 0.1);
  border: 1px solid rgba(94, 179, 255, 0.2);
  font-size: 0.92rem;
}

.order-msg--error {
  background: rgba(160, 50, 50, 0.12);
  border-color: rgba(200, 80, 80, 0.25);
  color: #f0b0b0;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.data th,
table.data td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

table.data th {
  color: var(--muted);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.2);
}

.muted { color: var(--muted); font-size: 0.92rem; }

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.85rem;
}

.feature-list li:last-child { border-bottom: none; }

.feature-icon { color: var(--accent-2); font-weight: 700; }

.download-card { text-align: center; padding: 1.5rem; }
.download-card .platform { font-size: 2.2rem; margin-bottom: 0.5rem; }
.download-card .ver { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }

.site-footer {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.site-footer p { margin: 0.3rem 0; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .home-hero,
  .auth-page,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .auth-showcase-pane {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 280px;
  }
  .stats-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .wrap { padding: 1.5rem 1rem 3rem; }
}
