/* ================================================================
   NEXCOR COMPUTER — POC design system
   Palette: graphite night + heatpipe copper + steel blue
   Type: Chakra Petch (display) / IBM Plex Sans (body) / IBM Plex Mono (data)
   ================================================================ */

:root {
  --bg: #0a0d12;
  --bg-2: #0f141b;
  --surface: #141b24;
  --surface-2: #182130;
  --line: #22303f;
  --text: #e9eef4;
  --muted: #93a1b3;
  /* accent aligned to the brand-red NEXCOR logo (var names kept) */
  --copper: #d93438;
  --copper-bright: #f25c60;
  --copper-dim: rgba(217, 52, 56, 0.14);
  --steel: #6fa8c9;
  --ok: #58b98a;
  --warn: #e0b04a;
  --bad: #d96a6a;

  --font-display: "Chakra Petch", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 6px;
  --maxw: 1200px;
  --header-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--copper-bright); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

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

/* ---------------------------------------------------------------
   Typography
   --------------------------------------------------------------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--copper);
}

.lead { color: var(--muted); font-size: 1.05rem; max-width: 56ch; }

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 13, 18, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
}
.brand em {
  font-style: normal;
  color: var(--copper);
}

.main-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.main-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a.active { color: var(--copper-bright); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
}
.lang-toggle button {
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  padding: 6px 10px;
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--copper-dim);
  color: var(--copper-bright);
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.cart-btn:hover { border-color: var(--copper); color: var(--text); }
.cart-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--copper);
  color: #14100a;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-weight: 600;
}

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(217, 52, 56, 0.09), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(111, 168, 201, 0.07), transparent 60%),
    var(--bg);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--copper);
}

.hero-copy > * + * { margin-top: 22px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 34px;
  padding-top: 10px;
}
.hero-stats div strong {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text);
  display: block;
}
.hero-stats div span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Circuit-trace visual + featured build card */
.hero-visual { position: relative; }

.trace-svg {
  position: absolute;
  inset: -40px -30px;
  width: calc(100% + 60px);
  height: calc(100% + 80px);
  pointer-events: none;
  z-index: 0;
}
.trace-svg path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
}
.trace-svg path.lit {
  stroke: var(--copper);
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: trace-draw 2.4s ease forwards;
  opacity: 0.85;
}
.trace-svg circle { fill: var(--copper); opacity: 0; animation: node-pop 0.4s ease forwards; }
.trace-svg circle:nth-of-type(1) { animation-delay: 1.2s; }
.trace-svg circle:nth-of-type(2) { animation-delay: 1.7s; }
.trace-svg circle:nth-of-type(3) { animation-delay: 2.2s; }

@keyframes trace-draw { to { stroke-dashoffset: 0; } }
@keyframes node-pop { to { opacity: 0.9; } }

.build-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.build-card .bc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.build-card .bc-head h3 { font-size: 1rem; }
.build-card .bc-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--copper-bright);
  border: 1px solid rgba(217, 52, 56, 0.4);
  border-radius: 999px;
  padding: 3px 10px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
}
.spec-row:last-of-type { border-bottom: none; }
.spec-row .k { color: var(--muted); }
.spec-row .v { color: var(--text); text-align: right; }
.build-card .bc-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.build-card .bc-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--copper-bright);
}

/* ---------------------------------------------------------------
   Ticker
   --------------------------------------------------------------- */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  padding: 10px 0;
}
.ticker-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  display: flex;
  gap: 10px;
  align-items: center;
}
.ticker-item .t-name { color: var(--text); }
.ticker-item .t-price { color: var(--copper-bright); }
.ticker-item .t-stock-out { color: var(--bad); }
.ticker-item::before { content: "▮"; color: var(--line); font-size: 0.6rem; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */

.section { padding: 72px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head p { color: var(--muted); margin-top: 8px; max-width: 52ch; }

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--copper);
  color: #14100a;
}
.btn-primary:hover {
  background: var(--copper-bright);
  color: #14100a;
  box-shadow: 0 6px 24px rgba(217, 52, 56, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-bright); }

.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------
   Product grid & cards
   --------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 52, 56, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.product-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(111, 168, 201, 0.06), transparent 55%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(34, 48, 63, 0.55) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(34, 48, 63, 0.55) 23px 24px),
    var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb svg { width: 84px; height: 84px; color: var(--steel); opacity: 0.9; }
.product-card:hover .product-thumb svg { color: var(--copper-bright); }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.badge-out { background: rgba(217, 106, 106, 0.16); color: var(--bad); border: 1px solid rgba(217, 106, 106, 0.4); }
.badge-low { background: rgba(224, 176, 74, 0.14); color: var(--warn); border: 1px solid rgba(224, 176, 74, 0.4); }

