:root {
  --ink: #111827;
  --paper: #f6f7f3;
  --white: #ffffff;
  --muted: #667085;
  --line: #d9dee7;
  --cyan: #00a7c8;
  --gold: #f4b740;
  --navy: #17233d;
  --safety: #d9ec25;
  --steel: #343b46;
  --shadow: 0 24px 60px rgba(17, 24, 39, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(246, 247, 243, .93);
  border-bottom: 1px solid rgba(17, 24, 39, .12);
  backdrop-filter: blur(16px);
}
.brand img { width: 220px; height: auto; }
.nav-links { display: flex; justify-content: center; gap: 28px; color: #3b4352; font-weight: 800; }
.nav-links a:hover { color: var(--ink); }
.cart-button {
  border: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}
.cart-button b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(260px, 1fr);
  align-items: end;
  gap: 36px;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(90deg, rgba(8, 12, 20, .95) 0%, rgba(8, 12, 20, .82) 39%, rgba(8, 12, 20, .18) 67%),
    url("../img/cybertek207-hero-v2.png") center right / cover no-repeat;
}
.hero-copy { align-self: center; max-width: 700px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; letter-spacing: 0; line-height: 1; }
h1 { max-width: 720px; font-size: clamp(44px, 6vw, 84px); }
h2 { font-size: clamp(32px, 4vw, 58px); }
h3 { font-size: 24px; }
.lead {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.primary-action, .secondary-action, .quote-form button, .checkout-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  font-weight: 900;
  cursor: pointer;
}
.primary-action, .quote-form button, .checkout-form button { color: var(--ink); background: var(--gold); }
.secondary-action { color: white; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255,255,255,.26); }
.hero-card {
  justify-self: end;
  max-width: 360px;
  padding: 22px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-card span, .hero-card small { display: block; color: var(--muted); line-height: 1.45; }
.hero-card strong { display: block; margin: 8px 0; font-size: 24px; line-height: 1.08; }

.store-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.store-stats div { display: grid; gap: 8px; padding: 24px clamp(18px, 4vw, 42px); border-right: 1px solid var(--line); }
.store-stats strong { color: var(--cyan); font-size: 14px; }
.store-stats span { font-weight: 900; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 72px clamp(18px, 5vw, 72px) 26px;
}
.section-heading > p, .section-heading div + p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.55;
}
.compact { padding-top: 0; align-items: start; }

.shop-shell {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  padding: 0 clamp(18px, 5vw, 72px) 80px;
}
.filters { display: grid; align-content: start; gap: 10px; position: sticky; top: 96px; }
.filter-chip {
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--steel);
  background: var(--white);
  border-radius: 8px;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
}
.filter-chip.active { color: white; background: var(--ink); border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.product-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17,24,39,.06);
}
.product-media {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #ecefe8;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 18px; }
.product-top { display: flex; justify-content: space-between; gap: 16px; }
.product-title { font-size: 20px; line-height: 1.12; }
.price { color: var(--navy); font-weight: 900; white-space: nowrap; }
.product-desc { min-height: 64px; color: var(--muted); line-height: 1.45; }
.option-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: white;
}
.add-button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 13px;
  color: white;
  background: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.split-section, .process-panel {
  margin: 0 clamp(18px, 5vw, 72px) 80px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: start;
}
.copy-block p:not(.eyebrow), .process-panel p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature-grid article, .process-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feature-grid strong { display: block; margin-bottom: 8px; font-size: 18px; }
.feature-grid span { color: var(--muted); line-height: 1.48; }
.process-panel { background: var(--ink); color: white; }
.process-panel p { color: rgba(255,255,255,.75); }
.process-panel ol { margin: 0; padding-left: 22px; color: rgba(255,255,255,.86); line-height: 1.8; }
code { color: var(--gold); }

.quote-section { padding: 0 clamp(18px, 5vw, 72px) 90px; }
.quote-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
label { display: grid; gap: 7px; color: #344054; font-weight: 800; }
.wide { grid-column: 1 / -1; }
.file-input { border: 1px dashed var(--line); padding: 14px; border-radius: 8px; background: #fbfcfe; }
.form-status { color: var(--muted); font-weight: 800; }

.cart-drawer { position: fixed; inset: 0; z-index: 50; display: none; }
.cart-drawer.open { display: block; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,.5); }
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(520px, 100vw);
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  background: white;
  box-shadow: var(--shadow);
}
.cart-header { display: flex; justify-content: space-between; align-items: center; }
.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-size: 28px;
  cursor: pointer;
}
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 72px; height: 72px; object-fit: contain; background: #ecefe8; border-radius: 8px; }
.cart-line h4, .cart-line p { margin: 0; }
.cart-line p { color: var(--muted); font-size: 13px; }
.cart-line button { border: 0; color: #b42318; background: transparent; font-weight: 900; cursor: pointer; }
.checkout-form { display: grid; gap: 12px; margin-top: 24px; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: white;
  background: var(--ink);
}
.site-footer a { color: var(--gold); font-weight: 900; }

.simple-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
  padding: 32px;
  text-align: center;
}
.simple-logo { width: 240px; margin: 0 auto 16px; }
.simple-page h1 { font-size: clamp(42px, 6vw, 76px); }
.simple-page p { color: var(--muted); font-size: 19px; line-height: 1.55; }

.portal-page { padding: clamp(28px, 6vw, 72px); }
.portal-hero { max-width: 880px; margin-bottom: 28px; }
.portal-hero h1 { font-size: clamp(42px, 6vw, 78px); }
.portal-hero p { max-width: 640px; color: var(--muted); font-size: 19px; line-height: 1.55; }
.portal-card {
  max-width: 920px;
  padding: clamp(22px, 4vw, 36px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(17,24,39,.06);
}
.portal-lookup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.portal-results { display: grid; gap: 12px; margin-top: 24px; }
.portal-order {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}
.portal-order strong { display: block; text-transform: capitalize; }
.portal-order span { display: inline-block; margin: 6px 0; color: var(--cyan); font-weight: 900; }
.portal-order small { display: block; color: var(--muted); }
.portal-order p { margin: 8px 0 0; color: var(--steel); }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 620px; background-position: 62% center; }
  .hero-card { justify-self: start; }
  .store-stats, .product-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-shell, .split-section, .process-panel { grid-template-columns: 1fr; }
  .filters { position: static; display: flex; overflow-x: auto; }
  .filter-chip { white-space: nowrap; }
}
@media (max-width: 640px) {
  .site-header { padding: 12px; }
  .brand img { width: 170px; }
  .cart-button { padding: 10px 12px; }
  h1 { font-size: 42px; }
  .hero { min-height: 570px; background-position: 72% center; }
  .hero::after { content: ""; position: absolute; inset: 0; background: rgba(5,8,14,.28); pointer-events: none; }
  .hero-copy, .hero-card { position: relative; z-index: 1; }
  .section-heading { display: grid; align-items: start; }
  .store-stats, .product-grid, .feature-grid, .quote-form, .option-row, .portal-lookup { grid-template-columns: 1fr; }
  .store-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .site-footer { flex-direction: column; }
}
