/* =====================================================================
   Matin Yadak Iranian Industrial Group — Design System
   Modern industrial aesthetic, Persian RTL
   ===================================================================== */

/* --- Fonts ---
   Vazirmatn @font-face declared inline below with `font-display: swap` so the
   page paints text immediately in the system fallback font, then swaps to
   Vazirmatn once it loads. The CDN's own face-css doesn't include swap, which
   is why we override here. We load only the 4 weights actually used by the
   design system (400 body, 500 medium, 700 bold for headings, 800 display).
   Bebas Neue + JetBrains Mono are loaded via <link> in <head> (Google Fonts
   already serves them with display=swap).

   For full offline / sub-200ms LCP, run:
     mkdir -p assets/fonts && cd assets/fonts
     for w in Regular Medium Bold ExtraBold; do
       curl -O "https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-${w}.woff2"
     done
   then change `src: url(...)` below to `src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');` */

@font-face {
  font-family: 'Vazirmatn';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF, U+0020-007E;
}
@font-face {
  font-family: 'Vazirmatn';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF, U+0020-007E;
}
@font-face {
  font-family: 'Vazirmatn';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF, U+0020-007E;
}
@font-face {
  font-family: 'Vazirmatn';
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF, U+0020-007E;
}

/* --- Design tokens --- */
:root {
  /* Palette — industrial */
  --ink: #0a0a0b;
  --ink-2: #18181b;
  --ink-3: #27272a;
  --steel-1: #3f3f46;
  --steel-2: #52525b;
  --steel-3: #71717a;
  --steel-4: #a1a1aa;
  --paper: #fafaf9;
  --paper-2: #f5f5f4;
  --paper-3: #e7e5e4;
  --line: #d6d3d1;

  /* Brand accent — molten amber */
  --amber: #f59e0b;
  --amber-2: #ea580c;
  --amber-3: #fbbf24;
  --amber-soft: #fef3c7;

  /* Signal */
  --signal: #16a34a;
  --warn: #dc2626;

  /* Type */
  --ff-body: 'Vazirmatn', 'Pinar FaNum', system-ui, sans-serif;
  --ff-display: 'Pinar FaNum', 'Vazirmatn', system-ui, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ff-latin: 'Bebas Neue', 'JetBrains Mono', sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;

  /* Z-index scale (Pro Max guideline) */
  --z-base: 0;
  --z-sticky: 30;
  --z-floating: 90;
  --z-overlay: 100;
  --z-tooltip: 110;

  /* Elevation tokens — consistent shadow language */
  --shadow-1: 0 1px 2px rgba(10,10,11,.04), 0 2px 6px -2px rgba(10,10,11,.06);
  --shadow-2: 0 6px 16px -8px rgba(10,10,11,.18), 0 2px 6px -2px rgba(10,10,11,.06);
  --shadow-3: 0 24px 50px -28px rgba(10,10,11,.34), 0 10px 24px -16px rgba(10,10,11,.18);
  --shadow-amber: 0 18px 40px -18px rgba(245,158,11,.55);

  /* Focus ring (Pro Max — 3px outer + offset for 3:1 contrast) */
  --focus-ring: 0 0 0 3px var(--amber-soft), 0 0 0 5px var(--amber-2);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 380ms;
}

/* Reduced motion (Pro Max — performance/accessibility) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Universal focus-visible (Pro Max — accessibility CRITICAL) */
*:focus { outline: none; }
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}
.btn:focus-visible,
.nav-links a:focus-visible,
.cat-card:focus-visible,
.product:focus-visible,
.contact-card:focus-visible {
  box-shadow: var(--focus-ring), var(--shadow-2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html[dir="rtl"] body {
  font-family: var(--ff-body);
  font-feature-settings: "ss02", "ss01";
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--amber); color: var(--ink); }

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

/* --- Headings --- */
h1, h2, h3, h4, h5 { font-family: var(--ff-display); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p  { margin: 0 0 1rem 0; color: var(--steel-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--ff-mono);
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--steel-2);
  padding: .35rem .65rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--paper);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber-2); box-shadow: 0 0 0 4px rgba(245,158,11,.16);
}

/* Latin numbering on technical specs */
.latin { font-family: var(--ff-latin); font-feature-settings: "tnum"; letter-spacing: .04em; }
.mono  { font-family: var(--ff-mono); }

/* --- Buttons --- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 44px; padding: .95rem 1.6rem;
  font-weight: 700; font-size: .95rem;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bd);
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-base);
  position: relative; overflow: hidden;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: progress; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 14px; height: 14px;
  border: 2px solid currentColor; border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin .7s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.btn .arrow { transition: transform .35s var(--ease); }
html[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px); }
.btn--accent { --bg: var(--amber); --fg: var(--ink); --bd: var(--amber); }
.btn--accent:hover { --bg: var(--amber-3); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--inverse { --bg: var(--paper); --fg: var(--ink); --bd: var(--paper); }

/* --- Header / Nav (Pro Max — floating navbar with edge margins) --- */
.site-header {
  position: fixed; inset: 12px 12px auto 12px; z-index: var(--z-sticky);
  padding: .55rem 0;
  background: rgba(250, 250, 249, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(231, 229, 226, 0.6);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-base) var(--ease), background var(--dur-base);
}
.site-header.scrolled {
  background: rgba(250, 250, 249, 0.95);
  box-shadow: var(--shadow-2);
}
.site-header .container.nav { padding: 0 .8rem 0 .8rem; max-width: calc(var(--container) - 24px); }
@media (max-width: 640px) {
  .site-header { inset: 8px 8px auto 8px; border-radius: 18px; }
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .8rem; font-weight: 800; font-family: var(--ff-display); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.brand-mark svg { width: 22px; height: 22px; color: var(--paper); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.05rem; }
.brand-text span { font-size: .72rem; color: var(--steel-2); letter-spacing: .04em; }

.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .55rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--steel-1);
  cursor: pointer;
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] {
  color: var(--ink); background: var(--paper-2);
}
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper);
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform .25s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  /* Backdrop behind the drawer */
  body::after {
    content: ""; position: fixed; inset: 0; z-index: calc(var(--z-sticky) - 1);
    background: rgba(10, 10, 11, 0.45);
    opacity: 0; pointer-events: none;
    transition: opacity var(--dur-base) var(--ease);
    backdrop-filter: blur(2px);
  }
  body.menu-open::after { opacity: 1; pointer-events: auto; }

  /* Slide-in drawer from the start (right in RTL) */
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 340px);
    height: 100vh; height: 100dvh;
    background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: .25rem;
    padding: 5rem 1.25rem 2rem;
    z-index: var(--z-sticky);
    box-shadow: -16px 0 60px -20px rgba(0,0,0,.25);
    border: 0;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform var(--dur-base) var(--ease), visibility var(--dur-base) var(--ease);
    overflow-y: auto;
  }
  /* RTL: drawer slides from right; in LTR contexts it would slide from left */
  html[dir="rtl"] .nav-links { right: 0; left: auto; transform: translateX(100%); }
  html[dir="ltr"] .nav-links { left: 0; right: auto; transform: translateX(-100%); }

  body.menu-open .nav-links {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links a {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--paper-3);
    border-radius: var(--radius-sm);
    width: 100%; min-height: 52px;
    font-size: 1rem;
  }
  .nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] {
    background: var(--paper-2); color: var(--ink);
  }

  /* Hide secondary nav-cta items on mobile to fit the pill */
  .nav-cta .btn:not(.btn--accent) { display: none; }
  .nav-cta .btn--accent { padding: .65rem 1rem; font-size: .85rem; min-height: 40px; }

  /* Body lock when menu open */
  body.menu-open { overflow: hidden; }
}

