/* =========================================================
   LUMIDAR — Design System
   ========================================================= */

:root {
  /* Colors */
  --bg: #ffffff;
  --bg-soft: #f4f6f7;
  --bg-dark: #090c0e;
  --bg-dark-2: #12171a;
  --bg-dark-3: #1a2124;

  --accent: #00d4c2;
  --accent-dim: #00a598;
  --accent-glow: rgba(0, 212, 194, 0.35);

  --text: #0e1315;
  --text-muted: #566067;
  --text-soft: #8a9298;
  --text-inverse: #f5f8f8;
  --text-inverse-muted: #a7b3b6;

  --border: #e3e8ea;
  --border-dark: #262e31;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --container: 1240px;

  --shadow-card: 0 1px 2px rgba(14, 19, 21, 0.04), 0 8px 24px rgba(14, 19, 21, 0.06);
  --shadow-card-hover: 0 4px 12px rgba(14, 19, 21, 0.08), 0 16px 40px rgba(14, 19, 21, 0.1);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-anchor: none; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}

/* Manufacturer-style product wordmark: uppercase, open tracking,
   all characters at a single height. */
.model-wordmark {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.08;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-dim);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent);
}
.on-dark .eyebrow { color: var(--accent); }

.section {
  padding-block: 112px;
}
.section--tight { padding-block: 80px; }
.section--soft { background: var(--bg-soft); }
/* Two adjacent sections sharing the same effective background (soft / dark /
   plain — "plain" covers bare .section and .section--tight, both transparent)
   would otherwise stack their own padding into one oversized, undifferentiated
   gap — collapse it to a single gap regardless of which modifier is used. */
.section--soft + .section--soft,
.section--dark + .section--dark,
.section:not(.section--soft):not(.section--dark) + .section:not(.section--soft):not(.section--dark) {
  padding-top: 0;
}
.section--dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}
.section--dark .text-muted { color: var(--text-inverse-muted); }

/* Headings inherit dark-bg text color on dark surfaces */
.hero h1, .hero h2, .hero h3,
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4,
.cta-banner h1, .cta-banner h2, .cta-banner h3,
.product-hero h1, .product-hero h2, .product-hero h3,
.order-page-head h1, .order-page-head h2,
.article-head h1, .article-cta h4,
.on-dark h1, .on-dark h2, .on-dark h3 {
  color: var(--text-inverse);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-muted);
}
.section--dark .section-head p { color: var(--text-inverse-muted); }

.text-muted { color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent);
  color: #06201d;
}
.btn--primary:hover { background: #1fe3d2; }

.btn--outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover { border-color: var(--text); }

.on-dark .btn--outline,
.btn--outline-light {
  border-color: rgba(245, 248, 248, 0.28);
  color: var(--text-inverse);
}
.on-dark .btn--outline:hover,
.btn--outline-light:hover { border-color: var(--text-inverse); }

.btn--ghost {
  color: var(--text);
  padding-inline: 4px;
}
.btn--ghost svg { transition: transform .25s var(--ease); }
.btn--ghost:hover svg { transform: translateX(3px); }

.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 12, 14, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 248, 248, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--text-inverse);
}
.logo__mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo--brand { gap: 10px; }
/* Never let flex shrinking squash the brand marks out of proportion. */
.logo,
.logo__brandmark,
.logo__tpi,
.logo__pipe,
.logo__livox { flex-shrink: 0; }
.logo__brandmark { display: flex; align-items: center; gap: 9px; }
.logo__tpi { height: 22px; width: auto; display: block; }
.logo__pipe { width: 1px; height: 22px; background: #fff; display: inline-block; }
.logo__livox { height: 15px; width: auto; display: block; }
.logo__tag {
  white-space: nowrap;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--accent);
  border-left: 1px solid rgba(245,248,248,0.2);
  padding-left: 10px;
  margin-left: 2px;
}

.main-nav { display: flex; align-items: center; gap: 34px; }
/* On desktop, contact lives on the "Request a quote" button. The nav link is
   kept for the mobile menu, where that button is hidden. */
.main-nav > .nav-contact { display: none; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text-inverse-muted);
  transition: color .2s var(--ease);
}
.main-nav a:hover { color: var(--text-inverse); }

.nav-item { position: relative; }
.nav-item__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-inverse-muted);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.nav-item__trigger:hover { color: var(--text-inverse); }
.nav-item__chevron { transition: transform .2s var(--ease); flex-shrink: 0; }
.nav-item.is-open .nav-item__chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: -16px;
  min-width: 230px;
  background: #10171a;
  border: 1px solid rgba(245, 248, 248, 0.1);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 110;
}
@media (hover: hover) {
  .nav-item:hover .nav-dropdown,
  .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
}
.nav-item.is-open .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 9px;
  transition: background .15s var(--ease);
}
.nav-dropdown__link:hover { background: rgba(0, 212, 194, 0.08); }
.nav-dropdown__name { font-size: 14.5px; font-weight: 600; color: var(--text-inverse); }
.nav-dropdown__meta { font-size: 12px; color: var(--text-inverse-muted); }
.nav-dropdown__all {
  display: block;
  margin-top: 4px;
  padding: 10px 12px;
  border-top: 1px solid rgba(245, 248, 248, 0.08);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.lang-switch a,
.lang-switch span {
  color: var(--text-inverse-muted);
  padding: 4px 2px;
}
.lang-switch a:hover { color: var(--text-inverse); }
.lang-switch .is-current { color: var(--text-inverse); }
.lang-switch__sep { color: rgba(245,248,248,0.25); }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-inverse);
  background: rgba(245,248,248,0.06);
  border: 1px solid rgba(245,248,248,0.12);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.cart-btn:hover { background: rgba(245,248,248,0.12); border-color: rgba(245,248,248,0.24); }
