:root {
  --bg: #ffffff;
  --bg-alt: #f6f8fc;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --text: #111827;
  --text-muted: #526074;
  --border: rgba(15, 23, 42, 0.09);
  --accent: #1677ff;
  --accent-hover: #0958d9;
  --accent-soft: rgba(22, 119, 255, 0.1);
  --cyan: #06b6d4;
  --radius: 16px;
  --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 64px rgba(15, 23, 42, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --bg-alt: #101626;
    --surface: #131b2e;
    --surface-glass: rgba(15, 22, 38, 0.82);
    --text: #f3f6fc;
    --text-muted: #98a6bd;
    --border: rgba(255, 255, 255, 0.1);
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.18);
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface-glass);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.version-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.16s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.lang-globe {
  flex-shrink: 0;
  opacity: 0.78;
}

.lang-select {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding-right: 4px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}

.hero-glow {
  position: absolute;
  inset: -120px auto auto 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 420px;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.22) 0%, rgba(6, 182, 212, 0.12) 45%, transparent 72%);
  pointer-events: none;
  filter: blur(28px);
}

.hero-inner {
  position: relative;
  text-align: center;
}

.hero-icon {
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 14px 28px rgba(22, 119, 255, 0.28));
}

.hero-pill {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}

.hero-title {
  margin: 0 auto 16px;
  max-width: 760px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.hero-subtitle {
  margin: 0 auto 30px;
  max-width: 680px;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #1677ff, #06b6d4);
  color: #fff;
  box-shadow: 0 10px 26px rgba(22, 119, 255, 0.32);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(22, 119, 255, 0.42);
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--accent-soft);
}

.hero-meta {
  margin: 14px 0 42px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Interactive Showcase */
.showcase-card {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.demo-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.06);
}

.demo-tab {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
}

.demo-tab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.showcase-dim {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.showcase-stage {
  padding: 30px 24px 26px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(22, 35, 64, 0.86));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.selection-frame {
  position: relative;
  width: min(640px, 100%);
  background: #ffffff;
  color: #161b26;
  border: 2px solid #1677ff;
  border-radius: 4px;
  padding: 26px 28px;
}

.handle {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1677ff;
  border: 1.5px solid #ffffff;
}

.handle.tl { top: -5px; left: -5px; }
.handle.tm { top: -5px; left: 50%; transform: translateX(-50%); }
.handle.tr { top: -5px; right: -5px; }
.handle.ml { top: 50%; left: -5px; transform: translateY(-50%); }
.handle.mr { top: 50%; right: -5px; transform: translateY(-50%); }
.handle.bl { bottom: -5px; left: -5px; }
.handle.bm { bottom: -5px; left: 50%; transform: translateX(-50%); }
.handle.br { bottom: -5px; right: -5px; }

.mock-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1677ff;
  margin-bottom: 6px;
}

.mock-article h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.mock-article p {
  margin: 0;
  font-size: 0.94rem;
  color: #475569;
}

.mock-summary-card {
  width: min(640px, 100%);
  background: #fbfbfd;
  color: #1f2329;
  border-radius: 10px;
  border: 1px solid rgba(22, 119, 255, 0.28);
  padding: 12px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.mock-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ai-sparkle {
  color: #1677ff;
  font-weight: 700;
  font-size: 0.85rem;
}

.mock-summary-tag {
  font-size: 0.75rem;
  color: #64748b;
}

.mock-summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  display: grid;
  gap: 4px;
}

.mock-toolbar-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  width: min(640px, 100%);
}

.mock-toolbar,
.mock-ai-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(251, 252, 254, 0.98);
  color: #1f2329;
  padding: 7px 11px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  font-size: 0.86rem;
}

.ai-orb {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2.3px solid #1677ff;
  box-shadow: 0 0 8px rgba(22, 119, 255, 0.35);
}

.tb-sep {
  width: 1px;
  height: 15px;
  background: rgba(0, 0, 0, 0.12);
  margin: 0 2px;
}

.tb-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 24px;
  border-radius: 6px;
  font-weight: 600;
}

.tb-icon.active {
  background: rgba(22, 119, 255, 0.14);
  color: #1677ff;
}

.tb-icon.confirm {
  color: #159e52;
  font-weight: 800;
}

.mock-ai-bar {
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 76px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 255, 0.35);
}

.card-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.bento-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

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

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare-table th,
.compare-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th {
  font-weight: 700;
  background: var(--bg-alt);
}

.compare-table .highlight {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

/* Pricing & Account Strip */
.account-strip {
  max-width: 820px;
  margin: 0 auto 28px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.auth-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-inline input {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
}

.btn-inline {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-inline.accent {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.credits-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.86rem;
}

.auth-msg {
  font-size: 0.82rem;
  color: var(--accent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(22, 119, 255, 0.16);
}

.pricing-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.pricing-card p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.price-big {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Shortcuts */
.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.shortcut-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.shortcut-card kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

/* Download */
.download-box {
  text-align: center;
  padding: 48px 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--bg-alt), var(--surface));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.download-box h2 {
  margin: 14px 0 8px;
}

.download-box p {
  margin: 0 auto 24px;
  max-width: 540px;
  color: var(--text-muted);
}

.dl-meta-row {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.sha-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.sha-chip code {
  font-family: ui-monospace, "SF Mono", monospace;
  font-size: 0.76rem;
}

.copy-sha-btn {
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

@media (max-width: 720px) {
  .nav-links,
  .showcase-dim {
    display: none;
  }
  .mock-toolbar {
    flex-wrap: wrap;
    justify-content: center;
  }
}
