*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --header-h: 64px;
  --header-inner-max: 1920px;
  --content-max: 1500px;
  --bg-dark: #0a0a0a;
  --fg-on-dark: #f5f5f5;
  --bg-hover: #ffffff;
  --fg-on-light: #111111;
  --muted: #6b7280;
  --accent: #2563eb;
  --radius: 10px;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--fg-on-light);
  background: #fafafa;
  line-height: 1.5;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* —— Fixed header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  overflow: visible;
  background: var(--bg-dark);
  color: var(--fg-on-dark);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-hover,
.site-header.is-mega-open {
  background: var(--bg-hover);
  color: var(--fg-on-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  max-width: var(--header-inner-max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: inherit;
}

.brand__logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.primary-nav {
  flex: 0 1 auto;
  display: flex;
  justify-content: flex-start;
  margin-left: clamp(1rem, 2.5vw, 2.5rem);
  min-width: 0;
}

.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

@media (min-width: 1025px) {
  .primary-nav__item {
    position: relative;
  }
}

.primary-nav__trigger {
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  color: inherit;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Chevron on items with submenu */
.primary-nav__item[data-mega] .primary-nav__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.primary-nav__item[data-mega] .primary-nav__trigger::after {
  content: "";
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.primary-nav__item[data-mega]:hover .primary-nav__trigger::after,
.primary-nav__item[data-mega].is-active .primary-nav__trigger::after {
  transform: rotate(-135deg);
}

.primary-nav__trigger:hover,
.primary-nav__trigger:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-hover .primary-nav__trigger:hover,
.site-header.is-mega-open .primary-nav__trigger:hover,
.site-header.is-hover .primary-nav__trigger:focus-visible,
.site-header.is-mega-open .primary-nav__trigger:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}

.primary-nav__item.is-active .primary-nav__trigger {
  background: rgba(255, 255, 255, 0.18);
}

.site-header.is-hover .primary-nav__item.is-active .primary-nav__trigger,
.site-header.is-mega-open .primary-nav__item.is-active .primary-nav__trigger {
  background: rgba(0, 0, 0, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-actions__link {
  padding: 0.45rem 0.65rem;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 6px;
}

.header-actions__link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-hover .header-actions__link:hover,
.site-header.is-mega-open .header-actions__link:hover {
  background: rgba(0, 0, 0, 0.06);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: inherit;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.site-header.is-hover .icon-btn:hover,
.site-header.is-mega-open .icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

.btn-call {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  white-space: nowrap;
}

.site-header.is-hover .btn-call,
.site-header.is-mega-open .btn-call {
  background: var(--fg-on-light);
  color: var(--bg-hover);
}

.btn-call:hover {
  filter: brightness(1.08);
}

/* Desktop: mega 展开时顶栏保持深色，与全宽子菜单风格一致 */
@media (min-width: 1025px) {
  .site-header.is-hover,
  .site-header.is-mega-open {
    background: var(--bg-dark);
    color: var(--fg-on-dark);
    box-shadow: none;
  }

  .site-header.is-hover .primary-nav__trigger:hover,
  .site-header.is-mega-open .primary-nav__trigger:hover,
  .site-header.is-hover .primary-nav__trigger:focus-visible,
  .site-header.is-mega-open .primary-nav__trigger:focus-visible {
    background: rgba(255, 255, 255, 0.12);
  }

  .site-header.is-hover .primary-nav__item.is-active .primary-nav__trigger,
  .site-header.is-mega-open .primary-nav__item.is-active .primary-nav__trigger {
    background: rgba(255, 255, 255, 0.18);
  }

  .site-header.is-hover .header-actions__link:hover,
  .site-header.is-mega-open .header-actions__link:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .site-header.is-hover .icon-btn:hover,
  .site-header.is-mega-open .icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  .site-header.is-hover .btn-call,
  .site-header.is-mega-open .btn-call {
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
  }
}

@media (min-width: 900px) {
  .btn-call {
    display: inline-flex;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 1024px) {
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg-hover);
    color: var(--fg-on-light);
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    justify-content: flex-start;
    z-index: 998;
  }

  .site-header.nav-mobile-open .primary-nav {
    transform: translateX(0);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .primary-nav__trigger {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .btn-call__num {
    display: none;
  }

  .btn-call {
    display: inline-flex;
    padding: 0.5rem;
    border-radius: 999px;
  }

  /* Keep top bar dark so Login / search / hamburger stay legible */
  .site-header.is-hover,
  .site-header.is-mega-open {
    background: var(--bg-dark);
    color: var(--fg-on-dark);
    box-shadow: none;
  }

  .site-header.is-hover .btn-call,
  .site-header.is-mega-open .btn-call {
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
  }

  .site-header.is-hover .header-actions__link:hover,
  .site-header.is-mega-open .header-actions__link:hover,
  .site-header.is-hover .icon-btn:hover,
  .site-header.is-mega-open .icon-btn:hover {
    background: rgba(255, 255, 255, 0.12);
  }

  /* Hamburger: visible white bars on dark top bar */
  .nav-toggle {
    display: flex;
    color: #fff;
  }

  .nav-toggle span {
    background: #fff;
  }
}

/* —— Submenu: desktop = full-width strip under header, same palette as nav —— */
.submenu {
  color: var(--fg-on-light);
}

.submenu[hidden] {
  display: none !important;
}

@media (min-width: 1025px) {
  .submenu {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    z-index: 999;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding-top: 0;
    margin: 0;
    color: var(--fg-on-dark);
  }

  .primary-nav__item:last-child .submenu {
    left: 0;
    right: 0;
  }

  .submenu__panel {
    width: 100%;
    margin: 0;
    padding: 1.15rem clamp(16px, 4vw, 40px) 1.15rem 0;
    background: var(--bg-dark);
    color: var(--fg-on-dark);
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  /* 与当前父级 .primary-nav__item 左缘对齐：--submenu-anchor-left 由 main.js 写入 */
  .submenu__panel .submenu__links {
    max-width: none;
    margin: 0;
    padding-left: var(--submenu-anchor-left, clamp(16px, 4vw, 40px));
    padding-right: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 1024px) {
  .submenu {
    width: 100%;
    margin-top: 0.35rem;
    padding-left: 0.25rem;
    border-left: 2px solid #e5e7eb;
  }

  .submenu__panel {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
  }
}

.submenu__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.submenu__links a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--fg-on-light);
  text-decoration: none;
}

@media (min-width: 1025px) {
  .submenu__links a {
    color: var(--fg-on-dark);
  }

  .submenu__links a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
  }
}

@media (max-width: 1024px) {
  .submenu__links a {
    padding: 0.5rem 0.65rem;
  }

  .submenu__links a:active {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

/* —— Product detail page —— */
.product-page-head {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 1.5rem) clamp(16px, 4vw, 40px) 0 0;
}

.product-page-breadcrumb {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.product-page-breadcrumb a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.product-page-breadcrumb a:hover {
  filter: brightness(1.05);
}

.product-page-breadcrumb__sep {
  margin: 0 0.35rem;
  color: #9ca3af;
}

.product-page-breadcrumb__current {
  color: #374151;
}

.product-split--page {
  border-top: none;
}

.product-split--page .product-split__content h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Product page: in-page nav (product name + section links) */
.product-local-nav {
  background: #fff;
  border-bottom: 1px solid #eef0f3;
}

.product-local-nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.85rem clamp(16px, 4vw, 40px) 0.85rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  row-gap: 0.5rem;
}

.product-local-nav__product {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  margin-right: 0.15rem;
}

.product-local-nav__dot {
  color: #9ca3af;
  font-size: 0.65rem;
  user-select: none;
  line-height: 1;
  position: relative;
  top: 0.05em;
}

.product-local-nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
}

.product-local-nav__link:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Product hero: intro split */
.product-hero-intro {
  padding: clamp(2.25rem, 6vw, 4rem) clamp(16px, 4vw, 40px);
  background: #fff;
}

.product-hero-intro__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .product-hero-intro__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.product-hero-intro__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-hero-intro__content h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0a0a0a;
}

.product-hero-intro__lead {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #374151;
  max-width: 52ch;
}

.product-hero-intro__bundle {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111827;
}

.product-hero-intro__phone {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-hero-intro__phone a {
  color: inherit;
  text-decoration: none;
}

.product-hero-intro__phone a:hover {
  color: var(--accent);
}

.product-hero-intro__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: filter 0.15s ease;
}

.product-hero-intro__more:hover {
  filter: brightness(1.06);
}

.product-hero-intro__more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.product-hero-intro__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.product-hero-intro__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* In-page anchor offset under fixed header */
#tech-specs {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

/* Anchor target sections (Features, FAQs, …) */
.product-anchor-section {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
  padding: clamp(2rem, 5vw, 3rem) clamp(16px, 4vw, 40px);
  background: #fff;
  border-top: 1px solid #eef0f3;
}

.product-anchor-section--alt {
  background: #fafafa;
}

.product-anchor-section__inner {
  max-width: 720px;
  margin: 0 auto;
}

.product-anchor-section h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.02em;
}

.product-anchor-section__lead {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4b5563;
}

.product-anchor-section__lead a {
  color: var(--accent);
  font-weight: 600;
}

html[data-theme="dark"] .product-local-nav {
  background: var(--bg-dark);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .product-local-nav__product {
  color: var(--fg-on-dark);
}

html[data-theme="dark"] .product-local-nav__link {
  color: #9ca3af;
}

html[data-theme="dark"] .product-hero-intro {
  background: var(--bg-dark);
}

html[data-theme="dark"] .product-hero-intro__content h1 {
  color: var(--fg-on-dark);
}

html[data-theme="dark"] .product-hero-intro__lead {
  color: #d1d5db;
}

html[data-theme="dark"] .product-hero-intro__bundle {
  color: #e5e7eb;
}

html[data-theme="dark"] .product-hero-intro__phone a {
  color: var(--fg-on-dark);
}

html[data-theme="dark"] .product-anchor-section {
  background: var(--bg-dark);
  border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .product-anchor-section--alt {
  background: #141414;
}

html[data-theme="dark"] .product-anchor-section__lead {
  color: #d1d5db;
}

.product-spec-table {
  margin: 0;
  max-width: 720px;
}

.product-spec-table__row {
  display: grid;
  gap: 0.35rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eef0f3;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .product-spec-table__row {
    grid-template-columns: minmax(8rem, 11rem) 1fr;
    align-items: baseline;
  }
}

.product-spec-table__row:last-child {
  border-bottom: none;
}

.product-spec-table dt {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.product-spec-table dd {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

html[data-theme="dark"] .product-page-breadcrumb__current {
  color: var(--fg-on-dark);
}

html[data-theme="dark"] .product-spec-table__row {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .product-spec-table dt {
  color: #e5e7eb;
}

html[data-theme="dark"] .product-spec-table dd {
  color: #d1d5db;
}

/* —— Main offset for fixed header —— */
.main {
  padding-top: var(--header-h);
}

/* —— Carousel —— */
.hero-banner {
  position: relative;
}

.carousel {
  position: relative;
  overflow: hidden;
  background: #111;
}

.carousel__track {
  position: relative;
  min-height: min(70vh, 560px);
}

.carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.carousel__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.carousel__media--1 {
  background-image: linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(30, 64, 175, 0.45)),
    url("https://images.pexels.com/photos/323780/pexels-photo-323780.jpeg?auto=compress&cs=tinysrgb&w=1600&dpr=1");
}

.carousel__media--2 {
  background-image: linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(124, 58, 237, 0.45)),
    url("https://images.unsplash.com/photo-1586023492125-27b2c045efd7?auto=format&fit=crop&w=1600&q=70");
}

.carousel__media--3 {
  background-image: linear-gradient(120deg, rgba(15, 23, 42, 0.75), rgba(22, 163, 74, 0.4)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=70");
}

.carousel__caption {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: min(36rem, 92vw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 3.5rem) clamp(16px, 5vw, 48px);
  color: #fff;
  text-align: center;
}

.carousel__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.carousel__subtitle {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.01em;
}

.carousel__intro {
  margin: 0 auto 1.35rem;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.92);
}

.carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: 2px solid transparent;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition:
    filter 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.carousel__btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.carousel__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.carousel__arrow--prev {
  left: clamp(8px, 2vw, 24px);
}

.carousel__arrow--next {
  right: clamp(8px, 2vw, 24px);
}

.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 3vw, 28px);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  border: 2px solid transparent;
}

.carousel__dot.is-active {
  background: #fff;
  transform: scale(1.1);
}

.carousel__dot:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* —— Inquiry —— */
.inquiry {
  padding: clamp(2.5rem, 6vw, 4rem) clamp(16px, 4vw, 40px);
}

.inquiry__inner {
  max-width: 880px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef0f3;
}

/* Home: quote section — copy left, form right */
.inquiry__inner--home-split {
  max-width: var(--content-max);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

@media (min-width: 900px) {
  .inquiry__inner--home-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

.inquiry__intro {
  min-width: 0;
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 3vw, 2rem);
  min-height: min(300px, 46vh);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
  background-color: #0f172a;
  background-image: linear-gradient(118deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 95, 0.78) 55%, rgba(15, 23, 42, 0.9) 100%),
    url("https://images.pexels.com/photos/323780/pexels-photo-323780.jpeg?auto=compress&cs=tinysrgb&w=1200");
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
}

@media (min-width: 900px) {
  .inquiry__intro {
    min-height: 0;
    align-self: stretch;
    border-radius: 16px 0 0 16px;
  }
}

.inquiry__intro .inquiry__callout {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #fff;
  max-width: 28ch;
}

.inquiry__intro .inquiry__callout a {
  color: #93c5fd;
  text-decoration: none;
}

.inquiry__intro .inquiry__callout a:hover {
  text-decoration: underline;
}

.inquiry__intro .inquiry__copy {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36ch;
}

.inquiry__callout {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg-on-light);
}

.inquiry__callout a {
  color: var(--accent);
  text-decoration: none;
}

.inquiry__callout a:hover {
  text-decoration: underline;
}

.inquiry__copy {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4b5563;
}

.inquiry__panel {
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #fff;
  border-radius: 0 0 16px 16px;
}

@media (min-width: 900px) {
  .inquiry__panel {
    border-radius: 0 16px 16px 0;
  }
}

.inquiry__panel .inquiry__title {
  margin: 0 0 0.35rem;
}

.inquiry__panel .inquiry__lead {
  margin: 0 0 1.25rem;
}

.inquiry__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
}

.inquiry__lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.inquiry__lead--footer {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.inquiry-form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  margin-top: 1rem;
}

.field__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.inquiry-form__actions {
  margin-top: 1.25rem;
}

.btn-submit {
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
}

.btn-submit:hover {
  filter: brightness(1.06);
}

/* —— Product split (text left, image right) —— */
.product-split {
  padding: clamp(2.75rem, 7vw, 5rem) clamp(16px, 4vw, 40px);
  background: #fff;
  border-top: 1px solid #eef0f3;
}

.product-split__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .product-split__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.product-split__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-split__content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.product-split__lead {
  margin: 0 0 1.25rem;
  color: #374151;
  font-size: 1rem;
  max-width: 52ch;
}

.product-split__list {
  margin: 0 0 1.5rem;
  padding-left: 1.15rem;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.55;
}

.product-split__list li {
  margin-bottom: 0.5rem;
}

.product-split__list li:last-child {
  margin-bottom: 0;
}

.product-split__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--accent);
  color: #fff;
  transition: filter 0.15s ease;
}

.product-split__cta:hover {
  filter: brightness(1.06);
}

.product-split__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.product-split__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
}

