﻿/* Patterns from index.html — used by simulators.html, about.html, support.html */

.mstep-sc-cy {
  --sc: var(--cy);
}
.mstep-sc-bl {
  --sc: var(--bl);
}
.mstep-sc-vi {
  --sc: var(--vi);
}
.mstep-sc-g {
  --sc: var(--g);
}

.btn-main {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  background: var(--g);
  color: #06080f;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.22s;
  letter-spacing: 0.005em;
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.38), 0 2px 10px rgba(0, 0, 0, 0.32);
  text-decoration: none;
}
.btn-main:hover {
  background: var(--g2);
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.55), 0 4px 18px rgba(0, 0, 0, 0.38);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.65rem;
  border-radius: 14px;
  border: 1px solid var(--ln2);
  background: transparent;
  color: var(--ws);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.22s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--cybd);
  color: var(--cy);
  background: var(--cyfg);
}

.problem-sec {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}
.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cy);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: var(--cy);
}
.sec-h {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--w);
  margin-bottom: 1rem;
}
.sec-sub {
  font-size: 1rem;
  color: var(--ws);
  line-height: 1.8;
  max-width: 550px;
  margin-bottom: 3rem;
}

.probs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.prob {
  background: var(--c1);
  border: 1px solid var(--ln);
  border-radius: 22px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.32s;
}
.prob::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--pc, var(--ro));
}
.prob:hover {
  border-color: var(--ln2);
  transform: translateY(-5px);
  box-shadow: var(--sh);
}
.prob-canvas-wrap {
  margin-bottom: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--c2);
  border: 1px solid var(--ln);
}
.prob canvas {
  display: block;
  width: 100%;
}
.prob-q {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  color: var(--w);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.prob-body {
  font-size: 0.87rem;
  color: var(--ws);
  line-height: 1.72;
  margin-bottom: 1rem;
}
.prob-fix {
  font-size: 0.82rem;
  color: var(--g);
  font-weight: 500;
  line-height: 1.55;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ln);
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}
.prob-fix::before {
  content: '↳';
  opacity: 0.6;
}

.phil-sec {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  background: var(--c1);
  border-top: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
}
.phil-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 5rem;
  align-items: center;
}
.big-quote {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--w);
  margin-bottom: 2rem;
}
.big-quote em {
  font-style: italic;
  background: linear-gradient(120deg, var(--cy), var(--g));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.phil-body {
  font-size: 0.95rem;
  color: var(--ws);
  line-height: 1.9;
}
.phil-body p {
  margin-bottom: 1.1rem;
}
.phil-body p:last-child {
  margin-bottom: 0;
}
.phil-body strong {
  color: var(--w);
}
.circuit-panel {
  background: var(--c2);
  border: 1px solid var(--ln);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--sh);
}
.circ-bar {
  background: var(--c1);
  border-bottom: 1px solid var(--ln);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cd {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cd-red {
  background: #ff5f57;
}
.cd-yellow {
  background: #febc2e;
}
.cd-green {
  background: #28c840;
}
.circ-file {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.67rem;
  color: var(--wt);
  margin-left: 0.4rem;
}
#circCv {
  display: block;
  width: 100%;
}

.method-sec {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
  background: var(--c1);
  border-top: 1px solid var(--ln);
  border-bottom: 1px solid var(--ln);
}
.method-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.mgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-top: 3rem;
  counter-reset: ms;
}
.mstep {
  background: var(--p);
  border: 1px solid var(--ln);
  border-radius: 22px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.32s;
  counter-increment: ms;
}
.mstep::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sc, var(--cy));
}
.mstep::after {
  content: counter(ms, decimal-leading-zero);
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 3rem;
  font-weight: 500;
  color: var(--ln2);
  line-height: 1;
  pointer-events: none;
}
.mstep:hover {
  border-color: var(--ln2);
  transform: translateY(-4px);
  box-shadow: var(--sh);
}
.ms-icon {
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
}
.ms-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--w);
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}
.ms-body {
  font-size: 0.83rem;
  color: var(--ws);
  line-height: 1.7;
}

.demos-sec {
  position: relative;
  z-index: 1;
  padding: 6rem 2rem;
}
.demos-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.demo-shell {
  background: var(--c1);
  border: 1px solid var(--ln);
  border-radius: 22px;
  overflow: hidden;
  margin-top: 3rem;
  box-shadow: var(--sh);
}
.dtabs {
  background: var(--c2);
  border-bottom: 1px solid var(--ln);
  display: flex;
}
.dtab {
  padding: 0.9rem 1.5rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--wt);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  font-family: 'IBM Plex Sans', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.dtab.on {
  color: var(--cy);
  border-color: var(--cy);
}
.dtab:hover:not(.on) {
  color: var(--ws);
}
.dtab:not(.on)::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cy);
  opacity: 0.5;
  animation: tabPulse 2s ease-in-out infinite;
}
@keyframes tabPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.3);
  }
}
.dbody {
  padding: 2.5rem;
}
.dpane {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.dpane.on {
  display: grid;
}
.dt h3 {
  font-family: 'IBM Plex Serif', serif;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--w);
  margin-bottom: 0.7rem;
  letter-spacing: -0.02em;
}
.dt p {
  font-size: 0.9rem;
  color: var(--ws);
  line-height: 1.76;
  margin-bottom: 1.25rem;
}
.dlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--g);
  transition: gap 0.2s;
  text-decoration: none;
}
.dlink:hover {
  gap: 0.65rem;
}
.dvis {
  background: var(--p);
  border: 1px solid var(--ln);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.dlbl {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--ws);
  text-align: center;
}
.dlbl b {
  color: var(--cy);
}
.srow {
  width: 100%;
}
.srow label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.66rem;
  color: var(--wt);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.42rem;
}
input[type='range'] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--c2);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cy);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 212, 200, 0.6);
}
.ebtn {
  width: 100%;
  padding: 0.62rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--g);
  color: #06080f;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.ebtn:hover {
  background: var(--g2);
}
.ebtn:disabled {
  opacity: 0.45;
  cursor: default;
}

.cta-sec {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem;
  text-align: center;
  overflow: hidden;
}
.cta-blob {
  position: absolute;
  width: 800px;
  height: 600px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.07) 0%, transparent 60%);
}
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-inner h2 {
  font-family: 'IBM Plex Serif', serif;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--w);
  margin-bottom: 1.1rem;
}
.cta-inner h2 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--g), var(--cy));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-inner p {
  font-size: 1.02rem;
  color: var(--ws);
  line-height: 1.8;
  margin-bottom: 2.25rem;
}
.cta-btns {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 1060px) {
  .phil-inner {
    grid-template-columns: 1fr;
  }
  .probs {
    grid-template-columns: 1fr 1fr;
  }
  .dpane.on {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .probs,
  .mgrid {
    grid-template-columns: 1fr;
  }
}
