/* ============================================================
   CYBEROFFROADING.COM — COLD STEEL BRUTALISM
   Design system: Chakra Petch + IBM Plex Mono
   Zero border-radius. Angular clip-paths. Brushed steel grain.
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --steel-dark:     #0a0a0b;
  --steel-mid:      #1a1a1e;
  --steel-light:    #2a2a30;
  --steel-edge:     #3a3a42;

  --stainless:      #c8c8c0;
  --stainless-dim:  #8e8e90;  /* Bumped for WCAG AA contrast (5.2:1) */

  --cyber-blue:     #00d4ff;
  --cyber-glow:     rgba(0, 212, 255, 0.15);

  --warn-red:       #ff2a2a;

  --font-display:   'Chakra Petch', sans-serif;
  --font-body:      'IBM Plex Mono', monospace;

  --max-width:      1200px;
  --nav-height:     52px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: var(--stainless);
  background: var(--steel-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Noise Texture Overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--stainless);
}

h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: 0.08em; }
h3 { font-size: 1.05rem; }

a {
  color: var(--cyber-blue);
  text-decoration: none;
  transition: color 0.15s ease-out;
}

a:hover {
  color: #fff;
}

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

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   OWNER BAR
   ============================================================ */
.owner-bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--stainless-dim);
  letter-spacing: 0.04em;
}

.owner-bar span {
  color: var(--cyber-blue);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 60px 20px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* Diagonal geometric mask overlay — lighter upper portion */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 10, 11, 0.15) 0%,
    rgba(10, 10, 11, 0.55) 40%,
    rgba(10, 10, 11, 0.88) 70%,
    rgba(10, 10, 11, 0.97) 100%
  );
}

/* Scan lines */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    transparent 0px,
    transparent 3px,
    rgba(0, 212, 255, 0.03) 3px,
    rgba(0, 212, 255, 0.03) 4px
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: heroReveal 0.6s ease-out both;
}

.hero__tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyber-blue);
  margin-bottom: 12px;
}

.hero h1 {
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--cyber-blue);
}

.hero__sub {
  font-size: 0.95rem;
  color: var(--stainless-dim);
  max-width: 500px;
  line-height: 1.6;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stainless-dim);
  cursor: pointer;
  transition: color 0.15s ease-out;
}

.hero__scroll:hover {
  color: var(--cyber-blue);
}

.hero__scroll svg {
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   STICKY NAV
   ============================================================ */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--steel-edge);
  animation: navReveal 0.4s 0.3s ease-out both;
}

@keyframes navReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-nav__inner {
  display: flex;
  gap: 4px;
  padding: 8px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-nav__inner::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stainless-dim);
  padding: 10px 22px;
  background: transparent;
  border: 1px solid transparent;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  cursor: pointer;
  transition: all 0.15s ease-out;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.nav-pill:hover {
  color: var(--stainless);
  background: var(--steel-light);
}

.nav-pill.active {
  color: var(--steel-dark);
  background: var(--cyber-blue);
  font-weight: 600;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--steel-mid);
}

.section__header {
  margin-bottom: 48px;
  padding: 0 20px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section__header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section__header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--cyber-blue);
}

.section__intro {
  margin-top: 12px;
  color: var(--stainless-dim);
  font-size: 0.85rem;
  max-width: 600px;
}

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.product-card {
  background: var(--steel-mid);
  border: 1px solid var(--steel-edge);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
}

/* Fallback: show cards after 1.5s if JS fails */
@keyframes cardFallback {
  to { opacity: 1; transform: translateY(0); }
}
.product-card { animation: cardFallback 0s 1.5s forwards; }

.section--alt .product-card {
  background: var(--steel-dark);
}

.product-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  border-color: var(--cyber-blue);
  box-shadow: 0 0 0 1px var(--cyber-blue), 0 0 20px var(--cyber-glow);
}

.product-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--steel-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Subtle top-edge accent on card images */
.product-card__image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyber-blue), transparent 60%);
  opacity: 0.4;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.3s ease-out;
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

/* Embedded tweets inside cards */
.product-card__image .twitter-tweet {
  width: 100% !important;
  max-width: 100% !important;
}

.product-card__image iframe {
  max-width: 100% !important;
}

.product-card__info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-card__info h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.product-card__review {
  font-size: 0.8rem;
  color: var(--stainless-dim);
  line-height: 1.6;
}

