:root {
  --bg: #07131c;
  --bg-soft: #0e1d28;
  --panel: rgba(14, 29, 40, 0.86);
  --panel-border: rgba(149, 197, 224, 0.14);
  --text: #e9f2f8;
  --muted: #9eb5c6;
  --accent: #65d3ff;
  --accent-strong: #ff8f3f;
  --line: rgba(255, 255, 255, 0.08);
  --max: 1180px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(101, 211, 255, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 143, 63, 0.18), transparent 20%),
    linear-gradient(180deg, #07131c 0%, #0a1822 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

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

.page-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer,
.hero,
.section,
.page-hero {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.brand strong,
h1,
h2,
h3,
.footer-heading {
  font-family: "Space Grotesk", sans-serif;
}

.brand strong {
  display: block;
  font-size: 1.1rem;
}

.brand small {
  display: block;
  color: var(--muted);
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(135deg, var(--accent), #c7f2ff);
  box-shadow: var(--shadow);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text) !important;
}

.hero,
.page-hero {
  padding: 4rem 0 2rem;
}

.breadcrumb-nav {
  position: relative;
  z-index: 1;
  padding-top: 1.5rem;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  color: rgba(255, 255, 255, 0.24);
}

.breadcrumb-list a:hover {
  color: var(--text);
}

.product-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.25rem;
  padding: 4rem 0 2rem;
}

.product-page-main {
  min-width: 0;
}

.product-hero-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.panel,
.card,
.news-card,
.family-card,
.mini-card {
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.panel {
  border-radius: 1.75rem;
  padding: 1.5rem;
}

.hero-news-carousel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-news-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero-news-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-news-dot {
  width: 0.7rem;
  height: 0.7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
}

.hero-news-dot[aria-pressed="true"] {
  background: var(--accent);
}

.hero-news-viewport {
  overflow: hidden;
  min-height: 240px;
}

.hero-news-track {
  display: flex;
  width: 100%;
  min-height: 240px;
  transition: transform 320ms ease;
}

.hero-news-card {
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 240px;
}

.hero-news-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.hero-news-card p {
  margin: 0;
  color: #dce8f1;
  line-height: 1.7;
}

.hero-news-card:hover {
  border-color: rgba(101, 211, 255, 0.28);
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.96;
  margin: 0.25rem 0 1rem;
}

.hero-copy h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.45rem);
  max-width: 23ch;
}

.page-hero h1 {
  max-width: 13ch;
}

.lede {
  color: #dce8f1;
  font-size: 1.1rem;
  line-height: 1.7;
}

.narrow {
  max-width: 65ch;
}

.eyebrow,
.card-kicker,
.panel-label,
.family-meta {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--accent);
}

.hero-actions,
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-actions {
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button {
  padding: 0.95rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #dff8ff);
  color: #031018;
}

.button-secondary {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.04);
}

.section {
  padding: 2rem 0;
}

.section-accent .card {
  background: linear-gradient(180deg, rgba(20, 46, 62, 0.92), rgba(10, 26, 37, 0.92));
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  max-width: 18ch;
}

.card-grid,
.news-strip,
.stack,
.family-list,
.accessory-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.accessory-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.news-card,
.mini-card {
  padding: 1.25rem;
  border-radius: 1.4rem;
}

.accessory-card {
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
}

.card-link:hover,
.family-card:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

.product-family-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-family-card p {
  margin: 0;
}

.product-family-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 1rem;
  align-items: start;
}

.product-family-card-copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.product-family-card-thumbnail {
  width: 100%;
  max-width: 108px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  align-self: start;
}

.product-card-properties {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--panel-border);
}

.product-card-property {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 0;
  padding: 0 0.85rem;
  justify-content: flex-start;
}

.product-card-property span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.product-card-property strong {
  font-size: 0.66rem;
  line-height: 1.25;
  word-break: break-word;
  font-weight: 400;
  color: rgba(233, 242, 248, 0.8);
}

.product-card-property + .product-card-property {
  border-left: 1px solid var(--panel-border);
}

.product-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
}

.product-card-waveform {
  width: 64px;
  height: 28px;
  color: var(--accent);
}

.product-card-waveform svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.product-card-polarity-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.product-card-polarity-icons {
  gap: 0.35rem;
}

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

.product-family-card-pulse .product-card-properties {
  align-items: stretch;
}

.product-family-card-pulse .product-card-property-waveform,
.product-family-card-pulse .product-card-property-polarity {
  align-items: flex-start;
}

.product-family-card-pulse .product-card-property-waveform {
  align-items: flex-start;
}

.product-family-card-pulse .product-card-property-polarity {
  align-items: flex-start;
}

.two-column,
.product-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 1rem;
}

.product-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.product-stat {
  padding: 1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
}

.product-stat span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.product-stat strong {
  font-size: 1.1rem;
}

.product-stat-waveform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label label"
    "value image";
  column-gap: 0.9rem;
  row-gap: 0.4rem;
}

.product-stat-waveform span {
  grid-area: label;
  margin-bottom: 0;
}

.product-stat-waveform strong {
  grid-area: value;
  align-self: center;
}

.waveform-asset-inline {
  grid-area: image;
  align-self: center;
  width: auto;
  max-width: 160px;
  max-height: 64px;
  object-fit: contain;
  display: block;
}

.waveform-asset-inline svg {
  color: var(--accent);
  overflow: visible;
}

.product-side-rail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem;
}

.sticky-side-nav {
  position: sticky;
  top: 1.5rem;
  align-self: start;
}

.side-rail-actions .button {
  width: 100%;
  justify-content: center;
}

.side-rail-copy {
  color: var(--muted);
  line-height: 1.6;
}

.compact-list li {
  word-break: break-word;
}

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

.media-card {
  border: 1px solid var(--panel-border);
  border-radius: 1.4rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 38, 52, 0.95), rgba(8, 19, 29, 0.95));
  box-shadow: var(--shadow);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card img,
.media-card svg {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
  display: block;
}

.media-card svg {
  color: var(--accent);
}

.evidence-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1rem;
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.evidence-links a {
  color: var(--accent);
}

.signal-list,
.bullet-list,
.link-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #dce8f1;
}

.signal-list li,
.bullet-list li,
.link-list li {
  margin: 0.5rem 0;
}

.panel h2,
.card h2,
.card h3,
.news-card h2,
.news-card h3,
.family-card h2 {
  margin-bottom: 0.65rem;
}

.family-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 1.6rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table th {
  width: 40%;
  text-align: left;
  color: var(--muted);
  font-weight: 600;
}

.section-contact {
  padding-bottom: 4rem;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 3rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

code {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 960px) {
  .site-header,
  .hero,
  .product-page-shell,
  .two-column,
  .product-layout,
  .product-detail-grid,
  .family-card,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

  .product-family-card-pulse {
    grid-column: span 1;
  }

  .product-family-card-main {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .site-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(var(--max), calc(100% - 1rem));
  }

  .site-header {
    padding-top: 1rem;
  }

  .product-stat-row {
    grid-template-columns: 1fr;
  }

  .product-card-properties {
    grid-template-columns: 1fr;
  }

  .product-family-card-main {
    grid-template-columns: 1fr;
  }

  .product-family-card-thumbnail {
    max-width: 120px;
  }

  .product-card-property {
    min-height: auto;
    padding: 0.75rem 0;
  }

  .product-card-property + .product-card-property {
    border-left: 0;
    border-top: 1px solid var(--panel-border);
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: none;
  }
}