@media (max-width: 480px) {
  .nav-cta .btn--accent { display: none; }
  .nav-cta .nav-toggle { display: inline-flex; }
}

/* --- Hero (home) --- */
.hero {
  position: relative; padding: 9rem 0 5rem;
  background:
    radial-gradient(1100px 600px at 100% -10%, rgba(245,158,11,.18), transparent 65%),
    radial-gradient(800px 600px at -20% 110%, rgba(15,15,15,.05), transparent 60%),
    var(--paper);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 60%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 60%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.hero-copy h1 { margin-bottom: 1.6rem; }
.hero-copy h1 mark {
  background: linear-gradient(180deg, transparent 60%, var(--amber-3) 60%);
  color: inherit; padding: 0 .15em;
}
.hero-copy p.lede { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--steel-1); max-width: 56ch; }
.hero-actions { display: flex; gap: .85rem; margin-top: 2rem; flex-wrap: wrap; }

.hero-meta {
  display: flex; gap: 2.2rem; margin-top: 3rem;
  border-top: 1px dashed var(--line); padding-top: 1.5rem;
}
.hero-meta .stat .num { font-family: var(--ff-latin); font-size: 2.4rem; line-height: 1; color: var(--ink); }
.hero-meta .stat .lbl { font-size: .85rem; color: var(--steel-2); margin-top: .35rem; }

/* Hero visual */
.hero-visual {
  position: relative; aspect-ratio: 1/1.1;
  border-radius: 28px; overflow: hidden;
  background:
    linear-gradient(180deg, #1c1917 0%, #0c0a09 100%);
  box-shadow:
    0 60px 80px -40px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.06);
  isolation: isolate;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 70% 0%, rgba(245,158,11,.45), transparent 70%),
    radial-gradient(40% 40% at 20% 100%, rgba(245,158,11,.18), transparent 70%),
    linear-gradient(to bottom, rgba(255,255,255,.04), transparent 30%);
  z-index: 1;
}
.hero-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}
.hero-visual .ill {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
}
.hero-visual .ill svg { width: 80%; height: 80%; filter: drop-shadow(0 30px 30px rgba(0,0,0,.4)); }

/* --- Hero product showcase (real photos) --- */
.hero-product {
  position: absolute; z-index: 2; display: block;
  background: rgba(255,255,255,0.96);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,255,255,.08);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  text-decoration: none; color: inherit;
}
.hero-product img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  display: block;
}
.hero-product .hp-tag {
  position: absolute;
  bottom: 10px; inset-inline-end: 10px;
  background: rgba(10,10,11,.86);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  color: #fafaf9;
  font-size: .76rem; font-weight: 700;
  padding: .35rem .7rem; border-radius: 999px;
  letter-spacing: .02em;
}
.hero-product:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 36px 70px -22px rgba(0,0,0,.62), 0 0 0 1px rgba(245,158,11,.35);
}
/* Main: large card, centered, no tilt */
.hero-product.hp-main {
  top: 18%; left: 18%; right: 18%; bottom: 22%;
  padding: 6%;
}
.hero-product.hp-main .hp-tag {
  font-size: .85rem; padding: .45rem 1rem;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #0a0a0b;
}
/* Side cards: smaller, peeking behind main */
.hero-product.hp-side { width: 38%; height: 38%; padding: 5%; }
.hero-product.hp-side-1 { top: 4%; inset-inline-end: 2%; transform: rotate(6deg); z-index: 1; }
.hero-product.hp-side-1:hover { transform: rotate(0deg) translateY(-4px) scale(1.06); z-index: 3; }
.hero-product.hp-side-2 { bottom: 4%; inset-inline-start: 2%; transform: rotate(-6deg); z-index: 1; }
.hero-product.hp-side-2:hover { transform: rotate(0deg) translateY(-4px) scale(1.06); z-index: 3; }

@media (prefers-reduced-motion: reduce) {
  .hero-product, .hero-product:hover { transition: none; }
  .hero-product:hover { transform: none !important; }
}
@media (max-width: 600px) {
  .hero-product.hp-main { top: 8%; left: 8%; right: 8%; bottom: 14%; padding: 5%; }
  .hero-product.hp-side { width: 32%; height: 32%; padding: 4%; }
  .hero-product.hp-side-2 { display: none; }
}

/* Decorative tag */
.spec-card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: .9rem 1.1rem;
  color: var(--paper); font-size: .85rem; line-height: 1.4;
  box-shadow: 0 30px 50px -30px rgba(0,0,0,.6);
}
.spec-card .k { color: var(--amber-3); font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; display: block; }
.spec-card .v { font-family: var(--ff-latin); font-size: 1.6rem; }
.spec-card.s1 { top: 8%; inset-inline-start: -4%; }
.spec-card.s2 { bottom: 10%; inset-inline-end: -2%; }
.spec-card.s3 { top: 50%; inset-inline-end: 6%; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 540px; margin-inline: auto; aspect-ratio: 1/1; }
  .hero { padding: 7rem 0 3.5rem; }
  .spec-card.s3 { display: none; }
}

