/* ============================================================
   PC PICKER — Premium Design System
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:        #06080f;
  --bg-2:      #0b0f1c;
  --surface:   rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.16);
  --fg:        #eef1f8;
  --muted:     #97a0b8;
  --faint:     #5c6680;

  --cyan:   #19E3B1;
  --violet: #8B5CFF;
  --pink:   #FF2E97;
  --blue:   #38bdf8;

  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(139,92,255,.35), transparent 60%),
               radial-gradient(900px 500px at 10% 10%, rgba(25,227,177,.22), transparent 55%),
               radial-gradient(700px 700px at 50% 120%, rgba(255,46,151,.18), transparent 60%);
  --glow-cyan:   0 0 0 1px rgba(25,227,177,.4), 0 8px 40px rgba(25,227,177,.25);
  --glow-violet: 0 0 0 1px rgba(139,92,255,.4), 0 8px 40px rgba(139,92,255,.28);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1200px;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 85% -5%, rgba(139,92,255,.16), transparent 55%),
    radial-gradient(900px 600px at -5% 8%, rgba(25,227,177,.10), transparent 55%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* subtle film grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-sm { padding: 48px 0; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.05; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em; color: var(--cyan);
  padding: 6px 14px; border: 1px solid var(--border-2); border-radius: 999px;
  background: var(--surface);
}
.lead { color: var(--muted); font-size: 1.12rem; line-height: 1.6; }
.gradient-text {
  background: linear-gradient(100deg, var(--cyan), var(--violet) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(6,8,15,.7);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 1.18rem; }
.brand .logo { width: 34px; height: 34px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 15px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .95rem;
  transition: .18s;
}
.nav-links a:hover { color: var(--fg); background: var(--surface); }
.nav-links a.active { color: var(--fg); }
.nav-cta {
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  color: #06080f !important; font-weight: 700 !important;
  box-shadow: 0 6px 24px rgba(139,92,255,.35);
}
.nav-cta:hover { background: linear-gradient(100deg, var(--cyan), var(--violet)) !important; transform: translateY(-1px); }
.burger { display: none; background: none; border: 1px solid var(--border-2); border-radius: 10px; color: var(--fg); width: 42px; height: 38px; font-size: 1.2rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: .96rem;
  padding: 13px 22px; border-radius: 12px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--fg); transition: .2s; text-align: center;
}
.btn:hover { border-color: var(--border-2); background: var(--surface-2); transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(100deg, var(--cyan), var(--violet)); color: #06080f; border: none;
  box-shadow: 0 8px 30px rgba(139,92,255,.32);
}
.btn-primary:hover { box-shadow: 0 12px 40px rgba(139,92,255,.5); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  backdrop-filter: blur(8px); transition: .25s;
}
.card:hover { border-color: var(--border-2); transform: translateY(-4px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 120px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-hero);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-3%,2%,0) scale(1.08); } }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 80%);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; }
.hero .lead { max-width: 620px; margin-top: 22px; font-size: 1.2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats { display: flex; gap: 38px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--display); font-size: 2rem; font-weight: 700; }
.hero-stats .stat .l { color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* ---------- Category pills ---------- */
.cat-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--surface); font-weight: 600; font-family: var(--display); transition: .2s;
}
.cat-pill:hover, .cat-pill.active { background: var(--surface-2); transform: translateY(-2px); }
.cat-pill.active { box-shadow: var(--glow-violet); }

