﻿:root {
  color-scheme: dark;
  --black: #031510;
  --noir: #061d1a;
  --graphite: #0e2c2c;
  --smoke: #f4fbf8;
  --muted: rgba(244, 251, 248, 0.68);
  --faint: rgba(244, 251, 248, 0.14);
  --gold: #72c900;
  --wine: #0872bf;
  --jade: #00965c;
  --blue: #087bd3;
  --shadow: 0 34px 110px rgba(0, 0, 0, 0.46);
  --radius: 8px;
  --mx: 50vw;
  --my: 42vh;
  font-family:
    "Inter", "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--smoke);
  background:
    linear-gradient(180deg, #031510 0, #06241f 46%, #031220 100%),
    var(--black);
  font-size: 16px;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  mix-blend-mode: overlay;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--wine), var(--gold), var(--jade), var(--blue));
  box-shadow: 0 0 28px rgba(114, 201, 0, 0.52);
}

.cursor-light {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(114, 201, 0, 0.18), transparent 25rem),
    radial-gradient(circle at calc(var(--mx) + 12vw) calc(var(--my) + 8vh), rgba(8, 123, 211, 0.14), transparent 22rem);
  opacity: 0.92;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 60;
  width: min(1160px, calc(100% - 32px));
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 9px 10px 9px 14px;
  transform: translateX(-50%);
  border: 1px solid rgba(244, 251, 248, 0.13);
  border-radius: var(--radius);
  background: rgba(3, 21, 16, 0.68);
  box-shadow: 0 20px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(24px) saturate(1.28);
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 4px;
  border: 1px solid rgba(114, 201, 0, 0.48);
  border-radius: 50%;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 247, 235, 0.76)),
    #ffffff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand strong {
  color: #f7fff9;
  font-size: 0.98rem;
  font-weight: 760;
}

.brand small {
  margin-top: 2px;
  color: rgba(244, 251, 248, 0.52);
  font-size: 0.72rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(244, 251, 248, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.nav-links a,
.nav-action,
.admin-action,
.primary-link,
.secondary-link,
.filter-chip,
.download-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--smoke);
  transition:
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 280ms ease,
    background 280ms ease,
    color 280ms ease;
}

.nav-links a {
  color: rgba(244, 251, 248, 0.68);
  font-size: 0.88rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f7fff9;
  background: rgba(255, 255, 255, 0.08);
}

.nav-action {
  border-color: rgba(114, 201, 0, 0.36);
  background: rgba(114, 201, 0, 0.1);
}

.admin-action {
  display: none;
  border-color: rgba(244, 251, 248, 0.16);
  background: rgba(255, 255, 255, 0.055);
}

.nav-action:hover,
.admin-action:hover,
.primary-link:hover,
.secondary-link:hover,
.download-link:hover,
.filter-chip:hover {
  transform: translateY(-2px);
}

.section-band {
  position: relative;
  isolation: isolate;
}

#products,
#certificates,
#archive {
  scroll-margin-top: 96px;
}

.hero {
  height: 92svh;
  min-height: 760px;
  max-height: 940px;
  overflow: hidden;
  background: var(--black);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.94), rgba(5, 5, 5, 0.54) 52%, rgba(5, 5, 5, 0.86)),
    radial-gradient(circle at 72% 54%, rgba(114, 201, 0, 0.2), transparent 25rem),
    radial-gradient(circle at 50% 86%, rgba(8, 123, 211, 0.22), transparent 24rem);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: 22%;
  background: linear-gradient(180deg, transparent, #031510 88%);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(18px) saturate(0.7) contrast(1.08);
  transform: scale(1.12);
  transition:
    opacity 900ms ease,
    transform 1400ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 1400ms ease;
}

.hero-bg-image.active {
  opacity: 0.28;
  filter: blur(16px) saturate(0.86) contrast(1.14);
  transform: scale(1.04);
}

.hero-film {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72)),
    linear-gradient(90deg, rgba(8, 123, 211, 0.24), transparent 38%, rgba(0, 150, 92, 0.2));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
}

.hero-copy {
  position: absolute;
  top: 21%;
  left: 0;
  width: min(650px, 62%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: #f7fff9;
  font-size: 5rem;
  line-height: 0.96;
  font-weight: 820;
}

.hero-lede {
  width: min(590px, 100%);
  margin-bottom: 30px;
  color: rgba(244, 251, 248, 0.76);
  font-size: 1.05rem;
  line-height: 1.9;
}

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

.primary-link,
.secondary-link {
  min-width: 130px;
}

.primary-link {
  color: #061d1a;
  background: #ecfff4;
  box-shadow: 0 16px 44px rgba(244, 251, 248, 0.16);
}

.secondary-link {
  border-color: rgba(244, 251, 248, 0.22);
  background: rgba(255, 255, 255, 0.055);
}

button.secondary-link {
  cursor: pointer;
}

.hero-product-scene {
  position: absolute;
  z-index: 1;
  right: max(38px, calc((100vw - 1160px) / 2));
  top: 50%;
  width: min(38vw, 500px);
  height: min(48vh, 400px);
  min-width: 360px;
  display: grid;
  place-items: center;
  transform: translateY(-45%);
  perspective: 1200px;
  pointer-events: auto;
}

.hero-product-scene::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 18%;
  left: 14%;
  bottom: 6%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.56), transparent 66%);
  filter: blur(12px);
}