.cart-btn__count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #06201d;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
}
.cart-btn__count[data-empty="true"] { display: none; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(245,248,248,0.12);
  background: rgba(245,248,248,0.06);
  color: var(--text-inverse);
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 900px 520px at 74% 8%, rgba(0, 212, 194, 0.14), transparent 62%),
    radial-gradient(ellipse 1500px 700px at 50% 115%, rgba(255, 255, 255, 0.05), transparent 60%),
    linear-gradient(180deg, #0d1316 0%, #090c0e 55%, #0a0e10 100%);
  color: var(--text-inverse);
  overflow: hidden;
  padding-block: 120px 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.55) 0.5px, transparent 0.5px);
  background-size: 26px 26px;
  opacity: 0.06;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__video-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 900px 520px at 74% 8%, rgba(0, 212, 194, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(9, 12, 14, 0.78) 0%, rgba(9, 12, 14, 0.5) 42%, rgba(9, 12, 14, 0.85) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  margin-top: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p.lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--text-inverse-muted);
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.hero__stat b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  color: var(--text-inverse);
}
.hero__stat span {
  font-size: 13px;
  color: var(--text-inverse-muted);
}
/* ---------- Stat strip ---------- */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 22px;
}
.strip__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__art {
  background: var(--bg-dark);
  border-radius: var(--radius-l);
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.about__art svg { width: 82%; }
.about__art img { width: 100%; height: 100%; object-fit: cover; }
.about__art--wide { aspect-ratio: 16/9; }
.about__copy p + p { margin-top: 16px; }
.about__copy p { color: var(--text-muted); font-size: 16px; }
.about__copy h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; margin-bottom: 22px; }

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.value-grid--4 { grid-template-columns: repeat(4, 1fr); }
.value-card b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  margin-bottom: 6px;
}
.value-card p { font-size: 14px; color: var(--text-muted); }

/* ---------- Livox stats ---------- */
.livox-stats {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.livox-stats--top { margin-top: 0; padding-top: 0; border-top: none; }
.livox-stats__head { max-width: 640px; }
.livox-stats__head h2, .livox-stats__head h3 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(22px, 2.6vw, 28px); color: var(--text-inverse); margin: 10px 0 14px; }
.livox-stats__row {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
  margin-top: 28px;
}
.livox-stats__row .value-grid { margin-top: 0; }
.livox-globe { display: flex; align-items: center; justify-content: center; aspect-ratio: 3/2; }
.livox-globe svg { width: 100%; max-width: 260px; height: auto; }
.livox-globe img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 68% 62% at center, #000 45%, transparent 92%);
  mask-image: radial-gradient(ellipse 68% 62% at center, #000 45%, transparent 92%);
}
@media (max-width: 900px) {
  .livox-stats__row { grid-template-columns: 1fr; }
  .livox-globe { order: -1; max-width: 420px; aspect-ratio: 3/2; margin: 0 auto; }
}

/* ---------- Technology ---------- */
.support-map {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 44px;
  align-items: center;
  max-width: 980px;
  margin: 36px auto 48px;
}
.support-map__figure svg { width: 100%; height: auto; display: block; }
.support-map__list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.support-map__group h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 6px;
}
.support-map__group p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}
@media (max-width: 720px) {
  .support-map { grid-template-columns: 1fr; }
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-m);
  overflow: hidden;
}
.tech-card {
  background: var(--bg-dark-2);
  padding: 34px 30px;
  transition: background .25s var(--ease);
}
.tech-card:hover { background: var(--bg-dark-3); }
.tech-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: rgba(0, 212, 194, 0.1);
  border: 1px solid rgba(0, 212, 194, 0.22);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.tech-card__icon svg { width: 22px; height: 22px; }
.tech-card__photo {
  margin: -34px -30px 22px;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.tech-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tech-card h3 {
  font-size: 17px;
  color: var(--text-inverse);
  margin-bottom: 10px;
}
.tech-card p {
  font-size: 14.5px;
  color: var(--text-inverse-muted);
}

.tech-banner {
  margin-top: 64px;
  border-radius: var(--radius-l);
  background: linear-gradient(120deg, rgba(0,212,194,0.12), rgba(0,212,194,0.02));
  border: 1px solid rgba(0,212,194,0.18);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.tech-banner h3 { color: var(--text-inverse); font-size: 22px; max-width: 480px; }
.tech-banner p { color: var(--text-inverse-muted); margin-top: 8px; max-width: 480px; }

/* ---------- Site links ---------- */
.site-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.site-link-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.site-link-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: transparent;
}
.site-link-card__thumb {
  aspect-ratio: 4/2.7;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.site-link-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .4s var(--ease);
}
.site-link-card:hover .site-link-card__thumb img { transform: scale(1.05); }
.site-link-card__body {
  padding: 20px 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-link-card__body h3 { font-size: 16px; margin: 0 0 3px; }
.site-link-card__domain {
  font-size: 13px;
  color: var(--text-muted);
}
.site-link-card__arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.site-link-card__arrow svg { width: 15px; height: 15px; }
.site-link-card:hover .site-link-card__arrow { background: rgba(0,212,194,0.1); border-color: rgba(0,212,194,0.3); }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: transparent;
}
.product-card__media {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  aspect-ratio: 1/0.82;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}
.product-card__media svg { width: 78%; }
.product-card__media img:not(.product-card__brand) {
  width: 85%;
  height: 85%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.product-card__media svg.product-card__brand {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 13px;
  width: auto;
  opacity: 0.55;
}
.product-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,194,0.12);
  border: 1px solid rgba(0,212,194,0.3);
  padding: 5px 10px;
  border-radius: 999px;
}
.product-card__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  background: var(--bg-soft);
}
.product-card__body .kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-dim);
}
.product-card__body h3 { font-size: 21px; margin-top: 2px; }
.product-card__body p.tagline { color: var(--text-muted); font-size: 14.5px; margin-top: 6px; }

