/* ============================================================
   SEMICONSOFT - design tokens & components
   Deep-navy corporate anchor &middot; spectral interference accent
   ============================================================ */

:root,
[data-theme='light'] {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Surfaces */
  --color-bg: #f7f9fb;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfe;
  --color-surface-offset: #eef2f7;
  --color-surface-offset-2: #e7edf4;
  --color-surface-dynamic: #dde5ee;
  --color-divider: #e3e9f0;
  --color-border: #d2dbe5;

  /* Text */
  --color-text: #0e2138;
  --color-text-muted: #53647b;
  --color-muted: var(--color-text-muted);
  --color-text-faint: #a3b1c2;
  --color-text-inverse: #f5f8fb;

  /* Primary - instrument blue */
  --color-primary: #14509f;
  --color-primary-hover: #0f3f80;
  --color-primary-active: #0b3062;
  --color-primary-highlight: #d8e5f6;

  /* Navy hero scope */
  --navy-bg: #071120;
  --navy-surface: #0d1a2d;
  --navy-text: #dce5f0;
  --navy-muted: #91a4bc;
  --navy-border: rgba(220, 229, 240, 0.14);

  /* Spectral accent - the interference rainbow */
  --gradient-spectrum: linear-gradient(
    90deg,
    #2563c4 0%,
    #2fb6ce 26%,
    #66c178 50%,
    #efc93f 74%,
    #e2593f 100%
  );

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.25 0.03 250 / 0.06), 0 2px 8px oklch(0.25 0.03 250 / 0.04);
  --shadow-md: 0 2px 4px oklch(0.25 0.03 250 / 0.06), 0 8px 24px oklch(0.25 0.03 250 / 0.07);
  --shadow-lg: 0 4px 8px oklch(0.25 0.03 250 / 0.08), 0 16px 48px oklch(0.25 0.03 250 / 0.1);

  --content-narrow: 640px;
  --content-default: 1040px;
  --content-wide: 1200px;

  --font-display: 'Switzer', 'Inter', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;
}

[data-theme='dark'] {
  --color-bg: #0a1322;
  --color-surface: #101c2f;
  --color-surface-2: #13203496;
  --color-surface-offset: #16243a;
  --color-surface-offset-2: #1a2941;
  --color-surface-dynamic: #223350;
  --color-divider: #1b2a41;
  --color-border: #2b3d58;

  --color-text: #d3dce9;
  --color-text-muted: #8fa1b8;
  --color-muted: var(--color-text-muted);
  --color-text-faint: #5c6d84;
  --color-text-inverse: #0e2138;

  --color-primary: #6ea5ee;
  --color-primary-hover: #8ab6f2;
  --color-primary-active: #a9c9f5;
  --color-primary-highlight: #1c3252;

  --navy-bg: #060e1a;
  --navy-surface: #0b1727;
  --navy-text: #dce5f0;
  --navy-muted: #91a4bc;
  --navy-border: rgba(220, 229, 240, 0.14);

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
}

/* ============ layout helpers ============ */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-8));
}
.container--wide {
  max-width: var(--content-wide);
}

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.section--tight {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}
.section--offset {
  background: var(--color-surface-offset);
}

/* Spectral hairline - the brand divider */
.spectrum-line {
  height: 3px;
  border: none;
  background: var(--gradient-spectrum);
  border-radius: var(--radius-full);
}
.spectrum-line--short {
  width: 56px;
}

/* Eyebrow labels */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-4);
}

.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}
.section-intro {
  color: var(--color-text-muted);
  max-width: 58ch;
}

