@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --vd-bg: #fff8f1;
  --vd-bg-shell: rgba(255, 253, 249, 0.84);
  --vd-ink: #251713;
  --vd-muted: #6e5c55;
  --vd-border: rgba(37, 23, 19, 0.12);
  --vd-accent: #ff7a45;
  --vd-accent-deep: #d65220;
  --vd-accent-soft: rgba(255, 122, 69, 0.12);
  --vd-secondary: #1c6b5c;
  --vd-shadow: 0 24px 60px rgba(64, 33, 24, 0.12);
  --vd-radius: 26px;
  --vd-radius-soft: 18px;
  --vd-container: 1120px;
  --vd-font: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --vd-mono: "Geist Mono", ui-monospace, monospace;
  --text-primary: var(--vd-ink);
  --text-secondary: #645650;
  --text-muted: #8a7a73;
  --brand: #1c6b5c;
  --brand-deep: #155145;
  --border-soft: rgba(37, 23, 19, 0.1);
  --radius-card: 24px;
  --shadow-card: 0 22px 60px rgba(15, 23, 31, 0.08);
  --font-display: var(--vd-font);
  --font-mono: var(--vd-mono);
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 69, 0.16), transparent 28%),
    radial-gradient(circle at right 15%, rgba(28, 107, 92, 0.16), transparent 24%),
    linear-gradient(180deg, #fff8f1 0%, #f9efe6 100%);
  color: var(--vd-ink);
  font-family: var(--vd-font);
  line-height: 1.65;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

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

button,
textarea {
  font: inherit;
}

img {
  display: block;
}

code {
  font-family: var(--vd-mono);
}

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

.vd-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 241, 0.78);
  border-bottom: 1px solid rgba(37, 23, 19, 0.08);
}

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

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

.vd-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.vd-nav a {
  color: var(--vd-muted);
}

.vd-nav a:hover,
.vd-nav a[aria-current="page"] {
  color: var(--vd-ink);
}

.vd-nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--vd-ink);
  color: #fff8f1 !important;
}

.vd-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--vd-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.vd-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--vd-ink);
}

.vd-hero,
.vd-section,
.vd-console-main {
  padding: 84px 0;
}

.vd-hero {
  position: relative;
  overflow: hidden;
}

.vd-hero-orb {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(16px);
  opacity: 0.72;
}

.vd-hero-orb-a {
  top: -100px;
  left: -120px;
  background: rgba(255, 122, 69, 0.18);
}

.vd-hero-orb-b {
  right: -80px;
  bottom: -120px;
  background: rgba(28, 107, 92, 0.16);
}

.vd-hero-grid,
.vd-guide-grid,
.vd-buy-strip {
  display: grid;
  gap: 28px;
  align-items: start;
}

.vd-hero-grid,
.vd-guide-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.vd-eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vd-accent-deep);
}

.vd-hero-copy h1,
.vd-console-copy h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.vd-lead,
.vd-section-head p,
.vd-console-copy p {
  margin-top: 18px;
  font-size: 18px;
  color: var(--vd-muted);
}

.vd-actions,
.vd-buy-actions,
.vd-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.vd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
}

.vd-btn-primary {
  background: linear-gradient(135deg, var(--vd-accent) 0%, #ff9d5c 100%);
  color: #fff7f2;
  box-shadow: var(--vd-shadow);
}

.vd-btn-secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: var(--vd-border);
}

.vd-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.vd-pill-row span,
.vd-plan-tag,
.vd-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--vd-border);
}

.vd-hero-card,
.vd-plan-card,
.vd-code-card,
.vd-note-card,
.vd-status-form,
.vd-status-result,
.vd-buy-strip {
  padding: 28px;
  border: 1px solid var(--vd-border);
  border-radius: var(--vd-radius);
  background: var(--vd-bg-shell);
  box-shadow: var(--vd-shadow);
}

