/* ============================================================
   Baolian Design System — Component Styles
   ============================================================ */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: all var(--duration-normal) var(--ease-smooth);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  border: 1px solid var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-text-primary);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}

.btn-primary:active {
  background-color: var(--color-accent-active);
  color: var(--color-text-primary);
}

.btn-primary:focus,
.btn-primary:focus-visible {
  color: var(--color-text-primary);
  text-decoration: none;
}

a.btn,
a.btn:hover,
a.btn:focus,
a.btn:active {
  text-decoration: none;
}

a.btn-primary,
a.btn-primary:hover,
a.btn-primary:focus,
a.btn-primary:active,
button.btn-primary,
button.btn-primary:hover,
button.btn-primary:focus,
button.btn-primary:active,
input.btn-primary,
input.btn-primary:hover,
input.btn-primary:focus,
input.btn-primary:active {
  color: var(--color-text-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-text-primary);
}

.btn-outline:hover {
  background-color: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-text-secondary);
  border: none;
  padding: var(--space-2) var(--space-4);
}

.btn-ghost:hover {
  color: var(--color-text-primary);
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 16px 0;
  transition: background-color var(--duration-normal) var(--ease-smooth),
              backdrop-filter var(--duration-normal) var(--ease-smooth);
}

.header--transparent {
  background-color: transparent;
}

.header--scrolled {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border-width) solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.2vw, 34px);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

/* ── Header Logo (Responsive) ── */
.header__logo img,
.header__logo-img {
  height: auto;
  width: auto;
  max-width: clamp(210px, 22vw, 286px);
  max-height: 58px;
  object-fit: contain;
  /* The logo asset has asymmetric transparent padding; lift the visible mark to align with the nav center. */
  transform: translateY(-7px);
}

@media (min-width: 1024px) {
  .header__logo img,
  .header__logo-img {
    max-width: clamp(240px, 20vw, 300px);
    max-height: 62px;
  }
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(24px, 3.2vw, 54px);
}

.header__nav a {
  font-size: 17px;
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  letter-spacing: 0;
  white-space: nowrap;
  transition: color var(--duration-normal) var(--ease-smooth);
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--color-text-primary);
}

.header__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(14px, 1.8vw, 24px);
}

.header__actions .btn-primary {
  min-height: 52px;
  padding: 0 30px;
  font-size: 17px;
  font-weight: var(--weight-medium);
  line-height: 1;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(229, 9, 20, 0.18);
}

.header-language {
  position: relative;
}

.header-language__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  color: var(--color-text-primary);
  border-radius: var(--radius-full);
}

.header-language__current {
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: 0;
  line-height: 1;
}

.header-language__menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: calc(var(--z-header) + 1);
  width: max-content;
  min-width: 124px;
  padding: 6px;
  background: rgba(8, 8, 8, 0.94);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-smooth);
}

.header-language.is-open .header-language__menu,
.header-language:focus-within .header-language__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-language__menu a {
  display: block;
  padding: 10px 12px;
  color: var(--color-text-primary);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-md);
}

.header-language__menu a:hover,
.header-language__menu a:focus,
.header-language__menu a[aria-current="page"] {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.header-search {
  position: relative;
}

.header-search__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  color: var(--color-text-primary);
  border-radius: var(--radius-full);
}

.header-search__form {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: calc(var(--z-header) + 1);
  display: flex;
  align-items: center;
  width: min(360px, calc(100vw - 32px));
  padding: var(--space-2);
  background: rgba(8, 8, 8, 0.94);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-smooth);
}

.header-search.is-open .header-search__form,
.header-search:focus-within .header-search__form {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.header-search__form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 var(--space-4);
  color: var(--color-text-primary);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: var(--border-width) solid transparent;
  border-radius: var(--radius-full);
  outline: none;
}

.header-search__form input:focus {
  border-color: var(--color-accent);
}

.header-search__form input::placeholder {
  color: var(--color-text-muted);
}

.header-search__form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: var(--space-2);
  color: var(--color-text-primary);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* ── Search Page ── */
.site-search {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text-primary);
}

.site-search__hero {
  padding: 180px 0 var(--space-12);
  background: linear-gradient(180deg, rgba(229, 9, 20, 0.14), rgba(0, 0, 0, 0));
  border-bottom: var(--border-width) solid var(--color-border);
}

