/* ============================================================
   HydraGPU — design system
   Dark, technical, B2B. Carbon black + signal green + mono accents.
   ============================================================ */

:root {
  /* palette */
  --bg: #07090b;
  --bg-raised: #0c0f12;
  --bg-card: #0f1317;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #e8ecf0;
  --ink-dim: #9aa6b2;
  --ink-mute: #5f6b77;
  --accent: #8aff4f;
  --accent-dim: rgba(138, 255, 79, 0.12);
  --accent-ink: #07110a;
  --warn: #ffb02e;
  --new: #55e0ff;
  --new-dim: rgba(85, 224, 255, 0.12);

  /* type */
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  /* space + radius */
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- utility ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }
.dim { color: var(--ink-dim); }
.mute { color: var(--ink-mute); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }

.section { padding: clamp(56px, 9vh, 96px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vh, 72px) 0; }

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 3.6vw, 46px); }
h2 { font-size: clamp(22px, 2.5vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(15.5px, 1.5vw, 18px); color: var(--ink-dim); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.1s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--ink-mute); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #9dff68; border-color: #9dff68; }
.btn--ghost { background: var(--bg-card); }
.btn--line {
  background: var(--bg-card); color: var(--ink); border: 1.5px solid var(--accent);
}
.btn--line:hover { background: var(--accent-dim); color: var(--ink); border-color: var(--accent); }
.btn--line.btn--block { display: block; width: 100%; text-align: center; justify-content: center; }
.btn--lg { padding: 17px 30px; font-size: 16px; }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -0.02em; font-size: 18px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #5fff7a);
  display: grid; place-items: center;
  color: var(--accent-ink); font-family: var(--font-mono); font-weight: 800; font-size: 15px;
}
.brand__img { background: none; padding: 0; }
.brand__img img { display: block; height: 34px; width: auto; }
.brand__name { font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.brand__gpu { color: var(--accent); }
.brand small { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: 0.12em; color: var(--ink-mute); line-height: 1; margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 15px; color: var(--ink-dim); font-weight: 500; transition: color 0.15s ease; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); }
/* keep the header CTA button readable: dark text on green, lighten green on hover
   (the generic .nav a color rules must not override the button's own text) */
.nav .btn { color: var(--accent-ink); }
.nav .btn:hover { color: var(--accent-ink); background: #9dff68; border-color: #9dff68; }
.nav .btn--primary:hover { background: #9dff68; border-color: #9dff68; }
.nav .btn { padding: 10px 18px; font-size: 14px; }

.nav__toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong); color: var(--ink);
  width: 42px; height: 42px; border-radius: 8px; cursor: pointer; font-size: 18px;
}
.lang {
  font-family: var(--font-mono);
  font-size: 13px; letter-spacing: 0.05em;
  padding: 8px 14px; border-radius: 7px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-dim);
  cursor: pointer; transition: all 0.15s ease;
}
.lang:hover { color: var(--ink); border-color: var(--ink-mute); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-ico { opacity: 0.8; }
.cart-count {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.cart-count.zero { background: transparent; color: var(--ink-mute); }

/* ---------- hero ---------- */
.hero { padding: clamp(64px, 10vh, 120px) 0 0; min-height: 78vh; display: flex; flex-direction: column; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 54px); }
.hero h1 .line { display: block; }
.hero h1 .line--accent {
  color: transparent;
  background: linear-gradient(100deg, var(--accent), #c6ff9d);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* grid backdrop + glow */
.hero__visual { position: relative; }
.grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 40%, transparent 75%);
}
.hero__glow {
  position: absolute; inset: -20%; z-index: -2; pointer-events: none;
  background: radial-gradient(circle at 70% 30%, rgba(138,255,79,0.14), transparent 55%);
}

/* spec-callout card */
.spec {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-card));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.spec::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.spec__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.spec__name { font-size: 22px; font-weight: 650; margin: 8px 0 4px; letter-spacing: -0.02em; }
.spec__model { font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); }
.spec__prices { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec__price {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; display: flex; flex-direction: column; gap: 2px;
}
.spec__price .pl { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-mute); }
.spec__price .pv { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.spec__price--new .pv { color: var(--ink); }
.spec__price--refurb .pv { color: var(--accent); }
.spec__rows { margin-top: 22px; display: grid; gap: 14px; }
.spec__row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-size: 14px; }
.spec__row dt { color: var(--ink-mute); font-family: var(--font-mono); font-size: 12.5px; }
.spec__row dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.spec__status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 24px; font-family: var(--font-mono); font-size: 12.5px; color: var(--accent);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(138,255,79,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(138,255,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(138,255,79,0); }
}

