/* ============================================
   MAWBY & KING LTD — Dark Technical Design System
   Aesthetic: Lab meets command centre
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Backgrounds */
  --bg-primary: #0a0e17;
  --bg-secondary: #0f1420;
  --bg-tertiary: #141a28;
  --bg-card: #161c2e;
  --bg-card-hover: #1a2236;

  /* Text */
  --text-primary: #e8eaf0;
  --text-secondary: #8a92a6;
  --text-tertiary: #5a6275;
  --text-heading: #f0f2f8;

  /* Accents */
  --accent-primary: #2e8bf7;
  --accent-glow: #3d9aff;
  --accent-cyan: #00d4ff;
  --accent-dim: rgba(46, 139, 247, 0.15);
  --accent-border: rgba(46, 139, 247, 0.25);

  /* Borders & Lines */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.1);
  --grid-line: rgba(255, 255, 255, 0.03);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  /* Spacing */
  --section-padding: clamp(50px, 6vw, 90px);
  --container-max: 1300px;
  --container-wide: 1500px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section--alt {
  background-color: var(--bg-secondary);
}

.text-accent { color: var(--accent-primary); }
.text-heading { color: var(--text-heading); }
.text-mono { font-family: var(--font-mono); font-size: 0.85em; }

/* --- Background Grid Pattern --- */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.6;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 clamp(24px, 4vw, 48px);
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 72px;
}

/* Push nav links, CTA and burger to the right */
.nav__links {
  margin-left: auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-heading);
}

.nav__logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.15;
}

.nav__logo-text span {
  color: var(--accent-primary);
  font-weight: 700;
}

.nav__logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  display: block;
  margin-top: -2px;
  transition: var(--transition-fast);
}

/* Logo hover: "Since 1933" glows accent blue */
.nav__logo:hover .nav__logo-sub {
  color: var(--accent-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: var(--transition-base);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-heading);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  padding: 8px 20px !important;
  border: 1px solid var(--accent-border) !important;
  border-radius: 4px;
  color: var(--accent-primary) !important;
  transition: var(--transition-base);
}

.nav__cta:hover {
  background: var(--accent-dim) !important;
  border-color: var(--accent-primary) !important;
}

/* Mobile nav toggle (used on small screens for main links) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-secondary);
  transition: var(--transition-base);
}

/* --- Desktop burger icon (full site nav) --- */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 10px 9px;
  margin-left: 16px;
  transition: var(--transition-base);
  position: relative;
  flex-shrink: 0;
}

.nav__burger:hover {
  border-color: var(--accent-border);
  background: var(--accent-dim);
}

.nav__burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: var(--transition-base);
  border-radius: 1px;
}

.nav__burger:hover span {
  background: var(--accent-primary);
}

/* Burger icon → X transition when open */
.nav__burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Site navigation panel (dropdown from burger) --- */
.nav__panel {
  position: absolute;
  top: 72px;
  right: 0;
  width: 280px;
  background: rgba(15, 20, 32, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-top: none;
  border-radius: 0 0 8px 8px;
  padding: 24px 28px 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 999;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.nav__panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__panel-section {
  margin-bottom: 20px;
}

.nav__panel-section:last-child {
  margin-bottom: 0;
}

.nav__panel-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-subtle);
}

.nav__panel a {
  display: block;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.nav__panel a:hover {
  color: var(--accent-primary);
  padding-left: 6px;
}

/* --- Hero Scroll-Driven Reveal --- */

/*
 * Structure: .hero-scroll-wrapper (200vh tall, gives scroll room)
 *   └─ .hero-scroll-sticky (100vh, sticks in viewport)
 *       ├─ .hero__cover-stage  (the MK-cover image, fades OUT)
 *       └─ .hero__text-stage   (the tagline + CTA, fades IN)
 *
 * JS reads scroll progress within the wrapper and drives opacity.
 */

.hero-scroll-wrapper {
  height: 250vh;
  position: relative;
}

/* Hero sticky fills the full viewport — stats bar overlays on top via z-index */
.hero-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Cover stage (MK-cover graphic) --- */
.hero__cover-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  /* JS will set opacity via inline style */
  transition: none;
}

.hero__cover-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Crop top/bottom — show the middle band with the geometric ring + logo */
  object-position: center center;
  /* Slightly darkened — close to original but toned down */
  filter: brightness(0.75) contrast(1.1) saturate(0.8);
}

/* Subtle blue glow behind the geometric shapes */
.hero__cover-stage::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
  filter: blur(60px);
}


/* --- Text stage (tagline + CTA) --- */
.hero__text-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 3;
  opacity: 0; /* JS drives this */
  padding-top: 72px;
  transition: none;
}

/* --- Legacy .hero class kept for fallback / inner styling --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg-element {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
}

.hero__bg-element--1 {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -200px;
  right: -100px;
}

.hero__bg-element--2 {
  width: 400px;
  height: 400px;
  background: var(--accent-cyan);
  bottom: -100px;
  left: -100px;
}

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

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 32px;
}

.hero__label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero__title {
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-heading);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title span {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 620px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  font-family: var(--font-primary);
}

.btn--primary {
  background: var(--accent-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 30px rgba(46, 139, 247, 0.25);
}

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

.btn--outline:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
}

.btn__arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* --- Stats Bar --- */
.stats-bar {
  height: 180px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

/* Fixed to bottom of viewport — top half visible, overlays hero bottom */
.stats-bar--fixed {
  position: fixed;
  bottom: -90px;
  left: 0;
  right: 0;
  z-index: 5;
}

/* Absolute within hero wrapper — same visual position, scrolls with wrapper */
.stats-bar--absolute {
  position: absolute;
  bottom: -90px;
  left: 0;
  right: 0;
  z-index: 5;
}

/* Spacer: the stats bar extends 90px below the hero wrapper */
.stats-bar-placeholder {
  height: 90px;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stats-bar__item {
  text-align: center;
  padding: 16px 24px;
  position: relative;
}

.stats-bar__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.stats-bar__number {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1;
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.stats-bar__number span {
  color: var(--accent-primary);
}

.stats-bar__number .stats-bar__unit {
  font-size: 0.45em;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-primary);
  vertical-align: baseline;
}

.stats-bar__label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* --- Section Headers --- */
.section-header {
  margin-bottom: 40px;
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 20px;
  font-family: var(--font-mono);
}

.section-header__label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-primary);
}