.site-search__eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--color-accent);
  font-size: 13px;
  text-transform: uppercase;
}

.site-search__title {
  margin: 0 0 var(--space-8);
  font-size: clamp(40px, 7vw, 76px);
  font-weight: var(--weight-light);
}

.site-search__form {
  display: flex;
  max-width: 720px;
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.06);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
}

.site-search__form input {
  flex: 1;
  min-width: 0;
  height: 54px;
  padding: 0 var(--space-5);
  color: var(--color-text-primary);
  background: transparent;
  border: none;
  outline: none;
  font-size: 17px;
}

.site-search__form input::placeholder {
  color: var(--color-text-tertiary);
}

.site-search__form button {
  min-width: 96px;
  height: 54px;
  color: var(--color-text-primary);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
}

.site-search__summary {
  margin: var(--space-5) 0 0;
  color: var(--color-text-secondary);
}

.site-search__body {
  padding: var(--space-12) 0;
}

.site-search__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.site-search-card {
  overflow: hidden;
  background: var(--color-bg-elevated);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
}

.site-search-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.04);
}

.site-search-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-search-card__content {
  padding: var(--space-5);
}

.site-search-card__content h2 {
  margin: 0 0 var(--space-3);
  font-size: 20px;
  line-height: 1.35;
}

.site-search-card__content a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.site-search-card__content p,
.site-search__empty p {
  margin: 0;
  color: var(--color-text-secondary);
}

.site-search__empty {
  max-width: 720px;
  padding: var(--space-8);
  background: var(--color-bg-elevated);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
}

.site-search__empty h2 {
  margin: 0 0 var(--space-3);
  font-size: 28px;
}

.site-search__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-10);
}

.site-search__pagination a,
.site-search__pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 var(--space-4);
  color: var(--color-text-secondary);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xs);
  text-decoration: none;
}

.site-search__pagination .current,
.site-search__pagination a:hover {
  color: var(--color-text-primary);
  background: var(--color-accent);
  border-color: var(--color-accent);
}

@media (max-width: 767px) {
  .site-search__hero {
    padding-top: 132px;
  }

  .site-search__form {
    flex-direction: column;
    gap: var(--space-2);
  }

  .site-search__form button {
    width: 100%;
  }
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

.hero__slide-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

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

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding-top: 120px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: var(--space-5);
  padding: 0 var(--space-3);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  background: rgba(229, 9, 20, 0.16);
  border: var(--border-width) solid rgba(229, 9, 20, 0.38);
  border-radius: var(--radius-sm);
}

.hero__title {
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--text-h3);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.hero__description {
  margin-bottom: var(--space-10);
}

.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  max-width: 560px;
  margin-top: var(--space-10);
}

.hero__proof div {
  padding: var(--space-4);
  background: rgba(5, 7, 10, 0.48);
  border: var(--border-width) solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.hero__proof strong {
  display: block;
  color: var(--color-text-primary);
  font-family: var(--font-mono);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: var(--weight-regular);
  line-height: 1;
}

.hero__proof span {
  display: block;
  margin-top: var(--space-2);
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.35;
}

.hero__image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 1;
}

@media (max-width: 1023px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  .hero__content {
    max-width: 100%;
  }
  .hero__ctas {
    justify-content: center;
  }
  .hero__proof {
    margin-inline: auto;
  }
  .hero__image {
    position: relative;
    width: 100%;
    margin-top: var(--space-10);
  }
}

@media (max-width: 767px) {
  .hero__proof {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}

/* ── Capability Card ── */
.capability-card {
  position: relative;
  display: block;
  padding: var(--space-8);
  color: inherit;
  text-decoration: none;
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: border-color var(--duration-normal) var(--ease-smooth),
              background-color var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
}

.capability-card:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 9, 20, 0.36);
  background-color: rgba(255, 255, 255, 0.045);
}

.capability-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.capability-card__title {
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.capability-card__description {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* ── Product Card ── */
.product-card {
  display: block;
  background-color: var(--color-bg-secondary);
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
  text-decoration: none;
}

.product-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default);
}

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

.product-card__content {
  padding: var(--space-6);
}

.product-card__title {
  font-size: var(--text-h3);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.product-card__description {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
}

/* ── Featured Products ── */
.featured-products {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #101215 0%, #08090b 100%);
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.08);
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.08);
}