.product-split__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* —— Product grid: three columns, image + title —— */
.product-grid-section {
  padding: clamp(2.75rem, 7vw, 5rem) clamp(16px, 4vw, 40px);
  background: #fafafa;
  border-top: 1px solid #eef0f3;
}

.product-grid-section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.product-grid-section__head {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.product-grid-section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-grid-section__head h1,
.product-grid-section__head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--fg-on-light);
}

/* Static content pages (help, services, etc.) */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.static-page p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5563;
}

.static-page p:last-child {
  margin-bottom: 0;
}

.static-page__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #4b5563;
  line-height: 1.6;
}

.static-page__list li {
  margin-bottom: 0.45rem;
}

.static-page a {
  color: var(--accent);
  font-weight: 500;
}

.static-page__downloads {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.static-page__downloads li {
  border-bottom: 1px solid #eef0f3;
}

.static-page__downloads li:last-child {
  border-bottom: none;
}

.static-page__downloads a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  font-weight: 500;
  color: #111827;
  text-decoration: none;
}

.static-page__downloads a:hover {
  background: #f9fafb;
}

.static-page__downloads .meta {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}

html[data-theme="dark"] .static-page p,
html[data-theme="dark"] .static-page__list {
  color: #cbd5e1;
}

html[data-theme="dark"] .static-page__downloads {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .static-page__downloads li {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .static-page__downloads a {
  color: #e5e7eb;
}

html[data-theme="dark"] .static-page__downloads a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.product-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .product-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .product-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card__link:hover {
  transform: translateY(-4px);
}

.product-card__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.product-card__figure {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e5e7eb;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__title {
  margin: 0.85rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg-on-light);
  text-align: center;
}

.product-card__link:hover .product-card__title {
  color: var(--accent);
}

/* —— Case studies —— */
.cases-section {
  padding: clamp(2.75rem, 7vw, 5rem) clamp(16px, 4vw, 40px);
  background: #fff;
  border-top: 1px solid #eef0f3;
}

.cases-section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.cases-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(2rem, 5vw, 2.75rem);
}

.cases-section__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.cases-section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cases-section__intro {
  margin: 0;
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.55;
}

.case-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2rem);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .case-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0;
  background: #fafafa;
  border: 1px solid #eef0f3;
  border-radius: 16px;
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.case-card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border-color: #e5e7eb;
}