.product-card__qty,
.product-card__price {
  font-size: 0.7rem;
  color: var(--cyber-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

/* --- CTA Button --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-dark);
  background: var(--cyber-blue);
  border: 1px solid var(--cyber-blue);
  padding: 14px 24px;
  margin-top: 4px;
  text-align: center;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  position: relative;
  overflow: hidden;
  transition: color 0.15s ease-out, background 0.15s ease-out;
  min-height: 44px;
}

.cta-button:hover {
  color: var(--cyber-blue);
  background: transparent;
}

/* External link indicator */
.cta-button::after {
  content: ' \2197';
  font-size: 0.65em;
  margin-left: 4px;
  opacity: 0.7;
}

/* Secondary CTA variant (ghost style) */
.cta-button--secondary {
  background: transparent;
  color: var(--cyber-blue);
  margin-top: 8px;
}

.cta-button--secondary:hover {
  background: var(--cyber-blue);
  color: var(--steel-dark);
}

/* ============================================================
   WINCH BUILD OVERVIEW IMAGES
   ============================================================ */
.build-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
  padding: 0 20px;
}

.build-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--steel-edge);
}

/* ============================================================
   WARNING CALLOUT
   ============================================================ */
.warning-callout {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 16px 20px;
  background: rgba(255, 42, 42, 0.08);
  border-left: 3px solid var(--warn-red);
  margin-left: 20px;
  margin-right: 20px;
}

@media (min-width: 768px) {
  .warning-callout {
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
  }
}

.warning-callout__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warn-red);
  margin-bottom: 4px;
}

.warning-callout p {
  font-size: 0.85rem;
  color: var(--stainless);
}

/* ============================================================
   INFO CALLOUT (tips, notes)
   ============================================================ */
.info-callout {
  max-width: var(--max-width);
  margin: 24px auto;
  padding: 16px 20px;
  background: var(--steel-light);
  border-left: 3px solid var(--cyber-blue);
  margin-left: 20px;
  margin-right: 20px;
}

@media (min-width: 768px) {
  .info-callout {
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
  }
}

.info-callout__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyber-blue);
  margin-bottom: 4px;
}

.info-callout p, .info-callout a {
  font-size: 0.85rem;
}

/* ============================================================
   GALLERY — Masonry layout with lightbox
   ============================================================ */
.gallery-grid {
  columns: 2;
  column-gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-item {
  position: relative;
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  border: 1px solid var(--steel-edge);
  background: var(--steel-dark);
  cursor: pointer;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
  /* Scroll reveal */
  opacity: 0;
  transform: translateY(24px);
  animation: cardFallback 0s 1.5s forwards;
}

.gallery-item.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out, border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease-out, filter 0.4s ease-out;
  filter: saturate(0.85) brightness(0.95);
}

/* Cyan accent on top edge */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyber-blue), transparent 70%);
  opacity: 0;
  z-index: 3;
  transition: opacity 0.2s ease-out;
}

/* Dark vignette on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 11, 0.6) 100%);
  opacity: 0;
  transition: opacity 0.3s ease-out;
  pointer-events: none;
}

.gallery-item:hover {
  border-color: var(--cyber-blue);
  box-shadow: 0 0 0 1px var(--cyber-blue), 0 0 30px rgba(0, 212, 255, 0.12);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.1) brightness(1.05);
}

.gallery-item:hover::before { opacity: 0.7; }
.gallery-item:hover::after { opacity: 1; }

@media (min-width: 768px) {
  .gallery-grid {
    columns: 3;
    column-gap: 16px;
    padding: 0 40px;
  }
  .gallery-item { margin-bottom: 16px; }
}

@media (min-width: 1024px) {
  .gallery-grid { columns: 4; }
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  cursor: zoom-out;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid var(--steel-edge);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transform: scale(0.95);
  transition: transform 0.3s ease-out;
}

.gallery-lightbox.active img {
  transform: scale(1);
}

.gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--steel-mid);
  border: 1px solid var(--steel-edge);
  color: var(--stainless-dim);
  font-size: 1.2rem;
  cursor: pointer;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
  z-index: 2;
}

.gallery-lightbox__close:hover {
  color: var(--cyber-blue);
  border-color: var(--cyber-blue);
}

.gallery-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--steel-mid);
  border: 1px solid var(--steel-edge);
  color: var(--stainless-dim);
  font-size: 1.4rem;
  cursor: pointer;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
  z-index: 2;
}

.gallery-lightbox__nav:hover {
  color: var(--cyber-blue);
  border-color: var(--cyber-blue);
}

.gallery-lightbox__nav--prev { left: 16px; }
.gallery-lightbox__nav--next { right: 16px; }

/* ============================================================
   GUIDE MODALS
   ============================================================ */
.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.guide-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.guide-modal__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

.guide-modal__close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--steel-mid);
  border: 1px solid var(--steel-edge);
  color: var(--stainless-dim);
  font-size: 1.2rem;
  cursor: pointer;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  transition: color 0.15s ease-out, border-color 0.15s ease-out;
  z-index: 10001;
}

.guide-modal__close:hover {
  color: var(--cyber-blue);
  border-color: var(--cyber-blue);
}