.featured-products::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 80% 12%, rgba(229, 9, 20, 0.12), transparent 34%);
  background-size: 96px 96px, 96px 96px, auto;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
  pointer-events: none;
}

.featured-products > .container {
  position: relative;
  z-index: 1;
}

.featured-products .section-header {
  max-width: 860px;
  margin-bottom: var(--space-10);
}

.featured-products .products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: var(--space-6);
}

.featured-products .products-grid .product-card:first-child {
  grid-row: auto;
}

.featured-products .product-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #0f1115;
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.featured-products .product-card__image {
  aspect-ratio: 16 / 10;
  background: #15181d;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.featured-products .product-card__content {
  flex: 1;
  padding: var(--space-5) var(--space-5) var(--space-6);
}

.featured-products .product-card__title {
  font-size: 22px;
  letter-spacing: 0;
}

.featured-products .product-card__description {
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1023px) {
  .featured-products .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .featured-products .product-card__title {
    font-size: 18px;
  }

  .featured-products .product-card__description {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  .featured-products .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.section-header__label {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__description {
  color: var(--color-text-secondary);
}

.home-capabilities {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 120px;
  background-color: #0b0d10;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.08);
}

.home-capabilities::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 14, 0.9), rgba(10, 14, 18, 0.82)),
    radial-gradient(circle at 22% 8%, rgba(229, 9, 20, 0.12), transparent 30%),
    linear-gradient(115deg, rgba(22, 31, 42, 0.92), rgba(7, 8, 10, 0.84) 54%, rgba(18, 22, 27, 0.9));
  pointer-events: none;
}

.home-capabilities::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.45;
  mask-image: linear-gradient(180deg, transparent, black 16%, black 78%, transparent);
  pointer-events: none;
}

.home-capabilities > .container {
  position: relative;
  z-index: 1;
}

.home-capability-grid {
  align-items: stretch;
}

.home-capability-grid .capability-card {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.028)),
    rgba(12, 15, 19, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.home-capability-grid .capability-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--space-8);
  right: var(--space-8);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0.78;
}

.home-technology {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 120px;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.9) 0%, rgba(7, 10, 14, 0.68) 46%, rgba(7, 10, 14, 0.34) 100%),
    linear-gradient(180deg, rgba(9, 12, 16, 0.72), rgba(8, 10, 13, 0.7)),
    var(--home-technology-bg, url("../assets/images/backgrounds/rnd-electronics-workbench-v1.png")) center right / cover no-repeat,
    #0b0d10;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.08);
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.08);
}

.home-technology::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), transparent 32%, rgba(0, 0, 0, 0.28)),
    radial-gradient(circle at 72% 32%, rgba(229, 9, 20, 0.12), transparent 34%);
  pointer-events: none;
}

.home-technology::after {
  content: "";
  position: absolute;
  right: max(24px, calc((100vw - var(--container-max)) / 2));
  top: 50%;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle, black 0%, transparent 66%);
  opacity: 0.36;
  pointer-events: none;
}

.home-technology__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: var(--space-12);
}

.home-technology__content {
  max-width: 720px;
}

.home-technology__content .h2 {
  margin-bottom: var(--space-5);
}

.home-technology__content p:not(.section-header__label) {
  max-width: 680px;
  color: var(--color-text-secondary);
}

.home-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-8);
}

.home-tech-list span,
.home-tech-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--space-3);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1;
  background: transparent;
  border: var(--border-width) solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: border-color var(--duration-normal) var(--ease-smooth),
              color var(--duration-normal) var(--ease-smooth),
              background-color var(--duration-normal) var(--ease-smooth);
}

.home-tech-list a:hover {
  color: var(--color-text-primary);
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(229, 9, 20, 0.34);
}