.spec-mini {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.spec-mini div b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14.5px;
}
.spec-mini div span {
  font-size: 11.5px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card__footer {
  margin-top: 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.product-card__footer .btn { margin-top: 2px; }
.price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
}
.price span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--bg-dark);
  color: var(--text-inverse);
  border-radius: var(--radius-l);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 60%);
  opacity: 0.5;
}
.cta-banner__inner { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 36px); }
.cta-banner p { color: var(--text-inverse-muted); margin-top: 14px; max-width: 480px; margin-inline: auto; }
.cta-banner__actions { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-inverse-muted);
  padding-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(245,248,248,0.08);
}
.footer-brand p { margin-top: 16px; font-size: 14.5px; max-width: 280px; }
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-inverse);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul li + li { margin-top: 12px; }
.footer-col a { font-size: 14.5px; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--text-inverse); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 26px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(245,248,248,0.14);
  display: flex; align-items: center; justify-content: center;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Cart Drawer (structure now, logic in Phase 3) ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,12,14,0.55);
  backdrop-filter: blur(2px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,0.2);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__head h3 { font-size: 18px; }
.cart-drawer__close {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 10px 24px; }
.cart-drawer__foot { padding: 20px 24px 26px; border-top: 1px solid var(--border); }

.cart-empty {
  text-align: center;
  padding: 60px 10px;
  color: var(--text-muted);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-block: 22px;
  font-size: 13.5px;
  color: var(--text-inverse-muted);
}
.breadcrumb a:hover { color: var(--text-inverse); }
.breadcrumb span { opacity: 0.4; }
.breadcrumb .current { color: var(--text-inverse); }

/* ---------- Product hero (detail page) ---------- */
.product-hero {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding-bottom: 96px;
}
.product-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.product-hero__media {
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-l);
  aspect-ratio: 1/0.9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 30px;
}
.product-hero__media svg { width: 68%; }
.product-hero__badge {
  position: absolute;
  top: 22px;
  left: 22px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,212,194,0.1);
  border: 1px solid rgba(0,212,194,0.28);
  padding: 6px 12px;
  border-radius: 999px;
}
.product-hero h1 { font-size: clamp(32px, 4.2vw, 48px); margin-top: 14px; }
.product-hero p.tagline { font-size: 17px; color: var(--text-inverse-muted); margin-top: 16px; max-width: 460px; }

.hero-specs {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-specs div b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  color: var(--text-inverse);
}
.hero-specs div span {
  font-size: 12px;
  color: var(--text-inverse-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.buy-box {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(245,248,248,0.1);
}
.buy-box__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-inverse);
}
.buy-box__price span {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--text-inverse-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.price-vat {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 11.5px;
  color: var(--text-soft);
  margin-top: 3px;
}

/* ---------- Legal / prose pages ---------- */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: 22px; margin-top: 44px; margin-bottom: 14px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 16px; margin-top: 24px; margin-bottom: 8px; }
.legal p { color: var(--text-muted); margin-bottom: 12px; }
.legal ul { color: var(--text-muted); margin: 0 0 12px 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent-dim); text-decoration: underline; }
.legal .legal-meta { color: var(--text-soft); font-size: 13px; margin-bottom: 32px; }