.case-card__media {
  aspect-ratio: 16 / 10;
  background: #e5e7eb;
  overflow: hidden;
}

.case-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card__tag {
  margin: 0;
  padding: 1rem 1.25rem 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-card__title {
  margin: 0.35rem 0 0.6rem;
  padding: 0 1.25rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg-on-light);
}

.case-card__excerpt {
  margin: 0;
  padding: 0 1.25rem;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4b5563;
}

.case-card__link {
  margin-top: 1.1rem;
  padding: 0 1.25rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
}

.case-card__link:hover {
  text-decoration: underline;
}

.case-card__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* —— Footer —— */
.site-footer {
  background: #0a0a0a;
  color: #f5f5f5;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(16px, 4vw, 40px) 1.5rem;
}

.site-footer a {
  color: #f5f5f5;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #fff;
}

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

.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    align-items: start;
  }
}

.site-footer__logo {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #a3a3a3;
  max-width: 28ch;
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a3a3a3;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: 0.55rem;
}

.site-footer__list li:last-child {
  margin-bottom: 0;
}

.site-footer__list a {
  font-size: 0.95rem;
}

.site-footer__list--contact .site-footer__address {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #a3a3a3;
}

.site-footer__bottom {
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: #737373;
}

/* —— Theme toggle (FAB) —— */
.theme-toggle {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  z-index: 1100;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.theme-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.45);
}