.home-technology__panel {
  counter-reset: tech-panel;
  display: grid;
  gap: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(13, 16, 20, 0.9);
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.home-technology__panel > div {
  counter-increment: tech-panel;
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-6);
  background: transparent;
  border: 0;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.home-technology__panel > div:first-child {
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
}

.home-technology__panel > div:last-child {
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
}

.home-technology__panel > div:last-child {
  border-bottom: 0;
}

.home-technology__panel > div::before {
  content: "0" counter(tech-panel);
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  border: var(--border-width) solid rgba(229, 9, 20, 0.38);
  background: rgba(229, 9, 20, 0.08);
}

.home-technology__panel strong {
  grid-column: 2;
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
  font-size: 19px;
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

.home-technology__panel p {
  grid-column: 2;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.home-product-range {
  scroll-margin-top: 120px;
  background:
    linear-gradient(180deg, #0a0c0f, #111419 52%, #08090b);
}

.home-partnerships {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 120px;
  padding-block: var(--space-20);
  background:
    linear-gradient(180deg, #08090b, #11151a 52%, #08090b);
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.08);
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.08);
}

.home-partnerships::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(120deg, rgba(229, 9, 20, 0.16), transparent 36%, rgba(255, 255, 255, 0.035));
  background-size: 112px 112px, 112px 112px, auto;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 82%, transparent);
  pointer-events: none;
}

.home-partnerships > .container {
  position: relative;
  z-index: 1;
}

.home-partnerships--brand {
  margin-top: var(--space-6);
  padding-block: var(--space-16);
}

.home-partnerships__header {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: var(--space-10);
  margin-bottom: var(--space-10);
}

.home-partnerships__header .h2 {
  max-width: 760px;
  margin: 0;
}

.home-partnerships__header p:not(.section-header__label) {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.home-partnerships__logos {
  --partner-grid-columns: 4;
  display: grid;
  grid-template-columns: repeat(var(--partner-grid-columns), minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.home-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 112px;
  padding: var(--space-6);
  color: var(--color-text-primary);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(12, 14, 18, 0.96);
  transition: background-color var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
}

.home-partner-logo:hover {
  color: var(--color-text-primary);
  text-decoration: none;
  background-color: rgba(20, 24, 30, 0.98);
}

.home-partner-logo--3mindwave {
  min-height: 128px;
  padding: max(var(--space-7), 28px);
}

.home-partner-logo img {
  display: block;
  width: auto;
  max-width: min(100%, 210px);
  max-height: 58px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: opacity var(--duration-normal) var(--ease-smooth),
              filter var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
}

.home-partner-logo--3mindwave img {
  max-width: min(100%, 190px);
  max-height: 50px;
}

.home-partner-logo:hover img {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

.home-partner-logo__fallback {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  font-weight: var(--weight-medium);
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.home-partner-logo--more {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(229, 9, 20, 0.11), rgba(255, 255, 255, 0.018)),
    rgba(12, 14, 18, 0.96);
}

.home-partner-logo__dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-partner-logo__dots i {
  display: block;
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.24);
}

.home-product-range .product-card__image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-proof {
  scroll-margin-top: 120px;
  padding-block: var(--space-20);
  background:
    linear-gradient(90deg, rgba(229, 9, 20, 0.2), rgba(229, 9, 20, 0.03) 42%, rgba(255, 255, 255, 0.03)),
    #08080a;
  border-top: var(--border-width) solid var(--color-border);
}

.home-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-10);
  align-items: center;
}

.home-proof__grid .h2 {
  max-width: 660px;
}

.home-proof__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.home-proof__stats div {
  min-height: 150px;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.32);
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
}

.home-proof__stats strong {
  display: block;
  color: var(--color-text-primary);
  font-size: clamp(28px, 3vw, 44px);
  font-weight: var(--weight-light);
  line-height: 1;
}

.home-proof__stats span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 1023px) {
  .home-capability-grid.grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .home-technology__grid,
  .home-proof__grid,
  .home-partnerships__header {
    grid-template-columns: 1fr;
  }

  .home-partnerships__logos {
    --partner-grid-columns: 3;
  }

  .home-technology::after {
    width: 92vw;
    right: -24vw;
    top: 34%;
    opacity: 0.22;
  }
}

@media (max-width: 767px) {
  .home-capability-grid.grid-4,
  .home-proof__stats {
    grid-template-columns: 1fr;
  }

  .home-technology__grid,
  .home-proof__grid {
    gap: var(--space-8);
  }

  .home-partnerships {
    padding-block: var(--space-12);
  }

  .home-partnerships__header {
    gap: var(--space-5);
    margin-bottom: var(--space-8);
  }

  .home-partnerships__logos {
    --partner-grid-columns: 2;
  }

  .home-partner-logo {
    min-height: 96px;
    padding: var(--space-5);
  }

  .home-partner-logo img {
    max-height: 38px;
  }

  .home-tech-list span,
  .home-tech-list a {
    width: 100%;
    justify-content: center;
  }

  .home-proof__stats div {
    min-height: 118px;
  }
}

