:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --card: #101d31;
  --card-2: #0d192a;
  --line: rgba(148, 163, 184, 0.18);
  --text: #e7eef9;
  --muted: #9fb0c7;
  --faint: #6f8199;
  --blue: #5ea2ff;
  --blue-soft: rgba(94, 162, 255, 0.14);
  --green: #45d483;
  --green-soft: rgba(69, 212, 131, 0.12);
  --amber: #f6c453;
  --red: #ff7b7b;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --max: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(64, 120, 255, 0.18), transparent 60%),
    radial-gradient(700px 400px at 10% 10%, rgba(69, 212, 131, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small {
  display: block;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.03);
}
.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch a.active { background: var(--blue-soft); color: #cfe4ff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 18px;
  font: inherit;
  font-weight: 650;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #4f9cff, #3b7cf6);
  color: #fff;
  box-shadow: 0 10px 30px rgba(59, 124, 246, 0.3);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(59, 124, 246, 0.42); }
.btn-green {
  background: linear-gradient(135deg, #45d483, #22b96a);
  color: #052012;
  box-shadow: 0 10px 30px rgba(34, 185, 106, 0.25);
}
.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-danger {
  border-color: rgba(255, 123, 123, 0.4);
  background: rgba(255, 123, 123, 0.1);
  color: #ffc0c0;
}
.btn-sm { padding: 7px 12px; font-size: 12px; border-radius: 9px; }
.btn-block { width: 100%; }

.test-banner {
  background: rgba(246, 196, 83, 0.12);
  border-bottom: 1px solid rgba(246, 196, 83, 0.25);
  color: #ffe3a3;
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
}

.hero { padding: 84px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(69, 212, 131, 0.2);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--green); }
.hero .lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.hero-note { color: var(--faint); font-size: 13px; }
.hero-note strong { color: var(--muted); font-weight: 600; }

.hero-shot { position: relative; }
.hero-shot::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(circle, rgba(94, 162, 255, 0.28), transparent 65%);
  filter: blur(30px);
  z-index: 0;
}
.shot-frame {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0a1424;
}
.shot-frame img { width: 100%; height: auto; }
.shot-caption { color: var(--faint); font-size: 12px; margin-top: 10px; text-align: center; }

section { padding: 64px 0; }
.section-head { max-width: 700px; margin-bottom: 34px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 10px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: #bcd9ff;
  margin-bottom: 14px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: -0.01em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line); }
table.compare th { background: rgba(255, 255, 255, 0.03); color: var(--muted); font-weight: 600; }
table.compare tr:last-child td { border-bottom: 0; }
table.compare td:nth-child(2), table.compare td:nth-child(3),
table.compare th:nth-child(2), table.compare th:nth-child(3) { text-align: center; width: 130px; }
.check { color: var(--green); font-weight: 700; }
.dash { color: var(--faint); }

.pricing-grid {
  display: grid;
  grid-template-columns: 0.9fr 0.75fr;
  gap: 28px;
  align-items: start;
}
.pricing-copy p { color: var(--muted); }
.pricing-card {
  position: relative;
  background: linear-gradient(180deg, #12233c, #0d192b);
  border: 1px solid rgba(94, 162, 255, 0.28);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--green);
  color: #052012;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
}
.plan-name { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 2px; }
.price .amount { font-size: 52px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.price .suffix { color: var(--faint); font-size: 13px; }
.pricing-list { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.pricing-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.pricing-list svg { flex: none; width: 18px; height: 18px; color: var(--green); margin-top: 2px; }
.tax-note { color: var(--faint); font-size: 12px; margin: 12px 0 0; text-align: center; }

.faq-list { display: grid; gap: 10px; }
details.faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 18px;
}
details.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 0 0 18px; color: var(--muted); font-size: 14px; max-width: 820px; }

.download-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(94, 162, 255, 0.12), rgba(69, 212, 131, 0.06));
}
.download-card h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.download-card p { margin: 0; color: var(--muted); font-size: 14px; }
.download-actions { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.download-actions a.small { font-size: 12px; }

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 40px 0 30px;
  color: var(--muted);
  font-size: 13px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h4 { color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); }
.footer-brand { display: flex; gap: 10px; align-items: center; color: var(--text); font-weight: 700; margin-bottom: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 8px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.panel h1, .panel h2 { letter-spacing: -0.02em; }
.panel h1 { font-size: 28px; margin: 0 0 8px; }
.panel .muted { color: var(--muted); }
.narrow { max-width: 760px; margin: 48px auto; }
.center { text-align: center; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0a1424;
  color: var(--text);
  border-radius: 10px;
  padding: 11px 13px;
  font: inherit;
  font-size: 14px;
  outline: none;
}
.field input:focus, .field textarea:focus { border-color: rgba(94, 162, 255, 0.6); box-shadow: 0 0 0 3px rgba(94, 162, 255, 0.12); }
.field .hint { color: var(--faint); font-size: 12px; margin-top: 6px; }

.key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #08111f;
  border: 1px dashed rgba(69, 212, 131, 0.45);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0;
}
.key-box code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 0.04em; color: #bdf7d3; word-break: break-all; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 650;
}
.status-paid, .status-active { background: var(--green-soft); color: #9cf0bd; }
.status-pending { background: rgba(246, 196, 83, 0.12); color: #ffe3a3; }
.status-refunded, .status-disputed, .status-disabled, .status-revoked { background: rgba(255, 123, 123, 0.12); color: #ffc0c0; }
.status-reissued, .status-inactive, .status-expired { background: rgba(246, 196, 83, 0.12); color: #ffe3a3; }

.notice {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}
.notice.error { border-color: rgba(255, 123, 123, 0.3); background: rgba(255, 123, 123, 0.08); color: #ffd0d0; }
.notice.success { border-color: rgba(69, 212, 131, 0.3); background: rgba(69, 212, 131, 0.08); color: #c7f7da; }
.notice.info { border-color: rgba(94, 162, 255, 0.3); background: rgba(94, 162, 255, 0.08); color: #d5e8ff; }

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid rgba(94, 162, 255, 0.18);
  border-top-color: var(--blue);
  animation: spin 0.9s linear infinite;
  margin: 18px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.order-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0; }
.order-meta div { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.order-meta dt { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 4px; }
.order-meta dd { margin: 0; font-size: 14px; word-break: break-word; }

.legal { max-width: 820px; margin: 48px auto; }
.legal h1 { font-size: 34px; letter-spacing: -0.03em; margin-bottom: 6px; }
.legal .updated { color: var(--faint); font-size: 13px; margin-bottom: 30px; }
.legal h2 { font-size: 20px; margin-top: 30px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-left: 22px; }

.admin-body { background: #070f1b; }
.admin-header { border-bottom: 1px solid var(--line); padding: 16px 0; margin-bottom: 26px; }
.admin-header .container { display: flex; align-items: center; gap: 16px; }
.admin-header .spacer { margin-left: auto; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 700px; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; }
table.data tr:hover td { background: rgba(255, 255, 255, 0.02); }
table.data code { font-size: 12px; color: #bdf7d3; }
.inline-form { display: inline; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.mock-shell { max-width: 460px; margin: 60px auto; }
.mock-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.mock-brand img { width: 26px; height: 26px; border-radius: 7px; }

@media (max-width: 900px) {
  .hero-grid, .pricing-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .feature-grid { grid-template-columns: 1fr; }
  .order-meta { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; align-items: flex-start; }
  .download-actions { align-items: flex-start; }
  .price .amount { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
