:root {
  --bg: #eef3f8;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --ink: #101826;
  --muted: #5d6b7c;
  --line: rgba(16, 24, 38, 0.1);
  --accent: #0c8f7c;
  --accent-deep: #066657;
  --accent-soft: rgba(12, 143, 124, 0.12);
  --warm: #d9480f;
  --code-bg: #0f1724;
  --shadow-soft: 0 18px 50px rgba(16, 40, 60, 0.08);
  --radius: 18px;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--warm);
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Atmosphere */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.atmosphere__wash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 45% at 15% 10%, rgba(120, 190, 210, 0.45), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(12, 143, 124, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 50% at 50% 90%, rgba(217, 150, 90, 0.14), transparent 60%),
    linear-gradient(165deg, #f7fafc 0%, #e8eef6 45%, #e3ecf4 100%);
  animation: wash-drift 18s ease-in-out infinite alternate;
}

.atmosphere__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 24, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 38, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

.atmosphere__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
}

.atmosphere__orb--a {
  width: 280px;
  height: 280px;
  top: 12%;
  right: 8%;
  background: rgba(12, 143, 124, 0.28);
  animation: orb-float 14s ease-in-out infinite alternate;
}

.atmosphere__orb--b {
  width: 220px;
  height: 220px;
  bottom: 18%;
  left: 6%;
  background: rgba(90, 150, 190, 0.28);
  animation: orb-float 16s ease-in-out infinite alternate-reverse;
}

@keyframes wash-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-1.5%, 1.2%, 0) scale(1.03); }
}

@keyframes orb-float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(18px, -22px, 0); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(14px);
  background: rgba(238, 243, 248, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(238, 243, 248, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand__mark {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--accent), #1aa6c4);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.brand__thin {
  font-weight: 600;
  margin-left: 0.15rem;
  color: var(--muted);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: underline-in 0.35s ease;
}

@keyframes underline-in {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.nav-cta {
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  background: var(--ink);
  color: #f5f8fb !important;
  text-decoration: none !important;
}

.nav-cta:hover {
  background: var(--accent-deep);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elevated);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav a {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--accent-soft);
}

@media (min-width: 880px) {
  .site-nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--ink);
  color: #f7fafc;
}

.btn--primary:hover {
  background: var(--accent-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* Hero */
.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  gap: 2.5rem;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) 3rem;
  max-width: 1280px;
  margin: 0 auto;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(120deg, var(--ink) 20%, var(--accent-deep) 70%, #1aa6c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  min-width: 0;
}

.ide-stage {
  border-radius: 22px;
  overflow: hidden;
  background: var(--code-bg);
  color: #d7e0ea;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transform-origin: center;
  animation: stage-settle 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes stage-settle {
  from {
    opacity: 0;
    transform: perspective(1200px) rotateY(-12deg) rotateX(8deg) translateY(24px);
  }
  to {
    opacity: 1;
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) translateY(0);
  }
}

.ide-stage__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ide-stage__chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a4556;
}