/* ============ header ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow var(--transition-interactive),
    border-color var(--transition-interactive);
}
.header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
}
.brand__word {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand__word span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav__item {
  position: relative;
  padding-block: var(--space-2);
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}
.nav a:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.nav a:active {
  background: var(--color-surface-offset-2);
}
.nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 80;
}
.nav__menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-muted);
}
.nav__item--dropdown:hover .nav__menu,
.nav__item--dropdown:focus-within .nav__menu {
  display: grid;
  gap: var(--space-1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

/* ============ buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
}
.btn--primary:active {
  background: var(--color-primary-active);
}
[data-theme='dark'] .btn--primary {
  color: #0a1322;
}
.btn--ghost {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-offset);
}
.btn--inverse {
  background: rgba(220, 229, 240, 0.08);
  color: var(--navy-text);
  border: 1px solid var(--navy-border);
}
.btn--inverse:hover {
  background: rgba(220, 229, 240, 0.16);
}
.btn--light {
  background: #f5f8fb;
  color: #0e2138;
}
.btn--light:hover {
  background: #dce5f0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
}
.link-arrow:hover {
  color: var(--color-primary-hover);
}
.link-arrow:hover svg {
  transform: translateX(3px);
}
.link-arrow svg {
  transition: transform var(--transition-interactive);
}

/* ============ hero ============ */
.hero {
  background: var(--navy-bg);
  color: var(--navy-text);
  position: relative;
  overflow: hidden;
}
.hero::after {
  /* spectral hairline at the hero's base */
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  background: var(--gradient-spectrum);
  opacity: 0.9;
}
.hero__media {
  position: absolute;
  inset: 0;
  background: url('./assets/hero-wafer.jpg') right center / cover no-repeat;
}
.hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    var(--navy-bg) 0%,
    rgba(7, 17, 32, 0.92) 34%,
    rgba(7, 17, 32, 0.55) 58%,
    rgba(7, 17, 32, 0.15) 100%
  );
}
.hero__inner {
  position: relative;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32));
  max-width: 620px;
}
.hero .eyebrow {
  color: #7fc4dd;
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: var(--space-6);
}
.hero__sub {
  font-size: var(--text-base);
  color: var(--navy-muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}
.hero__sub strong {
  color: var(--navy-text);
  font-weight: 600;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: clamp(var(--space-12), 7vw, var(--space-20));
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(var(--space-6), 4vw, var(--space-12));
  justify-content: start;
  border-top: 1px solid var(--navy-border);
  padding-top: var(--space-6);
}
.stat__value {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 650;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: var(--text-xs);
  color: var(--navy-muted);
  margin-top: var(--space-1);
}

/* ============ industries band ============ */
.industries {
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.industries__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-8);
  padding-block: var(--space-6);
}
.industries__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.industries ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}
.industries li {
  font-size: var(--text-sm);
  font-weight: 550;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ============ product cards ============ */
.products__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.pcard {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.09);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}
.pcard:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.pcard--feature {
  grid-column: span 7;
  flex-direction: row;
  gap: var(--space-8);
  align-items: center;
}
.pcard--half {
  grid-column: span 5;
}
.pcard--third {
  grid-column: span 4;
}
.pcard__img {
  background: linear-gradient(180deg, #fdfdfe, #f0f4f9);
  border-radius: calc(var(--radius-lg) - var(--space-2));
  display: grid;
  place-items: center;
  padding: var(--space-4);
  min-height: 180px;
}
[data-theme='dark'] .pcard__img {
  background: linear-gradient(180deg, #e8edf4, #d4dde9);
}
.pcard--feature .pcard__img {
  flex: 0 0 44%;
  align-self: stretch;
}
.pcard__img img {
  max-height: 230px;
  width: auto;
  object-fit: contain;
}
.pcard--third .pcard__img {
  min-height: 150px;
  margin-bottom: var(--space-5);
}
.pcard--third .pcard__img img {
  max-height: 130px;
}
.pcard__tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-2);
}
.pcard h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}
.pcard p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.pcard .link-arrow {
  margin-top: auto;
}

/* configurations strip */
.configs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.config {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.09);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
}
.config:hover {
  box-shadow: var(--shadow-sm);
  border-color: oklch(from var(--color-text) l c h / 0.18);
}
.config strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
}
.config span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.config svg {
  flex-shrink: 0;
  color: var(--color-primary);
}