/* ── Footer Logo (Responsive) ── */
.footer__logo-img {
  height: auto;
  width: auto;
  max-width: clamp(120px, 20vw, 200px);
  max-height: 96px;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .footer__logo-img {
    max-width: clamp(160px, 15vw, 280px);
    max-height: 96px;
  }
}

/* ── Footer ── */
.footer {
  background-color: var(--color-bg-primary);
  border-top: var(--border-width) solid var(--color-border);
  padding-block: var(--space-16) var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__heading {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer__links a {
  display: block;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  padding-block: var(--space-1);
  transition: color var(--duration-normal) var(--ease-smooth);
}

.footer__links a:hover {
  color: var(--color-text-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: var(--border-width) solid var(--color-border);
}

.footer__copyright {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .footer {
    padding-block: var(--space-12) var(--space-6);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--space-10);
    margin-bottom: var(--space-10);
    text-align: center;
  }

  .footer__grid > div {
    width: min(100%, 360px);
  }

  .footer__logo-img {
    margin-inline: auto;
  }

  .footer__grid .text-small {
    max-width: 340px !important;
    margin-inline: auto;
    font-size: 15px;
    line-height: 1.75;
  }

  .footer__heading {
    margin-bottom: var(--space-3);
    font-size: 15px;
    letter-spacing: var(--tracking-wide);
  }

  .footer__links a {
    font-size: 15px;
    line-height: 1.5;
    padding-block: 6px;
  }

  .footer__bottom {
    justify-content: center;
    padding-top: var(--space-6);
    text-align: center;
  }

  .footer__copyright {
    max-width: 320px;
    font-size: 13px;
    line-height: 1.6;
  }
}

/* ── Brand Editable Pages ── */
.brand-page {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text-primary);
}

.brand-page__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 62vh;
  padding: 156px 0 var(--space-10);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.58) 42%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.88)),
    var(--brand-hero-image);
  background-position: center;
  background-size: cover;
  border-bottom: var(--border-width) solid var(--color-border);
}

.brand-page__hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), rgba(229, 9, 20, 0));
}

.brand-page__hero .container {
  position: relative;
  z-index: 1;
}

.brand-page__eyebrow,
.brand-kicker {
  margin: 0 0 var(--space-3);
  color: var(--color-accent);
  font-size: 13px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.brand-page__title {
  margin: 0;
  font-size: var(--text-h1);
  font-weight: var(--weight-light);
  letter-spacing: 0;
  line-height: var(--leading-tight);
  max-width: 720px;
}

.brand-page__subtitle {
  max-width: 620px;
  margin: var(--space-4) 0 0;
  color: var(--color-text-secondary);
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
}

.brand-page__body {
  padding: var(--space-12) 0 var(--space-16);
  background:
    linear-gradient(180deg, rgba(229, 9, 20, 0.05), rgba(229, 9, 20, 0) 240px),
    var(--color-bg);
}

.brand-page__content {
  max-width: 1180px;
  margin-inline: auto;
  width: 100%;
}

.brand-section {
  margin-bottom: var(--space-12);
}

.brand-section--lead {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: var(--space-8);
  align-items: end;
  max-width: none;
}

.brand-section--lead .brand-kicker {
  grid-column: 1 / -1;
}

.brand-section--lead h2 {
  margin-bottom: 0;
}

.brand-section--lead p:not(.brand-kicker) {
  align-self: end;
  max-width: 620px;
}

.brand-section h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h2);
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
}

.brand-section p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.brand-media-block {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: var(--space-6);
  margin: var(--space-10) 0 var(--space-12);
}

.brand-media-block--reverse {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.brand-media-block--reverse img {
  order: 0;
}

.brand-media-block > p:empty {
  display: none;
}

.brand-media-block img,
.brand-image-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--color-border);
}

.brand-media-block img {
  aspect-ratio: 16 / 9;
}

