:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

code,
pre,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

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

.brand-logo {
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 13px;
}

.btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 68px 0 84px;
  background: radial-gradient(900px 420px at 80% -10%, rgba(59, 130, 246, 0.11), transparent 65%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.08fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.hero-desc {
  margin: 0 0 28px;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-meta .sep {
  opacity: 0.45;
}

/* Hero Preview */
.preview-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}

.preview-tab {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.preview-tab.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.window-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.window-bar {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: #f8fafc;
  font-size: 12px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.window-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-secondary);
}

.window-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-weight: 600;
  font-size: 11.5px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.window-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  min-height: 280px;
}

.mock-sidebar {
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  background: #fbfdff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-nav {
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.mock-nav.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.mock-main {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mock-kpi {
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fcfdff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mock-kpi-label {
  font-size: 11px;
  color: var(--text-muted);
}

.mock-kpi strong {
  font-size: 13px;
}

.mock-kpi-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

.mock-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 11.5px;
}

.mock-table-head,
.mock-table-row {
  display: grid;
  grid-template-columns: 1.45fr 0.95fr 1fr 0.65fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}

.mock-table-head {
  background: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.mock-table-row {
  border-bottom: 1px solid var(--border);
}

.mock-table-row:last-child {
  border-bottom: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  width: fit-content;
}

.chip-blue {
  background: var(--accent-soft);
  color: var(--accent);
}

.chip-slate {
  background: var(--surface-alt);
  color: var(--text-secondary);
}

.chip-green {
  background: var(--green-soft);
  color: var(--green);
}

/* Terminal preview */
.terminal-frame {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid #1e293b;
}

.terminal-bar {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e293b;
  font-size: 12px;
  color: #94a3b8;
}

.terminal-code {
  margin: 0;
  padding: 18px 20px;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
}

.t-prompt { color: #60a5fa; }
.t-key { color: #93c5fd; }
.t-str { color: #86efac; }
.t-ok { color: #4ade80; font-weight: 700; }

.hidden {
  display: none !important;
}

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

/* Free Domain Highlight */
.free-domain-section {
  padding: 20px 0 64px;
}

.free-domain-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  box-shadow: var(--shadow-md);
}

.free-pill {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.free-domain-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.free-desc {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--text-secondary);
}

.free-desc strong {
  color: var(--text);
}

.free-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.free-perk {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 2.5px solid #93c5fd;
}

.free-perk strong {
  font-size: 14.5px;
  color: var(--text);
}

.free-perk span {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.sponsor-banner {
  margin-top: 16px;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sponsor-banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.sponsor-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sponsor-banner-text strong {
  font-size: 14.5px;
  color: var(--text);
}

.sponsor-banner-text span {
  font-size: 13px;
  color: var(--text-secondary);
}

.sponsor-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sponsor-tag {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.footer-copy a {
  color: var(--accent);
  font-weight: 600;
}

.footer-copy a:hover {
  text-decoration: underline;
}

.free-domain-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.domain-input-box {
  display: flex;
  align-items: center;
  border: 1.5px solid #93c5fd;
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.domain-input-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.domain-input-box input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
}

.domain-suffix {
  padding: 11px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 600;
  border-left: 1px solid #dbeafe;
  white-space: nowrap;
}

.demo-examples {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-ex-title {
  font-size: 12px;
  color: var(--text-muted);
}

.demo-ex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.demo-ex-tag {
  font-size: 11.5px;
  color: var(--text-secondary);
  background: var(--surface-alt);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.demo-ex-row code {
  color: var(--accent);
  font-weight: 600;
  word-break: break-all;
}

.demo-cta {
  width: 100%;
}

.demo-footnote {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

.demo-footnote a {
  color: var(--accent);
  font-weight: 500;
}

.demo-footnote a:hover {
  text-decoration: underline;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15.5px;
}

.ver-badge {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-left: 6px;
}

/* Features grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

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

.feature-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-card code {
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--text);
}

/* Providers */
.provider-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 860px;
  margin: 0 auto;
}

.provider-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.provider-pill.highlight {
  background: var(--accent-soft);
  border-color: #bfdbfe;
  color: var(--accent);
  font-weight: 600;
}

/* CLI section */
.cli-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
}

.cli-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 2.8vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cli-copy p {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 15px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-right: 9px;
}

.check-list code {
  font-size: 12.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--text);
}

.cli-card {
  background: #0f172a;
  border-radius: var(--radius-md);
  border: 1px solid #1e293b;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cli-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 12px;
  background: #1e293b;
  flex-wrap: wrap;
}

.cli-tab {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.cli-tab.active {
  background: #334155;
  color: #ffffff;
}

.copy-btn {
  margin-left: auto;
  border: 1px solid #475569;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: #93c5fd;
  color: #ffffff;
}

.cli-code {
  margin: 0;
  padding: 20px;
  color: #e2e8f0;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  min-height: 220px;
}

/* Download */
.os-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.os-tab {
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-secondary);
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.os-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

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

.dl-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-card.recommended {
  background: var(--surface);
  border-color: #93c5fd;
  box-shadow: var(--shadow-sm);
}

.dl-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dl-title {
  margin: 0;
  font-size: 16px;
}

.dl-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.dl-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  flex: 1;
}

.dl-file {
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-all;
}

.checksum-note {
  margin-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.checksum-note a {
  color: var(--accent);
  text-decoration: underline;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

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

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

@media (max-width: 960px) {
  .hero-grid,
  .free-domain-card,
  .cli-layout,
  .feature-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .free-domain-card {
    padding: 24px;
  }

  .nav-links {
    display: none;
  }

  .mock-kpi-row {
    grid-template-columns: 1fr;
  }

  .window-body {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }
}

/* AI Agent One-Click Prompt Card */
.agent-prompt-card {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #f8fbff 0%, #ffffff 55%, #f1f5f9 100%);
  border: 1px solid #dbeafe;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.agent-prompt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.agent-prompt-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.agent-prompt-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.35;
  color: var(--text);
}

.agent-prompt-head p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.6;
}

.agent-prompt-head p a {
  color: var(--accent);
  font-weight: 600;
}

.agent-prompt-head p a:hover {
  text-decoration: underline;
}

.agent-doc-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.agent-scenario-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.agent-scenario-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.agent-scenario-tab:hover {
  border-color: #93c5fd;
  color: var(--text);
}

.agent-scenario-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.agent-prompt-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.agent-prompt-pre {
  margin: 0;
  padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #1e293b;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.agent-prompt-actions {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface);
}

.agent-prompt-tip {
  font-size: 12.5px;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .agent-prompt-card {
    padding: 20px;
  }
  .agent-prompt-pre {
    padding: 14px;
    font-size: 12.5px;
  }
}