/* ---------- logo / trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.strip__items { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.strip__item { display: flex; align-items: center; gap: 12px; color: var(--ink-dim); font-size: 14px; }
.strip__item b { color: var(--ink); font-family: var(--font-mono); font-weight: 700; }

/* ---------- section header ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { max-width: 18ch; }
.section-head .dim { max-width: 44ch; }

/* ---------- feature / sourcing grid ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex; flex-direction: column; gap: 12px;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card--accent:hover { border-color: rgba(138,255,79,0.4); }
.card__num { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--ink-mute); }
.card h3 { margin: 0; font-size: 18px; }
.card p { color: var(--ink-dim); font-size: 15px; margin: 0; }
.card__arrow { margin-top: auto; color: var(--accent); font-family: var(--font-mono); font-size: 14px; }

/* ---------- split / story ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__copy .lede { margin-bottom: 26px; }
.steps { display: grid; gap: 0; margin-top: 8px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--font-mono); font-size: 14px; color: var(--accent); font-weight: 700; padding-top: 2px; }
.step h4 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }

/* ---------- pipeline bar ---------- */
.pipeline { display: grid; gap: 20px; }
.pipe { position: relative; background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; }
.pipe__n { font-family: var(--font-mono); font-size: 24px; font-weight: 800; color: var(--line-strong); line-height: 1; }
.pipe h4 { margin: 0; font-size: 16px; }
.pipe p { margin: 2px 0 0; color: var(--ink-dim); font-size: 14px; }
.pipe .meta { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* ---------- offer / product ---------- */
.offer {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  min-width: 0;
}
.offer--clickable { cursor: pointer; }
.offer--clickable:hover { border-color: var(--line-strong); }
.offer__head { padding: 22px 22px 4px; }
.offer__img { border-radius: 14px 14px 0 0; }
.offer__img img { aspect-ratio: 8/5; }
.offer__body { padding: 18px 26px 26px; }
.offer__tag { display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; padding: 4px 8px; border-radius: 5px; }
.offer__tag--new { background: var(--new-dim); color: var(--new); }
.offer__tag--refurb { background: var(--accent-dim); color: var(--accent); }
.offer h3 { font-size: 19px; margin-top: 12px; }
.offer .sub { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.offer__rows { margin: 18px 0 22px; display: grid; gap: 11px; }
.offer__row { display: flex; justify-content: space-between; font-size: 13.5px; }
.offer__row span:first-child { color: var(--ink-mute); font-family: var(--font-mono); font-size: 12px; }
.offer__row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.offer .btn { justify-content: center; }

/* ---------- CTA ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta__glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 0%, rgba(138,255,79,0.12), transparent 60%); }
.cta h2 { max-width: 20ch; margin: 0 auto 18px; }
.cta p { max-width: 52ch; margin: 0 auto 34px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 60px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin: 0 0 16px; }
.footer a { display: block; color: var(--ink-dim); font-size: 14px; padding: 5px 0; }
.footer a:hover { color: var(--ink); }
/* brand keeps its own color in the footer - don't let the dim link color tint it */
.footer .brand { color: var(--ink); }
.footer .brand:hover { color: var(--ink); }
.footer .brand__gpu { color: var(--accent); }
.footer .brand__gpu:hover { color: var(--accent); }
.footer .brand { margin-bottom: 16px; }
.footer .blurb { color: var(--ink-mute); font-size: 14px; max-width: 34ch; margin: 0; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-mute); font-size: 13px; font-family: var(--font-mono); }

/* ---------- page banner ---------- */
.page-head { padding: clamp(44px, 7vh, 80px) 0 32px; }
.page-head h1 { max-width: 20ch; }
.page-head .lede { margin: 0; }

/* ---------- catalog filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
@media (max-width: 720px) {
  .filters { flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
  .filters .chip { flex: 0 0 auto; white-space: nowrap; }
}
.chip {
  font-family: var(--font-mono); font-size: 13px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-dim); cursor: pointer; transition: all 0.15s ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink-mute); }
.chip--active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.grid-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ---------- product image ---------- */
.offer__img { position: relative; overflow: hidden; border-radius: 14px 14px 0 0; background: var(--bg); }
.offer__img img { width: 100%; height: auto; display: block; aspect-ratio: 8/5; object-fit: cover; }
.offer__img .img-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  padding: 4px 9px; border-radius: 5px; background: rgba(7,9,11,0.82); color: var(--ink); border: 1px solid var(--line-strong);
}
.spec__img { border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.spec__img img { width: 100%; display: block; aspect-ratio: 8/5; object-fit: cover; }

/* ---------- cart drawer / shop ---------- */
.cart-vat { color: var(--ink-mute); font-size: 12.5px; }
.lede-note { color: var(--ink-mute); font-size: 13px; margin-top: 6px; }
.detail-vat { color: var(--ink-mute); font-size: 12.5px; margin-top: 6px; }
.cart-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row__info { flex: 1; min-width: 0; }
.cart-row__name { display: block; font-weight: 600; font-size: 14px; }
.cart-row__meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-mute); }
.cart-row__qty { display: inline-flex; align-items: center; gap: 6px; }
.qty-btn { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; font-size: 15px; line-height: 1; }
.qty-btn:hover { border-color: var(--ink-mute); }
.qty-num { font-family: var(--font-mono); font-size: 14px; min-width: 18px; text-align: center; }
.cart-remove { border: none; background: none; color: var(--ink-mute); cursor: pointer; font-size: 14px; }
.cart-remove:hover { color: var(--ink); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-size: 14px; }
.cart-total strong { font-size: 18px; }
.btn--block { display: block; width: 100%; text-align: center; justify-content: center; }
.offer .btn--primary { margin-top: 16px; width: 100%; justify-content: center; }
.offer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.offer__actions .btn { margin-top: 0; width: 100%; justify-content: center; padding: 12px 10px; font-size: 13.5px; }
.btn--quote { color: var(--ink); border-color: var(--line-strong); }
.btn--quote:hover { border-color: var(--accent); color: var(--accent); background: rgba(138,255,79,0.06); }
@media (max-width: 420px) { .offer__actions { grid-template-columns: 1fr; } }
.offer__price { font-family: var(--font-mono); font-size: 15px; margin-top: 4px; }
.offer__price .from { color: var(--ink-mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.shop-layout > * { min-width: 0; }
.shop-cart { position: sticky; top: 90px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.shop-cart h3 { font-size: 17px; margin: 0 0 6px; }
.shop-cart .cart-note { color: var(--ink-mute); font-size: 13px; margin: 0 0 12px; }
#cart-body { display: flex; flex-direction: column; }

/* ---------- compare table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.compare th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.compare td { color: var(--ink-dim); }
.compare td:first-child { color: var(--ink); font-weight: 600; }
.compare td .mono { color: var(--ink); }
.compare tr:hover td { background: rgba(255,255,255,0.015); }

/* ---------- form ---------- */
.form { max-width: 680px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--ink-dim); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 10px;
  color: var(--ink); padding: 14px 16px; font-size: 15px; font-family: var(--font-sans);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 13px; color: var(--ink-mute); margin-top: 16px; font-family: var(--font-mono); }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; }
.legal-note {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-mute);
  border-left: 2px solid var(--accent); padding-left: 12px; margin-top: 16px;
}
.legal h2 { font-size: 22px; margin: 1.8em 0 0.5em; padding-top: 0.7em; border-top: 1px solid var(--line); }
.legal h3 { font-size: 18px; margin: 1.6em 0 0.5em; }
.legal p, .legal li { color: var(--ink-dim); font-size: 15px; line-height: 1.7; }
.legal strong { color: var(--ink); }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .meta { font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); }
.legal .updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent); margin-top: 20px; }