/* ---------- Build grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.build-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.build-card .visual {
  height: 170px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.build-card .visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, var(--accent, var(--violet)), transparent 65%);
  opacity: .35;
}
.build-card .visual .chip-tier {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--display); font-size: .74rem; font-weight: 600; letter-spacing: .06em;
  padding: 6px 12px; border-radius: 999px; background: rgba(6,8,15,.6); border: 1px solid var(--border-2);
}
.build-card .visual .pc-icon { font-size: 4rem; filter: drop-shadow(0 6px 24px rgba(0,0,0,.5)); z-index: 1; }
.build-card .body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.build-card h3 { font-size: 1.4rem; }
.build-card .tag-line { color: var(--muted); font-size: .92rem; line-height: 1.5; flex: 1; }
.badges { display: flex; gap: 7px; flex-wrap: wrap; }
.badge {
  font-size: .72rem; font-weight: 600; font-family: var(--display);
  padding: 5px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border);
  color: var(--muted);
}
.build-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.price { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.price small { color: var(--muted); font-weight: 500; font-size: .8rem; }

/* ---------- Spec list ---------- */
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.spec-list .row { background: var(--bg-2); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.spec-list .row .k { color: var(--faint); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.spec-list .row .v { font-weight: 600; font-family: var(--display); }

/* ---------- FPS bars ---------- */
.fps-controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.res-btn {
  padding: 9px 18px; border-radius: 10px; border: 1px solid var(--border-2);
  background: var(--surface); font-family: var(--display); font-weight: 600; cursor: pointer; transition: .2s; color: var(--fg);
}
.res-btn.active { background: linear-gradient(100deg, var(--cyan), var(--violet)); color: #06080f; border: none; }
.fps-row { display: grid; grid-template-columns: 180px 1fr 64px; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.fps-row .game { font-weight: 600; }
.fps-row .game small { display: block; color: var(--faint); font-weight: 400; font-size: .75rem; }
.fps-bar { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fps-bar > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet)); width: 0; transition: width .9s cubic-bezier(.2,.8,.2,1);
}
.fps-num { font-family: var(--display); font-weight: 700; font-size: 1.1rem; text-align: right; }
.fps-num small { color: var(--faint); font-weight: 400; font-size: .7rem; display: block; }
.fps-legend { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-top: 16px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

/* ---------- Workloads ---------- */
.workload { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.workload .meter { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.workload .meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet)); border-radius: 999px; }
.workload .wname { width: 220px; font-weight: 600; }
.workload .wmetric { width: 150px; text-align: right; font-family: var(--display); font-weight: 600; color: var(--cyan); }

/* ---------- Configurator ---------- */
.config-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.config-cat { margin-bottom: 18px; }
.config-cat h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.1rem; }
.opt-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.opt {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; transition: .18s;
}
.opt:hover { border-color: var(--border-2); background: var(--surface-2); }
.opt.selected { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.opt .on { font-weight: 600; font-size: .92rem; }
.opt .op { font-family: var(--display); font-weight: 700; color: var(--cyan); white-space: nowrap; }
.summary {
  position: sticky; top: 90px; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border-2); backdrop-filter: blur(10px);
}
.summary h3 { margin-bottom: 16px; }
.summary .line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.summary .line .sk { color: var(--muted); }
.summary .line .sv { font-weight: 600; text-align: right; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; }
.summary .total .price { font-size: 2rem; }
.perf-meter { margin: 14px 0; }
.perf-meter .meter { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.perf-meter .meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink)); width: 0; transition: width .6s; }

/* ---------- Suppliers / price check ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); font-family: var(--font); font-size: .95rem;
  border: 1px solid var(--border-2); background: var(--bg-2); color: var(--fg); outline: none; transition: .18s;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25,227,177,.15); }
.supplier-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.supplier-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px; border-bottom: 1px solid var(--border-2); }
.supplier-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); }
.supplier-table tr:hover td { background: var(--surface); }
.pill-stock { font-size: .76rem; font-weight: 600; padding: 4px 9px; border-radius: 7px; }
.in { background: rgba(25,227,177,.15); color: var(--cyan); }
.out { background: rgba(255,46,151,.15); color: var(--pink); }
.best { color: var(--cyan); font-weight: 700; }

.supplier-logos { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.supplier-logos .slogo {
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  font-family: var(--display); font-weight: 600; color: var(--muted); font-size: .92rem;
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; background: var(--surface); }
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: scroll 28s linear infinite; }
.marquee-track span { font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 1.05rem; display: inline-flex; align-items: center; gap: 12px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Feature blocks ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .ic { font-size: 1.8rem; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); flex-shrink: 0; }
.feature h4 { font-size: 1.15rem; margin-bottom: 6px; }
.feature p { color: var(--muted); line-height: 1.55; margin: 0; font-size: .94rem; }

/* ---------- Section heading ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 38px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.sec-head p { color: var(--muted); margin: 10px 0 0; max-width: 520px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center;
  border: 1px solid var(--border-2);
  background: radial-gradient(800px 400px at 50% -20%, rgba(139,92,255,.4), transparent 60%), var(--bg-2);
}
.cta-band h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.cta-band p { color: var(--muted); max-width: 540px; margin: 16px auto 30px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-family: var(--display); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 0 0 14px; }
.footer a { display: block; color: var(--muted); padding: 5px 0; font-size: .92rem; transition: .15s; }
.footer a:hover { color: var(--fg); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; color: var(--faint); font-size: .85rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Misc ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
.note { color: var(--faint); font-size: .82rem; line-height: 1.5; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-2); border-top-color: var(--cyan); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.divider { height: 1px; background: var(--border); margin: 40px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .config-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; }
  .burger { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  .fps-row { grid-template-columns: 110px 1fr 54px; }
  .workload { flex-wrap: wrap; }
  .workload .wname, .workload .wmetric { width: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 70px 0 50px; }
}
