/* Mycel marketing site — shared styles (WP-03) */
:root {
  --bg: #090b09;
  --bg-soft: #111510;
  --panel: #171c15;
  --border: #2b3728;
  --border-faint: rgba(43, 55, 40, 0.64);
  --text: #eef5e8;
  --muted: #afbea9;
  --faint: #778673;
  --gold: #ceff45;
  --gold-soft: #e1ffa5;
  --amber: #a8e85d;
  --green: #82df9b;
  --blue: #78a4ff;
  --radius: 16px;
  --maxw: 1080px;
  --font: 'MiSans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.012em;
}

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

a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 2px;
}

.brand img,
.hero img.mark {
  object-fit: cover;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(206, 255, 69, 0.13), transparent 60%),
    radial-gradient(50% 40% at 12% 30%, rgba(130, 223, 155, 0.08), transparent 60%),
    radial-gradient(80% 60% at 50% 120%, rgba(206, 255, 69, 0.05), transparent 60%);
}

main { position: relative; z-index: 1; }

/* nav */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(9, 11, 9, 0.76);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.brand img {
  height: 26px;
  width: 26px;
  border-radius: 7px;
}

.navlinks {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.navlinks a[aria-current="page"] {
  color: var(--gold-soft);
}

.lang-switch {
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}

.lang-switch:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--border);
  transition: 0.2s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #0b0f09;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(206, 255, 69, 0.18);
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-ghost { color: var(--text); }

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn[aria-disabled="true"] {
  opacity: 0.72;
  pointer-events: none;
  cursor: not-allowed;
}

.btn[hidden] { display: none !important; }

/* hero */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.hero img.mark {
  height: 72px;
  width: 72px;
  border-radius: 18px;
  box-shadow: 0 14px 50px rgba(206, 255, 69, 0.22);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(30px, 5.5vw, 52px);
  line-height: 1.14;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

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

.hero .sub {
  margin-top: 16px;
  color: var(--faint);
  font-size: 13px;
}

/* sections */
section { padding: 56px 0; }

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(24px, 3.8vw, 36px);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 32px;
  font-size: 16px;
}

/* cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  transition: 0.25s;
}

.card:hover {
  border-color: rgba(206, 255, 69, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.card .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 12px;
  background: rgba(206, 255, 69, 0.10);
  border: 1px solid rgba(206, 255, 69, 0.24);
}

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

.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* screenshot frame */
.shot-frame {
  margin: 32px auto 0;
  max-width: 960px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  background: var(--panel);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  min-height: 280px;
  padding: 24px;
  text-align: center;
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-soft),
    var(--bg-soft) 12px,
    var(--panel) 12px,
    var(--panel) 24px
  );
  border: 1px dashed var(--border);
  color: var(--faint);
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
}

.shot-placeholder strong {
  display: block;
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 6px;
}

.shot-placeholder code {
  font-size: 12px;
  color: var(--gold);
}

/* comparison table — ledger style */
.compare-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ledger-table thead th {
  text-align: left;
  padding: 14px 12px;
  font-weight: 600;
  color: var(--text);
  border-top: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ledger-table tbody td {
  padding: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--border-faint);
  vertical-align: top;
}

.ledger-table tbody tr:last-child td {
  border-bottom: 1px solid var(--border);
}

.ledger-table .col-mycel {
  color: var(--gold-soft);
}

.ledger-table .col-feature {
  color: var(--text);
  font-weight: 500;
  width: 28%;
}

.honest-note {
  margin-top: 20px;
  padding: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  border-top: 1px solid var(--border-faint);
}

/* price anchor subsection */
.price-anchor {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.price-anchor h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.price-anchor p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}

/* trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  padding: 20px 0;
  color: var(--faint);
  font-size: 13px;
}

.trust-strip span::before {
  content: "·";
  margin-right: 16px;
  color: var(--border);
}

.trust-strip span:first-child::before { content: none; margin: 0; }

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.step .n {
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.step h3 { margin: 0 0 6px; font-size: 17px; }

.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* pricing page */
.pricing-hero { padding-top: 72px; text-align: center; }