.brand-media-block h2,
.brand-cta-panel h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h2);
  font-weight: var(--weight-light);
  letter-spacing: 0;
  line-height: var(--leading-snug);
}

.brand-media-block p,
.brand-cta-panel p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.brand-grid,
.brand-stats,
.brand-contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin: var(--space-8) 0 var(--space-10);
}

.brand-stats--premium {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.brand-grid > div,
.brand-stats > div,
.brand-contact-list > div {
  padding: var(--space-5);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--color-bg-elevated);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
}

.brand-grid--accent > div,
.brand-contact-list--premium > div {
  position: relative;
  overflow: hidden;
}

.brand-grid--accent > div::before,
.brand-contact-list--premium > div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--color-accent);
}

.brand-grid h3 {
  margin: 0 0 var(--space-3);
  font-size: 20px;
  line-height: var(--leading-snug);
}

.brand-grid span {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.brand-grid p,
.brand-contact-list p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.brand-stats strong {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-text-primary);
  font-size: 32px;
  font-weight: var(--weight-light);
}

.brand-stats span,
.brand-contact-list span {
  color: var(--color-text-secondary);
}

.brand-contact-list strong {
  display: block;
  margin: var(--space-2) 0;
  font-size: 18px;
  line-height: var(--leading-snug);
}

.brand-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin: var(--space-8) 0 var(--space-12);
}

.brand-image-grid--wide {
  grid-template-columns: 1fr;
}

.brand-image-grid figure {
  margin: 0;
}

.brand-image-grid img {
  aspect-ratio: 16 / 9;
}

.brand-image-grid figcaption {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-small);
}

.brand-cta-panel {
  padding: var(--space-6);
  margin-top: var(--space-10);
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.18), rgba(255, 255, 255, 0.03)),
    var(--color-bg-elevated);
  border: var(--border-width) solid rgba(229, 9, 20, 0.34);
  border-radius: var(--radius-sm);
}

.brand-contact-form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-8);
  align-items: start;
  scroll-margin-top: 120px;
  padding: var(--space-8);
  margin-top: var(--space-8);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
    var(--color-bg-elevated);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
}

.brand-contact-form-section__intro h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h2);
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
}

.brand-contact-form-section__intro p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.brand-contact-form {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}

.brand-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.brand-contact-form label {
  display: grid;
  gap: var(--space-2);
  margin: 0;
}

.brand-contact-form span {
  color: var(--color-text-primary);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
}

.brand-contact-form span strong {
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

.brand-contact-form input,
.brand-contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  color: var(--color-text-primary);
  background: rgba(0, 0, 0, 0.28);
  border: var(--border-width) solid var(--color-border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-cn);
  font-size: 15px;
  line-height: 1.5;
  outline: 0;
  transition: border-color var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth),
              background-color var(--duration-fast) var(--ease-smooth);
}

.brand-contact-form textarea {
  min-height: 168px;
  resize: vertical;
}

.brand-contact-form input::placeholder,
.brand-contact-form textarea::placeholder {
  color: var(--color-text-muted);
}

.brand-contact-form input:focus,
.brand-contact-form textarea:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(229, 9, 20, 0.74);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.16);
}

.brand-contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-top: var(--space-2);
}

.brand-contact-form__footer p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.6;
}

.brand-contact-form__footer .btn {
  flex: 0 0 auto;
  min-width: 136px;
  border: 0;
  cursor: pointer;
}

.brand-contact-form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.brand-form-notice {
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.6;
}

.brand-form-notice--success {
  color: #E8FFF0;
  background: rgba(34, 197, 94, 0.12);
  border: var(--border-width) solid rgba(34, 197, 94, 0.34);
}

.brand-form-notice--error {
  color: #FFE8EA;
  background: rgba(229, 9, 20, 0.12);
  border: var(--border-width) solid rgba(229, 9, 20, 0.34);
}

.brand-location-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: var(--space-6);
  align-items: stretch;
  padding: var(--space-6);
  margin: var(--space-10) 0;
  background:
    linear-gradient(135deg, rgba(229, 9, 20, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0)),
    var(--color-bg-elevated);
  border: var(--border-width) solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.brand-location-section__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-location-section__content h2 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-h2);
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
}

.brand-location-section__content p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.brand-location-details {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-5) 0;
}

