:root {
  color-scheme: light;
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-soft: #f3f7f8;
  --ink: #111827;
  --muted: #667085;
  --line: #e6e9ef;
  --teal: #00c4cc;
  --violet: #7d2ae8;
  --blue: #2d6cdf;
  --pink: #ff5f9e;
  --yellow: #ffd166;
  --green: #31c48d;
  --shadow: 0 20px 60px rgba(17, 24, 39, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

body.dark {
  color-scheme: dark;
  --bg: #101318;
  --surface: #171b22;
  --surface-soft: #1f2530;
  --ink: #f7f8fb;
  --muted: #a6adbb;
  --line: #2b3341;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 4px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--violet), var(--pink), var(--yellow));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(230, 233, 239, 0.78);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: white;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--teal), var(--blue), var(--violet), var(--pink), var(--yellow), var(--teal));
  box-shadow: 0 8px 22px rgba(0, 196, 204, 0.28);
}

.top-nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.top-nav a {
  padding: 8px 0;
}

.top-nav a:hover,
.reading-nav a.active {
  color: var(--ink);
}

.icon-button,
.back-top {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}

.icon-button svg,
.back-top svg,
.primary-action svg,
.secondary-action svg,
.feature-card svg,
.decision-strip svg,
.search-box svg {
  width: 18px;
  height: 18px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  max-width: 1360px;
  min-height: min(820px, calc(100vh - 74px));
  margin: 0 auto;
  padding: clamp(22px, 4.4vw, 58px) clamp(18px, 5vw, 70px) 26px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.primary-action {
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--violet) 56%, var(--pink));
  box-shadow: 0 14px 35px rgba(125, 42, 232, 0.26);
}

.secondary-action {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.hero-visual {
  position: relative;
  min-height: min(560px, calc(100vh - 160px));
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 196, 204, 0.58), rgba(125, 42, 232, 0.38) 48%, rgba(255, 209, 102, 0.24));
  z-index: 1;
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: min(560px, calc(100vh - 160px));
  object-fit: cover;
  filter: saturate(1.1);
}

.editor-panel {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 4vw, 48px);
  bottom: clamp(18px, 4vw, 48px);
  width: min(520px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
}

body.dark .editor-panel {
  background: rgba(23, 27, 34, 0.78);
}

.window-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 16px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
}

.window-dots span:nth-child(2) {
  background: var(--yellow);
}

.window-dots span:nth-child(3) {
  background: var(--green);
}

.mock-toolbar {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.55fr 0.7fr;
  gap: 8px;
  margin-bottom: 14px;
}

.mock-toolbar span,
.mock-stack span {
  height: 12px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.14);
}

body.dark .mock-toolbar span,
body.dark .mock-stack span {
  background: rgba(255, 255, 255, 0.16);
}

.mock-canvas {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.mock-poster {
  min-height: 250px;
  padding: 22px;
  border-radius: 16px;
  color: white;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 209, 102, 0.9), transparent 24%),
    linear-gradient(135deg, #00c4cc, #7d2ae8 58%, #ff5f9e);
}

.mock-poster strong {
  display: block;
  margin-top: 38px;
  font-size: 40px;
  line-height: 0.95;
}

.mock-poster small {
  display: block;
  margin-top: 20px;
  opacity: 0.86;
}

.mock-chip {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.mock-stack {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

body.dark .mock-stack {
  background: rgba(255, 255, 255, 0.08);
}

.section-band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.quick-map {
  padding: 58px clamp(18px, 5vw, 70px);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.path-grid,
.feature-grid,
.pricing-grid,
.mistake-list,
.launch-grid,
.faq-list {
  display: grid;
  gap: 16px;
}

.path-grid {
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--max);
  margin: 0 auto;
}

.quick-map .section-heading {
  max-width: var(--max);
  margin-inline: auto;
}

.path-card,
.feature-card,
.price-card,
.checklist,
.prompt-lab,
.mistake-list article,
.launch-grid article,
.faq-list article,
.publish-panel,
.decision-strip,
.accordion-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.path-card {
  min-height: 210px;
  padding: 24px;
}

.path-number {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--teal);
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 21px;
}

p {
  line-height: 1.75;
}

.path-card p,
.feature-card p,
.price-card p,
.mistake-list p,
.accordion-content p,
.decision-strip p {
  margin: 12px 0 0;
  color: var(--muted);
}

.content-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  max-width: calc(var(--max) + 320px);
  margin: 0 auto;
  padding: 56px clamp(18px, 4vw, 44px) 90px;
}

.reading-nav {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 112px);
  padding-right: 10px;
}

.reading-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.reading-nav a:hover,
.reading-nav a.active {
  background: var(--surface-soft);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.article-flow {
  display: grid;
  gap: 70px;
}

.guide-section {
  scroll-margin-top: 92px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  min-height: 240px;
  padding: 24px;
}

.feature-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 22px;
  color: var(--violet);
}