/* --- Marquee bar --- */
.marquee {
  background: var(--ink); color: var(--paper);
  border-block: 1px solid var(--ink-3);
  padding: 1rem 0; overflow: hidden; position: relative;
}
.marquee-track {
  display: flex; gap: 3rem; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--ff-display); font-weight: 800; font-size: 1.1rem;
  color: var(--paper-3);
}
.marquee-track span::after {
  content: ""; width: 8px; height: 8px; background: var(--amber); border-radius: 2px; transform: rotate(45deg);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Sections --- */
section { padding: clamp(4rem, 7vw, 6.5rem) 0; }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.section-head .lead p { max-width: 60ch; margin-top: 1.2rem; color: var(--steel-2); }
.section-head .actions { display: flex; gap: .7rem; }
@media (max-width: 720px) { .section-head { grid-template-columns: 1fr; } }

/* --- Category cards --- */
.cat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.25rem; }
.cat-card {
  grid-column: span 4;
  position: relative;
  border-radius: var(--radius-md);
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  padding: 1.6rem;
  display: flex; flex-direction: column; min-height: 260px;
  cursor: pointer;
  transition: transform var(--dur-slow) var(--ease), background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-slow);
  overflow: hidden; isolation: isolate;
  will-change: transform;
}
.cat-card::before {
  content: ""; position: absolute; inset: auto -20% -40% auto;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, var(--amber-3), transparent 70%);
  opacity: 0; transition: opacity .35s; z-index: -1;
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 30px 60px -40px rgba(0,0,0,.4); }
.cat-card:hover::before { opacity: .35; }
.cat-card .ico {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); margin-bottom: 1.2rem;
}
.cat-card .ico svg { width: 28px; height: 28px; stroke-width: 1.6; }
.cat-card h3 { margin-bottom: .3rem; }
.cat-card p { font-size: .95rem; color: var(--steel-2); }
.cat-card .more {
  margin-top: auto; display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .9rem; color: var(--ink);
}
.cat-card .more::after { content: "←"; transition: transform .25s; }
.cat-card:hover .more::after { transform: translateX(-4px); }
.cat-card .num {
  position: absolute; top: 1.4rem; inset-inline-end: 1.4rem;
  font-family: var(--ff-latin); color: var(--steel-4); font-size: 1.1rem;
}
@media (max-width: 980px) { .cat-card { grid-column: span 6; } }
@media (max-width: 600px) { .cat-card { grid-column: span 12; } }

/* --- Feature row --- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature {
  background: var(--paper); border: 1px solid var(--paper-3);
  padding: 1.4rem; border-radius: var(--radius-md);
  position: relative;
}
.feature .ico { width: 40px; height: 40px; color: var(--amber-2); margin-bottom: .9rem; }
.feature h4 { font-size: 1.05rem; margin-bottom: .3rem; }
.feature p  { font-size: .9rem; color: var(--steel-2); margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features { grid-template-columns: 1fr; } }

/* --- About strip / About page hero --- */
/* About-strip = an intentionally INVERTED dark strip — should stay dark in
   both light and dark modes. Hard-code colors so the dark-mode token flip
   (which makes --ink turn white) doesn't flatten the contrast. */
.about-strip {
  background:
    radial-gradient(900px 500px at 0% 100%, rgba(245,158,11,.16), transparent 60%),
    #0a0a0b;
  color: #fafaf9;
  position: relative; overflow: hidden;
}
.about-strip h2, .about-strip h3 { color: #fafaf9; }
.about-strip p { color: #d4d4d8; }  /* WCAG AA on #0a0a0b: 11.5:1 contrast */
.about-strip .eyebrow {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.14) !important;
  color: #e7e5e4 !important;
}
.about-strip .stat .num { color: #fafaf9; }
.about-strip .stat .lbl { color: #a1a1aa; }
.about-strip .btn--inverse { --bg: #fafaf9; --fg: #0a0a0b; --bd: #fafaf9; }
.about-strip .btn--inverse:hover { --bg: #f59e0b; }
.about-strip::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(245,158,11,.18), transparent 70%),
    radial-gradient(500px 400px at 0% 100%, rgba(245,158,11,.10), transparent 70%);
}
.about-strip .container { position: relative; z-index: 1; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.about-stats .stat {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md); padding: 1.2rem;
}
.about-stats .num { font-family: var(--ff-latin); font-size: 2.2rem; color: var(--amber-3); line-height: 1; }
.about-stats .lbl { font-size: .9rem; color: var(--steel-4); margin-top: .35rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* --- Process / Timeline --- */
.timeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  margin-top: 2rem;
}
.tl-item {
  position: relative; padding: 1.4rem;
  background: var(--paper-2); border: 1px solid var(--paper-3);
  border-radius: var(--radius-md);
}
.tl-item .step { font-family: var(--ff-latin); color: var(--amber-2); font-size: 1.6rem; }
.tl-item h4 { margin: .5rem 0 .4rem; }
.tl-item p { margin: 0; font-size: .92rem; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* --- Product grid (catalog) --- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem;
  background: var(--paper-2); border: 1px solid var(--paper-3); padding: .6rem;
  border-radius: 999px;
}
.filter-bar button {
  border: 0; background: transparent; padding: .55rem 1.05rem;
  border-radius: 999px; font-weight: 600; color: var(--steel-2);
  font-size: .92rem; transition: all .25s;
}
.filter-bar button.is-active, .filter-bar button:hover { background: var(--ink); color: var(--paper); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product {
  position: relative; background: var(--paper); border: 1px solid var(--paper-3);
  border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur-slow) var(--ease), border-color var(--dur-fast), box-shadow var(--dur-slow);
  display: flex; flex-direction: column;
  will-change: transform;
}
.product:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-3); }
.product .media {
  aspect-ratio: 4/3;
  background:
    radial-gradient(120% 80% at 50% 20%, var(--paper) 0%, var(--paper-2) 60%, var(--paper-3) 100%);
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.product .media svg { width: 60%; height: 60%; color: var(--ink); transition: transform .5s var(--ease); }
.product .media img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  padding: 1rem;
  transition: transform .55s var(--ease);
  /* No mix-blend-mode — product photos render solid against the card background.
     Earlier multiply blend made white-background product shots invisible against
     the dark gradient when the system was in dark mode. */
}
.product:hover .media svg { transform: scale(1.05) rotate(-2deg); }
.product:hover .media img { transform: scale(1.06); }
.product .media::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}
.product .body { padding: 1.2rem 1.4rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.product .tag { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .08em; color: var(--amber-2); text-transform: uppercase; }
.product h3 { font-size: 1.2rem; line-height: 1.3; }
.product .model {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--ff-mono); font-size: .78rem;
  color: var(--steel-2); padding: .25rem .55rem;
  background: var(--paper-2); border: 1px solid var(--paper-3);
  border-radius: 999px; align-self: flex-start;
}
.product .model::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--amber-2); }
.product .specs { display: flex; gap: 1rem; padding-top: .7rem; border-top: 1px dashed var(--line); margin-top: auto; font-size: .85rem; color: var(--steel-2); }
.product .specs span b { color: var(--ink); font-weight: 700; }
.product .more { margin-top: .9rem; align-self: flex-start; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: .4rem; }
.product .more::after { content: "←"; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }

/* --- Testimonials --- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial {
  background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius-md);
  padding: 1.6rem; position: relative;
}
.testimonial .q { color: var(--amber-2); font-family: var(--ff-display); font-size: 3rem; line-height: 1; }
.testimonial p { font-size: .98rem; color: var(--ink-2); }
.testimonial .who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--paper-3); }
.testimonial .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 800; }
.testimonial .who small { color: var(--steel-2); font-size: .82rem; }
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* --- CTA panel --- */
.cta {
  background:
    linear-gradient(120deg, var(--amber) 0%, var(--amber-2) 100%);
  color: var(--ink);
  border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.08) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 50%, black 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 60% 80% at 100% 50%, black 0%, transparent 70%);
  pointer-events: none;
}
.cta h2 { color: var(--ink); }
.cta p { color: rgba(0,0,0,.78); }
.cta .actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; position: relative; }
@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; }
}

/* --- Footer --- */
.site-footer {
  background: var(--ink); color: var(--paper-3); padding: 4rem 0 2rem;
  position: relative; overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 300px at 0% 0%, rgba(245,158,11,.08), transparent 60%);
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr .9fr .9fr 1fr; gap: 2rem;
  position: relative;
}
.site-footer h4 { color: var(--paper); margin-bottom: 1rem; font-size: 1rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer a { color: var(--steel-4); transition: color .2s; font-size: .92rem; }
.site-footer a:hover { color: var(--amber-3); }
.footer-info p { color: var(--steel-4); font-size: .92rem; line-height: 1.85; }
.footer-info .brand { color: var(--paper); margin-bottom: 1rem; }
.footer-info .brand-text span { color: var(--steel-4); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 3rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--steel-3);
}
.social { display: flex; gap: .5rem; }
.social a {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.05); display: grid; place-items: center;
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast);
}
.social a:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); }
.social a svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- Page hero (interior pages) --- */
.page-hero {
  padding: 8rem 0 3rem; position: relative;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(245,158,11,.18), transparent 65%),
    var(--paper);
  border-bottom: 1px solid var(--paper-3);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--steel-2); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--steel-2); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink); font-weight: 600; }
.breadcrumb .sep { opacity: .5; }

/* --- Forms --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 1rem; padding: .85rem 1rem;
  background: var(--paper); border: 1.5px solid var(--paper-3);
  border-radius: var(--radius-sm); color: var(--ink);
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--amber-2); box-shadow: 0 0 0 4px var(--amber-soft);
}
.field textarea { min-height: 140px; resize: vertical; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

/* --- Contact info cards --- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
@media (max-width: 1080px) { .contact-cards[style*="repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px)  { .contact-cards[style*="repeat(4"] { grid-template-columns: 1fr !important; } }
.contact-card {
  background: var(--paper); border: 1px solid var(--paper-3);
  border-radius: var(--radius-md); padding: 1.5rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-base), transform var(--dur-base);
}
.contact-card:hover { border-color: var(--steel-4); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.contact-card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--amber-soft); color: var(--amber-2);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.contact-card h4 { font-size: 1rem; margin-bottom: .35rem; }
.contact-card p, .contact-card a { font-size: .95rem; color: var(--steel-2); margin: 0; }
.contact-card a {
  cursor: pointer;
  transition: color var(--dur-fast);
}
.contact-card a:hover { color: var(--ink); }
@media (max-width: 800px) { .contact-cards { grid-template-columns: 1fr; } }

/* --- Service rows --- */
.service-row {
  display: grid; grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem; align-items: center;
  padding: 2rem 0; border-bottom: 1px solid var(--paper-3);
}
.service-row .num { font-family: var(--ff-latin); font-size: 3rem; color: var(--amber-2); line-height: 1; }
.service-row h3 { margin-bottom: .4rem; }
.service-row p { margin: 0; }
.service-row .ico { width: 64px; height: 64px; color: var(--ink); justify-self: end; }
@media (max-width: 720px) {
  .service-row { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem 0; }
  .service-row .ico { justify-self: start; width: 44px; height: 44px; }
}

/* --- Product detail --- */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.pd-media {
  aspect-ratio: 1/1; background: linear-gradient(135deg, var(--paper) 0%, var(--paper-2) 100%);
  border-radius: var(--radius-lg); display: grid; place-items: center;
  color: var(--ink); position: relative; overflow: hidden;
  border: 1px solid var(--paper-3);
}
.pd-media::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 70% 0%, rgba(245,158,11,.18), transparent 70%);
  z-index: 0;
}
.pd-media::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 60%, black 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, transparent 60%, black 100%);
  pointer-events: none; z-index: 0;
}
.pd-media svg { width: 65%; height: 65%; position: relative; z-index: 1; filter: drop-shadow(0 30px 30px rgba(0,0,0,.15)); }
.pd-media img {
  /* Fully contain inside the .pd-media block. width/height = 100% with padding
     keeps a comfortable inset and lets object-fit do the aspect-ratio math
     so no part of the product image is ever cropped. */
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  padding: clamp(1.5rem, 4%, 3rem);
  position: relative; z-index: 1;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.12));
}
.pd-info h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .6rem; }
.pd-info .model-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--ff-mono); font-size: .9rem;
  color: var(--steel-1); padding: .35rem .8rem;
  background: var(--paper-2); border: 1px solid var(--paper-3);
  border-radius: 999px; margin-bottom: 1.4rem;
}
.pd-info .model-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber-2); }
.pd-info .model-badge b { color: var(--ink); font-weight: 700; }
.pd-info .lede { font-size: 1.05rem; color: var(--steel-1); }
.spec-table {
  margin-top: 2rem; width: 100%; border-collapse: collapse;
  background: var(--paper-2); border-radius: var(--radius-md); overflow: hidden;
}
.spec-table tr + tr td { border-top: 1px solid var(--paper-3); }
.spec-table td { padding: .9rem 1rem; }
.spec-table td:first-child { color: var(--steel-2); font-size: .9rem; width: 40%; }
.spec-table td:last-child { color: var(--ink); font-weight: 600; font-family: var(--ff-mono); }
@media (max-width: 800px) { .pd-grid { grid-template-columns: 1fr; } }