/* ---------- Accessory card (e.g. cables) ---------- */
.accessory-lead {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.accessory-card {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px 32px;
  max-width: 780px;
  margin-inline: auto;
  background: var(--bg);
}
.accessory-card__media {
  width: 72px;
  height: 62px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: var(--radius-m);
}
.accessory-card__media svg { width: 48px; }
.accessory-card__body { flex: 1 1 220px; min-width: 220px; }
.accessory-card__body h3 { font-size: 17px; margin-bottom: 6px; }
.accessory-card__body p { font-size: 13.5px; color: var(--text-muted); }
.accessory-card__buy { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.accessory-card__price { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 17px; white-space: nowrap; }
.accessory-card__price span {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.accessory-card__note { width: 100%; font-size: 13px; color: var(--text-muted); }
.accessory-card__note.is-success { color: var(--accent-dim); }
.accessory-card .qty-stepper { border: 1.5px solid var(--text); }
.accessory-card .qty-stepper button { color: var(--text); }
.accessory-card .qty-stepper input { color: var(--text); }
@media (max-width: 640px) {
  .accessory-card { flex-direction: column; align-items: flex-start; }
  .accessory-card__buy { width: 100%; justify-content: space-between; }
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid rgba(245,248,248,0.18);
  border-radius: 999px;
  overflow: hidden;
}
.qty-stepper button {
  width: 38px; height: 40px;
  background: transparent;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-inverse);
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper button:hover { background: rgba(245,248,248,0.08); }
.qty-stepper input {
  width: 34px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-inverse);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
}
.buy-box__note {
  width: 100%;
  font-size: 13px;
  color: var(--text-inverse-muted);
  margin-top: 4px;
}
.buy-box__note.is-success { color: var(--accent); }

.buy-box--light {
  border-top-color: var(--border);
  justify-content: center;
}
.buy-box--light .buy-box__price { color: var(--text); }
.buy-box--light .buy-box__price span { color: var(--text-soft); }
.buy-box--light .qty-stepper { border: 1.5px solid var(--text); }
.buy-box--light .qty-stepper button { color: var(--text); }
.buy-box--light .qty-stepper input { color: var(--text); }
.buy-box--light .buy-box__note { color: var(--text-soft); }

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 16px 4px;
  font-size: 14.5px;
}
.spec-table th {
  font-weight: 500;
  color: var(--text-muted);
  width: 42%;
}
.spec-table td { font-family: 'Space Grotesk', sans-serif; font-weight: 500; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.detail-grid .section-head { margin-bottom: 28px; }

/* ---------- Feature list ---------- */
.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature-list li { display: flex; gap: 16px; }
.feature-list__icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-s);
  background: rgba(0,212,194,0.08);
  border: 1px solid rgba(0,212,194,0.2);
  color: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-list__icon svg { width: 18px; height: 18px; }
.feature-list b { display: block; font-size: 15px; margin-bottom: 3px; }
.feature-list p { font-size: 14px; color: var(--text-muted); }

/* ---------- Compare strip ---------- */
.compare-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.compare-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 24px;
  text-align: center;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.compare-card.is-current {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.compare-card svg { width: 64px; margin-inline: auto; margin-bottom: 14px; }
.compare-card h4 { font-size: 16px; }
.compare-card p { font-size: 13px; color: var(--text-muted); margin-top: 4px; margin-bottom: 14px; }

/* ---------- Compare table (full spec comparison) ---------- */
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody th { font-weight: 500; color: var(--text-muted); width: 30%; }
.compare-table td { font-family: 'Space Grotesk', sans-serif; font-weight: 500; }
.compare-table thead th { vertical-align: bottom; font-weight: 600; border-bottom: 1px solid var(--border); }
.compare-table thead .model-name { display: block; font-size: 16px; margin-bottom: 10px; }
.compare-table__thumb {
  width: 100%;
  max-width: 104px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
  background: #fff;
  border-radius: var(--radius-s);
}
.compare-table th.is-current, .compare-table td.is-current { background: rgba(0,212,194,0.06); }
.compare-table thead th.is-current .model-name { color: var(--accent); }

/* Full-lineup spec table (6 models) — wider, with product thumbnails. */
.lineup-table { min-width: 1080px; }
.lineup-table thead th { text-align: center; vertical-align: bottom; padding-bottom: 14px; }
.lineup-table thead th:first-child { text-align: left; }
.lineup-table td { text-align: center; font-size: 13px; line-height: 1.5; }
.lineup-table tbody th {
  width: 172px;
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}
.lineup-table__thumb {
  width: 100%;
  max-width: 116px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
  background: #fff;
  border-radius: var(--radius-s);
}
.lineup-table__name {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
}
.table-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.price--legacy {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Discontinued product: reference page, nothing to buy. */
.legacy-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg-soft, #f4f7f7);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  max-width: 460px;
  /* match the 40px the next section leaves below, so the box sits evenly
     between the product image and the copy underneath */
  margin: 40px auto 0;
}
.legacy-box__tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
}
.legacy-box p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
.legacy-box .btn { margin-top: 4px; }

.compare-table__badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}
.compare-table thead th.is-current .compare-table__badge { border-color: var(--accent); color: var(--accent); }

/* ---------- Cart lines (drawer + order page) ---------- */
.cart-line, .order-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 18px;
  border-bottom: 1px solid var(--border);
}
.cart-line__media {
  width: 56px;
  height: 48px;
  flex-shrink: 0;
  background: var(--bg-dark);
  border-radius: var(--radius-s);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  overflow: hidden;
}
.cart-line__media svg { width: 100%; height: 100%; }
.cart-line__media img {
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  max-width: none;
  max-height: none;
  margin: -6px;
  object-fit: cover;
}
.cart-line__info { flex: 1; min-width: 0; }
.cart-line__info b { display: block; font-size: 14.5px; }
.cart-line__info span { display: block; font-size: 12.5px; color: var(--text-soft); margin-top: 2px; }
.cart-line__qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
}
.cart-line__qty button:not(.cart-line__remove) {
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  background: transparent;
}
.cart-line__qty button:not(.cart-line__remove):hover { border-color: var(--text); }
.cart-line__remove {
  margin-left: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-soft);
  text-decoration: underline;
  border: none;
  background: none;
}
.cart-line__remove:hover { color: var(--text); }
.cart-line__total {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 14.5px;
}
.cart-subtotal b { font-family: 'Space Grotesk', sans-serif; font-size: 18px; }

/* ---------- Order page ---------- */
.order-page-head {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding-block: 56px;
}
.order-page-head h1 { font-size: clamp(28px, 3.6vw, 38px); margin-top: 10px; }

.order-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.order-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 32px;
}
.order-panel h2 { font-size: 19px; margin-bottom: 22px; }
.order-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 15px;
}
.order-total b { font-family: 'Space Grotesk', sans-serif; font-size: 22px; }
.order-total-note { font-size: 12.5px; color: var(--text-soft); margin-top: 10px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.form-field label .req { color: var(--accent-dim); }
.form-field input, .form-field textarea, .form-field select {
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  padding: 11px 14px;
  font-size: 14.5px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  transition: border-color .2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23697578' stroke-width='1.6'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.order-status {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-muted);
}
.order-status.is-success { color: var(--accent-dim); }
.order-status.is-error { color: #c0392b; }

.contact-form-panel {
  max-width: 1040px;
  margin: 40px auto 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: stretch;
}
.contact-form-panel__media {
  background: var(--bg-soft);
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}
.contact-form-panel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.4);
}
.contact-form-panel__body { padding: 36px; }
.contact-form-panel .section-head { margin-bottom: 24px; }
@media (max-width: 780px) {
  .contact-form-panel { grid-template-columns: 1fr; }
  .contact-form-panel__media { height: 220px; }
}