.brand-location-details div {
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.26);
  border: var(--border-width) solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.brand-location-details dt {
  margin-bottom: var(--space-2);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.brand-location-details dd {
  margin: 0;
  color: var(--color-text-primary);
  font-size: 15px;
  line-height: 1.65;
}

.brand-location-details a {
  color: var(--color-text-primary);
  text-decoration: none;
}

.brand-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.brand-location-section__map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(18, 28, 42, 0.96), rgba(8, 10, 13, 0.96));
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
}

.brand-location-section__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.88) contrast(1.02);
}

@media (max-width: 900px) {
  .brand-media-block,
  .brand-media-block--reverse {
    grid-template-columns: 1fr;
  }

  .brand-section--lead {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .brand-section--lead h2 {
    margin-bottom: 0;
  }

  .brand-media-block--reverse img {
    order: 0;
  }

  .brand-grid,
  .brand-stats,
  .brand-stats--premium,
  .brand-contact-list,
  .brand-image-grid,
  .brand-contact-form-section,
  .brand-location-section,
  .brand-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .brand-location-section__map {
    min-height: 340px;
  }
}

@media (max-width: 767px) {
  .brand-page__hero {
    min-height: 58vh;
    padding-top: 132px;
    padding-bottom: var(--space-8);
  }

  .brand-page__body {
    padding-top: var(--space-10);
  }

  .brand-section p,
  .brand-media-block p,
  .brand-cta-panel p {
    font-size: 15px;
  }

  .brand-grid h3 {
    font-size: 18px;
  }

  .brand-media-block,
  .brand-grid,
  .brand-stats,
  .brand-contact-list,
  .brand-cta-panel,
  .brand-location-section,
  .brand-contact-form-section {
    margin-bottom: var(--space-10);
  }

  .brand-location-section,
  .brand-contact-form-section {
    padding: var(--space-5);
  }

  .brand-location-actions .btn {
    width: 100%;
  }

  .brand-contact-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .brand-contact-form__footer .btn {
    width: 100%;
  }
}

/* ── Animations ── */
.fade-in-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--duration-slow) var(--ease-default),
              transform var(--duration-slow) var(--ease-default);
}

/* Stagger children */
.stagger-children > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--duration-slow) var(--ease-default),
              transform var(--duration-slow) var(--ease-default);
}

@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .fade-in-up:not(.is-visible) {
    opacity: 0;
    transform: translateY(14px);
  }

  html.js-reveal .stagger-children:not(.is-visible) > * {
    opacity: 0;
    transform: translateY(14px);
  }
}

.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger-children.is-visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   Products Landing Page Styles
   ═══════════════════════════════════════════ */

/* ── Products Hero ── */
.products-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  padding-top: 140px;
  padding-bottom: var(--space-16);
  overflow: hidden;
}

.products-hero__content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.products-hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--weight-light);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  letter-spacing: var(--tracking-tight);
}

.products-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: var(--weight-regular);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.products-hero__desc {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.products-hero__cta {
  display: flex;
  gap: var(--space-4);
}

/* ── Category Grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 767px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

/* ── Category Card ── */
.category-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform var(--duration-normal) var(--ease-smooth),
              border-color var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth);
  text-decoration: none;
  cursor: pointer;
  min-height: 280px;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(229, 9, 20, 0.12);
}

.category-card__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-primary);
  margin-bottom: var(--space-4);
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-default);
}

.category-card:hover .category-card__image img {
  transform: scale(1.05);
}

.category-card__title {
  font-size: var(--text-h3);
  font-weight: var(--weight-regular);
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.category-card__subtitle {
  font-size: var(--text-small);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-4);
}

.category-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-accent);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  transition: gap var(--duration-fast) var(--ease-smooth);
}

.category-card:hover .category-card__link {
  gap: var(--space-3);
}

.category-card__link svg {
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.category-card:hover .category-card__link svg {
  transform: translateX(2px);
}

/* ── Products CTA Section ── */
.products-cta {
  background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
  border-top: var(--border-width) solid var(--color-border);
}

.products-cta__inner {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  padding-block: var(--space-16);
}

.products-cta__title {
  font-size: var(--text-h2);
  font-weight: var(--weight-light);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.products-cta__desc {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

.btn-lg {
  padding: 18px 36px;
  font-size: var(--text-body);
}
