/* Lightwave Engineering — site styles */
:root {
  --abyss: #0B1622;
  --hull: #102033;
  --hull-deep: #0D1B2B;
  --foam: #E8EEF4;
  --mist: #C9D4DF;
  --haze: #9FB0C2;
  --signal: #FF2D2D;
  --link: #FF6B6B;
  --link-hover: #FF9A9A;
  --deck: #F2F5F8;
  --deep-red: #C8102E;
  --ink: #0B1622;
  --ink-soft: #3E4C5A;
  --rule: rgba(232, 238, 244, 0.10);
  --rule-strong: rgba(232, 238, 244, 0.22);
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--light { background: var(--deck); color: var(--ink); }
.section--panel { background: var(--hull); }
.section + .section:not(.section--light):not(.section--panel) { border-top: 1px solid var(--rule); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--foam); color: var(--ink); padding: 8px 12px; z-index: 10; }

/* Type */
.eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--signal);
}
.section--light .eyebrow { color: var(--deep-red); }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: 0.01em; }
h2 { font-size: clamp(34px, 4.5vw, 48px); }
h3 { font-size: 26px; letter-spacing: 0.02em; }
.lead { font-size: 20px; color: var(--mist); max-width: 620px; margin: 0; }
.muted { color: var(--haze); }
.section--light .muted { color: var(--ink-soft); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 48px; }
.section-head p { margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 15px 27px;
  border-radius: 4px;
  border: 1px solid transparent;
  line-height: 1.3;
}
.btn--primary { background: var(--signal); color: var(--ink); }
.btn--primary:hover { background: #FF5252; color: var(--ink); }
.btn--ghost { border-color: rgba(232, 238, 244, 0.35); color: var(--foam); }
.btn--ghost:hover { border-color: var(--foam); color: var(--foam); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--abyss); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.nav__logo img { height: 60px; width: auto; }
.nav__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; list-style: none; margin: 0; padding: 0; font-weight: 500; font-size: 15px; }
.nav__links a { color: var(--mist); text-decoration: none; padding: 10px 0; display: inline-block; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--foam); }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); }
.nav__links .btn { padding: 11px 20px; color: var(--ink); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__body { position: relative; padding: 112px 24px 168px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { max-width: 760px; }
.page-hero { border-bottom: 1px solid var(--rule); padding: 80px 0 64px; }
.page-hero .wrap { display: flex; flex-direction: column; gap: 18px; }

/* Credentials bar */
.creds { background: var(--hull); border-bottom: 1px solid var(--rule); }
.creds ul { list-style: none; margin: 0 auto; padding: 28px 24px; max-width: var(--max); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.creds li { display: flex; flex-direction: column; gap: 4px; }
.creds strong { font-family: var(--font-head); font-weight: 700; font-size: 28px; text-transform: uppercase; line-height: 1.1; }
.creds span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--haze); text-transform: uppercase; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--hull); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card__art { background: var(--hull-deep); border-bottom: 1px solid rgba(232, 238, 244, 0.08); padding: 32px 24px; display: flex; justify-content: center; color: var(--foam); }
.card__body { padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 16px; flex-grow: 1; }
.card__body p { margin: 0; color: var(--mist); font-size: 16px; }
.card__link { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }

.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; padding: 6px 10px; border: 1px solid var(--rule-strong); border-radius: 3px; color: var(--foam); }

.badge { align-self: flex-start; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; padding: 4px 8px; border-radius: 3px; text-transform: uppercase; line-height: 1.4; }
.badge--live { background: var(--signal); color: var(--ink); }
.badge--soon { border: 1px solid rgba(232, 238, 244, 0.35); color: var(--foam); padding: 3px 8px; }
.badge--red { background: var(--deep-red); color: #FFFFFF; }

/* Capabilities (light section) */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; background: #D3DBE3; border: 1px solid #D3DBE3; }
.cap { background: #FFFFFF; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.cap h3 { font-size: 24px; }
.cap p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* Customers */
.customers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 40px; font-family: var(--font-head); font-weight: 600; font-size: 26px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--mist); }
.program { border-left: 2px solid var(--signal); padding: 4px 0 4px 20px; display: flex; flex-direction: column; gap: 6px; }
.program .label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: var(--haze); }
.program strong { font-family: var(--font-head); font-size: 24px; text-transform: uppercase; }
.program p { margin: 0; font-size: 15px; color: var(--mist); }

