.scopeLibrary,
.scopeDetail {
  background: #0c0d0f;
  color: #eff0f2;
  min-height: 100vh;
}
.scopeLibraryHero,
.scopeDetailHero {
  min-height: 620px;
  padding: 170px 7vw 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 6vw;
  align-items: end;
  background: radial-gradient(
    circle at 78% 42%,
    #32281c 0,
    #131416 27%,
    #090a0c 64%
  );
  border-bottom: 1px solid #38393b;
}
.scopeLibraryHero h1,
.scopeDetailHero h1 {
  font-size: clamp(56px, 8vw, 120px);
  max-width: 1100px;
}
.scopeLibraryHero > div > p:last-child,
.scopeDetailHero > div > p:last-child {
  max-width: 720px;
  color: #b2b3b5;
  font-size: 18px;
  line-height: 1.65;
}
.scopeLibraryHero aside,
.scopeTestBadge {
  border: 1px solid #505153;
  padding: 25px;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  background: #131416;
}
.scopeLibraryHero aside small,
.scopeLibraryHero aside span,
.scopeTestBadge small,
.scopeTestBadge span {
  font: 700 10px/1.3 monospace;
  letter-spacing: 0.15em;
  color: #a2a3a5;
}
.scopeLibraryHero aside strong {
  font-size: 86px;
  color: #ff9d00;
  letter-spacing: -0.08em;
}
.scopePrinciple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #38393b;
}
.scopePrinciple > div {
  padding: 70px 4vw;
  border-right: 1px solid #38393b;
}
.scopePrinciple > div:last-child {
  border: 0;
}
.scopePrinciple span {
  color: #ff9d00;
  font: 700 12px monospace;
}
.scopePrinciple h2 {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 0.95;
  margin: 45px 0 25px;
  letter-spacing: -0.05em;
}
.scopePrinciple p {
  color: #a2a3a5;
  line-height: 1.65;
  margin: 0;
}
.scopeBefore {
  margin: 80px 7vw 35px;
  border-left: 5px solid #ff9d00;
  background: #1b1c1e;
  padding: 28px 34px;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}