/* ============ split sections (software / technology) ============ */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.split__media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.09);
  background: var(--color-surface);
}
.split__media--plain {
  box-shadow: none;
  border: none;
  background: transparent;
  overflow: visible;
}
.split__media img {
  width: 100%;
}
.feature-list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.feature-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.feature-list li strong {
  color: var(--color-text);
  font-weight: 600;
}
.feature-list svg {
  color: var(--color-primary);
  margin-top: 2px;
}

/* ============ applications ============ */
.apps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.acard {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-text) l c h / 0.09);
  background: var(--color-surface);
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 96px;
}
.acard:hover {
  box-shadow: var(--shadow-md);
}
.acard:hover img {
  transform: scale(1.03);
}
.acard__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-offset);
}
.acard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.acard__body {
  padding: var(--space-5);
  display: flex;
  flex: 1;
  flex-direction: column;
}
.acard h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.acard p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
}
.acard .btn {
  margin-top: var(--space-4);
}
.apps__grid .acard .btn--primary {
  color: var(--color-primary);
  background: transparent;
  border: 1px solid var(--color-primary);
}
.apps__grid .acard .btn--primary:hover,
.apps__grid .acard .btn--primary:focus-visible,
.apps__grid .acard .btn--primary:active {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}
[data-theme='dark'] .apps__grid .acard .btn--primary:hover,
[data-theme='dark'] .apps__grid .acard .btn--primary:focus-visible,
[data-theme='dark'] .apps__grid .acard .btn--primary:active {
  color: #0a1322;
}
.apps__more {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}
.apps__more h3 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip {
  font-size: var(--text-xs);
  font-weight: 550;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
}
.chip:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.application-jump-row {
  margin-top: var(--space-6);
}
.page-hero .application-jump-row .chip {
  color: var(--navy-text);
  border-color: var(--navy-border);
  background: rgba(220, 229, 240, 0.08);
}
.page-hero .application-jump-row .chip:hover,
.page-hero .application-jump-row .chip:focus-visible {
  color: #0e2138;
  border-color: transparent;
  background: #f5f8fb;
}

/* ============ support / why ============ */
.why__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: start;
}
.why__points {
  display: grid;
  gap: var(--space-6);
}
.why-point {
  padding-left: var(--space-5);
  border-left: 2px solid var(--color-divider);
}
.why-point strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.why-point p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.quote-card {
  background: var(--navy-bg);
  color: var(--navy-text);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 4vw, var(--space-12));
  position: relative;
  overflow: hidden;
}
.quote-card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--gradient-spectrum);
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}
.quote-card figcaption {
  font-size: var(--text-sm);
  color: var(--navy-muted);
}