.vd-card-label {
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vd-muted);
}

.vd-steps,
.vd-list {
  padding-left: 18px;
}

.vd-steps li + li,
.vd-list li + li {
  margin-top: 14px;
}

.vd-section-head {
  max-width: 720px;
}

.vd-section-head h2,
.vd-buy-strip h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.vd-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.vd-plan-card-featured {
  background: linear-gradient(180deg, rgba(255, 122, 69, 0.12), rgba(255, 255, 255, 0.72));
  transform: translateY(-8px);
}

.vd-code-card,
.vd-result-kv {
  display: grid;
  gap: 14px;
}

.vd-code-card span,
.vd-result-kv span,
.vd-result-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--vd-muted);
}

.vd-code-card code,
.vd-result-kv code {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(37, 23, 19, 0.06);
}

.vd-section-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 122, 69, 0.06));
}

.vd-console-shell {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.vd-status-form textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 10px;
  padding: 16px;
  border: 1px solid var(--vd-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  resize: vertical;
}

.vd-form-hint,
.vd-status-error {
  margin-top: 14px;
  color: var(--vd-muted);
}

.vd-status-error {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(214, 82, 32, 0.18);
  background: rgba(255, 122, 69, 0.08);
  color: #7e3213;
}

.vd-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.vd-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.vd-result-grid article {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--vd-border);
}

.vd-status-badge {
  min-width: 108px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .vd-nav-toggle {
    display: inline-block;
  }

  .vd-nav {
    position: absolute;
    top: 78px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--vd-border);
    background: rgba(255, 248, 241, 0.96);
  }

  .vd-nav.vd-nav-open,
  .vd-nav.vd-nav-static {
    display: flex;
  }

  .vd-hero-grid,
  .vd-guide-grid,
  .vd-plan-grid,
  .vd-result-grid,
  .vd-buy-strip {
    grid-template-columns: 1fr;
  }

  .vd-plan-card-featured {
    transform: none;
  }
}

body.vd-page-console {
  background:
    radial-gradient(circle at 100% 0%, rgba(28, 107, 92, 0.08), transparent 22%),
    radial-gradient(circle at 0% 8%, rgba(255, 122, 69, 0.1), transparent 26%),
    linear-gradient(180deg, #faf5ed 0%, #f3ece1 100%);
}

body.vd-page-console .vd-console-main {
  padding: 20px 0 40px;
}

.vd-console-wrap {
  width: min(1280px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.vd-console-head,
.vd-query-strip,
.console-stat-card,
.vd-panel {
  border: 1px solid rgba(37, 23, 19, 0.08);
  background: rgba(255, 252, 248, 0.9);
  box-shadow: 0 16px 42px rgba(15, 23, 31, 0.06);
}

.vd-console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 251, 246, 0.76)),
    radial-gradient(circle at 100% 0%, rgba(28, 107, 92, 0.08), transparent 24%);
}