/* ---------- Sub-nav (deep product page) ---------- */
/* Anchor targets need scroll-margin-top so the sticky header + subnav
   (76px + ~54px) don't scroll on top of and hide the target section. */
#product, #specs, #applications, #faq, #buy, #downloads, #integrations, #contact-section,
#produkt, #specyfikacja, #zastosowania, #kup, #do-pobrania, #integracje, #kontakt-sekcja {
  scroll-margin-top: 146px;
}
#lead-form { scroll-margin-top: 96px; }
.subnav {
  position: sticky;
  top: 76px;
  z-index: 90;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.subnav__inner {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 54px;
  overflow-x: auto;
}
.subnav a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.subnav a:hover { color: var(--text); background: var(--bg-soft); }
.subnav a.is-active { color: var(--text); background: var(--bg-soft); }
.subnav__cta {
  margin-left: auto;
  flex-shrink: 0;
}

/* ---------- Light product hero (deep page) ---------- */
.hero-light {
  background: linear-gradient(180deg, #dce7ea 0%, #eef3f4 45%, #ffffff 100%);
  text-align: center;
  padding-block: 64px 40px;
}
.hero-light .breadcrumb { justify-content: center; color: var(--text-soft); }
.hero-light .breadcrumb a:hover { color: var(--text); }
.hero-light .eyebrow { justify-content: center; }
.hero-light h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  margin-top: 12px;
  color: var(--text);
}
.hero-light .tagline {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 10px;
}
.hero-light__actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.hero-light__art {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.hero-light__art svg { width: min(420px, 80vw); height: auto; }
.hero-light__art img { width: min(340px, 70vw); height: auto; border-radius: var(--radius-l); }
.hero-light__art-frame { position: relative; display: inline-block; }
.hero-light__art-frame img { display: block; }
.hero-light__art-frame svg.hero-light__brand {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 68px;
  height: auto;
  opacity: 0.55;
}

/* ---------- Real photo / video feature media ---------- */
.feature-block__visual img,
.feature-block__visual video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scenario-row__media video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-l); }
.scenario-row__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-l); }
.media-caption {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--text-soft);
  text-align: center;
  margin-top: 10px;
}
.accessory-card__media img { width: 56px; height: auto; }

/* ---------- Product detail gallery ---------- */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
.detail-gallery__tile { text-align: center; }
.detail-gallery__tile img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-l);
  border: 1px solid var(--border);
  background: var(--bg-dark);
  display: block;
}
.detail-gallery__tile span {
  display: block;
  margin-top: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .detail-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Intro + key specs ---------- */
.intro-block {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding-block: 64px 8px;
}
.intro-block p { font-size: 16.5px; color: var(--text-muted); }
.intro-block sup { color: var(--accent-dim); font-size: 11px; }

.key-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
  max-width: 980px;
  margin: 40px auto 0;
  padding-bottom: 72px;
  text-align: center;
}
.key-specs div b {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  line-height: 1.3;
}
.key-specs div span {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 6px;
}
.key-specs sup { font-size: 9px; }

/* ---------- Feature block (alternating heading/visual) ---------- */
.feature-block {
  padding-block: 40px;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.feature-block h2 {
  font-size: clamp(22px, 2.8vw, 30px);
}
.feature-block h2 sup { font-size: 12px; color: var(--accent-dim); }
.feature-block .rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 18px auto;
}
.feature-block p {
  font-size: 15px;
  color: var(--text-muted);
}
.feature-block__visual {
  max-width: 1080px;
  margin: 36px auto 0;
  background: #05070a;
  border-radius: var(--radius-l);
  aspect-ratio: 16/8;
  overflow: hidden;
  position: relative;
}
.feature-block__visual svg { width: 100%; height: 100%; }
.feature-block__visual figcaption {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 12px;
  color: rgba(245,248,248,0.6);
  font-family: 'Space Grotesk', sans-serif;
}

.feature-block--split .feature-block__visual {
  aspect-ratio: 16/6.5;
  background: var(--bg-soft);
}

.feature-block__visual--auto {
  aspect-ratio: auto;
  overflow: visible;
  background: none;
}
.feature-block__visual--auto img,
.feature-block__visual--auto video {
  height: auto;
  border-radius: var(--radius-l);
}