.ide-stage__chrome span:nth-child(1) { background: #e07a5f; }
.ide-stage__chrome span:nth-child(2) { background: #f2cc8f; }
.ide-stage__chrome span:nth-child(3) { background: #81b29a; }

.ide-stage__chrome em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #8b9bb0;
  letter-spacing: 0.04em;
}

.ide-stage__body {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 280px;
}

.ide-stage__sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1rem 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.ide-stage__sidebar i {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.ide-stage__sidebar i:nth-child(2) {
  background: rgba(12, 143, 124, 0.55);
}

.ide-stage__editor {
  display: grid;
  grid-template-rows: 1fr auto;
}

.ide-code {
  margin: 0;
  padding: 1.1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.8vw, 0.86rem);
  line-height: 1.65;
  overflow: auto;
}

.ide-code .c-k { color: #7dd3c0; }
.ide-code .c-f { color: #9ec5fe; }
.ide-code .c-s { color: #f0b27a; }

.ide-chat {
  margin: 0 0.85rem 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(125, 211, 192, 0.2);
}

.ide-chat__label {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3c0;
}

.ide-chat p {
  margin: 0;
  font-size: 0.88rem;
  color: #c5d0dc;
}

.ide-chat__bar {
  margin-top: 0.75rem;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.ide-chat__bar span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #1aa6c4);
  animation: progress-pulse 2.4s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% { width: 28%; opacity: 0.7; }
  50% { width: 68%; opacity: 1; }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

@media (max-width: 959px) {
  .ide-stage {
    transform: none;
    animation: none;
  }
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem clamp(1rem, 4vw, 2.5rem);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section__head h2,
.page-hero h1,
.cta-section h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
}

.section__head p,
.page-hero__lead {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* Learning path */
.path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.path-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.path-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.path-list__n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.path-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.path-list p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 800px) {
  .path-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .path-list li {
    grid-template-columns: 1fr;
    border: none;
    padding: 0;
    border-left: 2px solid var(--accent);
    padding-left: 1rem;
  }

  .path-list li:last-child {
    border-bottom: none;
  }
}

/* Feature rail — interaction list, not card grid chrome */
.feature-rail {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1.35rem 0.15rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.25s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.35);
  padding-left: 0.55rem;
  color: inherit;
}

.feature-item__icon {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent);
  min-width: 2rem;
}

.feature-item__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.feature-item__title {
  display: block;
  font-weight: 700;
  font-size: 1.08rem;
  margin-bottom: 0.3rem;
}

.feature-item__summary {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-item__time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.2rem;
}

/* CTA */
.cta-section {
  text-align: left;
  margin-bottom: 3rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
}

.cta-section p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 36rem;
}

/* Catalog / guide pages */
.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.75rem clamp(1rem, 4vw, 2.5rem) 1rem;
}

.tool-section {
  padding-top: 1rem;
}

.tool-grid {
  display: grid;
  gap: 1rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.25rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.tool-card:hover {
  border-color: rgba(12, 143, 124, 0.35);
  background: rgba(255, 255, 255, 0.78);
  transform: translateY(-2px);
  color: inherit;
}

.tool-card__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.tool-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.tool-card__blurb {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.tool-card__go {
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--accent-deep);
  font-size: 0.92rem;
}

.catalog-group {
  max-width: var(--max);
  margin: 0 auto 2.75rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.catalog-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.catalog-group__head h2 {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
}

.catalog-group__head p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.catalog-group__entry {
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.catalog-group__entry:hover {
  color: var(--warm);
}

.catalog-group .catalog {
  max-width: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .tool-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-hero--compact h1 {
  max-width: 12ch;
}

.catalog {
  max-width: var(--max);
  margin: 0 auto 4rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
}

.catalog-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.25s ease;
}

.catalog-card:first-child {
  border-top: 1px solid var(--line);
}

.catalog-card:hover {
  padding-left: 0.5rem;
  color: inherit;
}

.catalog-card__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--accent);
}

.catalog-card__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog-card__title {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0.15rem 0;
}

.catalog-card__summary {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}

.catalog-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.catalog-card__arrow {
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.catalog-card:hover .catalog-card__arrow {
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .catalog-card,
  .feature-item {
    grid-template-columns: auto 1fr;
  }

  .catalog-card__aside,
  .feature-item__time {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    gap: 0.75rem;
  }
}

/* Guide article layout */
.guide-layout {
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 0;
  display: grid;
  gap: 2rem;
}

.guide-aside {
  display: none;
}

.guide-toc,
.guide-onpage {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.guide-aside__label {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-aside__label--sub {
  margin-top: 1.75rem;
}

.guide-toc a,
.guide-onpage a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  line-height: 1.35;
}

.guide-onpage a {
  display: block;
  padding-left: 0.75rem;
  border-left: 2px solid transparent;
  border-radius: 0;
}

.guide-toc a span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
}

.guide-toc a[aria-current="page"],
.guide-toc a:hover,
.guide-onpage a:hover,
.guide-onpage a.is-active {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.guide-onpage a.is-active {
  border-left-color: var(--accent);
  background: transparent;
  color: var(--accent-deep);
  font-weight: 600;
}

.guide-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.guide-crumb a {
  color: var(--muted);
  text-decoration: none;
}

.guide-crumb a:hover {
  color: var(--accent-deep);
}

.guide-article__head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.guide-article__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.guide-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.guide-chip--soft {
  background: rgba(16, 24, 38, 0.06);
  color: var(--muted);
}

.guide-article__head h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.guide-article__summary {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.guide-article__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.guide-mobile-toc {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.guide-mobile-toc summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.guide-mobile-toc nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.guide-mobile-toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.guide-mobile-toc a:hover {
  color: var(--accent-deep);
}

.guide-article__body {
  max-width: 44rem;
}

.guide-article__body h2 {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.guide-article__foot {
  max-width: 44rem;
  margin-top: 2rem;
  padding: 1rem 0 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.guide-article__foot p {
  margin: 0;
}

.prose-block {
  margin-bottom: 2.5rem;
}

.prose-block h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.prose-block h3 {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
}

.prose-block p,
.prose-block li {
  color: #2a3545;
}

.prose-block ul,
.prose-block ol {
  padding-left: 1.2rem;
}

.prose-block li + li {
  margin-top: 0.35rem;
}

.prose-block pre,
.callout pre,
.note-prompt pre {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow: auto;
  border-radius: 14px;
  background: var(--code-bg);
  color: #d7e0ea;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
}

.note-prompt pre {
  border-radius: 0 0 14px 14px;
}

.prose-block code,
.callout code,
.note-prompt code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

.prose-block p code,
.prose-block li code {
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: rgba(16, 24, 38, 0.06);
}

kbd {
  display: inline-block;
  padding: 0.1em 0.4em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 0.82em;
  line-height: 1.4;
}

.callout {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 0 14px 14px 0;
}

.callout p {
  margin: 0;
}

.note-label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.note-takeaway,
.note-pitfall {
  margin: 1.15rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
}

.note-takeaway {
  background: rgba(12, 143, 124, 0.1);
  border: 1px solid rgba(12, 143, 124, 0.22);
}

.note-takeaway .note-label {
  color: var(--accent-deep);
}

.note-pitfall {
  background: rgba(217, 72, 15, 0.08);
  border: 1px solid rgba(217, 72, 15, 0.18);
}

.note-pitfall .note-label {
  color: var(--warm);
}

.note-takeaway p,
.note-pitfall p,
.note-takeaway ul,
.note-pitfall ul {
  margin: 0;
}

.note-prompt {
  margin: 1.15rem 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--code-bg);
}

.note-prompt__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #8b9bb0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.note-copy {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #d7e0ea;
  border-radius: 8px;
  padding: 0.28rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.note-copy:hover,
.note-copy.is-copied {
  background: rgba(12, 143, 124, 0.35);
  border-color: rgba(125, 211, 192, 0.45);
}

.note-compare {
  display: grid;
  gap: 1rem;
  margin: 1.15rem 0;
}

.note-compare > div {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
}

.note-compare h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.note-compare ul {
  margin: 0;
}

.note-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.15rem 0;
}

.note-chip {
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
}

.note-chip h3 {
  margin: 0 0 0.35rem;
  color: var(--accent-deep);
}

.note-chip p {
  margin: 0;
  font-size: 0.95rem;
}

.note-steps {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  counter-reset: note-step;
}

.note-steps > li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.6rem;
  border-bottom: 1px solid var(--line);
  counter-increment: note-step;
}

.note-steps > li::before {
  content: counter(note-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--accent);
  font-size: 0.95rem;
}

.note-steps > li:last-child {
  border-bottom: none;
}

.note-steps p {
  margin: 0.35rem 0 0;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0;
}

.doc-table th,
.doc-table td {
  text-align: left;
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc-table th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.guide-pager {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.guide-pager__link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.05rem;
  color: inherit;
  text-decoration: none;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.guide-pager__link:hover {
  border-color: rgba(12, 143, 124, 0.35);
  background: rgba(255, 255, 255, 0.7);
}

.guide-pager__link span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.guide-pager__link strong {
  font-size: 1.05rem;
}

.guide-pager__link:hover strong {
  color: var(--accent-deep);
}

.guide-pager__link--next {
  text-align: right;
}

.guide-pager__placeholder {
  display: flex;
  align-items: center;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-pager__placeholder--end {
  justify-content: flex-end;
}

@media (min-width: 640px) {
  .note-compare {
    grid-template-columns: 1fr 1fr;
  }

  .note-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .guide-pager {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 980px) {
  .guide-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 3rem;
  }

  .guide-aside {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 2rem);
    overflow: auto;
  }

  .guide-mobile-toc {
    display: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer__brand {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.site-footer__note {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36rem;
  font-size: 0.95rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  margin: 0;
}

.site-footer__links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__links a:hover {
  color: var(--accent-deep);
}

.site-footer__beian {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.site-footer__beian a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.site-footer__beian a:hover {
  color: var(--ink);
}

.site-footer__beian img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .atmosphere__wash,
  .atmosphere__orb,
  .ide-chat__bar span,
  .ide-stage {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