.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-name { font-size: 0.98rem; font-weight: 600; font-family: var(--font-display); }
.product-name a { color: var(--text); }
.product-name a:hover { color: var(--copper-bright); }
.product-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--copper-bright);
  margin-top: auto;
}
.product-foot { padding: 0 16px 16px; }

/* ---------------------------------------------------------------
   Store layout / filters
   --------------------------------------------------------------- */

.store-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.filter-panel h3 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.filter-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.filter-list button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.filter-list button:hover { color: var(--text); background: var(--surface); }
.filter-list button.active {
  color: var(--copper-bright);
  border-left-color: var(--copper);
  background: var(--copper-dim);
}
.filter-list .count { font-family: var(--font-mono); font-size: 0.7rem; opacity: 0.7; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
}
.search-box input {
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}
.search-box svg { width: 15px; height: 15px; color: var(--muted); flex: none; }

.store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
}
.result-count { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); }

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 60px 24px;
  text-align: center;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   Product detail
   --------------------------------------------------------------- */

.pd-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.pd-media {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.pd-media .product-thumb { aspect-ratio: 1 / 0.85; }
.pd-media .product-thumb svg { width: 140px; height: 140px; }

.pd-info > * + * { margin-top: 18px; }
.pd-price {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--copper-bright);
}
.pd-stock { font-family: var(--font-mono); font-size: 0.8rem; }
.pd-stock.ok { color: var(--ok); }
.pd-stock.out { color: var(--bad); }

.qty-picker {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.qty-picker button {
  background: var(--surface);
  border: none;
  color: var(--text);
  width: 38px;
  height: 42px;
  font-size: 1.1rem;
  cursor: pointer;
}
.qty-picker button:hover { background: var(--surface-2); }
.qty-picker input {
  width: 52px;
  text-align: center;
  background: var(--bg-2);
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.spec-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.spec-table td:first-child { color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; width: 40%; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--copper-bright); }

/* ---------------------------------------------------------------
   Cart & checkout
   --------------------------------------------------------------- */

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  align-items: center;
}
.cart-item .product-thumb { aspect-ratio: 1; border-radius: 6px; }
.cart-item .product-thumb svg { width: 40px; height: 40px; }
.cart-item h4 { font-size: 0.92rem; font-family: var(--font-display); }
.cart-item .ci-meta { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); margin-top: 4px; }
.cart-item .ci-right { display: flex; flex-direction: column; align-items: end; gap: 8px; }
.ci-line-price { font-family: var(--font-mono); font-weight: 600; color: var(--copper-bright); font-size: 0.9rem; }
.ci-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: underline;
}
.ci-remove:hover { color: var(--bad); }

.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.summary-card h3 { margin-bottom: 16px; }
.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 8px 0;
  color: var(--muted);
}
.sum-row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.05rem;
}
.sum-row.total .v { color: var(--copper-bright); }
.summary-note { font-size: 0.76rem; color: var(--muted); margin-top: 12px; }

/* Checkout steps */
.steps {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.steps .step {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.steps .step.active { color: var(--copper-bright); border-bottom-color: var(--copper); }
.steps .step.done { color: var(--ok); border-bottom-color: var(--ok); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  padding: 11px 12px;
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--copper);
}
.field .err { color: var(--bad); font-size: 0.74rem; font-family: var(--font-body); text-transform: none; letter-spacing: 0; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); }
.field.invalid .err { display: block; }

/* Bank transfer / success panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
}
.panel + .panel { margin-top: 18px; }
.order-code-box {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--copper-bright);
  background: var(--copper-dim);
  border: 1px dashed rgba(217, 52, 56, 0.5);
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
  letter-spacing: 0.06em;
  margin: 18px 0;
}
.bank-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.bank-row .k { color: var(--muted); }

/* Status timeline */
.status-timeline { list-style: none; display: flex; flex-direction: column; gap: 0; margin-top: 20px; }
.status-timeline li {
  position: relative;
  padding: 0 0 26px 30px;
  color: var(--muted);
  font-size: 0.9rem;
}
.status-timeline li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: -8px;
  width: 1px;
  background: var(--line);
}
.status-timeline li:last-child::before { display: none; }
.status-timeline li::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 2px solid var(--line);
}
.status-timeline li.done { color: var(--text); }
.status-timeline li.done::after { background: var(--ok); border-color: var(--ok); }
.status-timeline li.current { color: var(--copper-bright); }
.status-timeline li.current::after { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 0 4px var(--copper-dim); }
.status-timeline .st-date { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }

