:root {
  --bg: #faf9fc;
  --surface: #ffffff;
  --surface-alt: #f3effa;
  --ink: #1e162b;
  --ink-soft: #4e4460;
  --muted: #6f6582;
  --line: #e6dff2;
  --primary: #6d28d9;
  --primary-dark: #4c1d95;
  --primary-soft: #ede9fe;
  --accent: #f59e0b;
  --emerald: #059669;
  --emerald-soft: #d1fae5;
  --radius: 16px;
  --shadow: 0 12px 32px -12px rgba(76, 29, 149, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans JP", "Noto Sans KR", "Noto Sans Thai", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary-dark);
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--primary-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--primary); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-select {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(109, 40, 217, 0.5);
}
.btn-primary:hover { box-shadow: 0 12px 24px -6px rgba(109, 40, 217, 0.65); }
.btn-secondary {
  background: var(--surface);
  color: var(--primary-dark);
  border-color: var(--line);
}
.btn-sm { padding: 8px 14px; font-size: 0.86rem; border-radius: 10px; }

/* Hero */
.hero {
  padding: 64px 0 48px;
  background: radial-gradient(circle at 80% 10%, rgba(124, 58, 237, 0.12), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(245, 158, 11, 0.09), transparent 40%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-sub {
  font-size: 1.06rem;
  color: var(--ink-soft);
  margin: 0 0 26px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.trust-list li::before {
  content: "✓";
  color: var(--emerald);
  font-weight: 900;
  margin-right: 8px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-mascot {
  width: 148px;
  height: 148px;
  border-radius: 24px;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--primary-soft);
}
.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--primary-dark);
  border: 1px solid var(--line);
}

/* Stats */
.stats-bar {
  padding: 20px 0 48px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
}
.stat-num {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 600;
}

/* Sections */
.section {
  padding: 56px 0;
}
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.8vw, 2.05rem);
  line-height: 1.28;
}
.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
  color: var(--ink);
}
.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Compare Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
table.compare-table th, table.compare-table td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.compare-table thead th {
  background: var(--surface-alt);
  font-weight: 800;
  color: var(--primary-dark);
}
table.compare-table tbody tr:last-child td { border-bottom: 0; }
table.compare-table td:last-child {
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.04);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 20px 44px -16px rgba(109, 40, 217, 0.28);
  background: linear-gradient(180deg, #faf7ff 0%, #ffffff 35%);
}
.popular-badge {
  position: absolute;
  top: -13px;
  right: 20px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-name {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.price-amount {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
}
.price-sub {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.price-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.price-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.9rem;
}
.price-bullets li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 900;
  margin-right: 8px;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.step-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.step-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}
details.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 800;
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-langs a:hover { color: var(--primary); text-decoration: underline; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* Payment Channels & Reserved Slots */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.pay-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.pay-card.live {
  border: 2px solid var(--emerald);
  box-shadow: 0 10px 28px -12px rgba(5, 150, 105, 0.22);
}
.pay-card.reserved {
  border-style: dashed;
  background: #fcfbfe;
}
.pay-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  width: fit-content;
}
.pay-badge.live { background: var(--emerald-soft); color: var(--emerald); }
.pay-badge.reserved { background: #fef3c7; color: #b45309; }
.pay-note { font-size: 0.8rem; color: var(--muted); margin: 0; }
.pay-status-pill {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

/* Modal & User Dashboard */
dialog.xm-modal {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  width: min(560px, 94vw);
  box-shadow: 0 24px 60px rgba(30, 22, 43, 0.24);
  background: var(--surface);
  color: var(--ink);
}
dialog.xm-modal::backdrop { background: rgba(15, 10, 25, 0.55); backdrop-filter: blur(4px); }
.xm-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.xm-field { margin-bottom: 12px; }
.xm-field label { display: block; font-size: 0.84rem; font-weight: 700; margin-bottom: 4px; }
.xm-field input, .xm-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.92rem;
}
.xm-row { display: flex; gap: 8px; }
.xm-status { font-size: 0.85rem; font-weight: 700; min-height: 20px; margin-top: 8px; }
.ledger-box {
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.82rem;
  background: var(--bg);
}
.ledger-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.ledger-item:last-child { border-bottom: 0; }

@media (max-width: 960px) {
  .payment-grid { grid-template-columns: 1fr; }
}
