:root {
  --bg: #f3f6fb;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(16, 24, 40, 0.08);
  --line-strong: rgba(16, 24, 40, 0.14);
  --text: #0f1728;
  --muted: #506075;
  --accent: #1f6fff;
  --accent-soft: rgba(31, 111, 255, 0.12);
  --accent-2: #08b3b9;
  --hero-a: #d8e8ff;
  --hero-b: #f4f8ff;
  --hero-c: #dffbf4;
  --shadow: 0 18px 48px rgba(12, 26, 75, 0.1);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI Variable", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.86), transparent 36%),
    linear-gradient(180deg, var(--hero-b) 0%, var(--bg) 52%, #eff4fb 100%);
}

body.menu-open {
  overflow: hidden;
}

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

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

.page {
  min-height: 100vh;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(243, 246, 251, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.58);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 24px rgba(0, 0, 0, 0.14);
  position: relative;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.brand-mark::before {
  width: 28px;
  height: 10px;
  top: 8px;
  left: 7px;
}

.brand-mark::after {
  width: 12px;
  height: 12px;
  bottom: 8px;
  right: 8px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(31, 51, 89, 0.08);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 24px rgba(31, 51, 89, 0.08);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 2px;
}

.hero {
  padding: 34px 0 32px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 255, 255, 0.92), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.64), transparent 18%),
    linear-gradient(135deg, var(--hero-a) 0%, var(--hero-b) 52%, var(--hero-c) 100%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.42;
  animation: floatOrb 14s ease-in-out infinite;
}

.hero-shell::before {
  top: -120px;
  right: -80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
}

.hero-shell::after {
  bottom: -160px;
  left: -40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  animation-delay: -5s;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 24px;
  padding: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p.lead {
  max-width: 760px;
  margin: 0;
  font-size: clamp(16px, 2.25vw, 20px);
  line-height: 1.75;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(31, 111, 255, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.hero-aside {
  display: grid;
  gap: 14px;
  align-content: start;
}

.glass-card,
.panel,
.table-wrap,
.code-block,
.callout {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px rgba(31, 51, 89, 0.08);
}

.glass-card {
  border-radius: 24px;
  padding: 22px;
}

.mini-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.aside-stat {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.aside-stat strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
}

.aside-stat span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: 22px 0 8px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.8;
}

.grid-2,
.grid-3,
.grid-4,
.metrics-grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panel h3,
.panel h4,
.card h3,
.card h4 {
  margin: 0 0 10px;
  font-size: 20px;
}

.panel p,
.card p,
.list,
.table-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 36px rgba(31, 51, 89, 0.08);
}

.card::before {
  content: "";
  position: absolute;
  inset: auto -30px -54px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.54), transparent 72%);
}

.card ul,
.panel ul {
  padding-left: 18px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.card li + li,
.panel li + li {
  margin-top: 6px;
}

.metric-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(31, 51, 89, 0.08);
}

.metric-card strong {
  display: block;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.04em;
  margin-top: 12px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline-item {
  position: relative;
  padding: 22px 22px 22px 74px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 36px rgba(31, 51, 89, 0.08);
}

.timeline-item::before {
  content: attr(data-step);
  position: absolute;
  left: 20px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.timeline-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.table-wrap {
  border-radius: 24px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
}

th {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.52);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.5);
}

.tabs {
  display: grid;
  gap: 16px;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-button {
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.tab-button.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 111, 255, 0.18);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.code-block {
  border-radius: 24px;
  padding: 22px;
  overflow: auto;
}

.code-block pre {
  margin: 0;
  font: 14px/1.75 "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  color: #21324a;
}

.compare-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  margin: 0 8px 8px 0;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.callout {
  border-radius: 22px;
  padding: 20px 22px;
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  padding: 18px 22px;
  border-radius: 20px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 36px rgba(31, 51, 89, 0.08);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-link {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--muted);
  box-shadow: 0 16px 36px rgba(31, 51, 89, 0.08);
}

.source-link strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.footer {
  padding: 48px 0 56px;
}

.footer-note {
  margin: 0 0 14px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.84);
  color: var(--muted);
  line-height: 1.8;
  box-shadow: 0 16px 36px rgba(31, 51, 89, 0.08);
}

.footer-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  background: rgba(15, 23, 40, 0.92);
  color: rgba(255, 255, 255, 0.92);
}

.footer-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: #fff;
  opacity: 0.84;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stack {
  display: grid;
  gap: 18px;
}

.muted {
  color: var(--muted);
}

.text-small {
  font-size: 14px;
  line-height: 1.8;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-line strong {
  font-size: 40px;
  letter-spacing: -0.04em;
}

.price-line span {
  color: var(--muted);
  font-weight: 700;
}

.icon-badge {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(31, 111, 255, 0.2);
}

body.theme-home {
  --accent: #0072ff;
  --accent-2: #00b7a7;
  --hero-a: #dfeaff;
  --hero-b: #f7fbff;
  --hero-c: #e0fff7;
}

body.theme-codebuddy {
  --accent: #f66f27;
  --accent-2: #ffb347;
  --hero-a: #ffe4d0;
  --hero-b: #fff8f0;
  --hero-c: #fff0d8;
}

body.theme-tokenhub {
  --accent: #1a7fff;
  --accent-2: #00c1d4;
  --hero-a: #d7e9ff;
  --hero-b: #f6fbff;
  --hero-c: #ddfbff;
}

body.theme-token-plan {
  --accent: #6b55ff;
  --accent-2: #00a3ff;
  --hero-a: #e2dcff;
  --hero-b: #f8f7ff;
  --hero-c: #def1ff;
}

body.theme-token-plan-enterprise {
  --accent: #0d8b6f;
  --accent-2: #00b39f;
  --hero-a: #daf8ef;
  --hero-b: #f6fffb;
  --hero-c: #defcf9;
}

body.theme-workbuddy {
  --accent: #0b7a75;
  --accent-2: #3db4a1;
  --hero-a: #d7f6f0;
  --hero-b: #f7fffd;
  --hero-c: #e5fff4;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 22px, 0) scale(1.05);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .grid-3,
  .grid-4,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .topbar .nav {
    position: fixed;
    inset: 78px 16px auto 16px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 44px rgba(31, 51, 89, 0.14);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  body.menu-open .topbar .nav {
    display: flex;
  }

  .topbar .nav a {
    background: rgba(245, 248, 253, 0.94);
  }

  .hero-grid,
  .grid-3,
  .grid-4,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-card {
    flex-direction: column;
    align-items: start;
  }

}

@media (max-width: 640px) {
  .container {
    width: min(var(--max-width), calc(100% - 20px));
  }

  .hero-grid {
    padding: 24px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .card,
  .panel,
  .timeline-item,
  .glass-card,
  .metric-card {
    padding: 20px;
  }

  .timeline-item {
    padding-left: 20px;
  }

  .timeline-item::before {
    position: static;
    margin-bottom: 14px;
  }
}