/* ---------- Scenario rows ---------- */
.scenario-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-block: 44px;
  border-top: 1px solid var(--border);
}
.scenario-row:first-of-type { border-top: none; }
.scenario-row:nth-of-type(even) .scenario-row__media { order: -1; }
.scenario-row__media {
  aspect-ratio: 4/3;
  background: var(--bg-dark);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.scenario-row__media svg { width: 100%; height: 100%; }
/* Panoramic (2:1) tiles: size the box to its content instead of forcing 4/3.
   Declared after .scenario-row__media so it wins the cascade. */
.scenario-row__media--wide {
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 14px;
  padding: 18px;
}
.scenario-row__media--wide img,
.scenario-row__media--wide video { width: 100%; max-height: none; }
/* Two visuals stacked in a square box, full-bleed, no captions. */
.scenario-row__media--stack {
  aspect-ratio: 1/1;
  display: grid;
  /* Explicit track, else the base rule's justify-content:center leaves an
     auto column that shrinks to the image's intrinsic width. */
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  align-items: stretch;
  justify-items: stretch;
  justify-content: stretch;
  gap: 14px;
  padding: 18px;
}
.scenario-row__media--stack img,
.scenario-row__media--stack video {
  width: 100%;
  height: 100%;
  /* Grid items default to min-height:auto, which would let the intrinsic
     image height push past the square aspect-ratio. */
  min-height: 0;
  max-height: none;
  object-fit: cover;
  border-radius: var(--radius-m);
  display: block;
}
/* Single panoramic video: fit it fully instead of cover-cropping into 4/3. */
.scenario-row__media--pano { aspect-ratio: auto; padding: 18px; }
.scenario-row__media--pano video {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-m);
}
.scenario-row h3 { font-size: 21px; }
.scenario-row .eyebrow { margin-bottom: 8px; }
.scenario-row p { font-size: 15px; color: var(--text-muted); margin-top: 12px; }
.scenario-row h4 { font-size: 15.5px; font-weight: 600; margin-top: 22px; }
.scenario-row h4 + p { margin-top: 8px; }
.scenario-row__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-dim);
}
.scenario-row__link:hover { color: var(--accent); }

/* ---------- LiDAR intro (homepage, between Products and Technology) ---------- */
.explain-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 6px;
}
.explain-intro__text p {
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--text-muted);
}
.explain-intro__text strong { color: var(--text); font-weight: 500; }
.explain-intro__art img {
  width: 100%;
  display: block;
}
.explain-rows { margin-top: 6px; }
.explain-rows .scenario-row__media {
  background: #05070a;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-m);
}
.explain-rows .scenario-row__media img,
.explain-rows .scenario-row__media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.explain-rows .scenario-row__media--blend {
  background: transparent;
  aspect-ratio: auto;
  border-radius: 0;
}
.explain-rows .scenario-row__media--blend img {
  width: 50%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.explain-rows h3 {
  font-size: clamp(19px, 2.1vw, 23px);
  margin-bottom: 14px;
}
.explain-rows p { font-size: 15.5px; color: var(--text-muted); line-height: 1.72; }
.explain-rows p + p { margin-top: 14px; }
.explain-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.explain-chips span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--accent-dim);
  background: rgba(0,212,194,0.08);
  border: 1px solid rgba(0,212,194,0.24);
  padding: 5px 11px;
  border-radius: 999px;
}
.explain-apps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.explain-apps--closing {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.explain-apps figure {
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-dark);
}
.explain-apps img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.explain-apps figcaption {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 10px 12px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: none;
}
@media (max-width: 980px) {
  .explain-intro { grid-template-columns: 1fr; gap: 28px; }
  .explain-intro__art { order: -1; max-width: 420px; margin-inline: auto; }
  .explain-apps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .explain-apps { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footnotes ---------- */
.footnotes {
  max-width: 860px;
  margin-inline: auto;
  padding-block: 56px;
  border-top: 1px solid var(--border);
}
.footnotes h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.footnotes ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.footnotes li { font-size: 12.5px; color: var(--text-soft); line-height: 1.6; }

/* ---------- Proven integrations ---------- */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.integration-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.integration-card__media {
  background: var(--bg-dark);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.integration-card__media svg { width: 100%; height: 100%; }
.integration-card__media img { width: 100%; height: 100%; object-fit: cover; margin: -28px; }
.integration-card__body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.integration-card__body .kicker {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent-dim);
}
.integration-card__body h3 { font-size: 19px; margin-top: 4px; }
.integration-card__body p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  flex: 1;
}
.integration-card__link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  align-self: flex-start;
}
.integration-card__link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.integration-card__link:hover svg { transform: translate(2px, -2px); }
.integration-note {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-top: 20px;
}

/* ---------- News / press grid ---------- */
.news-subhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-top: 8px;
  flex-wrap: wrap;
}
.news-subhead h2 { font-size: 22px; }
.news-subhead span { font-size: 13px; color: var(--text-soft); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 20px;
}
.press-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.press-card:hover { border-color: var(--text-soft); box-shadow: var(--shadow-card); }
.press-card__media { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-dark); }
.press-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.press-card__media--placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg-dark); color: var(--accent); }
.press-card__media--placeholder svg { width: 34px; height: 34px; opacity: .8; }
.press-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.press-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  color: var(--text-soft);
}
.press-card__tag {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-dim);
  background: rgba(0,212,194,0.09);
  border: 1px solid rgba(0,212,194,0.22);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  text-transform: uppercase;
}
.press-card h3 {
  font-size: 16.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.press-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.press-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  align-self: flex-start;
  margin-top: 4px;
}
.press-card__link svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.press-card__link:hover svg { transform: translate(2px, -2px); }

.news-feature {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg);
  margin-bottom: 28px;
}
.news-feature__media { width: 100%; aspect-ratio: 16 / 8; overflow: hidden; background: var(--bg-dark); }
.news-feature__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-feature__body { padding: 40px 44px 44px; }
.news-feature__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 14px;
}
.news-feature__tag {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-dim);
  background: rgba(0,212,194,0.09);
  border: 1px solid rgba(0,212,194,0.22);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
}
.news-feature h2 { font-size: 28px; line-height: 1.25; max-width: 820px; margin-bottom: 14px; }
.news-feature__lead { font-size: 17px; color: var(--text-muted); max-width: 760px; margin-bottom: 28px; line-height: 1.55; }
.news-feature__prose { max-width: 760px; }
.news-feature__prose h4 { font-size: 15px; font-family: 'Space Grotesk', sans-serif; margin: 22px 0 8px; }
.news-feature__prose p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.news-feature__source { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-soft); font-family: 'Space Grotesk', sans-serif; }