/* --- Skip to content (Pro Max — a11y CRITICAL) --- */
.skip-link {
  position: fixed; top: -100px; right: 12px; z-index: var(--z-tooltip);
  background: var(--ink); color: var(--paper); padding: .8rem 1.2rem;
  border-radius: 999px; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-2);
  transition: top var(--dur-base) var(--ease);
}
.skip-link:focus { top: 16px; outline: none; box-shadow: var(--focus-ring), var(--shadow-2); }

/* --- Scroll progress (Pro Max — micro-interaction) --- */
.scroll-progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: var(--z-sticky);
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  transition: transform 80ms linear;
  pointer-events: none;
}
html[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

/* --- Image skeleton (Pro Max — content-jumping prevention) --- */
.product .media,
.pd-media {
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent) 0/200% 100% no-repeat,
    radial-gradient(120% 80% at 50% 20%, var(--paper) 0%, var(--paper-2) 60%, var(--paper-3) 100%);
  animation: skeleton-shimmer 2s ease-in-out infinite;
}
.product .media:has(img:not([src=""])) ,
.pd-media:has(img:not([src=""])) {
  animation: none;
}
@keyframes skeleton-shimmer {
  0%, 100% { background-position: 200% 50%, 0 0; }
  50%      { background-position: -100% 50%, 0 0; }
}
.product .media img, .pd-media img { background: transparent; }

/* --- Reveal animation --- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* =========================================================
   Chaty floating contact widget
   ========================================================= */
.chaty {
  position: fixed; bottom: 22px; left: 22px; z-index: var(--z-floating);
  font-family: var(--ff-body);
  display: block !important;
}
.chaty * { box-sizing: border-box; }
.chaty .chaty-widget { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.chaty .chaty-channels { display: flex; flex-direction: column; gap: .65rem; align-items: flex-start; }
.chaty .chaty-channel-list { display: flex; flex-direction: column; gap: .65rem;
  max-height: 0; overflow: hidden; opacity: 0;
  transform: translateY(20px) scale(.92);
  transform-origin: bottom left;
  transition: max-height .35s var(--ease), opacity .25s, transform .35s var(--ease);
}
.chaty.is-open .chaty-channel-list { max-height: 600px; opacity: 1; transform: translateY(0) scale(1); }

.chaty .chaty-channel { position: relative; }
.chaty .chaty-channel a, .chaty .chaty-cta-button button {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 14px 28px -10px rgba(0,0,0,.35), 0 4px 8px -4px rgba(0,0,0,.18);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  cursor: pointer; border: 0; padding: 0; background: transparent;
}
.chaty .chaty-channel a:hover, .chaty .chaty-cta-button button:hover { transform: translateY(-3px) scale(1.05); }
.chaty .chaty-icon, .chaty .chaty-svg { display: block; line-height: 0; }
.chaty .chaty-icon svg, .chaty .chaty-cta-button svg { width: 56px; height: 56px; display: block; }

/* Tooltip on hover */
.chaty .chaty-tooltip::after {
  content: attr(data-hover);
  position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%) translateX(-6px);
  background: var(--ink); color: var(--paper);
  font-size: .82rem; font-weight: 600; padding: .45rem .8rem;
  border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 8px 20px -6px rgba(0,0,0,.35);
}
.chaty .chaty-tooltip::before {
  content: ""; position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  border: 6px solid transparent; border-right-color: var(--ink);
  opacity: 0; transition: opacity .2s;
}
.chaty .chaty-channel:hover .chaty-tooltip::after,
.chaty .chaty-cta-close:hover .chaty-tooltip::after { opacity: 1; transform: translateY(-50%) translateX(0); }
.chaty .chaty-channel:hover .chaty-tooltip::before { opacity: 1; }

/* Main CTA button & on-hover label */
.chaty .chaty-i-trigger { position: relative; display: flex; align-items: center; gap: .8rem; }
.chaty .chaty-cta-main .on-hover-text {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  background: var(--ink); color: var(--paper);
  font-size: .85rem; font-weight: 700; padding: .55rem .95rem;
  border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
  opacity: 1; pointer-events: none;
  transition: opacity .2s;
}
.chaty.is-open .chaty-cta-main .on-hover-text { opacity: 0; }

.chaty .chaty-cta-main .open-chaty,
.chaty .chaty-cta-main .open-chaty-channel,
.chaty .chaty-cta-close button {
  background: transparent;
}
.chaty .chaty-cta-main .open-chaty-channel,
.chaty .chaty-cta-close { display: none; }
.chaty.is-open .chaty-cta-main .open-chaty { display: none; }
.chaty.is-open .chaty-cta-main .open-chaty-channel { display: grid; }

.chaty .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;
}

/* Sheen animation on the main CTA when idle */
@keyframes chaty-pulse {
  0%, 100% { box-shadow: 0 14px 28px -10px rgba(0,0,0,.35), 0 4px 8px -4px rgba(0,0,0,.18), 0 0 0 0 rgba(168,134,205,.55); }
  50%      { box-shadow: 0 14px 28px -10px rgba(0,0,0,.35), 0 4px 8px -4px rgba(0,0,0,.18), 0 0 0 14px rgba(168,134,205,0); }
}
.chaty:not(.is-open) .chaty-cta-main .open-chaty { animation: chaty-pulse 2.4s ease-in-out infinite; border-radius: 50%; }

