/* ============ RESET & TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #1a1a1a;
  --bg-2: #252525;
  --bg-3: #2f2f2f;
  --line: #3a3a3a;
  --accent: #ff6b00;
  --accent-2: #ffd60a;
  --text: #f5f5f5;
  --text-dim: #a0a0a0;
  --radius: 4px;
  --container: 1280px;
  --shadow-glow: 0 0 32px rgba(255, 107, 0, 0.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.accent { color: var(--accent); }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(26, 26, 26, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  gap: 24px;
}

/* ============ LOGO (img-based, bulletproof) ============ */
.logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo:hover { color: inherit; }
.logo-img { height: 52px !important; width: auto !important; display: block !important; max-width: none !important; }
.footer-logo-img { height: 64px !important; width: auto !important; display: block !important; margin-bottom: 20px !important; max-width: none !important; }
@media (max-width: 768px) {
  .logo-img { height: 38px !important; }
  .footer-logo-img { height: 48px !important; }
}

/* ============ BRAND LOGO (HTML+CSS) ============ */
.brand, .footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1;
  user-select: none;
}
.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 0.9;
}
.brand-name {
  font-family: 'Inter', 'Arial Black', Impact, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 38px;
  color: #00a651;
  letter-spacing: -1.5px;
  line-height: 1;
}
.brand-d {
  position: relative;
  display: inline-block;
  width: 27px;
  height: 32px;
  margin-left: 2px;
  margin-top: 3px;
}
.brand-d::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 4px solid #f47820;
  border-left: 0;
  border-radius: 0 50% 50% 0;
  box-sizing: border-box;
}
.brand-d::after {
  content: '';
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 3px;
  right: 9px;
  background: #f47820;
  border-radius: 0 50% 50% 0;
}
.brand-sub {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 11px;
  line-height: 1;
  margin-left: 1px;
  display: inline-flex;
  gap: 4px;
}
.bs-orange { color: #f47820; }
.bs-green { color: #00a651; }

/* Footer (bigger version) */
.footer-logo { gap: 2px; margin-bottom: 20px; }
.footer-logo .brand-name { font-size: 50px; letter-spacing: -2px; }
.footer-logo .brand-d { width: 36px; height: 42px; margin-top: 4px; }
.footer-logo .brand-d::before { border-width: 5px; }
.footer-logo .brand-d::after { top: 7px; bottom: 7px; left: 4px; right: 12px; }
.footer-logo .brand-sub { font-size: 14px; gap: 5px; }

@media (max-width: 768px) {
  .brand-name { font-size: 30px; letter-spacing: -1px; }
  .brand-d { width: 22px; height: 26px; }
  .brand-d::before { border-width: 3px; }
  .brand-d::after { top: 4px; bottom: 4px; left: 3px; right: 7px; }
  .brand-sub { font-size: 9px; gap: 3px; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  position: relative;
  color: var(--text);
}
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: #fff !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 107, 0, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 214, 10, 0.08), transparent 50%),
    var(--bg);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 960px; }

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(48px, 9vw, 110px);
  margin-bottom: 28px;
}

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff !important;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: #fff !important;
}
.btn-ghost {
  background: transparent;
  color: var(--text) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  width: fit-content;
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
}
.hero-stats span {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ============ SECTIONS ============ */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-2); }

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}
.section-head p {
  color: var(--text-dim);
  font-size: 17px;
}

/* ============ PRODUCT GRID ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-3);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .card-img img { transform: scale(1.08); }

.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.6));
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-num {
  position: absolute;
  top: -24px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  padding: 4px 10px;
  border-radius: var(--radius);
  letter-spacing: 0.05em;
}

.card-body h3 {
  font-size: 28px;
  margin-bottom: 10px;
}
.card-body > p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============ PRODUCT CARD AS LINK ============ */
a.product-card { color: inherit; text-decoration: none; }
a.product-card:hover { color: inherit; }