.news-grid[data-limit] .press-card.is-extra { display: none; }
.news-grid.is-expanded .press-card.is-extra { display: flex; }
.news-more-wrap { display: flex; justify-content: center; margin: -6px 0 40px; }
.news-more-wrap.is-hidden { display: none; }
.news-more-btn { display: inline-flex; align-items: center; gap: 8px; }
.news-more-btn svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.news-more-btn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ---------- Own posts: filters + cards ---------- */
.post-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.post-filters button {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.post-filters button:hover { border-color: var(--text-soft); color: var(--text); }
.post-filters button.is-active { background: var(--bg-dark); border-color: var(--bg-dark); color: var(--text-inverse); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.post-card:hover { border-color: var(--text-soft); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.post-card.is-hidden { display: none; }
.post-card__media { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-dark); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.045); }
.post-card__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(9,12,14,.28); }
.post-card__play span { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; }
.post-card__play svg { width: 17px; height: 17px; fill: var(--bg-dark); margin-left: 3px; }
.post-card__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  color: var(--text-soft);
  flex-wrap: wrap;
}
.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--accent-dim);
  background: rgba(0,212,194,.09);
  border: 1px solid rgba(0,212,194,.22);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  text-transform: uppercase;
}
.post-tag svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.post-tag--fill svg { fill: currentColor; stroke: none; }
.post-card h3 {
  font-size: 16.5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  align-self: flex-start;
  margin-top: 2px;
}
.post-card__more svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.post-card:hover .post-card__more svg { transform: translateX(3px); }
.post-empty { padding: 40px 0; color: var(--text-soft); font-size: 14.5px; }

/* ---------- Article page ---------- */
.article-head {
  background: var(--bg-dark);
  color: var(--text-inverse);
  padding: 52px 0 128px;
}
.article-head .breadcrumb a, .article-head .breadcrumb span { color: var(--text-inverse-muted); }
.article-head__meta {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  color: var(--text-inverse-muted);
  margin: 18px 0 16px;
  flex-wrap: wrap;
}
.article-head h1 { font-size: clamp(28px, 3.5vw, 42px); line-height: 1.16; max-width: 900px; }
.article-head__lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--text-inverse-muted);
  max-width: 760px;
  margin-top: 18px;
  font-weight: 300;
}
.article-cover {
  margin-top: -96px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-dark-2);
  aspect-ratio: 16 / 7;
  box-shadow: var(--shadow-card-hover);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 64px;
  align-items: start;
  margin-top: 52px;
}
.article-prose { max-width: 740px; }
.article-prose > p { font-size: 16.5px; color: var(--text-muted); line-height: 1.78; margin-bottom: 18px; }
.article-prose > p:first-of-type { font-size: 18px; color: var(--text); line-height: 1.7; }
.article-prose h2 { font-size: 24px; margin: 40px 0 14px; letter-spacing: -.02em; }
.article-prose h3 { font-size: 18px; margin: 30px 0 10px; }
.article-prose strong { color: var(--text); font-weight: 600; }
.article-prose ul { margin: 0 0 18px; padding-left: 20px; list-style: none; }
.article-prose ul li {
  position: relative;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 9px;
  padding-left: 4px;
}
.article-prose ul li::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.article-figure { margin: 32px 0; }
.article-figure img { width: 100%; border-radius: var(--radius-m); display: block; }
.article-figure figcaption { font-size: 12.5px; color: var(--text-soft); margin-top: 10px; font-family: 'Space Grotesk', sans-serif; }
.article-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-dark);
  margin: 32px 0;
}
.article-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-figure .article-embed { margin: 0; }

/* Click-to-load YouTube facade: nothing is requested from Google until the
   visitor presses play, so the page sets no third-party cookies on load. */
.video-embed {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-dark);
  cursor: pointer;
}
.video-embed img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-embed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9,12,14,0) 45%, rgba(9,12,14,.55) 100%);
  transition: background .25s var(--ease);
}
.video-embed__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.video-embed__play svg { width: 24px; height: 24px; fill: var(--bg-dark); margin-left: 4px; }
.video-embed:hover .video-embed__play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); }
.video-embed:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.video-embed__label {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.5px;
  color: var(--text-inverse);
  text-shadow: 0 1px 4px rgba(9,12,14,.6);
  max-width: calc(100% - 36px);
  text-align: left;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .video-embed__play, .video-embed::after { transition: none; }
  .video-embed:hover .video-embed__play { transform: translate(-50%, -50%); }
}
.article-source {
  margin-top: 36px;
  padding: 16px 20px;
  border-left: 2px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font-size: 13px;
  color: var(--text-muted);
}
.article-source a { color: var(--accent-dim); font-weight: 500; }

.article-rail { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }
.article-toc { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 20px 22px; }
.article-toc h4 { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 14px; }
.article-toc a {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--border);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.article-toc a:hover { color: var(--text); border-left-color: var(--accent); }
.article-cta { border-radius: var(--radius-m); background: var(--bg-dark); color: var(--text-inverse); padding: 22px; }
.article-cta h4 { font-size: 15px; margin-bottom: 8px; }
.article-cta p { font-size: 13px; color: var(--text-inverse-muted); line-height: 1.55; margin-bottom: 16px; }
.article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.article-share a, .article-share button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.article-share a:hover, .article-share button:hover { border-color: var(--accent); color: var(--accent-dim); }
.article-share svg { width: 14px; height: 14px; }

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
  .article-rail { position: static; flex-direction: row; flex-wrap: wrap; }
  .article-toc { display: none; }
  .article-cta { flex: 1; min-width: 260px; }
}
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-head { padding-bottom: 96px; }
  .article-cover { margin-top: -60px; aspect-ratio: 16 / 10; }
}