@media (max-width: 600px) {
  .chaty { bottom: 16px; left: 16px; }
  .chaty .chaty-channel a, .chaty .chaty-cta-button button { width: 48px; height: 48px; }
  .chaty .chaty-icon svg, .chaty .chaty-cta-button svg { width: 48px; height: 48px; }
  .chaty .chaty-cta-main .on-hover-text { font-size: .78rem; padding: .4rem .75rem; }
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 1.2rem; }
.mt-4 { margin-top: 2.4rem; }
.muted { color: var(--steel-2); }
.divider { height: 1px; background: var(--paper-3); margin: 3rem 0; }

/* --- Print/no-image fallback --- */
.placeholder-img {
  background:
    linear-gradient(135deg, var(--paper-2) 0%, var(--paper-3) 100%);
  display: grid; place-items: center; color: var(--steel-3);
  font-family: var(--ff-mono); font-size: .8rem;
}

/* =====================================================================
   ============== NEXT-GEN UPGRADE LAYER (2026) ========================
   Adds: theme system, view transitions, scroll-driven animations,
   modern typography, mesh hero, instant search UI, sticky product CTA,
   image lightbox, command palette, container queries, :has() interactions
   ===================================================================== */

/* --- Typed custom properties (animatable) --- */
@property --hue-shift {
  syntax: '<angle>';
  inherits: true;
  initial-value: 0deg;
}
@property --grad-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}
@property --grad-y {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}

/* --- Light/Dark/System theme tokens via [data-theme] --- */
:root {
  color-scheme: light;
  --bg-app: var(--paper);
  --bg-elev: var(--paper-2);
  --bg-card: #fff;
  --fg-default: var(--ink);
  --fg-muted: var(--steel-2);
  --border-soft: var(--paper-3);
  --border-strong: var(--steel-4);
  --glass-bg: rgba(250, 250, 249, 0.72);
  --glass-stroke: rgba(231, 229, 226, 0.6);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-app: #07070a;
  --bg-elev: #101014;
  --bg-card: #131318;
  --fg-default: #fafaf9;
  --fg-muted: #a1a1aa;
  --border-soft: #27272a;
  --border-strong: #3f3f46;
  --paper: #07070a;
  --paper-2: #101014;
  --paper-3: #1c1c22;
  --line: #2a2a32;
  --ink: #fafaf9;
  --ink-2: #e7e5e4;
  --ink-3: #d6d3d1;
  --steel-1: #a1a1aa;
  --steel-2: #71717a;
  --glass-bg: rgba(16, 16, 20, 0.72);
  --glass-stroke: rgba(255, 255, 255, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg-app: #07070a;
    --bg-elev: #101014;
    --bg-card: #131318;
    --fg-default: #fafaf9;
    --fg-muted: #a1a1aa;
    --border-soft: #27272a;
    --border-strong: #3f3f46;
    --paper: #07070a;
    --paper-2: #101014;
    --paper-3: #1c1c22;
    --line: #2a2a32;
    --ink: #fafaf9;
    --ink-2: #e7e5e4;
    --ink-3: #d6d3d1;
    --steel-1: #a1a1aa;
    --steel-2: #71717a;
    --glass-bg: rgba(16, 16, 20, 0.72);
    --glass-stroke: rgba(255, 255, 255, 0.06);
  }
}

html { transition: background-color .35s var(--ease), color .35s var(--ease); }
body { transition: background-color .35s var(--ease), color .35s var(--ease); }

/* --- View Transitions API (smooth page nav crossfades + product → detail morph) --- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-fade-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-fade-in .42s var(--ease) both; }
@keyframes vt-fade-out { to { opacity: 0; transform: translateY(-8px) scale(.992); } }
@keyframes vt-fade-in  { from { opacity: 0; transform: translateY(8px) scale(1.006); } }

/* Named morph: clicking a product card flies its image into the detail page hero */
.product .media img,
.pd-media img { view-transition-name: var(--vt-name, none); }

/* Header gets its own transition so it doesn't crossfade with the rest */
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { animation-duration: .3s; }

/* --- Header upgrade: glass + gradient ring on scroll --- */
.site-header {
  background: var(--glass-bg);
  border-color: var(--glass-stroke);
}
.site-header::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--hue-shift), transparent 0%, rgba(245,158,11,.55) 25%, transparent 50%, rgba(245,158,11,.35) 75%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease), --hue-shift 12s linear;
}
.site-header.scrolled::after {
  opacity: 1;
  --hue-shift: 360deg;
}

