@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root {
  --bg: #101316;
  --panel: #191d21;
  --line: #2b3035;
  --muted: #949da6;
  --mint: #b9f978;
  --text: #eef0f1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
a {
  color: inherit;
}
header {
  height: 88px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 25px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 27px;
  font-weight: 700;
}
.brand:first-letter {
  color: var(--mint);
}
.dot {
  color: var(--mint);
}
nav {
  display: flex;
  gap: 30px;
}
.nav {
  color: var(--muted);
  background: none;
  border: 0;
  font-weight: 500;
  padding: 12px 0;
}
.nav.active {
  color: var(--mint);
}
.local {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 30px;
}
main {
  max-width: 1440px;
  margin: auto;
  padding: 0 5%;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 425px;
  align-items: center;
  gap: 30px;
  padding: 42px 0;
}
.eyebrow {
  color: var(--mint);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 16px;
}
h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
}
h1 {
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 0 0 20px;
}
h1 span {
  color: #9ea6ad;
}
p {
  color: var(--muted);
  line-height: 1.8;
}
.hero p {
  font-size: 15px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.primary,
.ghost {
  border-radius: 8px;
  padding: 13px 19px;
  border: 1px solid var(--line);
  font-weight: 600;
}
.primary {
  background: var(--mint);
  color: #192212;
  border-color: var(--mint);
}
.primary:hover {
  background: #d0ff9f;
}
.primary span {
  margin-left: 22px;
}
.ghost {
  background: transparent;
  color: var(--text);
}
.ghost:hover {
  background: #252b30;
}
.small {
  padding: 10px 14px;
  font-size: 12px;
}
.machine {
  height: 340px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse, #91bf5330, transparent 66%);
}
.orbit {
  position: absolute;
  width: 340px;
  height: 270px;
  border: 1px solid #c1ff7520;
  border-radius: 50%;
  transform: rotate(-24deg);
}
.tower {
  width: 235px;
  height: 286px;
  display: flex;
  transform: perspective(800px) rotateY(-19deg) rotateX(5deg);
  filter: drop-shadow(15px 25px 22px #0008);
}
.glass {
  background: linear-gradient(130deg, #313c37b0, #15191ce0);
  border: 2px solid #475247;
  position: relative;
  width: 193px;
  border-radius: 10px 0 0 6px;
  box-shadow: inset 0 0 22px #b9f97815;
}
.front {
  background: linear-gradient(90deg, #292f2d, #121516);
  width: 48px;
  border: 2px solid #3a413b;
  border-left: 0;
  transform: skewY(-7deg);
  border-radius: 0 10px 5px 0;
  text-align: center;
}
.front b {
  display: block;
  font-size: 12px;
  color: var(--mint);
  margin-top: 14px;
}
.front span {
  display: block;
  margin: 25px auto;
  width: 20px;
  height: 205px;
  background: repeating-linear-gradient(0deg, #111 0 2px, #303632 3px 4px);
}
.fan {
  position: absolute;
  right: 12px;
  width: 54px;
  height: 54px;
  border: 5px solid #c8ff8290;
  border-radius: 50%;
  box-shadow:
    0 0 14px #b9ff6980,
    inset 0 0 11px #b9ff6960;
  background: repeating-conic-gradient(#515b4c 0deg 20deg, #1c241e 25deg 45deg);
}
.fan:after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #899c78;
  border-radius: 50%;
  top: 16px;
  left: 16px;
}
.f1 {
  top: 16px;
}
.f2 {
  top: 79px;
}
.f3 {
  top: 142px;
}
.board {
  position: absolute;
  left: 10px;
  top: 40px;
  width: 105px;
  height: 135px;
  background: repeating-linear-gradient(40deg, #414b4120 0 4px, #101510 5px 9px);
  border: 1px solid #3c453a;
}
.chip {
  position: absolute;
  top: 77px;
  left: 24px;
  width: 57px;
  height: 57px;
  border: 2px solid #aaff6980;
  background: #1a221b;
  color: #cbff99;
  display: grid;
  place-items: center;
  font-size: 9px;
  box-shadow: 0 0 18px #adfa5030;
}
.ram {
  position: absolute;
  top: 62px;
  width: 6px;
  height: 78px;
  background: #b1ec8b;
  box-shadow: 0 0 12px #bdffac;
}
.r1 {
  left: 92px;
}
.r2 {
  left: 104px;
}
.gpu {
  position: absolute;
  top: 177px;
  left: 9px;
  width: 169px;
  height: 29px;
  background: linear-gradient(#3f4840, #101511);
  border: 1px solid #a1c18a;
  font-size: 8px;
  padding: 8px;
  letter-spacing: 2px;
}
.gpu i {
  position: absolute;
  height: 2px;
  width: 90px;
  right: 5px;
  bottom: 3px;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}
.psubox {
  position: absolute;
  bottom: 0;
  height: 49px;
  background: #202522;
  width: 100%;
  border-top: 1px solid #4d5947;
}
.floating {
  position: absolute;
  bottom: 14px;
  right: 5%;
  border: 1px solid #4e6342;
  background: #212b1ed9;
  border-radius: 7px;
  padding: 12px;
  font-size: 11px;
}
.green {
  color: var(--mint);
}
.spec-label {
  position: absolute;
  top: 20px;
  right: 0;
  writing-mode: vertical-rl;
  font-size: 8px;
  letter-spacing: 2px;
  color: #64735d;
}
.workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  gap: 15px;
}
.workspace-head .eyebrow {
  margin: 0 0 7px;
}
h2 {
  font-size: 27px;
  margin: 0;
  letter-spacing: -0.8px;
}
.toolbar {
  display: flex;
  gap: 8px;
}
.demo-note {
  color: #9aa591;
  font-size: 11px;
  padding: 15px 0 20px;
}
.demo-note span {
  color: var(--mint);
  margin-right: 6px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
  overflow: auto;
}
.tab {
  white-space: nowrap;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 15px 0;
  font-size: 12px;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--mint);
  border-color: var(--mint);
}
.component {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto auto;
  gap: 15px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 17px;
  margin-bottom: 9px;
}
.part-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  background: #252b2e;
  color: #b7c3ba;
  font-size: 24px;
  border-radius: 9px;
}
.part-type {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.component h3 {
  font-size: 14px;
  margin: 0 0 6px;
  font-weight: 500;
}
.spec {
  font-size: 11px;
  color: var(--muted);
}
.price {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 14px;
  white-space: nowrap;
}
.edit {
  background: #292f32;
  color: #bdc9b8;
  border: 1px solid #394139;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 11px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  padding: 23px;
  margin-bottom: 14px;
}
.panel h3 {
  margin: 0 0 20px;
  font-size: 16px;
}
.panel .eyebrow {
  font-size: 9px;
}
.total {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 36px;
  letter-spacing: -1px;
  margin: 10px 0;
}
.total small {
  font-size: 15px;
  color: var(--muted);
}
.sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.split {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 15px 0;
  font-size: 12px;
}
.line {
  height: 1px;
  background: var(--line);
  margin: 18px 0;
}
.meter {
  height: 5px;
  background: #363b39;
  border-radius: 5px;
  overflow: hidden;
}
.meter span {
  height: 100%;
  display: block;
  background: var(--mint);
  border-radius: 5px;
}
.status {
  border-radius: 7px;
  background: #b9f9780a;
  border: 1px solid #b9f97820;
  color: var(--mint);
  padding: 12px;
  font-size: 12px;
}
.status.bad {
  color: #ffc28a;
  background: #ffc28a0a;
  border-color: #ffc28a30;
}
.checks {
  padding: 0;
  list-style: none;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.checks li {
  margin: 10px 0;
}
.checks b {
  color: var(--mint);
  margin-right: 7px;
}
.checks .bad b {
  color: #ffad92;
}
aside {
  position: sticky;
  top: 20px;
}
.wfull {
  width: 100%;
  margin-top: 15px;
}
.mini-preview {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mini-preview .part-icon {
  background: #333b2e;
  color: var(--mint);
}
.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.controls label {
  font-size: 10px;
  color: var(--muted);
}
input,
select {
  background: #121619;
  border: 1px solid #394046;
  border-radius: 7px;
  color: var(--text);
  padding: 11px;
  max-width: 100%;
}
.controls select {
  display: block;
  margin-top: 6px;
}
.game {
  display: grid;
  grid-template-columns: 38px 1fr 105px;
  gap: 14px;
  padding: 15px 0;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.game-art {
  height: 38px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
  background: linear-gradient(130deg, #394a32, #25313c);
}
.game strong {
  font-size: 12px;
}
.fps {
  text-align: right;
  color: var(--mint);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 17px;
}
.fps small {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.game .meter {
  margin-top: 9px;
  height: 3px;
}
.monitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.monitor-screen {
  height: 100px;
  width: 170px;
  max-width: 100%;
  margin: 10px auto 25px;
  background: radial-gradient(ellipse at 20% 80%, #b9f978aa, transparent 65%),
    linear-gradient(30deg, #304a42, #182126 65%, #655087);
  border: 5px solid #363e42;
  position: relative;
  border-radius: 3px;
}
.monitor-screen:after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 40%;
  width: 25%;
  height: 17px;
  border-bottom: 3px solid #727b75;
  background: linear-gradient(90deg, transparent 40%, #56605b 40% 60%, transparent 60%);
}
.monitor-grid h3 {
  font-size: 14px;
}
.monitor-grid .panel {
  padding: 18px;
}
.monitor-grid .price {
  margin-top: 14px;
}
.empty {
  padding: 35px;
  text-align: center;
  color: var(--muted);
}
.saved-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: var(--panel);
  margin-bottom: 12px;
}
.saved-card h3 {
  margin-top: 0;
}
.saved-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.compare {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  min-width: 140px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 50px;
  gap: 20px;
}
footer .brand {
  font-size: 20px;
}
footer span {
  font-size: 11px;
  color: var(--muted);
}
dialog {
  background: #191e22;
  color: var(--text);
  border: 1px solid #46513f;
  border-radius: 16px;
  width: min(720px, 94vw);
  max-height: 85vh;
  padding: 28px;
}
dialog::backdrop {
  background: #040709b0;
  backdrop-filter: blur(6px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.icon {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 28px;
}
.filters {
  display: flex;
  gap: 10px;
}
.filters input {
  flex: 1;
  min-width: 0;
}
.check {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 20px 0;
}
.check input {
  accent-color: var(--mint);
}
.option {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 15px;
  align-items: center;
}
.option div {
  flex: 1;
}
.option h3 {
  font-size: 14px;
  margin: 0 0 7px;
}
.conflict {
  color: #ffb997;
  font-size: 10px;
  margin-top: 7px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 20px;
  background: var(--mint);
  color: #192212;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 5;
}
#toast.show {
  opacity: 1;
}
#info p {
  font-size: 13px;
}
.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}
.heading-row h3 {
  font-size: 17px;
}
.preset-grid {
  display: grid;
  gap: 12px;
}
.preset-grid button {
  text-align: left;
  padding: 23px;
}
.preset-grid b {
  display: block;
  font-size: 19px;
  margin-bottom: 10px;
}
.preset-grid span {
  color: var(--muted);
  font-size: 12px;
}
@media (min-width: 1400px) {
  h1 {
    font-size: 56px;
  }
}
@media (max-width: 1000px) {
  nav {
    gap: 16px;
  }
  .local {
    display: none;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .hero {
    gap: 0;
  }
  h1 {
    font-size: 38px;
  }
  .component {
    gap: 9px;
    padding: 13px;
  }
  .tabs {
    gap: 15px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    padding: 20px 5% 0;
    gap: 12px;
  }
  nav {
    order: 2;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .nav {
    font-size: 11px;
    padding-bottom: 15px;
  }
  main {
    padding: 0 5%;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 0 20px;
    min-height: 0;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero p br {
    display: none;
  }
  .machine {
    height: 280px;
    margin-top: 22px;
  }
  .tower {
    transform: scale(0.85) perspective(800px) rotateY(-19deg);
  }
  .floating {
    bottom: 5px;
  }
  .spec-label {
    right: 10px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions button {
    font-size: 12px;
    padding: 13px;
  }
  .workspace-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .toolbar {
    width: 100%;
  }
  .demo-note {
    line-height: 1.7;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .tabs {
    gap: 20px;
  }
  .tab {
    font-size: 11px;
  }
  aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .component {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }
  .part-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  .component .price {
    font-size: 12px;
  }
  .component .edit {
    grid-column: 3;
    padding: 6px;
    grid-row: 2;
  }
  .component .part-icon {
    grid-row: 1/3;
  }
  .component > div:nth-child(2) {
    grid-row: 1/3;
  }
  .component h3 {
    font-size: 12px;
  }
  .spec {
    font-size: 10px;
  }
  .monitor-grid {
    grid-template-columns: 1fr;
  }
  .game {
    grid-template-columns: 32px 1fr 90px;
    gap: 9px;
  }
  .game strong {
    font-size: 11px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters input {
    width: 100%;
  }
  dialog {
    padding: 20px;
  }
  .option {
    flex-wrap: wrap;
  }
  .option div {
    min-width: 160px;
  }
  .option .price {
    margin-left: auto;
  }
  footer {
    flex-wrap: wrap;
  }
  footer span {
    display: none;
  }
  h2 {
    font-size: 25px;
  }
}
