:root {
  --bg: #f7f6f3;
  --paper: #ffffff;
  --paper-soft: #fbfaf8;
  --ink: #1d1d21;
  --muted: #6e6a74;
  --line: #e8e3dc;
  --line-strong: #d7cec5;
  --purple: #6651d8;
  --purple-soft: #eeeafd;
  --purple-ink: #3f2aa8;
  --green-soft: #edf8f2;
  --amber-soft: #fff5df;
  --blue-soft: #edf5ff;
  --rose-soft: #fff0f0;
  --shadow: 0 18px 60px rgba(24, 20, 36, 0.08);
  --shadow-soft: 0 10px 30px rgba(24, 20, 36, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(102, 81, 216, .10), transparent 32rem),
    linear-gradient(180deg, #fbfaf8 0%, var(--bg) 100%);
}

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

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

ul,
ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.75;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #5c5962;
  font-weight: 700;
  font-size: 14px;
}

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

.site-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 84px;
}

.hero,
.panel,
.content-card,
.method-card,
.example-card,
.learn-modal {
  background: rgba(255, 255, 255, .84);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr);
  gap: 34px;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
}

.eyebrow {
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
  font-size: 12px;
  margin-bottom: 14px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.045em;
  color: var(--ink);
}

h1 {
  font-size: clamp(44px, 6vw, 78px);
  line-height: .94;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
}

h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.08;
}

h4 {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.lead {
  margin-top: 22px;
  max-width: 700px;
  font-size: 18px;
}

.hero-actions,
.button-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 760;
  box-shadow: var(--shadow-soft);
}

.btn.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.btn.ghost {
  background: white;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.float-card {
  position: absolute;
  width: 235px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: var(--shadow);
}

.float-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.float-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.card-a {
  top: 8px;
  left: 8%;
  transform: rotate(-3deg);
}

.card-b {
  top: 128px;
  right: 2%;
  transform: rotate(2deg);
}

.card-c {
  bottom: 18px;
  left: 16%;
  transform: rotate(-1deg);
  background: var(--purple-soft);
  border-color: rgba(102, 81, 216, .22);
}

.flow-line {
  position: absolute;
  width: 150px;
  height: 2px;
  background: var(--line-strong);
  top: 112px;
  left: 42%;
  transform: rotate(24deg);
}

.flow-line.short {
  top: 224px;
  left: 42%;
  width: 120px;
  transform: rotate(-28deg);
}

.section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 44px 0 18px;
}

.section-head p {
  max-width: 620px;
}

.panel {
  padding: clamp(22px, 4vw, 38px);
}

.contrast-grid,
.intent-grid,
.method-grid,
.example-grid,
.two-col,
.three-col {
  display: grid;
  gap: 16px;
}

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

.intent-grid,
.method-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.example-grid,
.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.content-card,
.method-card,
.example-card {
  padding: 22px;
}

.method-card {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.method-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(102, 81, 216, .26);
}

.method-card .tag,
.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-ink);
  font-size: 12px;
  font-weight: 800;
}

.method-card p,
.content-card p {
  margin-top: 10px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.search-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  font: inherit;
}

.search-panel input:focus {
  border-color: rgba(102, 81, 216, .55);
  box-shadow: 0 0 0 4px rgba(102, 81, 216, .10);
}

.page-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.side-toc {
  position: sticky;
  top: 98px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, .74);
}

.side-toc strong {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
}

.side-toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.side-toc a:hover {
  background: var(--purple-soft);
  color: var(--purple-ink);
}

.article {
  display: grid;
  gap: 18px;
}

.article-hero {
  padding: clamp(26px, 5vw, 48px);
}

.article-hero .lead {
  max-width: 820px;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.info-pill {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper-soft);
}

.info-pill span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.info-pill strong {
  display: block;
  margin-top: 5px;
}

