/**
 * MDCX shared landing shell — header + footer.
 * Requires tokens.css. Use on marketing pages for layout consistency.
 *
 * Header: [wordmark]  DC45 · AC45 · CIOS · Why MDCX  [TCO Analysis →]
 * Accent rule: X Blue = TCO button only.
 */

/* ── Fixed header ───────────────────────────────────────────── */
.mdc-shell-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--mdc-header-h, 56px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--mdc-header-bg, rgba(0, 0, 0, 0.92));
  border-bottom: 1px solid var(--mdc-line-subtle, rgba(255, 255, 255, 0.06));
  color: #fff;
}

.mdc-shell-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.mdc-shell-logo img {
  height: 22px;
  width: auto;
  display: block;
}
.mdc-shell-logo mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #fff;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  border-radius: 2px;
  font-style: normal;
}
.mdc-shell-logo:hover { opacity: 0.9; }

/* Primary nav */
.mdc-shell-nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex: 1;
  min-width: 0;
  margin-left: 8px;
}
.mdc-shell-nav a {
  color: var(--mdc-ink-tertiary, #a3a3a3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--mdc-duration, 120ms) linear,
    border-color var(--mdc-duration, 120ms) linear;
}
.mdc-shell-nav a:hover {
  color: var(--mdc-ink-primary, #fff);
}
.mdc-shell-nav a[aria-current="page"] {
  color: var(--mdc-ink-primary, #fff);
  border-bottom-color: var(--mdc-line-strong, rgba(255, 255, 255, 0.22));
}
.mdc-shell-nav a code {
  font-family: var(--mdc-font-mono, ui-monospace, monospace);
  font-size: 10px;
  font-weight: 600;
  color: var(--mdc-ink-muted, #737373);
  margin-left: 5px;
  letter-spacing: 0;
  text-transform: none;
}

.mdc-shell-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: auto;
}

.mdc-shell-back {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--mdc-duration, 120ms) linear;
}
.mdc-shell-back:hover { color: #fff; }

/* Page-local CTAs (designer, etc.) — mono invert, not accent */
.mdc-shell-cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--mdc-brand, #fff);
  color: var(--mdc-brand-ink, #000);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--mdc-radius, 2px);
  border: 1px solid var(--mdc-brand, #fff);
  transition: background var(--mdc-duration, 120ms) linear;
}
.mdc-shell-cta:hover {
  background: var(--mdc-brand-hover, #e8e8e8);
}

/* TCO — the only X Blue accent in the header */
.mdc-shell-cta-tco {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  background: var(--mdc-accent, #3b82f6);
  color: var(--mdc-accent-ink, #fff);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--mdc-radius, 2px);
  border: 1px solid var(--mdc-accent, #3b82f6);
  transition: background var(--mdc-duration, 120ms) linear;
}
.mdc-shell-cta-tco:hover {
  background: var(--mdc-accent-hover, #5c97f8);
  border-color: var(--mdc-accent-hover, #5c97f8);
}

/* Mobile toggle */
.mdc-shell-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--mdc-line, rgba(255, 255, 255, 0.12));
  border-radius: var(--mdc-radius, 2px);
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.mdc-shell-menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.mdc-shell-menu-btn span::before,
.mdc-shell-menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
}
.mdc-shell-menu-btn span::before { top: -5px; }
.mdc-shell-menu-btn span::after { top: 5px; }

/* ── Unified footer (all marketing pages) ───────────────────── */
.mdc-footer {
  border-top: 1px solid var(--mdc-line-subtle, rgba(255,255,255,0.06));
  background: #000;
  padding: 48px 32px 24px;
}
.mdc-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px 40px;
  max-width: 1080px;
  margin: 0 auto;
}
.mdc-footer-brand img { height: 20px; width: auto; display: block; }
.mdc-footer-tagline {
  margin-top: 14px;
  font-size: 12px; line-height: 1.6;
  color: rgba(255,255,255,0.4);
  max-width: 260px;
}
.mdc-footer-addr {
  margin-top: 12px;
  font-style: normal;
  font-size: 11px; line-height: 1.7;
  color: rgba(255,255,255,0.28);
}
.mdc-footer-h {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 12px;
}
.mdc-footer-col a {
  display: block;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--mdc-duration, 120ms) linear;
}
.mdc-footer-col a:hover { color: #fff; }
.mdc-footer-col a code {
  font-family: var(--mdc-font-mono, ui-monospace, monospace);
  font-size: 10px; color: var(--mdc-ink-muted, #737373); margin-left: 4px;
}
.mdc-footer-contact .mdc-footer-mail {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.mdc-footer-contact .mdc-footer-mail:hover { color: #fff; }
.mdc-footer-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  height: 34px; padding: 0 16px;
  background: var(--mdc-brand, #fff); color: var(--mdc-brand-ink, #000) !important;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--mdc-radius, 2px);
  text-decoration: none;
  transition: background var(--mdc-duration, 120ms) linear;
}
.mdc-footer-cta:hover { background: var(--mdc-brand-hover, #e8e8e8); }
.mdc-footer-legal {
  max-width: 1080px; margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--mdc-line-subtle, rgba(255,255,255,0.06));
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 11px; color: rgba(255,255,255,0.25);
}
.mdc-footer--compact { padding: 32px 32px 18px; }
.mdc-footer--compact .mdc-footer-tagline,
.mdc-footer--compact .mdc-footer-addr { display: none; }
.mdc-footer--compact .mdc-footer-legal { margin-top: 20px; padding-top: 14px; }

@media (max-width: 860px) {
  .mdc-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .mdc-footer { padding: 36px 20px 20px; }
  .mdc-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .mdc-footer-legal { flex-direction: column; }
}

/* ── Body offset under fixed header ─────────────────────────── */
body.mdc-has-shell {
  padding-top: 0;
}
body.mdc-shell-pad {
  padding-top: var(--mdc-header-h, 56px);
}

/* ── Mobile (<720px) ────────────────────────────────────────── */
@media (max-width: 720px) {
  .mdc-shell-header {
    padding: 0 12px;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--mdc-header-h, 56px);
  }
  .mdc-shell-menu-btn { display: inline-flex; }
  .mdc-shell-nav {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px 0 12px;
    border-top: 1px solid var(--mdc-line-subtle, rgba(255, 255, 255, 0.06));
  }
  .mdc-shell-header.is-open .mdc-shell-nav {
    display: flex;
  }
  .mdc-shell-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--mdc-line-subtle, rgba(255, 255, 255, 0.06));
  }
  .mdc-shell-nav a[aria-current="page"] {
    border-bottom-color: var(--mdc-line-strong, rgba(255, 255, 255, 0.22));
  }
  .mdc-shell-logo span:not(mark) {
    font-size: 12px;
  }
  /* Horizontal scroll fallback when menu closed: show nav as scroll row */
  .mdc-shell-nav.mdc-shell-nav-scroll {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    order: 0;
    width: auto;
    flex: 1;
    border: 0;
    padding: 0;
    margin-left: 4px;
    gap: 14px;
  }
  .mdc-shell-nav.mdc-shell-nav-scroll::-webkit-scrollbar { display: none; }
  .mdc-shell-nav.mdc-shell-nav-scroll a {
    border-bottom: 2px solid transparent;
    padding: 6px 0;
  }
}

@media (max-width: 640px) {
  .mdc-shell-cta,
  .mdc-shell-cta-tco {
    font-size: 10px;
    padding: 0 10px;
  }
}

/* ── Shared hero / banner (all marketing pages) ─────────────── */
.mdc-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 150px 24px 56px;
}
.mdc-hero-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 480px;
  background: radial-gradient(ellipse at 50% 0%, var(--mdc-brand-glow) 0%, transparent 62%);
  pointer-events: none;
}
/* Optional photo background: set --hero-img on the element */
.mdc-hero--img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
}
.mdc-hero--img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.12) 45%,
    var(--mdc-surface-0, #000) 98%
  );
  pointer-events: none;
}
.mdc-hero > * {
  position: relative;
  z-index: 1;
}

.mdc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mdc-brand-soft);
  border: 1px solid var(--mdc-line);
  color: var(--mdc-ink-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.mdc-hero h1 {
  color: var(--mdc-ink-primary);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mdc-hero h1 span {
  color: var(--mdc-ink-tertiary);
}
.mdc-hero-sub {
  color: var(--mdc-ink-faint);
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  margin: 18px auto 0;
}
.mdc-hero-sub strong {
  color: var(--mdc-ink-secondary);
  font-weight: 600;
}

/* Shared stat band */
.mdc-statband {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px auto 0;
  max-width: 760px;
  border: 1px solid var(--mdc-line-subtle);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.mdc-statband .stat {
  flex: 1 1 180px;
  padding: 22px 16px;
  text-align: center;
  border-right: 1px solid var(--mdc-line-subtle);
}
.mdc-statband .stat:last-child {
  border-right: none;
}
.mdc-statband .stat-val {
  color: var(--mdc-ink-primary);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.mdc-statband .stat-val em {
  color: var(--mdc-ink-primary);
  font-style: normal;
}
.mdc-statband .stat-key {
  color: var(--mdc-ink-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* Content figures */
.mdc-figure {
  margin: 28px 0 0;
}
.mdc-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--mdc-line-subtle);
  border-radius: 2px;
}
.mdc-figure figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mdc-ink-muted);
}

/* Sketchfab facade */
.mdc-3d {
  position: relative;
  margin-top: 28px;
  border: 1px solid var(--mdc-line-subtle);
  border-radius: 2px;
  overflow: hidden;
}
.mdc-3d::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.mdc-3d > img,
.mdc-3d > picture,
.mdc-3d > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.mdc-3d > picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mdc-3d-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 0;
  cursor: pointer;
  color: var(--mdc-ink-primary);
  font: 700 14px/1 "Inter", sans-serif;
  letter-spacing: 0.04em;
}
.mdc-3d-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-size: 20px;
  background: rgba(0, 0, 0, 0.5);
}
.mdc-3d-btn:hover span {
  background: var(--mdc-brand);
  color: var(--mdc-brand-ink);
  border-color: var(--mdc-brand);
}
.mdc-3d-credit {
  margin-top: 8px;
  font-size: 11px;
  color: var(--mdc-ink-muted);
}
.mdc-3d-credit a {
  color: var(--mdc-ink-tertiary);
  text-decoration: none;
}

@media (max-width: 640px) {
  .mdc-hero {
    padding: 120px 16px 40px;
  }
}