.scopeBefore b {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: #ff9d00;
}
.scopeBefore p {
  margin: 0;
  color: #c6c7c9;
  line-height: 1.6;
}
.scopeTestGrid {
  padding: 0 7vw 100px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #38393b;
}
.scopeTestCard {
  background: #121315;
  color: #eff0f2;
  text-decoration: none;
  padding: 35px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  transition:
    background 0.2s,
    transform 0.2s;
}
.scopeTestCard:hover {
  background: #1c1d1f;
  transform: translateY(-3px);
}
.scopeCardTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scopeCardTop span {
  font: 700 25px monospace;
  color: #656668;
}
.scopeCardTop b {
  font: 700 9px monospace;
  letter-spacing: 0.14em;
  color: #0c0d0f;
  background: #ff9d00;
  padding: 7px 9px;
}
.scopeTestCard > small {
  margin-top: 60px;
  color: #949597;
  font: 700 10px monospace;
  letter-spacing: 0.12em;
}
.scopeTestCard h2 {
  font-size: 31px;
  letter-spacing: -0.05em;
  margin: 12px 0 17px;
}
.scopeTestCard p {
  color: #a4a5a7;
  line-height: 1.55;
  margin: 0 0 30px;
}
.scopeTestCard footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #363739;
  padding-top: 18px;
  font: 700 10px monospace;
  color: #ff9d00;
}
.scopeLimit {
  padding: 100px 7vw;
  background: #eaebed;
  color: #0c0d0f;
}
.scopeLimit blockquote {
  font-size: clamp(38px, 6vw, 85px);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.065em;
  margin: 45px 0 35px;
}
.scopeLimit blockquote em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 2px #8d5817;
}
.scopeLimit > p:last-child {
  max-width: 680px;
  color: #545557;
  line-height: 1.7;
}
.scopeDetailHero {
  min-height: 570px;
}
.scopeDetailHero h1 {
  font-size: clamp(48px, 7vw, 100px);
  line-height: 0.85;
}
.scopeTestBadge strong {
  font-size: 38px;
  color: #ff9d00;
  letter-spacing: -0.04em;
}
.whyFirst {
  padding: 95px 7vw;
  background: #e9eaed;
  color: #0c0d0f;
  display: grid;
  grid-template-columns: 220px minmax(280px, 540px) minmax(280px, 1fr);
  gap: 45px;
  align-items: start;
}
.whyFirst small {
  font: 700 10px monospace;
  letter-spacing: 0.15em;
  color: #6c6d6f;
}
.whyFirst h2 {
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  margin: 0;
}
.whyFirst h2 em {
  font-style: normal;
  color: #955e1b;
}
.whyFirst p {
  font-size: 18px;
  line-height: 1.75;
  margin: 0;
  color: #4a4b4d;
}
.scopeProcedure {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(290px, 1fr);
  gap: 1px;
  background: #38393b;
}
.scopeSteps {
  background: #101113;
  padding: 70px 7vw;
}
.scopeSetup {
  margin-bottom: 35px;
  border: 1px solid #38393b;
  padding: 30px;
}
.scopeSetup span,
.scopeAside span {
  display: block;
  border-top: 1px solid #343537;
  padding: 12px 0;
  color: #bbbcbe;
  line-height: 1.5;
}
.scopeSetup span:first-of-type,
.scopeAside span:first-of-type {
  margin-top: 15px;
}
.scopeAside {
  background: #17181a;
}
.scopeAside > div {
  padding: 45px;
  border-bottom: 1px solid #38393b;
}
.scopeGood {
  border-left: 4px solid #ff9d00;
}
.scopeFault {
  border-left: 4px solid #ff695f;
}
.scopeFault span {
  color: #d3aaa6;
}
.scopeBoundaries {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.scopeBoundaries article {
  padding: 60px 7vw;
  border-right: 1px solid #38393b;
}
.scopeBoundaries article:last-child {
  border: 0;
  background: #261815;
}
.scopeBoundaries small {
  font: 700 10px monospace;
  letter-spacing: 0.15em;
  color: #ff9d00;
}
.scopeBoundaries article:last-child small {
  color: #ff8278;
}
.scopeBoundaries p {
  line-height: 1.7;
  color: #b3b4b6;
  max-width: 650px;
}
.scopeDecision {
  margin: 70px 7vw;
  border: 1px solid #4f5052;
  padding: 35px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 35px;
}
.scopeDecision strong {
  color: #ff9d00;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.scopeDecision p {
  margin: 0;
  color: #b9babc;
  line-height: 1.6;
}
.liveScope {
  --sweep: 0%;
  margin: 70px 7vw;
  background: #0e0f11;
  border: 1px solid #434446;
  box-shadow:
    0 25px 70px #0008,
    inset 0 0 50px #ff9d0008;
}
.liveScope > header,
.liveScope > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  font-family: monospace;
}
.liveScope > header {
  border-bottom: 1px solid #37383a;
}
.liveScope > header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.liveScope > header small,
.liveScope > footer {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #7f8082;
}
.liveScope > header strong {
  font-size: 13px;
  color: #e5e6e8;
}
.liveScopeStatus {
  display: flex;
  gap: 20px;
  align-items: center;
  font: 700 9px monospace;
  color: #a0a1a3;
}
.liveScopeStatus span {
  color: #ff9d00;
}
.liveScopeStatus i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #ff9d00;
  border-radius: 50%;
  box-shadow: 0 0 9px #ff9d00;
  margin-right: 5px;
  animation: scopePulse 1.1s ease-in-out infinite;
}
.liveScopeScreen {
  height: clamp(260px, 40vw, 500px);
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at center, #1e1f21 0, #0d0e10 68%);
}
.liveScope canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.scopeReadout {
  position: absolute;
  left: 18px;
  top: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  font: 700 10px monospace;
  color: #ff9d00;
}
.scopeReadout span {
  background: #ff9d00;
  color: #100c07;
  padding: 5px 7px;
}
.scopeSweepLine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--sweep);
  width: 2px;
  background: #ffc988;
  box-shadow: 0 0 18px 6px #ff9d0055;
  opacity: 0.75;
}
.liveScope.is-paused .scopeSweepLine {
  opacity: 0.25;
}
.liveScope.is-paused .liveScopeStatus span {
  color: #9e9fa1;
}
.liveScope.is-paused .liveScopeStatus span i {
  background: #9e9fa1;
  box-shadow: none;
  animation: none;
}
.liveScope.is-paused .liveScopeStatus span {
  font-size: 0;
}
.liveScope.is-paused .liveScopeStatus span:after {
  content: "● PAUSED";
  font-size: 9px;
}
.liveScope > footer {
  border-top: 1px solid #37383a;
}
.liveScope > footer span:nth-child(2) {
  color: #ff9d00;
}
@keyframes scopePulse {
  50% {
    opacity: 0.3;
    transform: scale(0.75);
  }
}
.scopeTraceLegend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #37383a;
  background: #111214;
}
.scopeTraceLegend > span {
  position: relative;
  display: grid;
  grid-template-columns: 12px max-content 1fr;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  font: 700 10px monospace;
  letter-spacing: 0.08em;
  color: #b2b3b5;
}
.scopeTraceLegend > span + span {
  border-left: 1px solid #37383a;
}
.scopeTraceLegend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff9d00;
  box-shadow: 0 0 9px #ff9d00;
}
@media (max-width: 900px) {
  .scopeLibraryHero,
  .scopeDetailHero {
    grid-template-columns: 1fr;
    padding-top: 135px;
    min-height: auto;
  }
  .scopeLibraryHero aside,
  .scopeTestBadge {
    min-height: 130px;
  }
  .scopeLibraryHero aside strong {
    font-size: 60px;
  }
  .scopePrinciple,
  .scopeTestGrid {
    grid-template-columns: 1fr 1fr;
  }
  .whyFirst {
    grid-template-columns: 1fr;
  }
  .scopeProcedure {
    grid-template-columns: 1fr;
  }
  .scopeAside {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .scopeAside > div {
    padding: 30px;
  }
  .scopeBoundaries {
    grid-template-columns: 1fr;
  }
  .scopeDecision {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .scopeLibraryHero,
  .scopeDetailHero {
    padding: 125px 20px 60px;
  }
  .scopeLibraryHero h1,
  .scopeDetailHero h1 {
    font-size: clamp(46px, 15vw, 70px);
    overflow-wrap: anywhere;
  }
  .scopePrinciple,
  .scopeTestGrid,
  .scopeAside {
    grid-template-columns: 1fr;
  }
  .scopePrinciple > div {
    padding: 50px 24px;
  }
  .scopeBefore {
    margin: 50px 20px 25px;
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .scopeTestGrid {
    padding: 0 20px 60px;
  }
  .scopeTestCard {
    min-height: 340px;
    padding: 28px;
  }
  .whyFirst {
    padding: 65px 20px;
  }
  .liveScope {
    margin: 40px 20px;
  }
  .liveScope > header {
    align-items: flex-start;
    flex-direction: column;
  }
  .liveScope > footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .liveScopeScreen {
    height: 260px;
  }
  .scopeTraceLegend {
    grid-template-columns: 1fr;
  }
  .scopeTraceLegend > span {
    grid-template-columns: 12px 1fr;
    padding: 14px 16px;
  }
  .scopeTraceLegend > span + span {
    border-left: 0;
    border-top: 1px solid #37383a;
  }
  .scopeTraceLegend small {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    line-height: 1.4;
  }
  .scopeSteps {
    padding: 50px 20px;
  }
  .scopeAside > div {
    padding: 30px 20px;
  }
  .scopeBoundaries article {
    padding: 45px 20px;
  }
  .scopeDecision {
    margin: 50px 20px;
    padding: 25px;
  }
  .scopeLimit {
    padding: 70px 20px;
  }
  .scopeTestBadge {
    width: 100%;
    min-width: 0;
  }
  .scopeTestCard footer {
    flex-direction: column;
  }
  .scopeDetail .guideBlock {
    padding: 25px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .liveScopeStatus i {
    animation: none;
  }
  .scopeSweepLine {
    display: none;
  }
}
.scopeReadout {
  align-items: flex-start;
  flex-wrap: wrap;
}
.scopeReadout .scopeChannelTag {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #09100aee;
  border: 1px solid #454648;
  padding: 5px 7px;
  color: #ff9d00;
}
.scopeReadout .scopeChannelTag i {
  font-style: normal;
  background: #ff9d00;
  color: #100c07;
  padding: 3px 5px;
}
.scopeReadout .scopeChannelTag b {
  font-size: 9px;
}
.scopeReadout .scopeChannelTag.channel1 {
  color: #d6d9de;
}
.scopeReadout .scopeChannelTag.channel1 i {
  background: #d6d9de;
  color: #061115;
}
.scopeTraceLegend:has(.secondTrace) {
  grid-template-columns: 1fr 1fr;
}
.scopeTraceLegend .secondTrace i {
  background: #d6d9de;
  box-shadow: 0 0 9px #d6d9de;
}
.scopeTraceLegend .secondTrace b {
  color: #8ceaff;
}
@media (max-width: 760px) {
  .scopeTraceLegend:has(.secondTrace) {
    grid-template-columns: 1fr;
  }
  .scopeTraceLegend .secondTrace {
    border-left: 0;
    border-top: 1px solid #37383a;
  }
}