/* ---------- Support page ---------- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.support-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-s);
  background: var(--bg-dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.support-card__icon svg { width: 22px; height: 22px; }
.support-card__icon--photo {
  width: 88px;
  height: 88px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 6px;
  overflow: hidden;
}
.support-card__icon--photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.support-card h3 { font-size: 17px; }
.support-card p { font-size: 14px; color: var(--text-muted); flex: 1; }
.support-card__links { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.support-card__links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.support-card__links a svg { width: 13px; height: 13px; }
.support-card__links a:hover { color: var(--accent-dim); }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tool-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  align-items: center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tool-card:hover { border-color: var(--text-soft); box-shadow: var(--shadow-card); }
.tool-card__thumb {
  width: 44%;
  min-width: 160px;
  aspect-ratio: 3 / 2;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-dark);
}
.tool-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tool-card__body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tool-card__body p { font-size: 13.5px; color: var(--text-muted); }
.tool-card__body h3 { font-size: 16.5px; line-height: 1.3; }
.tool-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}
.tool-card__link svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.tool-card__link:hover { color: var(--accent-dim); }
.tool-card__link:hover svg { transform: translate(2px, -2px); }

.resource-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.resource-row:last-child { border-bottom: none; }
.resource-row__label b { display: block; font-size: 15px; }
.resource-row__label span { font-size: 13px; color: var(--text-soft); }

/* ---------- Full spec table (grouped) ---------- */
.spec-group + .spec-group { margin-top: 40px; }
.spec-group__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dim);
  margin-bottom: 6px;
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding-block: 6px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15.5px;
  font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--accent-dim);
  flex-shrink: 0;
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 4px 20px;
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 680px;
}

/* ---------- Responsive ---------- */
/* The brand tag is the first thing to drop when the header runs out of room —
   German needs ~1215px to fit it alongside the full nav. */
@media (max-width: 1279px) {
  .logo__tag { display: none; }
  /* Tighten spacing so the full nav keeps fitting well below 1280 instead of
     collapsing to the hamburger early. */
  .main-nav { gap: 22px; }
  .main-nav a, .nav-item__trigger { font-size: 14px; }
  .header-actions { gap: 14px; }
}

/* Narrow phones: tighten header spacing rather than squashing the brand. */
@media (max-width: 430px) {
  .site-header__inner { gap: 12px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 380px) {
  /* 24px each side costs 15% of a 320px screen — give it back. */
  .container { padding-inline: 16px; }
  .site-header__inner { gap: 8px; }
  .header-actions { gap: 8px; }
  .logo__brandmark { gap: 7px; }
  .lang-switch { gap: 5px; font-size: 12px; }
  .lang-switch .lang-switch__sep { display: none; }
  .cart-btn,
  .nav-toggle { width: 34px; height: 34px; }
  /* keep the open menu's gutter aligned with the tightened container */
  .main-nav.is-open { padding-inline: 16px; }
  /* 36px of padding leaves too little room for the form fields at 320px */
  .contact-form-panel__body { padding: 20px; }
}

/* Collapse the nav to the hamburger only once it genuinely stops fitting:
   with the tightened spacing above, the widest language (DE) needs ~1010px. */
@media (max-width: 1023px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions > .btn--primary { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 99;
    padding: 10px 24px 24px;
    background: rgba(9, 12, 14, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(245, 248, 248, 0.08);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .main-nav.is-open a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid rgba(245, 248, 248, 0.06);
  }
  .main-nav.is-open > .nav-contact { display: block; }
  .nav-item { width: 100%; }
  .nav-item__trigger {
    width: 100%;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid rgba(245, 248, 248, 0.06);
  }
  .nav-dropdown {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(245, 248, 248, 0.03);
    padding: 4px 0 8px;
  }
  .nav-item.is-open .nav-dropdown { display: flex; flex-direction: column; }
  .main-nav.is-open .nav-dropdown a { border-bottom: none; padding: 9px 12px; }
}

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 320px; margin-inline: auto; }
  .about { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .site-links { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-hero__inner { grid-template-columns: 1fr; }
  .product-hero__media { order: -1; max-width: 420px; margin-inline: auto; }
  .detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .compare-strip { grid-template-columns: 1fr; }
  .order-layout { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .key-specs { grid-template-columns: 1fr 1fr; }
  .scenario-row { grid-template-columns: 1fr; gap: 24px; }
  .scenario-row:nth-of-type(even) .scenario-row__media { order: 0; }
}
@media (max-width: 640px) {
  .section { padding-block: 76px; }
  .value-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .site-links { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .strip__inner { justify-content: flex-start; }
  .cta-banner { padding: 44px 24px; }
  .hero { padding-block: 96px 64px; }
  .hero-specs { gap: 20px; }
  .key-specs { grid-template-columns: 1fr; }
  .subnav { top: 0; }
  .buy-box { flex-direction: column; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .order-panel { padding: 22px; }
  .integration-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .tool-card { flex-direction: column; align-items: stretch; }
  .tool-card__thumb { width: 100%; min-width: 0; }
  .news-feature__body { padding: 28px 22px 32px; }
  .news-feature h2 { font-size: 22px; }
  .news-feature__media { aspect-ratio: 4 / 3; }
  .resource-row { flex-direction: column; align-items: flex-start; }
}