.section-header__title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header__desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* --- Product Cards --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition-base);
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-6px);
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.08),
    0 0 40px rgba(255, 255, 255, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.4);
}

.product-card__image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--bg-tertiary);
}

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

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

.product-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(transparent, var(--bg-card));
}

.product-card__body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  margin-bottom: 12px;
}

.product-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.product-card__desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.product-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card__spec {
  font-size: 0.72rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-top: auto;
  padding-top: 20px;
  transition: var(--transition-fast);
}

.product-card:hover .product-card__link {
  gap: 10px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3), 0 0 24px rgba(255, 255, 255, 0.1);
}

/* --- Capabilities / Features --- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.capability-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: var(--transition-base);
}

.capability-item:hover {
  border-color: var(--accent-border);
  background: var(--bg-card-hover);
}

.capability-item__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 8px;
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.capability-item__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.capability-item__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Quote / Testimonial --- */
.quote-section {
  padding: var(--section-padding) 0;
  position: relative;
  text-align: center;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--accent-primary);
}

.quote-section__text {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 400;
  color: var(--text-heading);
  line-height: 1.6;
  max-width: 780px;
  margin: 0 auto 24px;
  font-style: italic;
}

.quote-section__attr {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}

.quote-section__attr strong {
  color: var(--text-secondary);
}

/* --- Heritage / About Section --- */
.heritage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.heritage__visual {
  position: relative;
}

.heritage__year {
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 800;
  color: var(--bg-tertiary);
  line-height: 1;
  font-family: var(--font-mono);
  letter-spacing: -0.04em;
  position: relative;
}

.heritage__year::after {
  content: 'EST.';
  position: absolute;
  top: 0;
  left: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent-primary);
  font-weight: 400;
}

.heritage__content h3 {
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.heritage__content p {
  margin-bottom: 16px;
  color: #b9bfcb;
}

/* Year glows when "More about us" button is hovered — uses :has() on parent */
.heritage__year {
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.heritage:has(.btn--outline:hover) .heritage__year {
  color: rgba(46, 139, 247, 0.25);
  text-shadow: 0 0 60px rgba(46, 139, 247, 0.3);
}

/* --- CTA Section --- */
.cta-section {
  padding: var(--section-padding) 0;
  text-align: center;
  position: relative;
}

.cta-section__inner {
  max-width: 640px;
  margin: 0 auto;
}

.cta-section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.cta-section__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-section__contact {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  flex-wrap: nowrap;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0 clamp(24px, 4vw, 48px);
}

.cta-section__contact-item {
  text-align: center;
}

.cta-section__contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
  margin-bottom: 6px;
}

.cta-section__contact-value {
  font-size: 1rem;
  color: var(--text-heading);
}

.cta-section__contact-value a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.cta-section__contact-value a:hover {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.3), 0 0 24px rgba(255, 255, 255, 0.1);
}

.cta-section__contact-detail {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* --- Footer --- */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-heading);
}

.footer__logo span {
  color: var(--accent-primary);
}


.footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

/* --- Divider Line --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-medium), transparent);
  margin: 0;
  border: none;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Product Page Specific --- */
.product-hero {
  padding: calc(72px + 60px) 0 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.product-hero__breadcrumb {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.product-hero__breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.product-hero__breadcrumb a:hover {
  color: var(--accent-primary);
}

.product-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.product-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
}

/* Product detail layout */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

.product-detail__main h2 {
  font-size: 1.4rem;
  color: var(--text-heading);
  margin-bottom: 16px;
  margin-top: 40px;
}

.product-detail__main h2:first-child {
  margin-top: 0;
}

.product-detail__main p {
  margin-bottom: 16px;
}

.product-detail__main ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.product-detail__main ul li {
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.product-detail__main ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
}

.content-figure {
  margin: 2rem 0;
  max-width: 420px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-primary);
}

.content-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.content-figure figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-align: right;
}

/* Sidebar specs */
.product-sidebar {
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
}

.spec-card__title {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-family: var(--font-mono);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

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

.spec-row__label {
  color: var(--text-tertiary);
}

.spec-row__value {
  color: var(--text-heading);
  font-weight: 500;
  text-align: right;
}

/* --- FAQ Section (AEO/GEO) --- */
.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-primary);
  transition: var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--accent-primary);
}

.faq-item__icon {
  font-size: 1.2rem;
  transition: transform var(--transition-base);
  color: var(--text-tertiary);
}

.faq-item.active .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 400px;
  padding-bottom: 24px;
}

.faq-item__answer p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- Responsive --- */

/* At narrower widths, hide inline product links — burger still has full nav */
@media (max-width: 960px) {
  .nav__links li:not(:last-child) {
    display: none;
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .heritage {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    padding: 12px 0;
    display: block;
  }

  .nav__toggle {
    display: flex;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stats-bar__item:not(:last-child)::after {
    display: none;
  }

  .hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .cta-section__contact {
    flex-direction: column;
    gap: 20px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }
}