.products-cta-wrap {
  margin-top: 56px;
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.btn-large {
  padding: 20px 36px;
  font-size: 15px;
}
.products-cta-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text .section-label { display: inline-block; }
.about-text h2 {
  font-size: clamp(40px, 5vw, 72px);
  margin: 16px 0 28px;
}
.about-text p {
  color: var(--text-dim);
  margin-bottom: 18px;
  font-size: 17px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.stat-box {
  padding: 20px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.stat-box strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.stat-box span {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-img-wrap img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  filter: grayscale(20%) contrast(1.05);
}
.about-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.about-badge strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}
.about-badge span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  line-height: 1;
}

/* ============ QUALITY ============ */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.quality-item {
  background: var(--bg-2);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.quality-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.q-icon {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.quality-item h4 { font-size: 20px; margin-bottom: 6px; }
.quality-item p { font-size: 13px; color: var(--text-dim); }

/* ============ REFERENCES MARQUEE ============ */
.ref-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
  position: relative;
}
.ref-marquee::before, .ref-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.ref-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-2), transparent);
}
.ref-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-2), transparent);
}
.ref-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: scroll-x 40s linear infinite;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.05em;
}
.ref-track span:nth-child(even) { color: var(--accent); }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info h2 {
  font-size: clamp(36px, 5vw, 64px);
  margin: 16px 0 16px;
}
.contact-info > p {
  color: var(--text-dim);
  margin-bottom: 40px;
  font-size: 17px;
}
.contact-list { display: grid; gap: 24px; margin-bottom: 32px; }
.contact-list li {
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.ci-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 6px;
}
.ci-value { font-size: 16px; color: var(--text); }
.ci-value a:hover { color: var(--accent); }

.social { display: flex; gap: 8px; }
.social a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.social a svg {
  width: 14px;
  height: 14px;
  display: block;
  transition: transform 0.3s ease;
}
.social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.35);
}
.social a:hover svg { transform: scale(1.1); }

/* Brand-specific hover tints (subtle) */
.social a[aria-label="Facebook"]:hover { background: #1877f2; border-color: #1877f2; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35); }
.social a[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: #dc2743;
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35);
}
.social a[aria-label="LinkedIn"]:hover { background: #0a66c2; border-color: #0a66c2; box-shadow: 0 8px 20px rgba(10, 102, 194, 0.35); }

.contact-form {
  background: var(--bg-2);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form h3 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--accent);
}
.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 100px; }

.form-success {
  display: none;
  padding: 12px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 14px;
  text-align: center;
}
.form-success.show { display: block; }

/* ============ FOOTER ============ */
.site-footer {
  background: #0f0f0f;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
/* footer-logo styles consolidated above in BRAND LOGO section */
.footer-grid p { color: var(--text-dim); font-size: 14px; }
.footer-grid h5 {
  font-size: 18px;
  margin-bottom: 18px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.footer-grid ul { display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul li, .footer-grid ul a {
  font-size: 14px;
  color: var(--text-dim);
}
.footer-grid ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ============ REVEAL ANIMATION (disabled for max reliability) ============ */
/* Always visible — no opacity:0 hiding anywhere. Content is guaranteed
   to render even if JS fails, CSS minifier strips rules, or IntersectionObserver
   doesn't fire on slow devices. */
.reveal,
.js-enabled .reveal,
.js-enabled .reveal.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ============ ASPECT-RATIO FALLBACK (older iOS/Android browsers) ============ */
@supports not (aspect-ratio: 1) {
  .card-img, .pd-img, .ref-card figure, .ref-preview-card {
    padding-bottom: 75%;
    height: 0;
    position: relative;
  }
  .card-img img, .pd-img img, .ref-card img, .ref-preview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .about-img-wrap img { padding-bottom: 0; height: auto; position: static; }
}

/* ============ IMAGE ERROR FALLBACK (neutralized) ============ */
img.img-error {
  background: var(--bg-3);
}
/* Logo must NEVER be filtered/grayscaled regardless of state */
.logo-img, .footer-logo-img {
  filter: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-filter: none !important;
}
.logo-img.img-error, .footer-logo-img.img-error {
  background: transparent !important;
  opacity: 1 !important;
}

/* Safety: ensure images always have width on mobile (some grid edge cases) */
@media (max-width: 768px) {
  .product-card, .product-detail-card, .ref-card, .ref-preview-card { width: 100%; display: block; }
  .card-img, .pd-img, .ref-card figure, .ref-preview-card { min-height: 200px; height: auto; }
  .card-img img, .pd-img img, .ref-card img, .ref-preview-card img,
  .about-img-wrap img, .hero img {
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 80px 0; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { max-height: 500px; }
  .main-nav a {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta {
    margin: 16px 24px;
    text-align: center;
    border-bottom: none !important;
  }
  .nav-cta:hover { transform: none; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero h1 { font-size: clamp(40px, 11vw, 64px); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; width: 100%; }
  .hero-stats strong { font-size: 36px; }

  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }

  .contact-form { padding: 28px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .ref-track { font-size: 22px; }
}

/* ============================================ */
/* ===========  PRODUCTS PAGE  ================ */
/* ============================================ */

.page-products { padding-top: 0; }

/* ============ PRODUCTS HERO ============ */
.products-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.18), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255, 214, 10, 0.06), transparent 50%),
    var(--bg);
}
.products-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  pointer-events: none;
}
.products-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--text); }
.breadcrumb span:not(.current) { color: var(--text-dim); opacity: 0.5; }