.status-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
}
.status-pill.PENDING_PAYMENT { color: var(--warn); border-color: rgba(224, 176, 74, 0.5); background: rgba(224, 176, 74, 0.1); }
.status-pill.PAID { color: var(--steel); border-color: rgba(111, 168, 201, 0.5); background: rgba(111, 168, 201, 0.1); }
.status-pill.SHIPPED { color: var(--copper-bright); border-color: rgba(217, 52, 56, 0.5); background: var(--copper-dim); }
.status-pill.COMPLETED { color: var(--ok); border-color: rgba(88, 185, 138, 0.5); background: rgba(88, 185, 138, 0.1); }
.status-pill.CANCELLED { color: var(--bad); border-color: rgba(217, 106, 106, 0.5); background: rgba(217, 106, 106, 0.1); }

/* ---------------------------------------------------------------
   Services / feature cards
   --------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-3px); border-color: rgba(217, 52, 56, 0.4); }
.feature-card .fc-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--copper-dim);
  color: var(--copper-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card .fc-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; }

/* Build process (numbered — real sequence) */
.process-list { counter-reset: proc; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.process-list li {
  counter-increment: proc;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}
.process-list li::before {
  content: counter(proc, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--copper);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 10px;
}
.process-list h4 { font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 6px; }
.process-list p { color: var(--muted); font-size: 0.85rem; }

/* ---------------------------------------------------------------
   Blog
   --------------------------------------------------------------- */

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.blog-card:hover { transform: translateY(-3px); border-color: rgba(111, 168, 201, 0.5); }
.blog-cover {
  aspect-ratio: 16 / 8;
  background:
    linear-gradient(120deg, rgba(217, 52, 56, 0.12), rgba(111, 168, 201, 0.1)),
    var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel);
}
.blog-cover svg { width: 44px; height: 44px; opacity: 0.8; }
.blog-body { padding: 20px; }
.blog-body time { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; }
.blog-body h3 { margin: 8px 0; font-size: 1.02rem; }
.blog-body h3 a { color: var(--text); }
.blog-body h3 a:hover { color: var(--copper-bright); }
.blog-body p { color: var(--muted); font-size: 0.88rem; }

/* ---------------------------------------------------------------
   Contact
   --------------------------------------------------------------- */

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-line {
  display: flex;
  gap: 14px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.contact-line svg { width: 20px; height: 20px; color: var(--copper); flex: none; margin-top: 2px; }
.contact-line .k { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 3px; }

.map-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(34, 48, 63, 0.6) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(34, 48, 63, 0.6) 39px 40px),
    var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.map-placeholder svg { width: 34px; height: 34px; color: var(--copper); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 56px 0 28px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--muted); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--copper-bright); }
.footer-about p { color: var(--muted); font-size: 0.88rem; margin-top: 12px; max-width: 36ch; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   Admin
   --------------------------------------------------------------- */

.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--header-h));
}
.admin-side {
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-side a {
  color: var(--muted);
  font-size: 0.88rem;
  padding: 9px 12px;
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  align-items: center;
}
.admin-side a svg { width: 16px; height: 16px; }
.admin-side a:hover { color: var(--text); background: var(--surface); }
.admin-side a.active { color: var(--copper-bright); background: var(--copper-dim); }
.admin-main { padding: 32px; min-width: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.stat-card .s-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.stat-card .s-value { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; margin-top: 6px; }
.stat-card .s-value.accent { color: var(--copper-bright); }
.stat-card .s-sub { font-size: 0.74rem; color: var(--muted); margin-top: 4px; }

.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; min-width: 640px; }
.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(34, 48, 63, 0.25); }
.data-table .mono { font-size: 0.8rem; }

.admin-section-title { display: flex; justify-content: space-between; align-items: center; margin: 32px 0 16px; }

/* ---------------------------------------------------------------
   Utility / motion
   --------------------------------------------------------------- */

.page-title { padding: 56px 0 8px; }
.page-title p { color: var(--muted); margin-top: 10px; max-width: 60ch; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-2);
  border: 1px solid var(--copper);
  color: var(--text);
  font-size: 0.86rem;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 200;
  transition: transform 0.3s ease;
}
.toast.show { transform: translateX(-50%) translateY(0); }

.notice {
  border: 1px solid rgba(111, 168, 201, 0.4);
  background: rgba(111, 168, 201, 0.08);
  color: var(--steel);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.84rem;
}