.theme-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.theme-toggle__icon {
  flex-shrink: 0;
}

html[data-theme="dark"] .theme-toggle {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

/* —— Dark theme (page content) —— */
html[data-theme="dark"] body {
  background: #0f1419;
  color: #e5e7eb;
}

html[data-theme="dark"] .product-split {
  background: #111923;
  border-top-color: #1f2937;
}

html[data-theme="dark"] .product-split__lead,
html[data-theme="dark"] .product-split__list {
  color: #cbd5e1;
}

html[data-theme="dark"] .product-grid-section {
  background: #0f1419;
  border-top-color: #1f2937;
}

html[data-theme="dark"] .product-grid-section__eyebrow,
html[data-theme="dark"] .cases-section__eyebrow {
  color: #94a3b8;
}

html[data-theme="dark"] .product-grid-section__head h1,
html[data-theme="dark"] .product-grid-section__head h2,
html[data-theme="dark"] .cases-section__head h2 {
  color: #f1f5f9;
}

html[data-theme="dark"] .product-card__title {
  color: #e5e7eb;
}

html[data-theme="dark"] .product-card__link:hover .product-card__title {
  color: #93c5fd;
}

html[data-theme="dark"] .cases-section {
  background: #111923;
  border-top-color: #1f2937;
}

html[data-theme="dark"] .cases-section__intro {
  color: #94a3b8;
}

html[data-theme="dark"] .case-card {
  background: #161e2e;
  border-color: #243045;
}

html[data-theme="dark"] .case-card:hover {
  border-color: #334155;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .case-card__title {
  color: #f1f5f9;
}

html[data-theme="dark"] .case-card__excerpt {
  color: #94a3b8;
}

html[data-theme="dark"] .case-card__link {
  color: #93c5fd;
}

html[data-theme="dark"] .inquiry:not(:has(.inquiry__inner--home-split)) {
  background: transparent;
}

html[data-theme="dark"] .inquiry__inner:not(.inquiry__inner--home-split) {
  background: #161e2e;
  border-color: #243045;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .inquiry__inner--home-split {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .inquiry__intro {
  background-image: linear-gradient(118deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.85) 100%),
    url("https://images.pexels.com/photos/323780/pexels-photo-323780.jpeg?auto=compress&cs=tinysrgb&w=1200");
}

