/* ============================================================
   ByteWire - bytewire.ae
   Matte black + copper. Space Grotesk headings, Inter body,
   monospace accents for order references and spec labels.
   ============================================================ */

:root {
  --bg: #0e0d0b;
  --bg-raised: #151310;
  --bg-panel: #1a1712;
  --line: #2b2620;
  --line-soft: #221e18;
  --copper: #c97a3e;
  --copper-bright: #e39a5a;
  --copper-deep: #8f5527;
  --text: #ece7df;
  --muted: #a49a8a;
  --faint: #8a8071;
  --mono: "SFMono-Regular", ui-monospace, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --heading: "Space Grotesk", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* faint engineered grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(201, 122, 62, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 122, 62, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  z-index: 0;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

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

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--copper-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.4rem; }

strong { color: var(--text); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- mono accents ---------- */

.kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 0.9rem;
}

.partno {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--copper-bright);
  background: rgba(201, 122, 62, 0.1);
  border: 1px solid rgba(201, 122, 62, 0.3);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.logo:hover { text-decoration: none; }
.logo svg { flex: 0 0 auto; }
.logo .logo-word b { color: var(--copper-bright); font-weight: 700; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.active { color: var(--copper-bright); }

.site-nav a.nav-cta {
  color: #14100c;
  background: var(--copper);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}
.site-nav a.nav-cta:hover { background: var(--copper-bright); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  min-height: 44px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 3rem;
  align-items: center;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 58ch;
  margin-top: 1.4rem;
}

.hero .cta-row { margin-top: 2rem; }

.xsec { display: block; margin: 0 auto; max-width: 340px; width: 100%; }

/* ---------- buttons ---------- */

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background: var(--copper);
  color: #14100c;
  border: 1px solid var(--copper);
}
.btn:hover { background: var(--copper-bright); border-color: var(--copper-bright); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--copper-bright);
  border: 1px solid var(--copper-deep);
}
.btn-ghost:hover { background: rgba(201, 122, 62, 0.08); }

/* ---------- sections ---------- */

.section { padding: 4rem 0; border-bottom: 1px solid var(--line-soft); }
.section-tight { padding: 2.5rem 0; }

.section-intro { max-width: 68ch; color: var(--muted); margin-bottom: 2.25rem; }

/* ---------- range cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--copper-deep); transform: translateY(-2px); }

.card .card-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line-soft);
}
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }

.card .card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card .card-body h3 { font-size: 1.05rem; }
.card .card-body h3 a { color: var(--text); }
.card .card-body h3 a:hover { color: var(--copper-bright); text-decoration: none; }
.card .card-body p { color: var(--muted); font-size: 0.9rem; margin: 0; flex: 1; }
.card .card-body .partno { align-self: flex-start; }

/* ---------- why / feature list ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--copper);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
}
.feature h3 { font-size: 1rem; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-raised);
  padding: 1.4rem 0;
}
.trust-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  justify-content: center;
}
.trust-strip span {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.trust-strip span::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--copper);
  display: inline-block;
}

/* ---------- product page ---------- */

.breadcrumbs {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding: 1.1rem 0 0;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { margin: 0 0.5rem; color: var(--copper-deep); }

.product-hero { padding: 2.5rem 0 3.5rem; border-bottom: 1px solid var(--line-soft); }

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: start;
}

.product-img-frame {
  background: #f5f1ea;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
}
.product-img-frame img { border-radius: 3px; width: 100%; }

.product-hero .meta-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 1.1rem 0 1.3rem;
}

.availability {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9dc08b;
}
.availability::before { content: "\25CF\00A0"; }

/* ---------- spec sheet table ---------- */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0 1rem;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  font-size: 0.95rem;
}
.spec-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  padding-bottom: 0.6rem;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  width: 34%;
  white-space: nowrap;
}
.spec-table td { color: var(--text); }

/* ---------- prose / long copy ---------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 78ch; margin-top: 2rem; }

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-raised);
  margin-bottom: 0.8rem;
  padding: 0;
}
.faq-list details[open] { border-color: var(--copper-deep); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1rem 3rem 1rem 1.25rem;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--copper);
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
}
.faq-list details[open] summary::after { content: "\2212"; }

.faq-list .faq-a { padding: 0 1.25rem 1.15rem; color: var(--muted); }
.faq-list .faq-a p { margin-bottom: 0.75rem; }
.faq-list .faq-a p:last-child { margin-bottom: 0; }

/* ---------- where to buy ---------- */

.buy-panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.buy-panel h3 { margin-bottom: 0.6rem; }
.buy-panel p { color: var(--muted); }

.buy-links { margin: 1rem 0 0 0; list-style: none; padding: 0; }
.buy-links li {
  border-bottom: 1px solid var(--line-soft);
  padding: 0.65rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.buy-links li:last-child { border-bottom: none; }
.buy-links .partno { font-size: 0.72rem; }

/* ---------- CTA band ---------- */

.cta-band {
  padding: 4rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(201, 122, 62, 0.16), transparent 65%),
    var(--bg);
}
.cta-band p { color: var(--muted); max-width: 55ch; margin: 0.75rem auto 1.75rem; }
.cta-band .cta-row { justify-content: center; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-raised);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.footer-grid h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.9rem;
}

.footer-grid p { color: var(--muted); font-size: 0.88rem; }

.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-grid li a { color: var(--muted); font-size: 0.88rem; }
.footer-grid li a:hover { color: var(--copper-bright); }

.footer-legal {
  border-top: 1px solid var(--line-soft);
  padding-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--faint);
  text-align: center;
}
.footer-legal a { color: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .product-hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .xsec { max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-hero-grid .product-img-frame { max-width: 440px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.7rem 24px; font-size: 1rem; }
  .site-nav a.nav-cta { margin: 0.6rem 24px 0; text-align: center; }
  .hero { padding: 3.25rem 0 3rem; }
  .section { padding: 3rem 0; }
  .spec-table th { white-space: normal; width: 40%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* ---------- round 2: product body grid + side rail ---------- */

.body-grid > .prose:only-child { grid-column: 1 / -1; max-width: 72ch; }

.side-rail .partno { display: inline-block; }
.side-rail .rail-availability { display: block; margin: 0.7rem 0 1rem; }
.rail-specs { margin: 0 0 1.4rem; border-top: 1px solid var(--line-soft); }
.rail-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  padding: 0.55rem 0;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.rail-spec-row dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.rail-spec-row dd { color: var(--text); margin: 0; text-align: right; }
.side-rail .btn { display: block; text-align: center; margin-top: 0.75rem; }

@media (min-width:981px){.body-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:64px;align-items:start}.body-grid .prose{max-width:72ch}.side-rail{position:sticky;top:96px;background:var(--bg-raised);border:1px solid var(--line);border-radius:6px;padding:1.5rem}} @media (max-width:980px){.side-rail{display:none}}

/* product hero photo caption */
.product-img-frame .img-caption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5f574b;
  text-align: center;
  margin: 0.8rem 0 0;
}

/* keep floating chat clear of page-end content */
main.chat-clear { padding-bottom: 90px; }