.products-hero h1 {
  font-size: clamp(48px, 8vw, 96px);
  margin: 16px 0 24px;
}
.products-hero-sub {
  color: var(--text-dim);
  font-size: clamp(15px, 1.5vw, 18px);
  max-width: 640px;
  margin-bottom: 48px;
}

.products-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  width: fit-content;
}
.products-stats div { display: flex; flex-direction: column; }
.products-stats strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
}
.products-stats span {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ============ STICKY FILTER ============ */
.filter-sticky {
  position: sticky;
  top: 72px;
  z-index: 50;
  background: rgba(37, 37, 37, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}
.filter-chip .count {
  background: var(--bg-3);
  color: var(--text-dim);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: all 0.25s ease;
}
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-chip.active .count {
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

/* ============ PRODUCT LISTING ============ */
.products-listing { padding: 80px 0 120px; }

.cat-block {
  margin-bottom: 96px;
  scroll-margin-top: 160px;
}
.cat-block.hidden { display: none; }

.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.cat-header h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 12px 0 8px;
}
.cat-header p {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 600px;
}
.cat-count {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.1em;
  color: var(--accent);
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  white-space: nowrap;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

.product-detail-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.product-detail-card.hidden { display: none; }
.product-detail-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 32px rgba(255, 107, 0, 0.18);
}

.pd-img {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 107, 0, 0.08), transparent 70%),
    var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: pointer;
}
.pd-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s ease;
}
.product-detail-card:hover .pd-img img { transform: scale(1.06); }

.pd-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pd-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pd-cat { color: var(--text-dim); }
.pd-code {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius);
  letter-spacing: 0.08em;
}

.pd-body h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.pd-body > p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
  flex: 1;
}

.pd-features {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.pd-features li {
  font-size: 13px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}
.pd-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.pd-cta {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 12px 0;
  border-bottom: 2px solid var(--accent);
  transition: padding 0.25s ease;
  cursor: pointer;
}
.pd-cta:hover { padding-right: 16px; }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state h3 {
  font-size: 28px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.empty-state p { color: var(--text-dim); }

/* ============ CTA STRIP ============ */
.cta-strip {
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.12), rgba(255, 214, 10, 0.04)),
    var(--bg-2);
  padding: 64px 0;
  border-top: 1px solid var(--line);
}
.cta-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 8px;
}
.cta-strip p { color: var(--text-dim); font-size: 16px; }
.cta-strip-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-content {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 920px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(40px) scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.open .modal-content { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  transition: all 0.2s ease;
}
.modal-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}

.modal-img {
  background:
    radial-gradient(circle at center, rgba(255, 107, 0, 0.10), transparent 70%),
    var(--bg-3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.modal-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  min-height: 320px;
}

.modal-body {
  padding: 40px;
}
.modal-body h2 {
  font-size: 40px;
  margin: 12px 0 16px;
}
.modal-body > p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 24px;
}