/* Featured product */
.feature { grid-column: 1 / -1; background: var(--hull); border: 1px solid var(--signal); border-radius: 8px; overflow: hidden; display: flex; flex-wrap: wrap; }
.feature__media { flex: 1 1 460px; min-width: 0; background: var(--hull-deep); padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: center; }
.feature__media .tall { grid-row: span 2; }
.feature__body { flex: 1 1 380px; min-width: 0; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature__body h3 { font-size: 34px; line-height: 1; }
.feature__body p { margin: 0; color: var(--mist); }
.model { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; color: var(--haze); }
.spec-list { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 15px; }
.spec-list dt { font-family: var(--font-mono); font-size: 13px; color: var(--signal); padding-top: 2px; }
.spec-list dd { margin: 0; color: var(--foam); }

.product-card { background: var(--hull); border: 1px solid var(--rule); border-radius: 8px; padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.product-card p { margin: 0; font-size: 15px; color: var(--mist); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.steps li { border-top: 2px solid rgba(232, 238, 244, 0.25); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li:first-child { border-top-color: var(--signal); }
.steps .n { font-family: var(--font-mono); font-size: 13px; color: var(--signal); }
.steps strong { font-family: var(--font-head); font-size: 24px; text-transform: uppercase; }
.steps span:last-child { font-size: 15px; line-height: 1.5; color: var(--haze); }

/* CTA */
.cta { background: var(--hull); border-top: 1px solid var(--rule); }
.cta .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { font-size: clamp(32px, 4vw, 44px); }
.cta p { margin: 12px 0 0; max-width: 640px; font-size: 18px; color: var(--mist); }

/* Product detail page */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; background: var(--hull-deep); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.gallery figure img { margin: auto; max-height: 300px; width: auto; }
.gallery figcaption { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--haze); }
.gallery .wide { grid-column: 1 / -1; }
.gallery .wide img { max-height: 220px; }

.two-col { display: flex; flex-wrap: wrap; gap: 48px; }
.two-col > * { flex: 1 1 380px; min-width: 0; }

.table-box { overflow-x: auto; border: 1px solid var(--rule); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--haze); white-space: nowrap; }
thead th { background: var(--hull); }
td.mono { font-family: var(--font-mono); font-size: 14px; color: var(--foam); white-space: nowrap; }
.placeholder { color: var(--haze); font-style: italic; }

.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li { padding-left: 28px; position: relative; color: var(--mist); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 14px; height: 2px; background: var(--signal); }

/* Contact */
.contact-card { background: var(--hull); border: 1px solid var(--rule); border-radius: 8px; padding: 32px 28px; display: flex; flex-direction: column; gap: 20px; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; }
.contact-card dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--haze); padding-top: 4px; }
.contact-card dd { margin: 0; font-size: 18px; }
.contact-card address { font-style: normal; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); font-size: 14px; color: var(--haze); }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding: 40px 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand img { height: 56px; width: auto; align-self: flex-start; margin-left: -6px; }
.footer-brand .tagline { color: var(--foam); font-weight: 600; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); font-size: 13px; font-style: normal; }
.footer-ids { font-family: var(--font-mono); font-size: 13px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-nav a { color: var(--mist); text-decoration: none; }
.footer-nav a:hover { color: var(--foam); }
.family { border-top: 1px solid rgba(232, 238, 244, 0.08); }
.family .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.family p { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; }
.family ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.family li { height: 64px; border: 1px dashed rgba(232, 238, 244, 0.25); border-radius: 6px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 12px; font-size: 14px; font-weight: 600; color: var(--mist); }
.family li.logo { background: var(--deck); border: 1px solid var(--deck); padding: 10px 18px; }
.family li.logo img { max-height: 44px; max-width: 100%; width: auto; }
.family li { height: 72px; }
.family li.logo img[src*="cm-technology"] { max-height: 54px; }
.family__parent { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.family__plate { background: #FFFFFF; border-radius: 6px; padding: 10px 18px; display: inline-flex; }
.family__plate img { height: 52px; width: auto; }
.family__parent span:not(.family__plate) { display: inline-block; margin-top: 6px; letter-spacing: 0.08em; color: var(--haze); font-size: 13px; text-transform: none; font-family: var(--font-body); }
.family li.logo a, .family__plate a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.family li.logo:has(a):hover, .family__plate:hover { outline: 2px solid var(--signal); outline-offset: 2px; }
.copyright { padding: 0 24px 32px; font-size: 13px; }

@media (max-width: 640px) {
  .gallery { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero__body { padding: 72px 24px 120px; }
  .lead { font-size: 18px; }
  .nav__logo img { height: 48px; }
  .nav__links { gap: 4px 18px; }
  .feature__media { padding: 20px; }
}