/* ---------- revealed / motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- extended product catalog ---------- */
.product-grid-note { grid-column: 1 / -1; color: var(--ink-mute); font-size: 13px; font-family: var(--font-mono); margin: 4px 0 2px; }
.offer--compact .offer__head { padding-bottom: 2px; }
.offer--compact .offer__rows { gap: 8px; margin-top: 12px; }
.offer__source { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); margin-top: 8px; }
.offer-link { display: block; color: inherit; text-decoration: none; }
.offer-link:hover h3 { color: var(--accent); }
.offer-link .offer__head { cursor: pointer; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: 48px; align-items: start; }
.detail-visual { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-card); }
.detail-visual img { display: block; width: 100%; aspect-ratio: 8/5; object-fit: cover; }
.detail-copy h1 { margin: 14px 0 8px; }
.detail-model { font-family: var(--font-mono); color: var(--ink-mute); font-size: 14px; }
.detail-description { color: var(--ink-dim); max-width: 52ch; margin: 24px 0; }
.detail-price { font-family: var(--font-mono); font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.detail-specs { max-width: 720px; margin-top: 56px; }
.detail-specs h2 { margin-bottom: 18px; }
.detail-row { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding: 14px 0; }
.detail-row span { color: var(--ink-mute); font-family: var(--font-mono); font-size: 13px; }
.back-link { display: inline-block; color: var(--ink-mute); font-family: var(--font-mono); font-size: 13px; margin-bottom: 28px; }
.back-link:hover { color: var(--accent); }

/* ---------- checkout / invoice ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.checkout-layout .form { margin: 0; }
.checkout-layout .shop-cart { position: sticky; top: 90px; }

/* ---------- mobile cart bar + sheet ---------- */
.mob-cartbar { display: none; }
.mob-sheet { display: none; }
@media (max-width: 860px) {
  .mob-cartbar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
    background: var(--bg-raised); border: 1px solid var(--line-strong);
    border-radius: 16px; padding: 10px 12px 10px 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  }
  .mob-cartbar__btn { display: flex; align-items: center; gap: 6px; background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--ink); }
  .mob-cartbar__count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; padding: 0 6px; }
  .mob-cartbar__total { flex: 1; font-size: 14px; color: var(--ink-mute); display: flex; flex-direction: column; line-height: 1.2; }
  .mob-cartbar__total strong { font-family: var(--font-mono); font-size: 18px; color: var(--ink); }
  .mob-cartbar__checkout { flex: 0 0 auto; padding: 12px 20px; }

  .mob-sheet { display: block; }
  .mob-sheet__scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 95; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; }
  .mob-sheet__panel {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 96;
    background: var(--bg-raised); border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(105%); transition: transform 0.32s cubic-bezier(0.16,1,0.3,1);
    max-height: 82vh; overflow-y: auto;
  }
  .mob-sheet.open .mob-sheet__scrim { opacity: 1; pointer-events: auto; }
  .mob-sheet.open .mob-sheet__panel { transform: translateY(0); }
  .mob-sheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
  .mob-sheet__head h3 { font-size: 18px; margin: 0; }
  .mob-sheet__close { background: none; border: none; color: var(--ink-mute); font-size: 20px; cursor: pointer; padding: 4px 8px; }
  body.sheet-open { overflow: hidden; }
}
.invoice { background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; padding: 32px; max-width: 860px; }
.invoice__head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 20px; }
.invoice__billto { font-size: 14px; color: var(--ink-dim); line-height: 1.6; margin-bottom: 20px; }
.invoice__billto .mono { color: var(--ink-mute); font-size: 12px; }
.invoice__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.invoice__table th { text-align: left; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-mute); border-bottom: 1px solid var(--line); padding: 10px 8px; }
.invoice__table td { padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink-dim); }
.invoice__table td:last-child, .invoice__table th:last-child { text-align: right; }
.invoice__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.invoice__total strong { font-size: 24px; color: var(--accent); }
.invoice__payment { margin-top: 20px; background: rgba(138,255,79,0.05); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.invoice__payment h4 { font-size: 15px; margin: 0 0 10px; }
.invoice__payment .mono { font-size: 13px; color: var(--ink); margin: 4px 0; }
.invoice__payment .dim { font-size: 13px; margin-top: 12px; }
.invoice__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- quote items (contact) ---------- */
.quote-items { background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-bottom: 28px; }
.quote-items__bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.quote-items__bar strong { font-size: 15px; }
.quote-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.quote-item__name { color: var(--ink); }
.quote-item__qty, .quote-item__price { font-family: var(--font-mono); font-size: 13px; color: var(--ink-mute); }
.quote-item__price { color: var(--accent); }
.quote-items__total { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 15px; }
.quote-items__total strong { color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-products { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shop-layout .shop-cart { display: none; } /* desktop sidebar replaced by mobile bar + sheet */
  body { padding-bottom: 92px; }
}
@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-raised); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 20px var(--gutter); gap: 18px; }
  .nav.open { display: flex; }
  .nav__toggle { display: block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; gap: 24px; }
  .shop-cart { position: static; }
  .detail-grid { grid-template-columns: 1fr; gap: 28px; }
  .checkout-layout { grid-template-columns: 1fr; gap: 24px; }
  .checkout-layout .shop-cart { position: static; order: -1; }
  .invoice { padding: 20px; }
  .invoice__head { flex-direction: column; gap: 12px; }
  .invoice__head > div:last-child { text-align: left; }
  .footer__grid { grid-template-columns: 1fr; }
  .pipe { grid-template-columns: 40px 1fr; }
  .pipe .meta { grid-column: 2; }
  .compare { font-size: 12.5px; }
  .compare th, .compare td { padding: 12px 10px; }
}