html[data-theme="dark"] .inquiry__panel {
  background: #161e2e;
}

html[data-theme="dark"] .inquiry__intro .inquiry__callout {
  color: #f8fafc;
}

html[data-theme="dark"] .inquiry__intro .inquiry__copy {
  color: rgba(248, 250, 252, 0.9);
}

html[data-theme="dark"] .inquiry__title {
  color: #f1f5f9;
}

html[data-theme="dark"] .inquiry__lead {
  color: #94a3b8;
}

html[data-theme="dark"] .inquiry__callout {
  color: #f1f5f9;
}

html[data-theme="dark"] .inquiry__copy {
  color: #cbd5e1;
}

html[data-theme="dark"] .field__label {
  color: #cbd5e1;
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea {
  background: #0f1419;
  border-color: #334155;
  color: #e5e7eb;
}

html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder {
  color: #64748b;
}

html[data-theme="dark"] .site-footer {
  background: #05080d;
  border-top: 1px solid #1f2937;
}

/* Auth (login / register) */
.auth-shell {
  max-width: 480px;
  margin: 0 auto;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.auth-tab.is-active {
  background: var(--accent, #2563eb);
  border-color: var(--accent, #2563eb);
  color: #fff;
}

.auth-message {
  margin-top: 12px;
  font-size: 0.9rem;
}

.auth-message.error {
  color: #dc2626;
}

.auth-message.success {
  color: #059669;
}

.auth-account-card {
  padding: 16px 18px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  margin: 16px 0 20px;
  background: rgba(148, 163, 184, 0.08);
}

.auth-account-meta {
  color: var(--muted, #64748b);
  margin-top: 6px;
}

html[data-theme="dark"] .auth-tab {
  border-color: #334155;
}

html[data-theme="dark"] .auth-account-card {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.6);
}