/* Guide content inside modals reuses guide-page styles */
.guide-modal h1 {
  margin-bottom: 16px;
}

.guide-modal h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.guide-modal h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}

.guide-modal p {
  margin-bottom: 16px;
  color: var(--stainless-dim);
  font-size: 0.9rem;
}

.guide-modal strong {
  color: var(--stainless);
}

.guide-modal ul, .guide-modal ol {
  margin-bottom: 16px;
  padding-left: 20px;
  color: var(--stainless-dim);
  font-size: 0.9rem;
}

.guide-modal li {
  margin-bottom: 8px;
}

.guide-modal .guide-meta {
  font-size: 0.75rem;
  color: var(--stainless-dim);
  margin-bottom: 32px;
}

.gallery-lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--stainless-dim);
  z-index: 2;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--steel-mid);
  border: 1px solid var(--steel-edge);
  color: var(--stainless-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--cyber-blue);
  border-color: var(--cyber-blue);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 48px 20px 32px;
  background: var(--steel-dark);
  border-top: 1px solid var(--steel-edge);
  clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.site-footer__links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stainless-dim);
}

.site-footer__links a:hover {
  color: var(--cyber-blue);
}

.site-footer__disclaimer {
  font-size: 0.7rem;
  color: var(--stainless-dim);
  line-height: 1.7;
  max-width: 700px;
  border-top: 1px solid var(--steel-edge);
  padding-top: 24px;
}

.site-footer__copyright {
  font-size: 0.7rem;
  color: var(--steel-edge);
  margin-top: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Large phones */
@media (min-width: 560px) and (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card__info {
    padding: 14px;
  }

  .product-card__review {
    font-size: 0.78rem;
  }
}

/* Mobile-specific */
@media (max-width: 767px) {
  .hero {
    min-height: 60vh;
    padding: 40px 20px;
  }

  .hero__sub {
    font-size: 0.85rem;
  }

  .nav-pill {
    padding: 12px 16px;
    font-size: 0.75rem;
  }

  .category-nav__inner {
    padding: 6px 12px;
    mask-image: linear-gradient(to right, black 75%, transparent 98%);
    -webkit-mask-image: linear-gradient(to right, black 75%, transparent 98%);
  }

  .cta-button {
    width: 100%;
    padding: 14px 20px;
  }

  .owner-bar {
    font-size: 0.8rem;
    padding: 10px 16px;
  }

  .build-gallery {
    grid-template-columns: 1fr;
  }
}

/* Sticky nav fallback */
.category-nav {
  position: -webkit-sticky;
  position: sticky;
}

@supports not (backdrop-filter: blur(12px)) {
  .category-nav {
    background: rgba(10, 10, 11, 0.98);
  }
}

.owner-bar {
  border-top: 1px solid var(--steel-edge);
}

/* Tablet+ */
@media (min-width: 768px) {
  body { font-size: 16px; }

  .hero {
    min-height: 85vh;
    padding: 80px 40px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 40px;
  }

  .section__header {
    padding: 0 40px;
  }

  .container {
    padding: 0 40px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .hero {
    min-height: 90vh;
    padding: 100px 60px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
  }

  .category-nav__inner {
    padding: 8px 0;
    gap: 6px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ============================================================
   GUIDE PAGES
   ============================================================ */
.guide-page {
  padding-top: 40px;
}

.guide-page .container {
  max-width: 800px;
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stainless-dim);
  margin-bottom: 40px;
}

.guide-back:hover {
  color: var(--cyber-blue);
}

.guide-page h1 {
  margin-bottom: 16px;
}

.guide-page h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.guide-page p {
  margin-bottom: 16px;
  color: var(--stainless-dim);
  font-size: 0.9rem;
}

.guide-page strong {
  color: var(--stainless);
}

.guide-page ul, .guide-page ol {
  margin-bottom: 16px;
  padding-left: 20px;
  color: var(--stainless-dim);
  font-size: 0.9rem;
}

.guide-page li {
  margin-bottom: 8px;
}

.guide-meta {
  font-size: 0.75rem;
  color: var(--stainless-dim);
  margin-bottom: 32px;
}

.guide-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 24px 0;
}

.guide-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.guide-table th,
.guide-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--steel-edge);
  white-space: nowrap;
}

.guide-table td:last-child {
  white-space: normal;
}

.guide-table th {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyber-blue);
  background: var(--steel-mid);
}

.guide-table td {
  color: var(--stainless-dim);
}

.guide-table .yes { color: var(--cyber-blue); font-weight: 600; }
.guide-table .no { color: var(--warn-red); font-weight: 600; }

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-cyber { color: var(--cyber-blue); }
.text-dim { color: var(--stainless-dim); }