.scene-ring {
  position: absolute;
  border: 1px solid rgba(244, 251, 248, 0.13);
  border-radius: 50%;
  transform-style: preserve-3d;
  animation: ringDrift 12s ease-in-out infinite alternate;
}

.ring-one {
  width: 72%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, transparent 55%, rgba(114, 201, 0, 0.14) 56%, transparent 58%),
    radial-gradient(circle, rgba(255, 255, 255, 0.035), transparent 64%);
}

.ring-two {
  width: 92%;
  aspect-ratio: 1;
  border-color: rgba(0, 150, 92, 0.2);
  transform: rotateX(62deg) rotateZ(14deg);
  animation-duration: 15s;
}

@keyframes ringDrift {
  from {
    transform: rotateX(58deg) rotateZ(-9deg) scale(0.96);
  }
  to {
    transform: rotateX(66deg) rotateZ(15deg) scale(1.04);
  }
}

.hero-product {
  position: relative;
  z-index: 2;
  max-width: 94%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  filter:
    drop-shadow(0 30px 40px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 42px rgba(114, 201, 0, 0.12));
  transform:
    translate3d(var(--tilt-x, 0), var(--tilt-y, 0), 100px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition:
    opacity 360ms ease,
    transform 180ms ease,
    filter 360ms ease;
}

.hero-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 118px;
  display: grid;
  grid-template-columns: minmax(280px, 380px) auto;
  align-items: end;
  gap: 18px;
}

.hero-spec {
  padding: 18px;
  border: 1px solid rgba(244, 251, 248, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 8, 8, 0.54);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
}

.spec-kicker,
.card-kicker,
.cert-type,
.dialog-type {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 850;
}

.hero-spec strong,
.hero-spec small {
  display: block;
}

.hero-spec strong {
  color: #f7fff9;
  font-size: 1rem;
  line-height: 1.42;
}

.hero-spec small {
  margin-top: 6px;
  color: rgba(244, 251, 248, 0.58);
}

.hero-metrics {
  justify-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 10px;
}

.hero-metrics span {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 14px;
  border: 1px solid rgba(244, 251, 248, 0.13);
  border-radius: var(--radius);
  color: rgba(244, 251, 248, 0.58);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(20px);
}

.hero-metrics strong {
  color: #f7fff9;
  font-size: 1.38rem;
}

.product-switcher {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 3;
  width: min(1160px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  transform: translateX(-50%);
}

.switch-card {
  position: relative;
  min-height: 74px;
  padding: 13px 14px;
  overflow: hidden;
  border: 1px solid rgba(244, 251, 248, 0.13);
  border-radius: var(--radius);
  color: rgba(244, 251, 248, 0.68);
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(22px);
  transition:
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 360ms ease,
    background 360ms ease;
}

.switch-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(114, 201, 0, 0.28), rgba(8, 123, 211, 0.16), rgba(0, 150, 92, 0.12)),
    rgba(255, 255, 255, 0.03);
  transition: opacity 360ms ease;
}

.switch-card span,
.switch-card strong {
  position: relative;
  display: block;
}

.switch-card span {
  margin-bottom: 7px;
  color: rgba(244, 251, 248, 0.45);
  font-size: 0.72rem;
}

.switch-card strong {
  font-size: 0.92rem;
  line-height: 1.36;
}

.switch-card.active {
  border-color: rgba(114, 201, 0, 0.56);
  color: #f7fff9;
  transform: translateY(-4px);
}

.switch-card.active::before {
  opacity: 1;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 114px;
  z-index: 4;
  width: 30px;
  height: 46px;
  display: grid;
  place-items: start center;
  padding-top: 9px;
  border: 1px solid rgba(244, 251, 248, 0.18);
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.045);
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  animation: cuePulse 1.5s ease-in-out infinite;
}

@keyframes cuePulse {
  0%,
  100% {
    opacity: 0.32;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(13px);
  }
}

.showcase,
.certificates {
  padding: 112px 0;
}

.showcase {
  background:
    radial-gradient(circle at 14% 10%, rgba(8, 123, 211, 0.24), transparent 24rem),
    radial-gradient(circle at 86% 16%, rgba(0, 150, 92, 0.2), transparent 25rem),
    linear-gradient(180deg, #031510, #092721 42%, #031510);
}

.section-heading {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 32px;
}

.section-heading h2 {
  margin: 0;
  color: #f7fff9;
  font-size: 3.25rem;
  line-height: 1.05;
  font-weight: 800;
}

.product-grid {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(244, 251, 248, 0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    #0b2924;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition:
    transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 360ms ease,
    background 360ms ease;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.82;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 72% 22%, rgba(114, 201, 0, 0.18), transparent 16rem);
}

.product-card:hover {
  border-color: rgba(114, 201, 0, 0.44);
  transform: translateY(-6px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    #121416;
}

.product-card.featured {
  grid-column: span 2;
  min-height: 590px;
}

.product-card-media {
  position: absolute;
  inset: 20px 18px 132px;
  z-index: 1;
  display: grid;
  place-items: center;
}

.product-card.featured .product-card-media {
  inset: 18px 18px 118px 34%;
}

.product-card-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 28px 34px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 30px rgba(114, 201, 0, 0.08));
  transform:
    translate3d(var(--tilt-x, 0), var(--tilt-y, 0), 70px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  transition: transform 180ms ease;
}

.product-card-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px;
}

.product-card h3 {
  margin-bottom: 12px;
  color: #f7fff9;
  font-size: 1.42rem;
  line-height: 1.28;
}