.billing-toggle,
.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.billing-toggle {
  margin-bottom: 18px;
}

.billing-toggle button,
.tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.billing-toggle button.active,
.tabs button.active {
  color: white;
  background: var(--ink);
}

.pricing-grid {
  grid-template-columns: repeat(4, 1fr);
}

.price-card {
  position: relative;
  min-height: 430px;
  padding: 22px;
  overflow: hidden;
}

.price-card.featured {
  border-color: rgba(125, 42, 232, 0.38);
  box-shadow: 0 18px 45px rgba(125, 42, 232, 0.15);
}

.plan-tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 12%, transparent);
  font-size: 12px;
  font-weight: 900;
}

.price {
  margin: 16px 0 12px;
  color: var(--ink) !important;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.15;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.price-card li {
  position: relative;
  padding-left: 20px;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.decision-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 16px;
  padding: 18px;
}

.decision-strip svg {
  margin-top: 5px;
  color: var(--green);
}

.tabs {
  margin-bottom: 22px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--violet));
  font-weight: 900;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
}

.checklist {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 24px;
}

.checklist h3 {
  margin-bottom: 4px;
}

.checklist label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--violet);
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  overflow: hidden;
}

.accordion-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
  border: 0;
  padding: 0 20px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.accordion-content {
  display: none;
  padding: 0 20px 20px;
}

.accordion-item.open .accordion-content {
  display: block;
}

.accordion-item.open svg {
  transform: rotate(180deg);
}

.prompt-lab {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 22px;
  align-items: start;
  margin-top: 28px;
  padding: 24px;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

pre code {
  display: block;
  padding: 18px;
  border-radius: var(--radius);
  color: #111827;
  background: #eef7f6;
  line-height: 1.75;
}

body.dark pre code {
  color: #eef7f6;
  background: #101820;
}

:not(pre) > code {
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--violet);
  background: color-mix(in srgb, var(--violet) 10%, transparent);
  font-size: 0.92em;
}

.copy-button {
  justify-self: start;
  grid-column: 2;
  cursor: pointer;
}

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

.mistake-list article,
.faq-list article {
  padding: 22px;
}

.mistake-list strong {
  font-size: 19px;
}

.launch-grid {
  grid-template-columns: repeat(3, 1fr);
}

.launch-grid article {
  min-height: 230px;
  padding: 22px;
}

.launch-grid span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--teal);
  font-weight: 900;
}

.publish-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-top: 18px;
  padding: 24px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal) 9%, transparent), transparent 44%),
    var(--surface);
}

.publish-panel ul {
  display: grid;
  align-content: center;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

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

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.source-section {
  padding-bottom: 20px;
}

.source-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: var(--surface);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
  padding: 34px clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer p {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.error-page {
  display: grid;
  align-content: center;
  gap: 42px;
  min-height: 100vh;
  padding: clamp(28px, 8vw, 86px);
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--teal) 24%, transparent), transparent 26%),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--pink) 18%, transparent), transparent 28%),
    var(--bg);
}

.error-page section {
  max-width: 720px;
}

.error-page h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 86px);
  line-height: 1;
}

.error-page p:not(.eyebrow) {
  max-width: 560px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 999px;
  color: white;
  background: #111827;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.is-hidden {
  display: none !important;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual,
  .hero-visual > img {
    min-height: 430px;
  }

  .content-shell {
    grid-template-columns: 1fr;
  }

  .reading-nav {
    position: static;
    grid-template-columns: repeat(3, 1fr);
    max-height: none;
    padding-right: 0;
  }

  .search-box {
    grid-column: 1 / -1;
  }

  .pricing-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .top-nav {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.08;
  }

  .hero-actions,
  .billing-toggle,
  .tabs {
    width: 100%;
  }

  .primary-action,
  .secondary-action,
  .billing-toggle button,
  .tabs button {
    flex: 1;
  }

  .primary-action,
  .secondary-action {
    gap: 8px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hero-visual,
  .hero-visual > img {
    min-height: 380px;
  }

  .editor-panel {
    left: 16px;
    right: 16px;
    width: auto;
  }

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

  .mock-stack {
    display: none;
  }

  .path-grid,
  .feature-grid,
  .pricing-grid,
  .mistake-list,
  .launch-grid,
  .faq-list,
  .publish-panel,
  .prompt-lab {
    grid-template-columns: 1fr;
  }

  .reading-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .reading-nav a {
    text-align: center;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  .copy-button {
    grid-column: 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .reading-nav {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .price-card,
  .feature-card,
  .path-card,
  .launch-grid article,
  .faq-list article,
  .publish-panel,
  .checklist,
  .prompt-lab,
  .mistake-list article {
    padding: 18px;
  }
}