/* ============ CTA band ============ */
.cta {
  background: var(--navy-bg);
  color: var(--navy-text);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--gradient-spectrum);
}
.cta__inner {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(var(--space-8), 6vw, var(--space-16));
  align-items: center;
}
.cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
}
.cta p {
  color: var(--navy-muted);
  font-size: var(--text-base);
  max-width: 48ch;
}
.cta__actions {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}
.cta__contact {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.cta__contact a {
  color: var(--navy-text);
  text-decoration: none;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.cta__contact a:hover {
  color: #7fc4dd;
}
.cta__contact svg {
  color: var(--navy-muted);
}

/* ============ footer ============ */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 32ch;
  margin-top: var(--space-4);
}
.footer h4 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.footer ul {
  display: grid;
  gap: var(--space-2);
}
.footer ul a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer ul a:hover {
  color: var(--color-primary);
}
.footer__bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============ scroll reveal ============ */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-pending {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
}

/* ============ responsive ============ */
@media (max-width: 1024px) {
  .products__grid {
    gap: var(--space-4);
  }
  .pcard--feature {
    grid-column: span 12;
  }
  .pcard--half {
    grid-column: span 12;
  }
  .pcard--third {
    grid-column: span 4;
  }
  .configs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-divider);
    padding: var(--space-4);
    gap: var(--space-1);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open {
    display: flex;
  }
  .nav a {
    padding: var(--space-3) var(--space-4);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav__menu {
    position: static;
    display: grid;
    min-width: 0;
    padding: 0 0 0 var(--space-4);
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .nav__menu a {
    min-height: 40px;
    padding-block: var(--space-2);
  }
  .nav-burger {
    display: grid;
  }
  .header .btn--primary {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split--media-last .split__media {
    order: 2;
  }
  .why__grid {
    grid-template-columns: 1fr;
  }
  .cta__inner {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .pcard--feature {
    flex-direction: column;
    align-items: stretch;
  }
  .pcard--feature .pcard__img {
    flex: none;
  }
  .apps__grid {
    grid-template-columns: 1fr;
  }
  .pcard--third {
    grid-column: span 12;
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  .configs {
    grid-template-columns: 1fr;
  }
}

/* Placeholder keeps space while the shared header loads (prevents layout jump) */
[data-include='header'] {
  min-height: 64px;
}

/* ============================================================
   INTERIOR PAGES
   ============================================================ */

/* --- Page hero (compact navy band for interior pages) --- */
.page-hero {
  background: var(--navy-bg);
  color: var(--navy-text);
  padding: calc(var(--space-16) + 64px) 0 var(--space-12);
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--gradient-spectrum);
}
.page-hero .eyebrow { color: var(--spectrum-cyan, #2fb6ce); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: var(--space-3) 0 var(--space-4);
  max-width: 18ch;
}
.page-hero p.lede {
  font-size: var(--text-md);
  color: var(--navy-muted);
  max-width: 58ch;
  line-height: 1.6;
}
.breadcrumb {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-muted);
}
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--navy-text); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* --- Prose (long-form article content) --- */
.prose {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: var(--space-10) 0 var(--space-4);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-8) 0 var(--space-3);
}
.prose p { margin: 0 0 var(--space-4); color: var(--color-text); }
.prose ul, .prose ol { margin: 0 0 var(--space-4); padding-left: 1.2em; }
.prose li { margin-bottom: var(--space-2); }
.prose img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin: var(--space-6) 0;
  max-width: 100%;
  height: auto;
}
.prose figure { margin: var(--space-8) 0; }
.prose figcaption {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-top: var(--space-2);
}
.prose a { color: var(--color-primary); }
.prose--wide {
  max-width: 100%;
}
.technology-article > p,
.technology-article > ul,
.technology-article > ol,
.technology-article > h2,
.application-article > p,
.application-article > ul,
.application-article > ol,
.application-article > h2 {
  max-width: 68ch;
}
.figure-grid {
  display: grid;
  gap: var(--space-6);
  margin: var(--space-8) 0;
  align-items: start;
}
.figure-grid--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.figure-grid--single {
  grid-template-columns: minmax(0, 0.72fr);
}
.figure-grid figure {
  margin: 0;
  min-width: 0;
}
.figure-grid img {
  display: block;
  width: 100%;
  margin: 0;
  background: var(--color-surface);
}
.figure-grid figcaption {
  line-height: 1.45;
}
.application-article .figure-grid--pair {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.application-article .figure-grid img {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: var(--space-2);
}

.stent-media-layout {
  display: grid;
  grid-template-columns: minmax(96px, 0.32fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
  margin: var(--space-8) 0;
}
.stent-media-layout figure {
  margin: 0;
}
.stent-media-layout img {
  display: block;
  width: 100%;
  margin: 0;
}
.stent-media-layout__sample {
  display: grid;
  justify-items: center;
}
.stent-media-layout__sample img {
  width: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}
.stent-media-layout__detail {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
}
.stent-media-layout__pair {
  margin: 0;
}
.stent-media-layout .dl-list {
  margin: 0;
}

/* --- Product layout: sticky summary + content --- */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: var(--space-12);
  align-items: start;
}
.product-aside {
  position: sticky;
  top: 88px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.product-aside h3 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin: 0 0 var(--space-4);
}
.product-aside .btn { width: 100%; justify-content: center; margin-bottom: var(--space-3); }
.product-aside dl { margin: 0 0 var(--space-5); }
.product-aside dt {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-3);
}
.product-aside dd {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: var(--text-sm);
}

/* --- Spec table --- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: var(--space-6) 0;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.spec-table th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 500;
  white-space: nowrap;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table--striped tbody tr:nth-child(odd) { background: var(--color-bg); }

/* --- Download list --- */
.dl-list { display: grid; gap: var(--space-3); margin: var(--space-6) 0; }
.dl-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dl-item:hover { border-color: var(--color-primary); transform: translateY(-1px); }
.dl-item svg { flex-shrink: 0; color: var(--color-primary); }
.dl-item strong { display: block; font-size: var(--text-sm); }
.dl-item span { font-size: var(--text-xs); color: var(--color-muted); }

/* --- Software release history --- */
.release-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.release-search {
  display: grid;
  gap: var(--space-2);
  width: min(100%, 560px);
}
.release-search span,
.release-count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.release-search input {
  width: 100%;
  min-height: 48px;
  padding: 0 var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  box-shadow: var(--shadow-sm);
}
.release-search input:focus {
  border-color: var(--color-primary);
  outline: 3px solid var(--color-primary-highlight);
}
.release-count {
  margin: 0 0 var(--space-3);
  white-space: nowrap;
}
.release-timeline {
  display: grid;
  gap: var(--space-5);
  position: relative;
}
.release-card {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.release-card::before {
  content: '';
  position: absolute;
  inset-block: var(--space-6);
  left: 0;
  width: 4px;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  background: var(--gradient-spectrum);
}
.release-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}
.release-card h2 {
  margin: var(--space-1) 0 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.2;
}
.release-version {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.release-card time {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-muted);
  white-space: nowrap;
}
.release-card ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
.release-tags span {
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}
.release-empty {
  padding: var(--space-6);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  text-align: center;
}

/* --- FAQ accordion --- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-md);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4em;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding-top: var(--space-4); max-width: 68ch; color: var(--color-muted); line-height: 1.65; }


/* --- Hardened contact form --- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: var(--space-8);
  align-items: start;
}
.contact-form {
  display: grid;
  gap: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.contact-form h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin: 0 0 var(--space-2);
}
.contact-form p {
  margin: 0;
  color: var(--color-muted);
  line-height: 1.6;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field--full {
  grid-column: 1 / -1;
}
.field span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.field em {
  color: var(--color-primary);
  font-style: normal;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 0 var(--space-4);
  font: inherit;
}
.field textarea {
  min-height: 180px;
  padding-top: var(--space-3);
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary);
  outline: 3px solid var(--color-primary-highlight);
}
.contact-field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.form-actions p {
  font-size: var(--text-sm);
}
.contact-aside {
  display: grid;
  gap: var(--space-5);
}
.contact-result .page-hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .contact-form {
    padding: var(--space-5);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-actions {
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
}

/* --- Page CTA strip (reusable on interior pages) --- */
.page-cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-16);
}
.page-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 650;
  margin: 0 0 var(--space-1);
}
.page-cta p { margin: 0; color: var(--color-muted); font-size: var(--text-sm); }

@media (max-width: 1024px) {
  .product-layout { grid-template-columns: 1fr; }
  /* Keep the MProbe 20 table inside its scrolling container. */
  .product-layout--mprobe-20 { grid-template-columns: minmax(0, 1fr); }
  .product-aside { position: static; }
  .figure-grid--pair,
  .figure-grid--single,
  .stent-media-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .release-toolbar,
  .release-card__head {
    align-items: stretch;
    flex-direction: column;
    gap: var(--space-3);
  }
  .release-count {
    margin: 0;
    white-space: normal;
  }
  .release-card {
    padding: var(--space-5);
  }
  .release-card time {
    white-space: normal;
  }
}