.product-card p {
  min-height: 74px;
  margin-bottom: 16px;
  color: rgba(244, 251, 248, 0.68);
  line-height: 1.75;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(244, 251, 248, 0.16);
  border-radius: 999px;
  color: rgba(244, 251, 248, 0.72);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.055);
}

.detail-button {
  position: relative;
  z-index: 3;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 14px;
  border: 1px solid rgba(114, 201, 0, 0.42);
  border-radius: 7px;
  color: #031510;
  background: var(--gold);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.detail-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(114, 201, 0, 0.18);
}

.cinema-strip {
  position: relative;
  overflow: hidden;
  padding: 24px 0;
  background: #031510;
}

.cinema-strip::before,
.cinema-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 22%;
  pointer-events: none;
}

.cinema-strip::before {
  left: 0;
  background: linear-gradient(90deg, #031510, transparent);
}

.cinema-strip::after {
  right: 0;
  background: linear-gradient(270deg, #031510, transparent);
}

.marquee-track {
  width: max-content;
  display: flex;
  gap: 14px;
  animation: marquee 36s linear infinite;
}

.film-frame {
  width: 360px;
  height: 214px;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 251, 248, 0.14);
  border-radius: var(--radius);
  background: #061d1a;
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.08);
  opacity: 0.88;
  transform: scale(1.02);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.certificates {
  background:
    radial-gradient(circle at 8% 0%, rgba(114, 201, 0, 0.12), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(122, 167, 184, 0.14), transparent 24rem),
    linear-gradient(180deg, #031510, #06241f 52%, #031510);
}

.archive-toolbar {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.search-box {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(244, 251, 248, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(20px);
}

.search-box span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--smoke);
  background: transparent;
}

.search-box input::placeholder {
  color: rgba(244, 251, 248, 0.42);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-chip {
  min-width: 68px;
  border-color: rgba(244, 251, 248, 0.13);
  color: rgba(244, 251, 248, 0.72);
  background: rgba(255, 255, 255, 0.045);
}

.filter-chip.active {
  color: #031510;
  border-color: rgba(114, 201, 0, 0.62);
  background: var(--gold);
}

.cert-grid {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cert-card {
  min-height: 408px;
  overflow: hidden;
  border: 1px solid rgba(244, 251, 248, 0.12);
  border-radius: var(--radius);
  color: var(--smoke);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.026)),
    #0e0f10;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 320ms ease,
    background 320ms ease;
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: rgba(114, 201, 0, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.036)),
    #0c3029;
}

.cert-thumb {
  height: 234px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(244, 251, 248, 0.1);
  background:
    radial-gradient(circle at 60% 24%, rgba(114, 201, 0, 0.18), transparent 13rem),
    linear-gradient(145deg, rgba(8, 123, 211, 0.12), rgba(0, 150, 92, 0.12)),
    #111;
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cert-card:hover .cert-thumb img {
  transform: scale(1.05);
}

.file-symbol {
  width: 90px;
  height: 116px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 251, 248, 0.26);
  border-radius: var(--radius);
  color: #f7fff9;
  font-weight: 900;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.28);
  box-shadow: inset -20px 18px 0 rgba(255, 255, 255, 0.035);
}

.cert-copy {
  padding: 17px;
}

.cert-copy h3 {
  min-height: 62px;
  margin-bottom: 10px;
  color: #f7fff9;
  font-size: 0.98rem;
  line-height: 1.42;
}

.cert-copy p {
  min-height: 42px;
  margin-bottom: 15px;
  color: rgba(244, 251, 248, 0.58);
  font-size: 0.86rem;
  line-height: 1.58;
}

.cert-actions {
  display: flex;
  gap: 8px;
}

.ghost-button,
.solid-button {
  min-height: 38px;
  flex: 1;
  border: 1px solid rgba(244, 251, 248, 0.14);
  border-radius: 7px;
  color: var(--smoke);
  background: rgba(255, 255, 255, 0.05);
  transition:
    transform 260ms ease,
    background 260ms ease,
    color 260ms ease;
}

.solid-button {
  color: #031510;
  border-color: rgba(114, 201, 0, 0.55);
  background: var(--gold);
}

.ghost-button:hover,
.solid-button:hover {
  transform: translateY(-2px);
}

.empty-state {
  min-height: 220px;
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 251, 248, 0.12);
  border-radius: var(--radius);
  color: rgba(244, 251, 248, 0.58);
  background: rgba(255, 255, 255, 0.045);
}

.product-dialog,
.preview-dialog {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  height: min(860px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(244, 251, 248, 0.16);
  border-radius: var(--radius);
  color: var(--smoke);
  background: #041a16;
  box-shadow: 0 46px 140px rgba(0, 0, 0, 0.68);
}

.product-dialog {
  width: min(1180px, calc(100% - 32px));
}

.product-dialog::backdrop,
.preview-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(14px);
}

.product-dialog-shell,
.dialog-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-dialog-topbar,
.dialog-topbar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-bottom: 1px solid rgba(244, 251, 248, 0.11);
  background:
    linear-gradient(90deg, rgba(8, 123, 211, 0.2), transparent 48%, rgba(0, 150, 92, 0.16)),
    rgba(255, 255, 255, 0.045);
}

.product-dialog-topbar h3,
.dialog-topbar h3 {
  margin: 0 0 5px;
  color: #f7fff9;
  font-size: 1.16rem;
  line-height: 1.34;
}

.product-dialog-topbar p,
.dialog-topbar p {
  margin: 0;
  color: rgba(244, 251, 248, 0.58);
}