.callout {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.callout.good {
  background: var(--green-soft);
}

.callout.warn {
  background: var(--amber-soft);
}

.callout.blue {
  background: var(--blue-soft);
}

.callout.rose {
  background: var(--rose-soft);
}

.callout h4 {
  margin-bottom: 8px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.timeline-item time {
  color: var(--purple);
  font-weight: 850;
}

.mini-visual {
  min-height: 180px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfaf8);
  position: relative;
  overflow: hidden;
}

.bars span {
  position: absolute;
  bottom: 24px;
  width: 26px;
  border-radius: 10px 10px 0 0;
  background: rgba(102, 81, 216, .45);
}

.bars span:nth-child(1) {
  left: 32px;
  height: 42px;
}

.bars span:nth-child(2) {
  left: 70px;
  height: 86px;
}

.bars span:nth-child(3) {
  left: 108px;
  height: 132px;
}

.bars span:nth-child(4) {
  left: 146px;
  height: 78px;
}

.bars span:nth-child(5) {
  left: 184px;
  height: 34px;
}

.scatter i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(29, 29, 33, .72);
}

.scatter i:nth-child(1) {
  left: 34px;
  bottom: 40px;
}

.scatter i:nth-child(2) {
  left: 62px;
  bottom: 64px;
}

.scatter i:nth-child(3) {
  left: 88px;
  bottom: 74px;
}

.scatter i:nth-child(4) {
  left: 122px;
  bottom: 112px;
}

.scatter i:nth-child(5) {
  left: 156px;
  bottom: 138px;
}

.scatter i:nth-child(6) {
  left: 196px;
  bottom: 142px;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 22px;
}

.mosaic span {
  border-radius: 12px;
  background: var(--purple-soft);
  min-height: 48px;
}

.mosaic span:nth-child(2n) {
  background: var(--blue-soft);
}

.mosaic span:nth-child(3n) {
  background: var(--amber-soft);
}

.grid-modal-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: center;
}

.fake-grid-block {
  min-height: 280px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #fff, #f3f0ff);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.fake-grid-block .block-chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.learn-modal {
  padding: 22px;
}

.learn-modal header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-kicker {
  display: block;
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}

.close-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px clamp(18px, 5vw, 64px);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .page-layout,
  .grid-modal-wrap {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 260px;
  }

  .intent-grid,
  .method-grid,
  .example-grid,
  .three-col,
  .two-col,
  .contrast-grid,
  .info-strip {
    grid-template-columns: 1fr;
  }

  .side-toc {
    position: static;
  }
}

/* FAQ library */
.faq-hero .lead {
  max-width: 760px;
}

.faq-visual .card-b {
  width: 270px;
}

.section-head.compact {
  margin: 0 0 18px;
  align-items: center;
}

.faq-controls {
  margin-bottom: 18px;
}

.faq-filter-row {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 12px;
  align-items: center;
}

.faq-filter-row input,
.faq-filter-row select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px;
  outline: none;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  font: inherit;
}

.faq-filter-row input:focus,
.faq-filter-row select:focus {
  border-color: rgba(102, 81, 216, .55);
  box-shadow: 0 0 0 4px rgba(102, 81, 216, .10);
}

.faq-tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.faq-tag-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  cursor: pointer;
}

.faq-tag-btn:hover,
.faq-tag-btn.active {
  background: var(--purple-soft);
  color: var(--purple-ink);
  border-color: rgba(102, 81, 216, .22);
}

.faq-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.faq-category-map {
  position: sticky;
  top: 98px;
}

.faq-category-map h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.faq-category-map li {
  margin: 4px 0;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-card {
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  scroll-margin-top: 96px;
}

.faq-card:target {
  border-color: rgba(102, 81, 216, .5);
  box-shadow: 0 0 0 5px rgba(102, 81, 216, .10), var(--shadow-soft);
}

.faq-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.faq-card h3 {
  font-size: clamp(21px, 2vw, 30px);
  margin-bottom: 8px;
}

.faq-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.faq-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.faq-example,
.faq-telene {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
}

.faq-example strong,
.faq-telene strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
}

.faq-telene {
  background: var(--purple-soft);
  border-color: rgba(102, 81, 216, .20);
}

.faq-empty {
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  border: 1px dashed var(--line-strong);
}

.related-faq-panel {
  margin-top: 0;
}

.related-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.related-faq-card {
  display: block;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper-soft);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.related-faq-card:hover {
  transform: translateY(-2px);
  border-color: rgba(102, 81, 216, .26);
  box-shadow: var(--shadow-soft);
}

.related-faq-card span {
  display: block;
  color: var(--purple);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}

.related-faq-card strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.related-faq-card p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 900px) {

  .faq-filter-row,
  .faq-layout,
  .related-faq-grid {
    grid-template-columns: 1fr;
  }

  .faq-category-map {
    position: static;
  }
}