.modal-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 24px 0 12px;
  font-family: 'Inter', sans-serif;
}

.modal-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin-bottom: 8px;
}
.modal-list li {
  font-size: 14px;
  padding-left: 18px;
  position: relative;
}
.modal-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 10px;
  top: 4px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.spec span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.spec strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.modal-note {
  padding: 12px 16px;
  background: rgba(255, 107, 0, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============ NAV ACTIVE ============ */
.main-nav a.active {
  color: var(--accent);
}
.main-nav a.active::after { width: 100% !important; }

/* ============================================ */
/* ===========  REFERENCES PAGE  ============== */
/* ============================================ */

.references-listing { padding: 64px 0 120px; }

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ref-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}
.ref-card.hidden { display: none; }
.ref-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 107, 0, 0.18);
}

.ref-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.ref-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  display: block;
}
.ref-card:hover img { transform: scale(1.08); }

.ref-card figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.55) 35%,
    transparent 65%);
  opacity: 1;
  transition: opacity 0.3s ease;
}
.ref-card .rc-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  transform: translateY(8px);
  transition: transform 0.4s ease;
}
.ref-card figcaption h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: 0.02em;
  transform: translateY(8px);
  transition: transform 0.4s ease 0.05s;
}
.ref-card:hover .rc-cat,
.ref-card:hover figcaption h3 {
  transform: translateY(0);
}
.ref-card::after {
  content: '+';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  border-radius: var(--radius);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  pointer-events: none;
}
.ref-card:hover::after {
  opacity: 1;
  transform: scale(1);
  background: var(--accent);
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lightbox-content {
  position: relative;
  max-width: 1100px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.94);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.open .lightbox-content { transform: scale(1); }

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  text-align: center;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.lightbox-caption span:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}
.lightbox-caption h3 {
  font-size: 32px;
  margin: 4px 0;
}
.lb-counter {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 5;
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 28px;
  line-height: 1;
}
.lightbox-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(90deg);
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  font-size: 40px;
  line-height: 1;
  padding-bottom: 4px;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ============ HOME — REFERENCES PREVIEW ============ */
.ref-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.ref-preview-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.ref-preview-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 107, 0, 0.18);
}
.ref-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.ref-preview-card:hover img { transform: scale(1.08); }
.ref-preview-card span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: var(--text);
  z-index: 2;
}
.ref-preview-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 55%);
  z-index: 1;
}

.ref-preview-cta {
  margin-top: 40px;
  text-align: center;
}

@media (max-width: 768px) {
  .ref-preview-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ref-preview-card span { font-size: 16px; left: 12px; bottom: 10px; }
}
@media (max-width: 480px) {
  .ref-preview-grid { grid-template-columns: 1fr; }
}

/* ============ RESPONSIVE — PRODUCTS PAGE ============ */
@media (max-width: 1024px) {
  .cat-header { flex-direction: column; align-items: flex-start; }
  .modal-content { grid-template-columns: 1fr; max-height: 88vh; }
  .modal-img img { min-height: 240px; max-height: 320px; }
  .modal-body { padding: 32px 24px; }
  .modal-body h2 { font-size: 32px; }
}

@media (max-width: 768px) {
  .products-hero { padding: 120px 0 60px; }
  .products-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
  }
  .products-stats strong { font-size: 36px; }
  .filter-sticky { top: 64px; }
  .filter-bar { padding: 14px 0; gap: 8px; overflow-x: auto; flex-wrap: nowrap; }
  .filter-chip { white-space: nowrap; padding: 8px 14px; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .modal-list, .spec-grid { grid-template-columns: 1fr; }
  .cat-block { margin-bottom: 64px; }
  .products-listing { padding: 60px 0 80px; }

  /* references mobile */
  .references-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ref-card figcaption { padding: 12px; }
  .ref-card figcaption h3 { font-size: 15px; }
  .ref-card .rc-cat { font-size: 9px; margin-bottom: 4px; }
  .lightbox { padding: 16px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; font-size: 24px; }
  .lightbox-nav { width: 44px; height: 44px; font-size: 30px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-caption h3 { font-size: 22px; }
}

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