.product-detail-body {
  min-height: 0;
  overflow: auto;
  padding: 18px;
  background:
    radial-gradient(circle at 22% 0%, rgba(114, 201, 0, 0.12), transparent 24rem),
    #061d1a;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 16px;
  margin-bottom: 16px;
}

.detail-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.detail-gallery-frame {
  min-height: 420px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(244, 251, 248, 0.12);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 70% 20%, rgba(114, 201, 0, 0.16), transparent 16rem),
    rgba(255, 255, 255, 0.045);
  scroll-snap-align: center;
}

.detail-gallery-frame img {
  max-height: 390px;
  object-fit: contain;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.42));
}

.detail-summary,
.detail-cert-section {
  border: 1px solid rgba(244, 251, 248, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.detail-summary {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 20px;
}

.detail-summary h3 {
  margin-bottom: 0;
  color: #f7fff9;
  font-size: 1.58rem;
  line-height: 1.26;
}

.detail-summary p {
  margin-bottom: 0;
  color: rgba(244, 251, 248, 0.68);
  line-height: 1.75;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.detail-stats span {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(244, 251, 248, 0.12);
  border-radius: 7px;
  color: rgba(244, 251, 248, 0.58);
  background: rgba(0, 0, 0, 0.18);
}

.detail-stats strong {
  color: #f7fff9;
  font-size: 1.28rem;
}

.detail-cert-section {
  padding: 16px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-heading h3 {
  margin-bottom: 0;
  color: #f7fff9;
}

.panel-heading span {
  color: rgba(244, 251, 248, 0.56);
  font-size: 0.84rem;
}

.detail-cert-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-cert-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(244, 251, 248, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.detail-cert-card h4 {
  margin: 0 0 6px;
  color: #f7fff9;
  line-height: 1.35;
}

.detail-cert-card p {
  margin-bottom: 0;
  color: rgba(244, 251, 248, 0.58);
  font-size: 0.86rem;
  line-height: 1.58;
}

.dialog-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.download-link {
  border-color: rgba(114, 201, 0, 0.36);
  background: rgba(114, 201, 0, 0.1);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244, 251, 248, 0.16);
  border-radius: 50%;
  color: var(--smoke);
  font-size: 1.55rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.06);
}

.preview-body {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #061d1a;
}

.preview-body.pdf-mode {
  display: block;
  overflow: auto;
}

.preview-body img,
.preview-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
}

.preview-body img {
  background: transparent;
}

.pdf-reader {
  width: 100%;
  min-height: 100%;
}

.pdf-status {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(244, 251, 248, 0.12);
  border-radius: var(--radius);
  color: rgba(244, 251, 248, 0.72);
  background: rgba(11, 12, 12, 0.88);
  backdrop-filter: blur(14px);
}

.pdf-pages {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 16px 0 4px;
}

.pdf-page {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(244, 251, 248, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.pdf-page canvas {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #fff;
}

.pdf-page figcaption {
  margin-top: 8px;
  color: rgba(244, 251, 248, 0.56);
  font-size: 0.78rem;
  text-align: center;
}

.doc-fallback {
  width: min(520px, 100%);
  padding: 36px;
  border: 1px solid rgba(244, 251, 248, 0.13);
  border-radius: var(--radius);
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
}

.doc-fallback strong {
  display: block;
  margin-bottom: 12px;
  color: #f7fff9;
  font-size: 1.28rem;
}

.doc-fallback p {
  margin-bottom: 20px;
  color: rgba(244, 251, 248, 0.62);
  line-height: 1.72;
}

.quick-search {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  width: 52px;
  height: 52px;
  display: none;
  place-items: center;
  border: 1px solid rgba(114, 201, 0, 0.44);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(114, 201, 0, 0.32), rgba(0, 150, 92, 0.18)),
    rgba(8, 8, 8, 0.7);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.quick-search span {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid var(--smoke);
  border-radius: 50%;
}

.quick-search span::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: var(--smoke);
  transform: rotate(45deg);
}

.mobile-dock {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .nav-links {
    display: none;
  }

  .admin-action {
    display: inline-flex;
  }

  .hero-copy {
    width: min(560px, 66%);
  }

  h1 {
    font-size: 4.1rem;
  }

  .hero-product-scene {
    right: -6vw;
    width: 60vw;
    min-width: 380px;
  }

  .product-grid,
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .cursor-light {
    display: none;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    grid-template-columns: 1fr;
    padding: 8px 9px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand strong {
    font-size: 0.94rem;
  }

  .brand small {
    display: none;
  }

  .nav-action {
    display: none;
  }

  .admin-action {
    display: none;
  }

  .hero {
    height: 100svh;
    min-height: 690px;
    max-height: 820px;
  }

  .hero-inner {
    width: calc(100% - 24px);
  }

  .hero-copy {
    top: 92px;
    width: 100%;
  }

  h1 {
    width: min(340px, 100%);
    margin-bottom: 12px;
    font-size: 2.76rem;
    line-height: 1.02;
  }

  .hero-lede {
    width: min(330px, 100%);
    margin-bottom: 16px;
    font-size: 0.96rem;
    line-height: 1.66;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .primary-link,
  .secondary-link {
    min-width: 112px;
    min-height: 40px;
    padding: 0 13px;
  }

  .hero-product-scene {
    top: auto;
    left: 50%;
    right: auto;
    bottom: 190px;
    width: 88vw;
    height: 288px;
    min-width: 0;
    transform: translateX(-50%);
    perspective: none;
  }

  .hero-product {
    transform:
      translate3d(var(--tilt-x, 0), var(--tilt-y, 0), 0)
      rotateX(var(--rx, 0deg))
      rotateY(var(--ry, 0deg));
  }

  .scene-ring {
    opacity: 0.72;
  }

  .hero-panel {
    display: none;
  }

  .product-switcher {
    width: calc(100% - 24px);
    bottom: calc(88px + env(safe-area-inset-bottom));
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product-switcher::-webkit-scrollbar {
    display: none;
  }

  .switch-card {
    min-width: 148px;
    height: 50px;
    min-height: 50px;
    padding: 8px 10px;
    scroll-snap-align: center;
  }

  .switch-card span {
    display: none;
  }

  .switch-card strong {
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .scroll-cue {
    display: none;
  }

  .showcase,
  .certificates {
    padding: 70px 0;
  }

  .section-heading,
  .archive-toolbar {
    width: calc(100% - 24px);
  }

  .section-heading h2 {
    font-size: 2.18rem;
  }

  .cert-grid,
  .archive-toolbar {
    grid-template-columns: 1fr;
  }

  .product-grid {
    width: 100%;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 12px 12px;
    scroll-padding: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product-grid::-webkit-scrollbar {
    display: none;
  }

  .product-card,
  .product-card.featured {
    grid-column: auto;
    min-width: min(86vw, 360px);
    min-height: 452px;
    scroll-snap-align: center;
  }

  .product-card.featured .product-card-media,
  .product-card-media {
    inset: 18px 14px 160px;
  }

  .product-card h3 {
    font-size: 1.22rem;
  }

  .product-card p {
    min-height: auto;
    font-size: 0.92rem;
  }

  .film-frame {
    width: 280px;
    height: 168px;
  }

  .archive-toolbar {
    position: sticky;
    top: 78px;
    z-index: 15;
    padding: 8px 0;
    margin-bottom: 14px;
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.94), rgba(6, 6, 6, 0.72));
    backdrop-filter: blur(18px);
  }

  .search-box {
    min-height: 50px;
    padding: 0 13px;
  }

  .filter-group {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filter-group::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 0 10px;
  }

  .cert-grid {
    width: calc(100% - 24px);
    gap: 12px;
  }

  .cert-card {
    min-height: 194px;
    display: grid;
    grid-template-columns: minmax(118px, 42%) minmax(0, 1fr);
  }

  .cert-thumb {
    height: 100%;
    min-height: 194px;
    border-right: 1px solid rgba(244, 251, 248, 0.1);
    border-bottom: 0;
  }

  .cert-copy {
    min-width: 0;
    padding: 14px;
    display: grid;
    align-content: start;
  }

  .cert-copy h3 {
    min-height: 0;
    margin-bottom: 8px;
    font-size: 0.93rem;
    line-height: 1.38;
  }

  .cert-copy p {
    min-height: 0;
    margin-bottom: 12px;
    font-size: 0.8rem;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .cert-actions {
    margin-top: auto;
  }

  .ghost-button,
  .solid-button {
    min-height: 36px;
  }

  .preview-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-width: 0;
    border-radius: 0;
  }

  .product-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-width: 0;
    border-radius: 0;
  }

  .product-dialog-topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
  }

  .product-detail-body {
    padding: 12px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-gallery {
    margin: 0 -12px;
    padding: 0 12px 2px;
    grid-auto-columns: minmax(82vw, 1fr);
  }

  .detail-gallery-frame {
    min-height: 300px;
  }

  .detail-gallery-frame img {
    max-height: 270px;
  }

  .detail-summary {
    padding: 16px;
  }

  .detail-summary h3 {
    font-size: 1.28rem;
  }

  .detail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-cert-list {
    grid-template-columns: 1fr;
  }

  .detail-cert-card {
    grid-template-columns: 1fr;
  }

  .detail-cert-card .solid-button {
    width: 100%;
  }

  .dialog-topbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .dialog-actions {
    justify-content: space-between;
  }

  .download-link {
    flex: 1;
  }

  .preview-body {
    padding: 10px;
  }

  .quick-search {
    display: none;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 65;
    min-height: 62px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    padding: 6px;
    border: 1px solid rgba(244, 251, 248, 0.14);
    border-radius: 8px;
    background: rgba(8, 8, 8, 0.76);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(24px) saturate(1.22);
  }

  .mobile-dock a,
  .mobile-dock button {
    min-width: 0;
    min-height: 50px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 0;
    border-radius: 7px;
    color: rgba(244, 251, 248, 0.68);
    background: transparent;
    font-size: 0.74rem;
  }

  .mobile-dock span {
    width: 18px;
    height: 18px;
    border: 1px solid currentColor;
    border-radius: 50%;
    position: relative;
  }

  .mobile-dock a:nth-child(2) span {
    border-radius: 5px;
  }

  .mobile-dock a:nth-child(3) span::before,
  .mobile-dock a:nth-child(3) span::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    height: 1px;
    background: currentColor;
  }

  .mobile-dock a:nth-child(3) span::before {
    top: 6px;
  }

  .mobile-dock a:nth-child(3) span::after {
    bottom: 6px;
  }

  .mobile-dock button span::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 1px;
    background: currentColor;
    transform: rotate(45deg);
  }

  .mobile-dock .active,
  .mobile-dock a:active,
  .mobile-dock button:active {
    color: #031510;
    background: var(--gold);
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.72rem;
  }

  .hero-product-scene {
    height: 292px;
  }

  .hero-spec strong {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Apple-like light theme */
:root {
  color-scheme: light;
  --black: #f5f5f7;
  --noir: #ffffff;
  --graphite: #eef6f2;
  --smoke: #1d1d1f;
  --muted: rgba(29, 29, 31, 0.66);
  --faint: rgba(29, 29, 31, 0.08);
  --gold: #68c900;
  --wine: #0071e3;
  --jade: #00965c;
  --blue: #0077ed;
  --shadow: 0 22px 52px rgba(0, 0, 0, 0.09);
}

html {
  background: #f5f5f7;
}

body {
  color: var(--smoke);
  background:
    radial-gradient(circle at 15% 0%, rgba(104, 201, 0, 0.12), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(0, 113, 227, 0.12), transparent 36rem),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 36%, #f5f5f7 100%);
}

body::before {
  opacity: 0;
}

.cursor-light {
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(104, 201, 0, 0.13), transparent 26rem),
    radial-gradient(circle at calc(var(--mx) + 10vw) calc(var(--my) + 8vh), rgba(0, 113, 227, 0.11), transparent 24rem);
  opacity: 1;
}

.scroll-meter {
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--jade));
  box-shadow: 0 0 20px rgba(0, 113, 227, 0.28);
}

.site-header {
  border-color: rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(26px) saturate(1.35);
}

.brand-mark,
.admin-brand span,
.login-mark {
  border-color: rgba(104, 201, 0, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 249, 242, 0.9)),
    #ffffff;
  box-shadow: 0 8px 24px rgba(0, 150, 92, 0.13);
}

.brand strong,
h1,
h2,
h3,
.section-heading h2,
.hero-spec strong,
.hero-metrics strong,
.product-card h3,
.cert-copy h3,
.product-dialog-topbar h3,
.dialog-topbar h3,
.detail-summary h3,
.panel-heading h3,
.detail-cert-card h4,
.doc-fallback strong {
  color: #1d1d1f;
}

.brand small,
.nav-links a,
.hero-lede,
.hero-spec small,
.hero-metrics span,
.switch-card,
.product-card p,
.meta-pill,
.cert-copy p,
.filter-chip,
.product-dialog-topbar p,
.dialog-topbar p,
.detail-summary p,
.detail-stats span,
.panel-heading span,
.detail-cert-card p,
.pdf-status,
.pdf-page figcaption,
.doc-fallback p {
  color: var(--muted);
}

.nav-links {
  border-color: rgba(29, 29, 31, 0.07);
  background: rgba(255, 255, 255, 0.68);
}

.nav-links a:hover,
.nav-links a.active {
  color: #1d1d1f;
  background: rgba(0, 113, 227, 0.08);
}

.nav-action,
.admin-action,
.download-link {
  color: #1d1d1f;
  border-color: rgba(0, 113, 227, 0.2);
  background: rgba(0, 113, 227, 0.08);
}

.hero {
  background:
    radial-gradient(circle at 78% 42%, rgba(0, 113, 227, 0.12), transparent 30rem),
    radial-gradient(circle at 28% 68%, rgba(104, 201, 0, 0.13), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f9fbfb 72%, #f5f5f7 100%);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.68) 52%, rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 72% 54%, rgba(0, 113, 227, 0.12), transparent 25rem),
    radial-gradient(circle at 50% 86%, rgba(104, 201, 0, 0.13), transparent 24rem);
}

.hero::after {
  background: linear-gradient(180deg, transparent, #f5f5f7 88%);
}

.hero-bg-image.active {
  opacity: 0.14;
  filter: blur(20px) saturate(0.9) contrast(1);
}

.hero-film {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(245, 245, 247, 0.62)),
    linear-gradient(90deg, rgba(0, 113, 227, 0.08), transparent 42%, rgba(104, 201, 0, 0.08));
}

.eyebrow,
.spec-kicker,
.card-kicker,
.cert-type,
.dialog-type,
.search-box span {
  color: #46a800;
}

.primary-link,
.solid-button,
.detail-button,
.filter-chip.active,
.mobile-dock .active,
.mobile-dock a:active,
.mobile-dock button:active {
  color: #ffffff;
  border-color: rgba(0, 113, 227, 0.2);
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.2);
}

.secondary-link,
.ghost-button {
  color: #1d1d1f;
  border-color: rgba(29, 29, 31, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.hero-product {
  filter:
    drop-shadow(0 28px 34px rgba(0, 0, 0, 0.16))
    drop-shadow(0 0 30px rgba(0, 113, 227, 0.08));
}

.hero-product-scene::before {
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.14), transparent 68%);
}

.scene-ring {
  border-color: rgba(0, 113, 227, 0.12);
}

.scene-ring::before {
  background:
    radial-gradient(circle, transparent 55%, rgba(104, 201, 0, 0.14) 56%, transparent 58%),
    radial-gradient(circle, rgba(255, 255, 255, 0.7), transparent 64%);
}

.hero-spec,
.hero-metrics span,
.switch-card,
.search-box,
.filter-chip,
.empty-state,
.doc-fallback {
  border-color: rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.switch-card::before {
  background:
    linear-gradient(90deg, rgba(104, 201, 0, 0.16), rgba(0, 113, 227, 0.1), rgba(0, 150, 92, 0.1)),
    rgba(255, 255, 255, 0.72);
}

.switch-card span {
  color: rgba(29, 29, 31, 0.45);
}

.switch-card.active {
  color: #1d1d1f;
  border-color: rgba(104, 201, 0, 0.45);
}

.scroll-cue {
  border-color: rgba(29, 29, 31, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.showcase,
.certificates {
  background:
    radial-gradient(circle at 12% 2%, rgba(104, 201, 0, 0.1), transparent 30rem),
    radial-gradient(circle at 88% 6%, rgba(0, 113, 227, 0.1), transparent 30rem),
    linear-gradient(180deg, #f5f5f7 0%, #ffffff 48%, #f5f5f7 100%);
}

.product-card,
.cert-card,
.detail-gallery-frame,
.detail-summary,
.detail-cert-section,
.detail-cert-card,
.pdf-page {
  border-color: rgba(29, 29, 31, 0.08);
  color: #1d1d1f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 250, 252, 0.96)),
    #ffffff;
  box-shadow: var(--shadow);
}

.product-card::before {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.94) 76%),
    radial-gradient(circle at 76% 20%, rgba(104, 201, 0, 0.13), transparent 16rem);
}

.product-card:hover,
.cert-card:hover {
  border-color: rgba(0, 113, 227, 0.2);
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 113, 227, 0.12);
}

.product-card-media img,
.detail-gallery-frame img {
  filter:
    drop-shadow(0 24px 32px rgba(0, 0, 0, 0.14))
    drop-shadow(0 0 24px rgba(0, 113, 227, 0.06));
}

.meta-pill,
.ghost-button,
.solid-button {
  border-color: rgba(29, 29, 31, 0.09);
  background: rgba(245, 245, 247, 0.76);
}

.cinema-strip {
  background: #ffffff;
}

.cinema-strip::before {
  background: linear-gradient(90deg, #ffffff, transparent);
}

.cinema-strip::after {
  background: linear-gradient(270deg, #ffffff, transparent);
}

.film-frame {
  border-color: rgba(29, 29, 31, 0.08);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}

.cert-thumb {
  border-color: rgba(29, 29, 31, 0.08);
  background:
    radial-gradient(circle at 60% 24%, rgba(104, 201, 0, 0.12), transparent 13rem),
    linear-gradient(145deg, rgba(0, 113, 227, 0.07), rgba(0, 150, 92, 0.07)),
    #f5f5f7;
}

.file-symbol {
  color: #1d1d1f;
  border-color: rgba(29, 29, 31, 0.12);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 247, 0.94)),
    #ffffff;
  box-shadow: inset -18px 16px 0 rgba(0, 113, 227, 0.05);
}

.product-dialog,
.preview-dialog {
  border-color: rgba(29, 29, 31, 0.1);
  color: #1d1d1f;
  background: #ffffff;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.18);
}

.product-dialog::backdrop,
.preview-dialog::backdrop {
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(18px);
}

.product-dialog-topbar,
.dialog-topbar {
  border-color: rgba(29, 29, 31, 0.08);
  background:
    linear-gradient(90deg, rgba(0, 113, 227, 0.08), transparent 50%, rgba(104, 201, 0, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.product-detail-body,
.preview-body {
  background:
    radial-gradient(circle at 22% 0%, rgba(104, 201, 0, 0.08), transparent 24rem),
    #f5f5f7;
}

.detail-stats span {
  border-color: rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.detail-stats strong {
  color: #1d1d1f;
}

.icon-button,
.pdf-status {
  color: #1d1d1f;
  border-color: rgba(29, 29, 31, 0.1);
  background: rgba(255, 255, 255, 0.82);
}

.pdf-page {
  background: #ffffff;
}

.quick-search {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 245, 0.9)),
    #ffffff;
  box-shadow: 0 18px 48px rgba(0, 113, 227, 0.14);
}

.quick-search span,
.quick-search span::after {
  border-color: #1d1d1f;
  background: #1d1d1f;
}

.mobile-dock {
  border-color: rgba(29, 29, 31, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}

.mobile-dock a,
.mobile-dock button {
  color: rgba(29, 29, 31, 0.66);
}

@media (max-width: 720px) {
  .archive-toolbar {
    background: linear-gradient(180deg, rgba(245, 245, 247, 0.96), rgba(245, 245, 247, 0.78));
  }

  .cert-thumb {
    border-right-color: rgba(29, 29, 31, 0.08);
  }
}

.solid-button {
  color: #ffffff;
  border-color: rgba(0, 113, 227, 0.2);
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(0, 113, 227, 0.18);
}

.quick-search span {
  border-color: #1d1d1f;
  background: transparent;
}

.quick-search span::after {
  background: #1d1d1f;
}

.brand > span:last-child {
  min-width: 0;
}

.brand strong {
  line-height: 1.08;
}

.brand small {
  max-width: min(540px, 58vw);
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
}

.hero-bg.has-banner-images .hero-bg-image {
  filter: blur(4px) saturate(1.08) contrast(1.02);
  transform: scale(1.04);
}

.hero-bg.has-banner-images .hero-bg-image.active {
  opacity: 0.56;
}

.hero.has-custom-banner::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.42) 54%, rgba(255, 255, 255, 0.76)),
    radial-gradient(circle at 72% 54%, rgba(0, 113, 227, 0.08), transparent 25rem),
    radial-gradient(circle at 50% 86%, rgba(104, 201, 0, 0.08), transparent 24rem);
}

.hero.has-custom-banner .hero-film {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(245, 245, 247, 0.48)),
    linear-gradient(90deg, rgba(0, 113, 227, 0.04), transparent 42%, rgba(104, 201, 0, 0.05));
}

.hero.has-custom-banner {
  height: min(78svh, 760px);
  min-height: 520px;
  background: #f5f5f7;
}

.hero.has-custom-banner::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(245, 245, 247, 0.2));
}

