:root {
  --bg: #f5f0e7;
  --bg-2: #efe4d2;
  --paper: rgba(255, 251, 245, 0.94);
  --paper-strong: #fffdf9;
  --paper-dark: #19130f;
  --text: #211910;
  --muted: #665b4e;
  --line: rgba(58, 42, 24, 0.12);
  --line-strong: rgba(58, 42, 24, 0.22);
  --brand: #bb4d18;
  --brand-dark: #91370d;
  --brand-soft: rgba(187, 77, 24, 0.12);
  --teal: #145f63;
  --teal-soft: rgba(20, 95, 99, 0.1);
  --shadow: 0 30px 70px rgba(71, 41, 18, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(circle at 0 0, rgba(208, 119, 56, 0.16), transparent 24%),
    radial-gradient(circle at 100% 20%, rgba(20, 95, 99, 0.14), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a {
  color: inherit;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 6px;
}

.brand-link {
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.site-nav-links,
.site-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-nav-links a,
.site-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.hero-shell,
.panel,
.status-strip,
.doc-hero,
.doc-sidebar,
.doc-content {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.8fr);
  gap: 22px;
  padding: 38px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-copy {
  position: relative;
}

.hero-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 10px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(187, 77, 24, 0.16), transparent 68%);
  pointer-events: none;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  letter-spacing: 0.18em;
  font-size: 12px;
  text-transform: uppercase;
}

.version-pill,
.badge,
.mode-tag,
.hero-tags span,
.rail-kicker,
.path-no {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.version-pill {
  background: var(--teal-soft);
  color: var(--teal);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

h1 {
  margin-top: 18px;
  max-width: 11ch;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(24px, 3.3vw, 38px);
  line-height: 1.08;
}

h3 {
  font-size: 22px;
  line-height: 1.18;
}

.lead {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-tags span {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  color: var(--muted);
}

.hero-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail-card {
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.rail-card-primary {
  background:
    linear-gradient(180deg, rgba(33, 24, 16, 0.96), rgba(48, 34, 21, 0.92)),
    linear-gradient(120deg, rgba(187, 77, 24, 0.28), transparent 60%);
  color: #fff7ed;
  border-color: rgba(255, 255, 255, 0.08);
}

.rail-card-primary p,
.rail-card-primary li,
.rail-card-primary h2,
.rail-card-primary .rail-kicker {
  color: inherit;
}

.rail-kicker,
.badge,
.mode-tag,
.path-no {
  background: var(--brand-soft);
  color: var(--brand);
}

.rail-card-primary .rail-kicker {
  background: rgba(255, 255, 255, 0.14);
  color: #ffd8b5;
}

.rail-steps {
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.rail-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
}

.status-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
}

.status-item strong {
  display: block;
  font-size: 16px;
}

.status-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.panel.muted {
  background: rgba(250, 246, 239, 0.88);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.path-grid,
.mode-grid,
.grid,
.pricing-grid,
.faq-list,
.callout-row {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

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

.pricing-grid {
  grid-template-columns: 1.05fr 1fr;
}

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

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

.path-card,
.mode-panel,
.pricing-card,
.faq-item,
.callout-card,
.card {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.mode-panel-accent,
.pricing-card-accent {
  background: linear-gradient(180deg, rgba(232, 246, 243, 0.92), rgba(255, 250, 245, 0.92));
}

.path-card p,
.mode-panel ul,
.pricing-desc,
.pricing-copy,
.pricing-list,
.faq-item p,
.callout-card p,
.card ul,
.steps,
.hint,
.release-row,
.doc-section p,
.doc-section li,
.doc-hero p {
  color: var(--muted);
  line-height: 1.75;
}

.path-card .btn,
.pricing-card .btn {
  margin-top: 16px;
}

.pricing-title {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-price {
  margin-top: 12px;
  font-size: clamp(46px, 7vw, 68px);
  line-height: 1;
}

.purchase-form {
  margin-top: 18px;
}

.purchase-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.purchase-input {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  padding: 0 14px;
  color: var(--text);
  font: inherit;
}

.purchase-btn {
  width: 100%;
  margin-top: 12px;
}

.purchase-status {
  min-height: 22px;
  margin-top: 12px;
  font-size: 13px;
}

.purchase-status.success {
  color: var(--teal);
}

.purchase-status.error {
  color: #a5391a;
}

.command-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: var(--paper-dark);
  color: #fff3e3;
}

code {
  font-family: "SFMono-Regular", "Menlo", monospace;
  font-size: 14px;
}

#copy-command {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff8f1;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.primary {
  background: var(--brand);
  color: #fff7ef;
}

.primary:hover {
  background: var(--brand-dark);
}

.secondary {
  background: var(--paper-strong);
  border-color: var(--line-strong);
  color: var(--text);
}

.tertiary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--muted);
}

.steps,
.pricing-list,
.card ul,
.mode-panel ul,
.rail-steps {
  padding-left: 18px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 8px 6px 0;
  color: var(--muted);
  font-size: 14px;
}

.doc-hero {
  border-radius: var(--radius-xl);
  padding: 34px 36px;
}

.doc-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 24px;
}

.doc-sidebar,
.doc-content {
  border-radius: 24px;
}

.doc-sidebar {
  align-self: start;
  position: sticky;
  top: 20px;
  padding: 22px;
}

.doc-sidebar h2 {
  margin-bottom: 14px;
  font-size: 18px;
}

.doc-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doc-sidebar a {
  text-decoration: none;
  color: var(--muted);
}

.doc-sidebar a:hover {
  color: var(--text);
}

.doc-content {
  padding: 30px;
}

.doc-section + .doc-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.doc-section ul,
.doc-section ol {
  margin: 14px 0 0;
  padding-left: 18px;
}

.doc-callout {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--teal-soft);
  border: 1px solid rgba(20, 95, 99, 0.18);
}

@media (max-width: 980px) {
  .hero-shell,
  .pricing-grid,
  .doc-layout,
  .status-strip,
  .path-grid,
  .mode-grid,
  .callout-row,
  .grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 24px 14px 52px;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-shell,
  .panel,
  .doc-hero,
  .doc-sidebar,
  .doc-content {
    padding: 22px;
    border-radius: 22px;
  }

  h1 {
    max-width: none;
    font-size: clamp(34px, 10vw, 50px);
  }

  .hero-actions,
  .command-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  #copy-command {
    width: 100%;
  }
}
