.guide-page { background: #f7f7f5; }

.guide-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 5vw;
  background: rgba(247,247,245,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.guide-header nav { display: flex; align-items: center; gap: 2rem; font-size: .72rem; }
.mini-button { padding: 11px 14px; color: white; background: var(--dark); border-radius: 7px; }

.guide-hero {
  display: grid;
  grid-template-columns: 1.55fr .45fr;
  min-height: 610px;
  margin: 0 5vw;
  background-color: #edeef0;
  background-image: linear-gradient(rgba(17,18,20,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(17,18,20,.055) 1px, transparent 1px);
  background-size: 25% 100%, 25% 100%;
  border-radius: 22px;
  overflow: hidden;
}

.guide-hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem,7vw,8rem); }
.guide-kicker { margin: 0 0 1.5rem; color: #777a7d; font-size: .65rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.guide-hero h1 {
  max-width: 950px;
  margin: 0;
  font-size: clamp(4.5rem,8vw,9.5rem);
  font-weight: 600;
  letter-spacing: -.085em;
  line-height: .82;
}

.guide-lead { max-width: 650px; margin: 2.2rem 0 0; color: #595c60; font-size: 1.02rem; line-height: 1.6; }
.guide-actions { display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.guide-actions > span { color: #818487; font-size: .68rem; }

.guide-index { display: flex; flex-direction: column; justify-content: flex-end; padding: 3rem; border-left: 1px solid rgba(17,18,20,.1); }
.guide-index > span { color: #777a7d; font-size: .68rem; }
.guide-index strong { margin-top: auto; font-size: clamp(7rem,13vw,14rem); font-weight: 500; letter-spacing: -.11em; line-height: .7; }
.guide-index p { margin: 2rem 0 0; font-size: .8rem; line-height: 1.4; }

.quick-start,
.install-strip { display: grid; grid-template-columns: .35fr 1.65fr; gap: 5vw; padding: clamp(6rem,10vw,10rem) 7vw; }
.section-label { font-size: .7rem; font-weight: 600; }
.quick-start-content h2 { max-width: 900px; margin: 0; font-size: clamp(3.3rem,6vw,7rem); font-weight: 500; letter-spacing: -.08em; line-height: .9; }

.problem-grid { display: grid; grid-template-columns: repeat(5,1fr); margin-top: 4rem; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.problem-grid a { display: flex; flex-direction: column; min-height: 260px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; transition: background 160ms ease, color 160ms ease; }
.problem-grid a:hover { color: white; background: var(--dark); }
.problem-grid span { font-size: .65rem; opacity: .5; }
.problem-grid strong { margin-top: auto; font-size: 1.35rem; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.problem-grid small { margin-top: 1rem; font-size: .65rem; opacity: .55; }

.install-strip { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.install-strip ol { display: grid; grid-template-columns: repeat(4,1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.install-strip li { min-height: 190px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.install-strip li span { color: var(--muted); font-size: .65rem; }
.install-strip li p { margin: 5rem 0 0; font-size: .82rem; line-height: 1.45; }
.install-strip li strong { display: block; font-size: 1rem; font-weight: 600; }
.definition-note { grid-column: 2; max-width: 790px; margin: 1.7rem 0 0; color: #696c70; font-size: .78rem; line-height: 1.55; }

.skills-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 5vw; padding: clamp(6rem,10vw,10rem) 7vw; }
.progress-panel { position: sticky; top: 110px; align-self: start; padding: 22px; background: white; border: 1px solid var(--line); }
.progress-number { font-size: 3.3rem; font-weight: 500; letter-spacing: -.07em; }
.progress-track { height: 3px; margin: 1rem 0; background: #e1e2e2; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--dark); transition: width 250ms ease; }
.progress-panel > p:not(.guide-kicker) { color: #707377; font-size: .72rem; line-height: 1.5; }
.progress-panel nav { display: flex; flex-direction: column; margin-top: 2rem; border-top: 1px solid var(--line); }
.progress-panel nav a { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .7rem; }

.skills-list { min-width: 0; }
.skill { scroll-margin-top: 100px; padding: 0 0 7rem; }
.skill + .skill { padding-top: 7rem; border-top: 1px solid var(--line); }
.skill > header { display: grid; grid-template-columns: .32fr 1.68fr; gap: 2rem; }
.skill > header > span { color: var(--muted); font-size: .7rem; }
.skill > header p { margin: 0 0 .8rem; color: var(--muted); font-size: .72rem; }
.skill h2 { margin: 0; font-size: clamp(3.2rem,5.8vw,6.5rem); font-weight: 500; letter-spacing: -.08em; line-height: .88; }
.skill-body { margin: 3.5rem 0 0 32%; }
.skill-result { max-width: 720px; margin: 0; font-size: 1.15rem; line-height: 1.5; }
.use-case { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; max-width: 720px; margin: 2rem 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.use-case span { color: var(--muted); font-size: .67rem; }
.use-case p { margin: 0; color: #626569; font-size: .78rem; line-height: 1.5; }

.prompt-box { margin-top: 2rem; border: 1px solid #d5d6d7; background: #f0f1f1; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-bottom: 1px solid #d5d6d7; font-size: .65rem; }
.prompt-head button { border: 0; padding: 8px 11px; color: white; background: var(--dark); border-radius: 6px; font: 500 .65rem var(--font); cursor: pointer; }
.prompt-head button.copied { color: var(--dark); background: #c8f4d5; }
.prompt-box pre { margin: 0; padding: 22px; overflow-x: auto; white-space: pre-wrap; color: #2d3033; font: 400 .82rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }

.done { display: flex; align-items: center; gap: 10px; margin-top: 1rem; font-size: .72rem; cursor: pointer; }
.done input { width: 17px; height: 17px; accent-color: var(--dark); }

.guide-finish { margin: 0 5vw 5vw; padding: clamp(4rem,8vw,8rem); color: white; background: var(--dark); border-radius: 22px; }
.guide-finish h2 { max-width: 1000px; margin: 0; font-size: clamp(3.6rem,7vw,8rem); font-weight: 500; letter-spacing: -.085em; line-height: .86; }
.guide-finish > p:not(.guide-kicker) { max-width: 630px; margin: 2rem 0; color: rgba(255,255,255,.6); font-size: .9rem; line-height: 1.6; }
.guide-finish .button-dark { color: var(--dark); background: white; }
.guide-footer { display: flex; justify-content: space-between; align-items: end; padding: 3rem 5vw; border-top: 1px solid var(--line); }
.guide-footer p { margin: 0; color: var(--muted); font-size: .7rem; }

@media (max-width: 1050px) {
  .problem-grid { grid-template-columns: repeat(2,1fr); }
  .install-strip ol { grid-template-columns: repeat(2,1fr); }
  .skills-layout { grid-template-columns: 1fr; }
  .progress-panel { position: static; }
  .progress-panel nav { display: none; }
}

@media (max-width: 720px) {
  .guide-header { height: 68px; padding: 0 20px; }
  .guide-header nav > a:first-child { display: none; }
  .guide-hero { grid-template-columns: 1fr; margin: 0 14px; border-radius: 18px; }
  .guide-hero-copy { padding: 4rem 22px; }
  .guide-hero h1 { font-size: 4.2rem; }
  .guide-index { min-height: 230px; padding: 22px; border-top: 1px solid rgba(17,18,20,.1); border-left: 0; }
  .guide-index strong { margin-top: 2rem; font-size: 8rem; }
  .quick-start, .install-strip { grid-template-columns: 1fr; padding: 5rem 20px; }
  .problem-grid, .install-strip ol { grid-template-columns: 1fr; }
  .problem-grid a { min-height: 190px; }
  .definition-note { grid-column: 1; }
  .skills-layout { padding: 5rem 20px; }
  .skill > header { grid-template-columns: 1fr; }
  .skill h2 { font-size: 3.65rem; }
  .skill-body { margin-left: 0; }
  .use-case { grid-template-columns: 1fr; }
  .prompt-box pre { font-size: .74rem; }
  .guide-finish { margin: 0 14px 3rem; padding: 4rem 22px; border-radius: 18px; }
  .guide-finish h2 { font-size: 3.8rem; }
  .guide-footer { padding: 2.5rem 20px; }
}