.early-bird-badge {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(206, 255, 69, 0.44);
  background: rgba(206, 255, 69, 0.09);
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.pricing-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.pricing-card.featured {
  border-color: rgba(206, 255, 69, 0.48);
  background: linear-gradient(180deg, rgba(206, 255, 69, 0.08), var(--panel));
}

.pricing-card h3 { margin: 0 0 4px; font-size: 18px; }

.pricing-card .price {
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-soft);
  margin: 12px 0;
  letter-spacing: -0.02em;
}

.pricing-card ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.pricing-card li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-faint);
}

.pricing-card li:last-child { border-bottom: none; }

.pricing-card .cta-row { margin-top: 20px; }

.faq-list { margin-top: 48px; }

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-faint);
}

.faq-item h4 { margin: 0 0 8px; font-size: 16px; }

.faq-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* download page */
.platform-grid {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.platform-row.available { border-color: rgba(121, 216, 157, 0.35); }

.platform-info h3 { margin: 0 0 4px; font-size: 16px; }

.platform-info p { margin: 0; color: var(--muted); font-size: 13px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.version-line {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.install-note {
  margin-top: 24px;
  padding: 16px 20px;
  border-left: 2px solid var(--gold);
  color: var(--muted);
  font-size: 14px;
  background: rgba(206, 255, 69, 0.06);
  border-radius: 0 8px 8px 0;
}

/* privacy */
.privacy-content h3 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.privacy-content p,
.privacy-content li {
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.privacy-content ul { padding-left: 20px; }

.privacy-divider {
  margin: 48px 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--faint);
  font-size: 13px;
}

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

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

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

.page-hero {
  padding: 72px 0 32px;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

@media (max-width: 760px) {
  .grid,
  .steps { grid-template-columns: 1fr; }

  .navlinks a.nav-hide-mobile { display: none; }

  .hero { padding: 56px 0 40px; }

  section { padding: 40px 0; }

  .ledger-table { font-size: 13px; }

  .ledger-table .col-feature { width: 36%; }

  .platform-row { flex-direction: column; align-items: flex-start; }

  .rel-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }

  nav .wrap { height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; }

  .navlinks { gap: 10px; font-size: 13px; }

  .hero h1 { font-size: clamp(26px, 8vw, 34px); }

  .hero .cta { flex-direction: column; align-items: stretch; }

  .hero .cta .btn { justify-content: center; }

  .footer-links { gap: 10px 14px; font-size: 13px; }

  .page-hero { padding: 56px 0 24px; }
}

/* releases / changelog page (从 CHANGELOG.md 生成) */
.rel-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 760px;
}

.rel-entry {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.rel-entry:first-child {
  border-top: 2px solid var(--border);
}

.rel-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 14px;
}

.rel-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.rel-head time {
  color: var(--faint);
  font-size: 14px;
}

.rel-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--bg);
  background: var(--gold);
  border-radius: 999px;
  padding: 2px 10px;
}

.rel-cat {
  margin-top: 14px;
}

.rel-cat h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-soft);
  text-transform: none;
}

.rel-cat ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.rel-cat li {
  margin: 2px 0;
}

.rel-cat li.rel-more {
  list-style: none;
  margin-left: -20px;
  color: var(--faint);
  font-size: 13px;
}

.rel-maint {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 15px;
}

.rel-download-note {
  margin-top: 8px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
}

/* Docs share the home surface while retaining their page-specific copy. */
.docs-layout,
.docs-layout > *,
.docs-content { min-width: 0; }

.docs-content {
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

.docs-content pre,
.docs-content code,
.shot-frame,
.shot-frame img,
.table-scroll,
.ledger-table,
.platform-row .btn { max-width: 100%; }

.table-scroll { overflow-x: auto; }

.docs-sidebar {
  background: rgba(17, 21, 16, 0.82) !important;
}

.docs-sidebar a:hover,
.docs-sidebar a[aria-current="page"] {
  color: var(--gold-soft) !important;
  background: rgba(206, 255, 69, 0.09) !important;
}

.docs-note,
.install-note { border-left-color: var(--gold) !important; }

.enterprise-tag {
  background: var(--gold-soft) !important;
  color: #0b0f09 !important;
}

.enterprise-story { border-left-color: var(--gold-soft) !important; }
