@font-face {
  font-family: "Inter Tight";
  src: url("fonts/of-inter-tight-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/of-inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --field: #151513;
  --panel: #1c1c19;
  --panel-hi: #242420;
  --grey: #414141;
  --ink: #f4f4ef;
  --lime: #faff69;
  --dim: rgba(244, 244, 239, .6);
  --faint: rgba(244, 244, 239, .34);
  --line: rgba(65, 65, 65, .62);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --pad: clamp(18px, 2vw, 28px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { background: var(--field); }

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--lime); color: var(--field); }

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(20px, 2.6vw, 34px) clamp(18px, 3.6vw, 52px) clamp(18px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.6vh, 26px);
  background: radial-gradient(90% 55% at 12% -10%, rgba(250, 255, 105, .05), transparent 62%);
}

/* ---- top strip ---- */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Inter Tight";
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
}
.mark::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--lime);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}
.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(250, 255, 105, .6);
}

/* ---- head ---- */

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

h1 {
  margin: 0;
  font-family: "Inter Tight";
  font-weight: 800;
  font-size: clamp(38px, 4.9vw, 66px);
  line-height: .92;
  letter-spacing: -.038em;
}

.h1-dot { color: var(--lime); }

.head-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
}

/* ---- rail ---- */

.rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding-top: 4px;
}

.rail-base,
.rail-fill {
  position: absolute;
  left: 0;
  top: 8px;
  width: 0;
  height: 1px;
  pointer-events: none;
}
.rail-base { background: var(--line); }
.rail-fill {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(250, 255, 105, .5);
  transition: width .55s cubic-bezier(.22, .8, .24, 1), left .2s;
}

.rail-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 13px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rail-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--grey);
  background: var(--field);
  transition: background .4s, border-color .4s, box-shadow .4s;
}

.rail-label {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.rail-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--faint);
  transition: color .4s;
}

.rail-name {
  font-family: "Inter Tight";
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -.01em;
  color: var(--dim);
  transition: color .3s;
}

.rail-step:hover .rail-name { color: var(--ink); }

.rail-step[aria-current="step"] .rail-dot {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(250, 255, 105, .13), 0 0 14px rgba(250, 255, 105, .45);
}
.rail-step[aria-current="step"] .rail-num { color: var(--lime); }
.rail-step[aria-current="step"] .rail-name { color: var(--ink); }

/* ---- steps ---- */

.stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px);
  min-height: 0;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  min-height: clamp(430px, 52vh, 520px);
  padding: var(--pad);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: background .5s, border-color .5s;
}

.step::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--lime);
  border-radius: 3px 3px 0 0;
  opacity: 0;
  transition: opacity .45s;
}

.step.is-active {
  background: var(--panel-hi);
  border-color: rgba(250, 255, 105, .36);
}
.step.is-active::before { opacity: 1; }

.step:not(.is-active) { cursor: pointer; }
.step:not(.is-active):hover { border-color: rgba(244, 244, 239, .2); }

.step-head {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--faint);
  transition: color .4s;
}
.step.is-active .step-num { color: var(--lime); }

.step-head h2 {
  margin: 0;
  font-family: "Inter Tight";
  font-weight: 800;
  font-size: clamp(21px, 1.9vw, 27px);
  line-height: 1;
  letter-spacing: -.022em;
  color: var(--dim);
  transition: color .4s;
}
.step.is-active h2 { color: var(--ink); }

.step-line {
  margin: 0;
  max-width: 33ch;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--dim);
  text-wrap: balance;
  transition: color .4s;
}
.step.is-active .step-line { color: rgba(244, 244, 239, .78); }

.demo {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.demo-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}
.demo-label i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- rent ---- */

.cards {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}

.card:hover { border-color: rgba(244, 244, 239, .28); }
.card[aria-checked="true"] {
  border-color: var(--lime);
  background: rgba(250, 255, 105, .045);
}

.card-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--grey);
  transition: background .25s, border-color .25s, box-shadow .25s;
}
.card[aria-checked="true"] .card-led {
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 8px rgba(250, 255, 105, .55);
}

