.home-hero {
  position: relative;
  padding-top: clamp(54px, 7vw, 96px);
  padding-bottom: clamp(56px, 8vw, 104px);
  overflow: hidden;
  border-bottom: var(--line-thin) solid var(--color-border);
  background:
    linear-gradient(var(--color-grid) var(--line-thin), var(--color-transparent) var(--line-thin)),
    linear-gradient(90deg, var(--color-grid) var(--line-thin), var(--color-transparent) var(--line-thin)),
    var(--color-bg);
  background-size: 32px 32px;
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  pointer-events: none;
  border: var(--line-thin) solid var(--color-border-soft);
  border-radius: var(--radius-pill);
  content: "";
}

.home-hero::before {
  top: 15%;
  left: -12%;
  width: 42vw;
  height: 42vw;
}

.home-hero::after {
  right: -8%;
  bottom: 9%;
  width: 27vw;
  height: 27vw;
  border-style: dashed;
}

.hero-paper {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.hero-kicker {
  max-width: 100%;
  margin-bottom: 20px;
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  background: var(--color-paper-glass);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.hero-kicker .status-dot {
  flex-shrink: 0;
  background: var(--color-success);
}

.hero-copy h1 {
  max-width: 850px;
  margin-right: auto;
  margin-bottom: 24px;
  margin-left: auto;
}

.hero-actions {
  justify-content: center;
  margin-bottom: 24px;
}

.hero-description {
  max-width: 790px;
  margin-right: auto;
  margin-bottom: 20px;
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.85;
}

.hero-description strong {
  color: var(--color-text);
}

.hero-chips {
  margin-bottom: 32px;
}

.prism-lab {
  position: relative;
  max-width: 1080px;
  margin-right: auto;
  margin-bottom: 24px;
  margin-left: auto;
  overflow: hidden;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-panel-glass);
  box-shadow: var(--shadow-paper);
}

.prism-lab::before {
  position: absolute;
  top: 14px;
  left: 15px;
  z-index: 2;
  width: 42px;
  height: 11px;
  border-top: var(--line-medium) solid var(--color-accent);
  border-bottom: var(--line-thin) solid var(--color-border);
  content: "";
}

.prism-diagram {
  width: 100%;
  height: auto;
  min-height: 300px;
}

.diagram-grid {
  fill: none;
  stroke: var(--color-grid-strong);
  stroke-width: var(--line-thin);
}

.diagram-guides {
  fill: none;
  stroke: var(--color-border);
  stroke-width: var(--line-thin);
  stroke-dasharray: 7 7;
}

.incoming-ray {
  fill: none;
  stroke: var(--color-incoming);
  stroke-width: 7px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prism-shape {
  fill: var(--color-glass);
  stroke: var(--color-glass-edge);
  stroke-width: var(--line-medium);
  stroke-linejoin: round;
}

.prism-shape path:nth-child(2) {
  fill: var(--color-panel-glass);
}

.prism-shape path:nth-child(3) {
  fill: var(--color-glass-light);
}

.prism-shape path:last-child {
  fill: none;
  stroke: var(--color-glass-light);
}

.ray-direct,
.ray-proxy,
.ray-reject {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 6px;
  stroke-linecap: round;
}

.ray-direct {
  color: var(--color-accent);
}

.ray-proxy {
  color: var(--color-success);
}

.ray-reject {
  color: var(--color-error);
}

.route-card rect {
  stroke-width: var(--line-thin);
}

.route-card text:first-of-type {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.route-card text:last-of-type {
  fill: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
}

.route-card-direct rect {
  fill: var(--color-amber-soft);
  stroke: var(--color-accent);
}

.route-card-direct text:first-of-type {
  fill: var(--color-accent-dark);
}

.route-card-proxy rect {
  fill: var(--color-teal-soft);
  stroke: var(--color-success);
}

.route-card-proxy text:first-of-type {
  fill: var(--color-success);
}

.route-card-reject rect {
  fill: var(--color-coral-soft);
  stroke: var(--color-error);
}

.route-card-reject text:first-of-type {
  fill: var(--color-error);
}

.diagram-notes {
  fill: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.diagram-notes text:nth-child(2) {
  fill: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.home-facts {
  max-width: 1080px;
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 44px;
}

.feature-section {
  background:
    linear-gradient(90deg, var(--color-transparent), var(--color-panel-glass), var(--color-transparent)),
    var(--color-bg);
}

.feature-workbench {
  display: grid;
  grid-template-columns: minmax(210px, 0.3fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.feature-tab-list {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  display: grid;
  border: var(--line-thin) solid var(--color-border);
  background: var(--color-panel);
}

.feature-tab-list button {
  min-height: 72px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 0;
  border-bottom: var(--line-thin) solid var(--color-border-soft);
  color: var(--color-text-muted);
  background: var(--color-transparent);
  font-weight: 700;
  text-align: left;
}

.feature-tab-list button:last-child {
  border-bottom: 0;
}

.feature-tab-list button:hover {
  color: var(--color-text);
  background: var(--color-panel-soft);
}

.feature-tab-list button[aria-selected="true"] {
  color: var(--color-panel);
  background: var(--color-text);
}

.feature-tab-list button span {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 11px;
}

.feature-panels {
  min-width: 0;
}

.feature-panel .chapter-record {
  grid-template-columns: 120px minmax(0, 1fr) minmax(280px, 0.72fr);
  padding-top: 0;
  padding-bottom: 0;
}

.feature-panel .chapter-number {
  background: var(--color-transparent);
}

.lab-checklist,
.diagnosis-sequence {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.lab-checklist li + li,
.diagnosis-sequence li + li {
  margin-top: 9px;
}

.platform-sheets {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.platform-sheet {
  min-width: 0;
  min-height: 310px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  border: var(--line-thin) solid var(--color-border);
  border-top-width: 4px;
  border-radius: var(--radius-small);
  background: var(--color-panel);
  box-shadow: var(--shadow-paper);
}

.platform-sheet:nth-child(1),
.platform-sheet:nth-child(2) {
  grid-column: span 6;
}

.platform-sheet:nth-child(3),
.platform-sheet:nth-child(4),
.platform-sheet:nth-child(5) {
  grid-column: span 4;
}

.platform-route-direct {
  border-top-color: var(--color-accent);
}

.platform-route-proxy {
  border-top-color: var(--color-success);
}

.platform-route-reject {
  border-top-color: var(--color-error);
}

.platform-sheet-head {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.platform-index {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.platform-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--line-medium);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-route-direct .platform-icon {
  color: var(--color-accent);
}

.platform-route-proxy .platform-icon {
  color: var(--color-success);
}

.platform-route-reject .platform-icon {
  color: var(--color-error);
}

.platform-sheet h3 {
  margin-bottom: 10px;
}

.platform-sheet p {
  color: var(--color-text-muted);
  font-size: 14px;
}

.platform-sheet .button {
  width: max-content;
  margin-top: auto;
}

.section-link-row {
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
}

.text-link {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 5px;
}

.quick-records .chapter-sample {
  color: var(--color-text-muted);
}

.quick-records .chapter-sample strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.quick-records .chapter-sample p {
  margin-bottom: 0;
  font-size: 14px;
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}

.trust-copy p {
  color: var(--color-text-muted);
}

.source-panel {
  position: sticky;
  top: calc(var(--header-height) + 18px);
}

.source-panel > p {
  color: var(--color-text-muted);
  font-size: 14px;
}

.command-copy {
  min-width: 0;
  padding: 14px;
  display: grid;
  gap: 12px;
  border: var(--line-thin) solid var(--color-border);
  background: var(--color-text);
}

.command-copy code {
  min-width: 0;
  overflow-x: auto;
  color: var(--color-panel);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  scrollbar-width: thin;
}

.command-copy .button {
  width: max-content;
  color: var(--color-panel);
  background: var(--color-transparent);
}

.source-observations {
  margin-top: 18px;
  display: grid;
  gap: 0;
  border-top: var(--line-thin) solid var(--color-border-soft);
}

.source-observations div {
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: var(--line-thin) solid var(--color-border-soft);
}

.source-observations span {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.source-observations strong {
  font-size: 13px;
  text-align: right;
}

.faq-preview {
  margin-top: clamp(62px, 8vw, 100px);
  padding-top: 34px;
  border-top: var(--line-medium) solid var(--color-border);
}

.faq-preview-heading {
  margin-bottom: 22px;
}

.faq-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--line-thin) solid var(--color-border);
  border-left: var(--line-thin) solid var(--color-border);
}

.faq-preview-list a {
  min-width: 0;
  padding: 22px;
  display: grid;
  gap: 8px;
  border-right: var(--line-thin) solid var(--color-border);
  border-bottom: var(--line-thin) solid var(--color-border);
  background: var(--color-panel);
}

.faq-preview-list a:hover {
  background: var(--color-amber-soft);
}

.faq-preview-list strong {
  font-size: 16px;
}

.faq-preview-list span {
  color: var(--color-text-muted);
  font-size: 14px;
}

.blog-preview-section {
  background:
    linear-gradient(var(--color-grid) var(--line-thin), var(--color-transparent) var(--line-thin)),
    var(--color-bg);
  background-size: 100% 34px;
}

@media (max-width: 1040px) {
  .feature-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-tab-list {
    position: static;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    overflow-x: auto;
  }

  .feature-tab-list button {
    border-right: var(--line-thin) solid var(--color-border-soft);
    border-bottom: 0;
  }

  .feature-panel .chapter-record {
    grid-template-columns: 95px minmax(0, 1fr);
  }

  .feature-panel .chapter-copy,
  .feature-panel .chapter-sample {
    grid-column: 2;
  }

  .trust-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .prism-lab {
    overflow: hidden;
  }

  .prism-diagram {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
  }

  .platform-sheet:nth-child(1),
  .platform-sheet:nth-child(2),
  .platform-sheet:nth-child(3),
  .platform-sheet:nth-child(4) {
    grid-column: span 6;
  }

  .platform-sheet:nth-child(5) {
    grid-column: span 12;
  }

  .faq-preview-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: 44px;
    padding-bottom: 60px;
  }

  .hero-kicker {
    white-space: normal;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .prism-lab {
    margin-top: 24px;
  }

  .home-facts {
    margin-top: 18px;
  }

  .feature-tab-list {
    grid-template-columns: repeat(4, minmax(142px, 1fr));
  }

  .feature-panel .chapter-record {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-panel .chapter-number,
  .feature-panel .chapter-copy,
  .feature-panel .chapter-sample {
    grid-column: 1;
  }

  .platform-sheets {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-sheet:nth-child(1),
  .platform-sheet:nth-child(2),
  .platform-sheet:nth-child(3),
  .platform-sheet:nth-child(4),
  .platform-sheet:nth-child(5) {
    grid-column: 1;
  }

  .platform-sheet {
    min-height: 0;
  }

  .platform-sheet .button {
    width: 100%;
  }

  .source-observations div {
    display: grid;
    gap: 5px;
  }

  .source-observations strong {
    text-align: left;
  }

  .command-copy .button {
    width: 100%;
  }

  .section-link-row {
    justify-content: flex-start;
  }
}