.poc-banner {
  background: var(--copper-dim);
  border-bottom: 1px solid rgba(217, 52, 56, 0.35);
  color: var(--copper-bright);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px 12px;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

/* nav collapses earlier than the layout grids — 8 items need the room */
@media (max-width: 1120px) {
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px;
  }
  .main-nav.open { display: flex; }
  .nav-burger { display: block; margin-left: auto; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .store-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .pd-layout, .cart-layout, .contact-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   Brand logo (official logo.png — do not restyle)
   --------------------------------------------------------------- */

.brand-logo { height: 34px; width: auto; display: block; }
.site-footer .brand-logo { height: 40px; }
@media (max-width: 560px) { .brand-logo { height: 28px; } }

/* ---------------------------------------------------------------
   PC Build Simulator
   --------------------------------------------------------------- */

.sim-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: start;
}

.sim-pickers { display: flex; flex-direction: column; gap: 14px; }

.sim-slot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  transition: border-color 0.2s ease;
}
.sim-slot:focus-within { border-color: var(--copper); }
.sim-slot .fc-icon { margin: 0; width: 44px; height: 44px; }
.sim-slot .fc-icon svg { width: 24px; height: 24px; }
.sim-slot label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.sim-slot select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 9px 10px;
}
.sim-slot select:focus { outline: none; border-color: var(--copper); }
.sim-slot .slot-price {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--copper-bright);
  margin-top: 5px;
}

.sim-warning {
  border: 1px solid rgba(224, 176, 74, 0.45);
  background: rgba(224, 176, 74, 0.08);
  color: var(--warn);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.82rem;
  display: flex;
  gap: 8px;
  align-items: start;
}
.sim-warning.error {
  border-color: rgba(217, 106, 106, 0.45);
  background: rgba(217, 106, 106, 0.08);
  color: var(--bad);
}

.sim-summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.perf-meter { margin-top: 4px; }
.perf-meter .pm-track {
  height: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.perf-meter .pm-fill {
  height: 100%;
  width: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--steel), var(--copper-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.perf-meter .pm-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 6px;
}

.watt-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
}
.watt-row .k { color: var(--muted); }
.watt-row .v.ok { color: var(--ok); }
.watt-row .v.warn { color: var(--warn); }
.watt-row .v.bad { color: var(--bad); }

/* ---------------------------------------------------------------
   Benchmark simulation
   --------------------------------------------------------------- */

.bench-section { margin-top: 56px; }

.bench-controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: end;
  margin-bottom: 22px;
}
.bench-controls .field { min-width: 220px; }

.bench-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #05070b;
}
.bench-stage canvas { width: 100%; height: auto; display: block; }

.bench-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--font-mono);
}
.bench-hud .fps-big {
  position: absolute;
  top: 14px;
  right: 18px;
  text-align: right;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.bench-hud .fps-big .n { font-size: 2.4rem; font-weight: 600; color: var(--copper-bright); line-height: 1; }
.bench-hud .fps-big .u { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.2em; }
.bench-hud .bench-game-label {
  position: absolute;
  top: 14px;
  left: 18px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}
.bench-hud .bench-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.bench-hud .bench-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--copper-bright);
}
.bench-idle-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(5, 7, 11, 0.72);
  backdrop-filter: blur(2px);
}
.bench-idle-overlay p { color: var(--muted); font-size: 0.9rem; max-width: 44ch; text-align: center; padding: 0 20px; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--steel); }
.game-card.selected { border-color: var(--copper); background: var(--copper-dim); }
.game-card h4 { font-family: var(--font-display); font-size: 0.92rem; }
.game-card .g-genre { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.game-card .g-fps {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 10px;
}
.game-card .g-fps small { font-size: 0.66rem; color: var(--muted); font-weight: 400; }
.verdict {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
  margin-top: 8px;
}
.verdict.ultra { color: var(--ok); border-color: rgba(88, 185, 138, 0.5); background: rgba(88, 185, 138, 0.1); }
.verdict.smooth { color: var(--steel); border-color: rgba(111, 168, 201, 0.5); background: rgba(111, 168, 201, 0.1); }
.verdict.playable { color: var(--warn); border-color: rgba(224, 176, 74, 0.5); background: rgba(224, 176, 74, 0.1); }
.verdict.heavy { color: var(--bad); border-color: rgba(217, 106, 106, 0.5); background: rgba(217, 106, 106, 0.1); }

@media (max-width: 960px) {
  .sim-layout { grid-template-columns: 1fr; }
  .sim-summary { position: static; }
}
@media (max-width: 560px) {
  .sim-slot { grid-template-columns: 1fr; }
  .sim-slot .fc-icon { display: none; }
  .bench-hud .fps-big .n { font-size: 1.6rem; }
}