.card-id {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.card-name {
  font-family: "Inter Tight";
  font-weight: 800;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.card-vram {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0;
  color: var(--dim);
  white-space: nowrap;
}

.card-price {
  justify-self: end;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  transition: color .25s;
}
.card-price .unit {
  font-size: 10px;
  color: var(--faint);
}
.card[aria-checked="true"] .card-price { color: var(--lime); }

.fine {
  margin: 0;
  font-size: 12px;
  letter-spacing: .01em;
  color: var(--faint);
}

/* ---- fit ---- */

.quants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.quant {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 10px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .25s, background .25s;
}

.quant:hover { border-color: rgba(244, 244, 239, .28); }
.quant[aria-checked="true"] {
  border-color: var(--lime);
  background: rgba(250, 255, 105, .045);
}

.quant-name {
  font-family: "Inter Tight";
  font-weight: 800;
  font-size: 14px;
  line-height: 1.1;
}
.quant-gb {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
}
.quant[aria-checked="true"] .quant-name { color: var(--lime); }

.fit-bar {
  --avail: 41.667%;
  --need: 20.833%;
  --over: 0%;
  position: relative;
  height: 40px;
  background: rgba(65, 65, 65, .32);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--need);
  background: var(--lime);
  border-radius: 1px;
  transition: width .55s cubic-bezier(.22, .8, .24, 1);
}

.bar-over {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--avail);
  width: var(--over);
  background: repeating-linear-gradient(135deg, rgba(65, 65, 65, .95) 0 4px, rgba(28, 28, 25, .18) 4px 8px);
  transition: width .55s cubic-bezier(.22, .8, .24, 1), left .55s cubic-bezier(.22, .8, .24, 1);
}

.bar-mark {
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: var(--avail);
  width: 1px;
  background: rgba(244, 244, 239, .8);
  transition: left .55s cubic-bezier(.22, .8, .24, 1);
}

.model-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
}
.model-row span:first-child {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.model-row span:last-child { color: var(--dim); }

.scale {
  display: flex;
  justify-content: space-between;
  margin-top: -5px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--faint);
}

.readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.verdict {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .01em;
  color: var(--ink);
}
.verdict.is-fit { color: var(--lime); }

.on-gpu {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  white-space: nowrap;
}

/* ---- serve ---- */

.cmd {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 11px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
}

.cmd-prompt { color: var(--lime); }

.tunnel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 2px;
}

.node {
  flex: 0 0 auto;
  padding: 7px 10px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  transition: border-color .4s, color .4s;
}

.wire {
  position: relative;
  flex: 1 1 auto;
  min-width: 20px;
  height: 1px;
  background: var(--line);
  transition: background .4s;
}

.pkt {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  transform: translate(-50%, -50%);
  opacity: .32;
  transition: opacity .3s;
}

.page[data-step="3"] .wire { background: rgba(250, 255, 105, .32); }
.page[data-step="3"] .node-out {
  border-color: rgba(250, 255, 105, .45);
  color: rgba(244, 244, 239, .85);
}
.page[data-step="3"] .pkt {
  opacity: 1;
  box-shadow: 0 0 12px rgba(250, 255, 105, .85);
  animation: pkt 2.1s cubic-bezier(.5, .05, .55, .95) infinite;
}

@keyframes pkt {
  from { left: 0; }
  to { left: 100%; }
}

.endpoint {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
}
.ep-label {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
}
.ep-url { color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- footer ---- */

.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.quiet {
  margin: 0;
  font-size: 12px;
  color: var(--dim);
}

.close {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.claim {
  margin: 0;
  font-size: 14.5px;
  letter-spacing: -.005em;
  color: var(--ink);
}

.link {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 255, 105, .35);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.link:hover { border-color: var(--lime); }

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- phone ---- */

@media (max-width: 900px) {
  .page {
    padding: 18px 18px 26px;
    gap: 18px;
  }

  h1 { font-size: clamp(34px, 9.4vw, 44px); }

  .head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .head-meta {
    flex-direction: row;
    align-items: center;
    gap: 0;
    margin: 0;
    font-size: 9.5px;
    text-align: left;
  }
  .head-meta span + span::before {
    content: "·";
    margin: 0 8px;
    color: var(--grey);
  }

  .rail { gap: 12px; }
  .rail-name { font-size: 14px; }
  .rail-num { font-size: 9px; }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    flex: none;
    gap: 12px;
  }

  .step { padding: 20px; gap: 14px; min-height: 0; }
  .step-line { max-width: none; font-size: 14px; }
  .demo { margin-top: 8px; }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .claim { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .page[data-step="3"] .pkt {
    animation: none;
    left: 50%;
  }
}