/* --- Theme toggle button --- */
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), border-color var(--dur-fast);
  position: relative; overflow: hidden;
}
.theme-toggle:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; transition: transform .5s var(--ease), opacity .25s; }
.theme-toggle .icon-sun  { position: absolute; }
.theme-toggle .icon-moon { position: absolute; }
:root:not([data-theme="dark"]) .theme-toggle .icon-moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root:not([data-theme="dark"]) .theme-toggle .icon-sun  { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .icon-sun  { opacity: 0; transform: rotate(90deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun  { opacity: 0; transform: rotate(90deg) scale(.6); }
  :root:not([data-theme]) .theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
}

/* --- Modern hero treatment: animated mesh + parallax --- */
.hero {
  background:
    radial-gradient(1100px 600px at var(--grad-x, 100%) -10%, color-mix(in oklch, var(--amber) 28%, transparent), transparent 65%),
    radial-gradient(800px 600px at calc(100% - var(--grad-x, 50%)) 110%, color-mix(in oklch, var(--amber-2) 12%, transparent), transparent 60%),
    radial-gradient(900px 500px at 50% 50%, color-mix(in oklch, var(--amber-3) 6%, transparent), transparent 70%),
    var(--paper);
  animation: hero-mesh 22s var(--ease) infinite alternate;
}
@keyframes hero-mesh {
  0%   { --grad-x: 100%; --grad-y: 0%; }
  50%  { --grad-x: 60%;  --grad-y: 30%; }
  100% { --grad-x: 35%;  --grad-y: 60%; }
}
@media (prefers-reduced-motion: reduce) { .hero { animation: none; } }

.hero-copy h1 { text-wrap: balance; }
.hero-copy p.lede { text-wrap: pretty; }
.hero-copy h1 mark {
  background:
    linear-gradient(180deg, transparent 60%, var(--amber-3) 60%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  animation: highlight-sweep 1.6s var(--ease) .9s both;
}
@keyframes highlight-sweep {
  from { background-size: 0% 100%; }
  to   { background-size: 100% 100%; }
}

/* Floating orbs around hero visual */
.hero-visual::before {
  background:
    radial-gradient(60% 50% at 70% 0%, color-mix(in oklch, var(--amber) 55%, transparent), transparent 70%),
    radial-gradient(40% 40% at 20% 100%, color-mix(in oklch, var(--amber) 22%, transparent), transparent 70%),
    linear-gradient(to bottom, rgba(255,255,255,.04), transparent 30%);
  animation: orb-drift 18s var(--ease) infinite alternate;
}
@keyframes orb-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .hero-visual::before { animation: none; } }

.hero-visual .ill svg { animation: forklift-bob 4s var(--ease) infinite alternate; }
@keyframes forklift-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) { .hero-visual .ill svg { animation: none; } }

.spec-card { animation: spec-float 5s var(--ease) infinite alternate; }
.spec-card.s2 { animation-delay: -1.5s; }
.spec-card.s3 { animation-delay: -3s; }
@keyframes spec-float {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .spec-card { animation: none; } }

/* --- Scroll-driven animations (progressive enhancement) --- */
@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    animation: reveal-scroll linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
  @keyframes reveal-scroll {
    to { opacity: 1; transform: translateY(0); }
  }
  .reveal.in { /* JS fallback path keeps working */ }

  /* Parallax on hero visual */
  .hero-visual {
    animation: hero-parallax linear both;
    animation-timeline: scroll(root);
    animation-range: 0 600px;
  }
  @keyframes hero-parallax {
    to { transform: translateY(-40px); }
  }

  /* Scroll progress driven directly by scroll-timeline (smoother than JS) */
  .scroll-progress {
    animation: progress-scroll linear both;
    animation-timeline: scroll(root);
    transform-origin: 0 50%;
  }
  html[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }
  @keyframes progress-scroll {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}

/* --- Marquee modernization: pauses on hover, gradient mask edges --- */
.marquee {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* --- Category cards: gradient border on hover via :has() and mask --- */
.cat-card {
  background: var(--paper-2);
  position: relative;
}
.cat-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, transparent 0%, transparent 50%, color-mix(in oklch, var(--amber) 70%, transparent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.cat-card:hover::after { opacity: 1; }

/* --- Product cards: cursor-tracked spotlight (uses CSS vars set by JS) --- */
.product {
  position: relative;
}
.product::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; opacity: 0;
  background: radial-gradient(280px 220px at var(--mx, 50%) var(--my, 50%),
              color-mix(in oklch, var(--amber) 18%, transparent), transparent 60%);
  transition: opacity .35s var(--ease);
  z-index: 1;
}
.product:hover::before { opacity: 1; }
.product .body { position: relative; z-index: 2; }

/* :has()-driven CTA emphasis when card is hovered */
.product-grid:has(.product:hover) .product:not(:hover) .media img {
  filter: saturate(.7) brightness(.94);
}

/* --- Search bar (instant filter) --- */
.toolbar {
  display: flex; gap: .75rem; align-items: center;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1; min-width: 240px;
}
.search input {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  padding: .85rem 3rem .85rem 1.1rem;
  background: var(--paper-2);
  border: 1.5px solid var(--paper-3);
  border-radius: 999px;
  color: var(--ink);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
html[dir="rtl"] .search input { padding: .85rem 1.1rem .85rem 3rem; }
.search input::placeholder { color: var(--steel-3); }
.search input:focus { border-color: var(--amber-2); box-shadow: 0 0 0 4px color-mix(in oklch, var(--amber) 20%, transparent); background: var(--paper); }
.search .ico {
  position: absolute; top: 50%; transform: translateY(-50%);
  inset-inline-end: 1rem;
  width: 20px; height: 20px; color: var(--steel-2);
  pointer-events: none;
}
.search .clear {
  position: absolute; top: 50%; transform: translateY(-50%);
  inset-inline-end: 2.7rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--paper-3); border: 0; color: var(--ink);
  display: none; place-items: center; padding: 0; cursor: pointer;
  font-size: .9rem; line-height: 1;
}
.search.has-value .clear { display: grid; }
.toolbar .count {
  font-family: var(--ff-mono); font-size: .82rem; color: var(--steel-2);
  white-space: nowrap;
}
.toolbar .count b { color: var(--ink); font-weight: 700; }

/* "no results" empty state */
.no-results {
  grid-column: 1 / -1;
  text-align: center; padding: 3rem 1rem;
  color: var(--steel-2);
  border: 1px dashed var(--paper-3); border-radius: var(--radius-md);
  background: var(--paper);
}
.no-results svg { width: 48px; height: 48px; color: var(--steel-3); margin-bottom: 1rem; }
.no-results h3 { font-size: 1.2rem; margin-bottom: .4rem; }

/* --- Filter bar gets pill-active animation --- */
.filter-bar {
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  position: relative;
}
.filter-bar button {
  position: relative;
  z-index: 1;
  transition: color .25s var(--ease);
}
.filter-bar button.is-active {
  background: var(--ink);
  color: var(--paper);
}

/* --- Product detail upgrades --- */
.pd-grid {
  align-items: start;
}
.pd-info {
  position: sticky;
  top: 100px;
}
@media (max-width: 800px) { .pd-info { position: static; } }

/* CTA pill in product detail */
.pd-cta-rail {
  display: flex; gap: .7rem; flex-wrap: wrap;
  padding: 1rem; margin: 1.4rem 0;
  background: var(--paper-2);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-md);
  align-items: center;
}
.pd-cta-rail .price-from {
  font-family: var(--ff-mono);
  font-size: .85rem; color: var(--steel-2);
}
.pd-cta-rail .price-from b {
  font-family: var(--ff-display);
  font-size: 1.05rem; color: var(--ink); font-weight: 800;
}

/* Mobile sticky CTA bar (product detail) */
.mobile-sticky-cta {
  display: none;
  position: fixed; bottom: 12px; left: 12px; right: 12px;
  z-index: var(--z-floating);
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
          backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--glass-stroke);
  border-radius: 18px;
  padding: .7rem;
  box-shadow: var(--shadow-3);
  gap: .6rem;
  align-items: center;
  justify-content: space-between;
  animation: sticky-rise .4s var(--ease) both;
}
.mobile-sticky-cta .label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.mobile-sticky-cta .actions { display: flex; gap: .4rem; }
.mobile-sticky-cta .btn { padding: .65rem 1rem; min-height: 40px; font-size: .9rem; }
@keyframes sticky-rise { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 800px) {
  body.has-pd .mobile-sticky-cta { display: flex; }
  body.has-pd { padding-bottom: 88px; }
}