.hero.has-custom-banner::after {
  height: 18%;
  background: linear-gradient(180deg, transparent, #f5f5f7 94%);
}

.hero.has-custom-banner .hero-bg-image {
  object-fit: cover;
  filter: none;
  transform: scale(1);
}

.hero.has-custom-banner .hero-bg-image.active {
  opacity: 1;
}

.hero.has-custom-banner .hero-film {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(245, 245, 247, 0.12));
}

.hero.has-custom-banner .hero-copy,
.hero.has-custom-banner .hero-product-scene,
.hero.has-custom-banner .hero-panel,
.hero.has-custom-banner .product-switcher {
  display: none;
}

.hero.has-custom-banner .scroll-cue {
  bottom: 26px;
  border-color: rgba(29, 29, 31, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

@media (max-width: 720px) {
  .brand {
    gap: 10px;
  }

  .brand small {
    display: block;
    max-width: calc(100vw - 86px);
    font-size: 0.52rem;
    line-height: 1.08;
    white-space: nowrap;
  }

  .hero.has-custom-banner {
    height: 72svh;
    min-height: 460px;
    max-height: 720px;
  }

  .hero.has-custom-banner .scroll-cue {
    display: grid;
    bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

/* Product section layout cleanup */
.product-grid {
  width: min(1120px, calc(100% - 32px));
  grid-template-columns: repeat(auto-fit, minmax(286px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.product-card,
.product-card.featured {
  grid-column: auto;
  min-height: 0;
  display: grid;
  grid-template-rows: 260px 252px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
    #ffffff;
}

.product-card::before {
  display: none;
}

.product-card-media,
.product-card.featured .product-card-media {
  position: relative;
  inset: auto;
  z-index: 1;
  height: 260px;
  padding: 18px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(29, 29, 31, 0.07);
  background:
    radial-gradient(circle at 50% 28%, rgba(104, 201, 0, 0.12), transparent 14rem),
    linear-gradient(180deg, #ffffff, #f6faf8);
}

.product-card-media img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: none !important;
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-card-media img {
  transform: translateY(-4px) scale(1.02) !important;
}

.product-card-copy {
  position: relative;
  inset: auto;
  z-index: 2;
  min-height: 0;
  height: 252px;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.product-card h3 {
  min-height: 2.76em;
  margin-bottom: 10px;
  font-size: 1.22rem;
  line-height: 1.38;
}

.product-card p {
  min-height: 0;
  margin-bottom: 14px;
  display: -webkit-box;
  overflow: hidden;
  color: rgba(29, 29, 31, 0.66);
  line-height: 1.66;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-card .meta-row {
  min-height: 32px;
  margin-top: auto;
}

.product-card .meta-pill {
  max-width: 100%;
  min-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card .detail-button {
  width: fit-content;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .product-grid {
    width: 100%;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 12px 12px;
    scroll-padding: 12px;
    scroll-snap-type: x mandatory;
  }

  .product-card,
  .product-card.featured {
    min-width: min(86vw, 360px);
    grid-template-rows: 220px 252px;
    min-height: 0;
    scroll-snap-align: center;
  }

  .product-card-media,
  .product-card.featured .product-card-media {
    height: 220px;
    padding: 14px;
  }

  .product-card-copy {
    min-height: 0;
    height: 252px;
    padding: 15px;
  }

  .product-card h3 {
    min-height: auto;
    font-size: 1.08rem;
  }

  .product-card p {
    -webkit-line-clamp: 3;
  }
}

.showcase {
  padding-top: 88px;
  padding-bottom: 92px;
}

.showcase .section-heading {
  margin-bottom: 24px;
}

@media (max-width: 720px) {
  .showcase {
    padding-top: 62px;
    padding-bottom: 72px;
  }
}

/* Final product grid guardrails */
.showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(102, 204, 0, 0.1), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(0, 113, 227, 0.09), transparent 28rem),
    linear-gradient(180deg, #fbfbfd 0%, #f5f7f8 100%);
}

.showcase .section-heading {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.product-grid {
  display: grid;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.product-card,
.product-card.featured {
  min-width: 0;
  contain: layout paint;
  isolation: isolate;
  transform: translateZ(0);
}

.product-card-media,
.product-card.featured .product-card-media {
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.product-card-media img,
.product-card.featured .product-card-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  inline-size: 100%;
  block-size: 100%;
  max-inline-size: 100%;
  max-block-size: 100%;
  object-fit: contain;
  object-position: center;
}

.product-card-copy {
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 251, 0.96));
}

.product-card .detail-button {
  justify-self: start;
  max-width: 100%;
}

@media (max-width: 720px) {
  .showcase .section-heading {
    width: min(100% - 32px, 560px);
  }

  .product-grid {
    display: flex;
    margin-inline: 0;
  }

  .product-card,
  .product-card.featured {
    flex: 0 0 min(86vw, 360px);
  }
}

/* Product media hard stop */
.product-card-media img,
.product-card.featured .product-card-media img {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px) !important;
  height: calc(100% - 36px) !important;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 720px) {
  .product-card-media img,
  .product-card.featured .product-card-media img {
    inset: 14px;
    width: calc(100% - 28px) !important;
    height: calc(100% - 28px) !important;
  }
}