.vd-console-head-copy {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.vd-console-kicker {
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vd-console-head h1 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.vd-console-head p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
  max-width: 700px;
}

.vd-console-head-meta {
  min-width: 240px;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.vd-console-head-meta p {
  max-width: 260px;
  text-align: right;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.vd-query-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.vd-query-strip-form {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.vd-query-strip-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vd-query-strip-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vd-query-strip-caption {
  color: var(--text-muted);
  font-size: 11px;
}

.vd-query-strip-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.vd-query-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(37, 23, 19, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--vd-ink);
  font-family: var(--vd-mono);
  font-size: 12.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.vd-query-input:focus {
  outline: 2px solid rgba(28, 107, 92, 0.16);
  border-color: rgba(28, 107, 92, 0.34);
}

.vd-query-strip .vd-btn {
  min-height: 42px;
  padding: 0 14px;
}

.vd-query-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.vd-query-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.vd-query-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(37, 23, 19, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.vd-query-meta span,
.console-stat-card span,
.vd-panel-head p,
.vd-kv span {
  color: var(--text-muted);
}

.vd-query-meta span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vd-query-meta strong {
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 620;
  overflow-wrap: anywhere;
}

.console-alert {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(37, 23, 19, 0.08);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12.5px;
  line-height: 1.5;
}

.console-alert[hidden] {
  display: none;
}

.console-alert.is-error {
  border-color: rgba(214, 82, 32, 0.18);
  background: rgba(255, 122, 69, 0.08);
  color: #7e3213;
}

.console-alert.is-success {
  border-color: rgba(28, 107, 92, 0.2);
  background: rgba(28, 107, 92, 0.08);
  color: var(--brand-deep);
}

.vd-usage-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.console-stat-card,
.vd-panel {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 251, 246, 0.88));
}

.console-stat-card span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.console-stat-card strong {
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.vd-usage-stat-text {
  grid-column: span 2;
}

.vd-usage-stat-text strong {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.vd-usage-note {
  padding: 2px 2px 0;
}

.vd-usage-note p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.vd-panel-head {
  display: grid;
  gap: 4px;
}

.vd-panel-head h2 {
  font-size: 17px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.vd-panel-head p {
  font-size: 12px;
  line-height: 1.5;
}

.vd-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(37, 23, 19, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-size: 11px;
}

.vd-status-pill {
  min-width: 84px;
  font-weight: 700;
  text-transform: uppercase;
}

.vd-status-pill[data-status="active"] {
  border-color: rgba(28, 107, 92, 0.24);
  background: rgba(28, 107, 92, 0.12);
  color: var(--brand-deep);
}

.vd-status-pill[data-status="expired"],
.vd-status-pill[data-status="revoked"],
.vd-status-pill[data-status="error"] {
  border-color: rgba(214, 82, 32, 0.24);
  background: rgba(255, 122, 69, 0.12);
  color: #9a411c;
}

.vd-status-pill[data-status="loading"],
.vd-status-pill[data-status="idle"],
.vd-status-pill[data-status="not_found"] {
  color: var(--text-secondary);
}

.console-table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(37, 23, 19, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
}

.console-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.console-table th {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(37, 23, 19, 0.08);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.console-table td {
  padding: 10px 11px;
  border-bottom: 1px solid rgba(37, 23, 19, 0.06);
  font-size: 12.5px;
  line-height: 1.45;
  vertical-align: top;
}

.console-empty-cell {
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 1180px) {
  .vd-query-strip {
    grid-template-columns: 1fr;
  }

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

  .vd-usage-stat-text {
    grid-column: span 2;
  }
}

@media (max-width: 920px) {
  body.vd-page-console .vd-console-main {
    padding: 14px 0 28px;
  }

  .vd-console-wrap {
    width: min(100%, calc(100% - 20px));
    gap: 10px;
  }

  .vd-console-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 14px;
    border-radius: 18px;
  }

  .vd-console-head-meta {
    min-width: 0;
    justify-items: start;
  }

  .vd-console-head-meta p {
    max-width: none;
    text-align: left;
  }

  .vd-query-strip {
    padding: 13px;
    border-radius: 18px;
  }

  .vd-query-strip-labels {
    display: grid;
    gap: 4px;
  }

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

  .vd-query-input {
    grid-column: 1 / -1;
  }

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

  .console-stat-card,
  .vd-panel {
    padding: 14px;
  }

  .console-table {
    min-width: 700px;
  }
}

@media (max-width: 640px) {
  .vd-query-summary,
  .vd-usage-summary-grid,
  .vd-query-strip-inputs {
    grid-template-columns: 1fr;
  }

  .vd-usage-stat-text {
    grid-column: span 1;
  }

  .vd-query-strip .vd-btn {
    width: 100%;
  }

  .vd-console-head h1 {
    font-size: 22px;
  }

  .console-table {
    min-width: 620px;
  }
}