/* Image lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
  background: rgba(7, 7, 10, .85);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  animation: lb-fade .25s var(--ease) both;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.8);
  background: var(--paper);
}
.lightbox .close {
  position: absolute; top: 20px; inset-inline-end: 20px;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  color: #fafaf9; display: grid; place-items: center; cursor: pointer;
  transition: background .2s, transform .2s;
}
.lightbox .close:hover { background: rgba(255,255,255,.15); transform: scale(1.05); }
.pd-media { cursor: zoom-in; }
.pd-media:hover::after { opacity: .85; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }

/* --- Container queries for cards (modern responsive) --- */
@supports (container-type: inline-size) {
  .product-grid { container-type: inline-size; }
  @container (max-width: 360px) {
    .product .body { padding: 1rem; }
    .product .specs { font-size: .8rem; flex-direction: column; gap: .4rem; }
  }
}

/* --- Buttons get sheen sweep on hover --- */
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .6s var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(100%); }
html[dir="rtl"] .btn::before { transform: translateX(100%); }
html[dir="rtl"] .btn:hover::before { transform: translateX(-100%); }

/* --- Modernize forms --- */
.field input, .field textarea, .field select {
  background: var(--paper);
  border-radius: 12px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--amber) 22%, transparent);
}
.field input:user-invalid, .field textarea:user-invalid {
  border-color: var(--warn);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--warn) 18%, transparent);
}

/* --- Footer modernization --- */
.site-footer {
  background:
    radial-gradient(1200px 600px at 0% 100%, color-mix(in oklch, var(--amber) 14%, transparent), transparent 60%),
    var(--ink);
}

/* --- Dark theme overrides for sections that hard-code colors --- */
:root[data-theme="dark"] .product .media,
:root[data-theme="dark"] .pd-media {
  background:
    radial-gradient(120% 80% at 50% 20%, #18181f 0%, #101015 60%, #07070a 100%);
}
:root[data-theme="dark"] .product .media img,
:root[data-theme="dark"] .pd-media img {
  /* In dark mode, give product photos a subtle white wash so transparent / off-white
     areas of the image read clearly against the near-black card background. */
  background: rgba(255,255,255,.94);
  border-radius: 8px;
  filter: contrast(1.02);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .product .media img,
  :root:not([data-theme="light"]) .pd-media img {
    background: rgba(255,255,255,.94);
    border-radius: 8px;
    filter: contrast(1.02);
  }
  :root:not([data-theme="light"]) .product .media,
  :root:not([data-theme="light"]) .pd-media {
    background: radial-gradient(120% 80% at 50% 20%, #18181f 0%, #101015 60%, #07070a 100%);
  }
}
:root[data-theme="dark"] .testimonial,
:root[data-theme="dark"] .product,
:root[data-theme="dark"] .cat-card,
:root[data-theme="dark"] .feature,
:root[data-theme="dark"] .tl-item,
:root[data-theme="dark"] .contact-card {
  background: var(--bg-card);
  border-color: var(--border-soft);
}
:root[data-theme="dark"] .product h3,
:root[data-theme="dark"] .testimonial p,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4 {
  color: var(--fg-default);
}
:root[data-theme="dark"] .filter-bar,
:root[data-theme="dark"] .search input,
:root[data-theme="dark"] section[style*="background:var(--paper-2)"] {
  background: var(--bg-elev) !important;
  border-color: var(--border-soft) !important;
}
:root[data-theme="dark"] .filter-bar button.is-active,
:root[data-theme="dark"] .filter-bar button:hover {
  background: var(--amber); color: #07070a;
}
:root[data-theme="dark"] .btn--ghost {
  --bd: var(--steel-4); --fg: var(--fg-default);
}
:root[data-theme="dark"] .btn--ghost:hover {
  --bg: var(--fg-default); --fg: #07070a;
}
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(1100px 600px at var(--grad-x, 100%) -10%, color-mix(in oklch, var(--amber) 18%, transparent), transparent 65%),
    radial-gradient(800px 600px at calc(100% - var(--grad-x, 50%)) 110%, color-mix(in oklch, var(--amber-2) 10%, transparent), transparent 60%),
    #07070a;
}
:root[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
}
:root[data-theme="dark"] .page-hero {
  background: radial-gradient(800px 400px at 100% 0%, color-mix(in oklch, var(--amber) 14%, transparent), transparent 65%), #07070a;
  border-bottom-color: var(--border-soft);
}
:root[data-theme="dark"] .marquee {
  background: var(--bg-elev);
  border-block-color: var(--border-soft);
}
:root[data-theme="dark"] section[style*="background:var(--paper-2);"] {
  background: var(--bg-elev) !important;
}
:root[data-theme="dark"] section[style*="background:var(--paper-2)"] .testimonial {
  background: var(--bg-card);
}
:root[data-theme="dark"] .lede,
:root[data-theme="dark"] .pd-info .lede {
  color: var(--fg-muted);
}

/* --- Modern keyboard shortcut hint badge --- */
kbd.shortcut {
  font-family: var(--ff-mono); font-size: .7rem;
  padding: .2rem .45rem;
  background: var(--paper-2); border: 1px solid var(--paper-3);
  border-radius: 5px; color: var(--steel-2);
  box-shadow: inset 0 -1px 0 var(--paper-3);
}

/* --- Section divider rule (reusable) --- */
.section-rule {
  height: 1px; width: 100%;
  background: linear-gradient(to right, transparent, var(--paper-3) 20%, var(--paper-3) 80%, transparent);
  margin: 0;
}

/* --- Print-ready --- */
@media print {
  .site-header, .chaty, .scroll-progress, .skip-link, .mobile-sticky-cta, .lightbox { display: none !important; }
  body { background: white; color: black; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

