/* ==========================================================================
   BXAIOT Visual Elevation Pass (v023 · 2026-11-28)
   Precision Industrial AIoT Aesthetic · Shared non-destructive enhancement
   ========================================================================== */

:root {
  --bx-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bx-font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
  --bx-bg-deep: #06101c;
  --bx-bg-surface: #0b1b2d;
  --bx-bg-light: #f4f8fc;
  --bx-cyan: #4dd9e8;
  --bx-cyan-soft: #8de7ef;
  --bx-blue: #1468bc;
  --bx-blue-hover: #0e58a3;
  --bx-blue-glow: rgba(20, 104, 188, 0.34);
  --bx-cyan-glow: rgba(77, 217, 232, 0.22);
  --bx-border-dark: rgba(139, 221, 233, 0.16);
  --bx-border-light: rgba(16, 43, 73, 0.1);
  --bx-shadow-card: 0 4px 20px rgba(7, 19, 31, 0.05), 0 1px 3px rgba(7, 19, 31, 0.04);
  --bx-shadow-card-hover: 0 16px 36px rgba(7, 19, 31, 0.11), 0 4px 12px rgba(20, 104, 188, 0.08);
  --bx-shadow-dark-hover: 0 18px 40px rgba(3, 10, 18, 0.45), 0 0 0 1px rgba(77, 217, 232, 0.32);
  --bx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1. Typography & Rendering Quality */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
body.unified-site {
  font-family: var(--bx-font-sans);
}

h1, h2, h3, h4 {
  font-family: var(--bx-font-sans);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

table,
dl,
.reviewed-table,
.portfolio-number,
.category-number {
  font-variant-numeric: tabular-nums;
}

/* 2. Refined Glass Header & Navigation Micro-Interactions */
:root .nav-inner,
:root body.unified-site .site-header {
  background: rgba(8, 19, 32, 0.72);
  border-bottom: 1px solid rgba(141, 231, 239, 0.14);
  box-shadow: 0 8px 32px rgba(4, 11, 20, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

:root header.compact .nav-inner {
  background: rgba(8, 19, 32, 0.84);
  border: 1px solid rgba(141, 231, 239, 0.18);
  box-shadow: 0 14px 36px rgba(4, 11, 20, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

:root header.on-light .nav-inner {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(16, 43, 73, 0.1);
  box-shadow: 0 8px 28px rgba(7, 19, 31, 0.07);
}

:root header.compact.on-light .nav-inner {
  border: 1px solid rgba(16, 43, 73, 0.12);
}

:root .nav-inner nav a,
:root body.unified-site .site-header nav a {
  position: relative;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s var(--bx-ease);
}

@media (min-width: 901px) {
  :root .nav-inner nav a::after,
  :root body.unified-site .site-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--bx-cyan), #38a8ff);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.26s var(--bx-ease);
    opacity: 0.9;
  }

  :root .nav-inner nav a:hover::after,
  :root .nav-inner nav a[aria-current="page"]::after,
  :root body.unified-site .site-header nav a:hover::after,
  :root body.unified-site .site-header nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  :root .nav-inner nav a:hover,
  :root body.unified-site .site-header nav a:hover {
    text-decoration: none;
  }
}

/* 3. Buttons & Primary CTAs */
.button,
body.unified-site .button,
:root .nav-inner .button,
:root body.unified-site .site-header .header-quote {
  background: linear-gradient(180deg, #1a78d6 0%, #115fae 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(17, 95, 174, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  letter-spacing: 0.01em;
  transition: transform 0.22s var(--bx-ease), box-shadow 0.22s var(--bx-ease), background 0.22s var(--bx-ease), border-color 0.22s var(--bx-ease);
}

.button:hover,
body.unified-site .button:hover,
:root .nav-inner .button:hover,
:root body.unified-site .site-header .header-quote:hover {
  background: linear-gradient(180deg, #2185e6 0%, #1468bc 100%);
  box-shadow: 0 8px 24px rgba(20, 104, 188, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  text-decoration: none;
}

.button:active,
body.unified-site .button:active {
  transform: translateY(0) scale(0.985);
}

.text-link {
  position: relative;
  transition: color 0.2s var(--bx-ease);
}

/* 4. Hero & Subpage Header Atmospheric Depth */
.hero-sticky {
  background:
    radial-gradient(ellipse 75% 60% at 74% 88%, rgba(20, 104, 188, 0.32), transparent 68%),
    radial-gradient(ellipse 55% 45% at 18% 18%, rgba(77, 217, 232, 0.1), transparent 62%),
    radial-gradient(circle at 1px 1px, rgba(141, 231, 239, 0.06) 1px, transparent 0),
    #060f1b;
  background-size: auto, auto, 32px 32px, auto;
}

.hero-copy h1 em {
  background: linear-gradient(105deg, #aef4fa 0%, #5fdcf0 52%, #3ca7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy .eyebrow,
body.unified-site .page-heading .eyebrow,
body.unified-site .product-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(77, 217, 232, 0.1);
  border: 1px solid rgba(77, 217, 232, 0.24);
  letter-spacing: 0.14em;
  width: fit-content;
}

body.unified-site .page-heading,
body.unified-site .product-heading {
  background:
    radial-gradient(ellipse 65% 60% at 86% 20%, rgba(20, 104, 188, 0.28), transparent 62%),
    radial-gradient(ellipse 45% 45% at 12% 85%, rgba(77, 217, 232, 0.09), transparent 58%),
    radial-gradient(circle at 1px 1px, rgba(141, 231, 239, 0.05) 1px, transparent 0),
    #06101c;
  background-size: auto, auto, 32px 32px, auto;
  border-bottom: 1px solid rgba(141, 231, 239, 0.12);
}

/* Breadcrumbs polish */
.page-breadcrumbs {
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* 5. Light & Dark Section Rhythm */
.light {
  background: linear-gradient(180deg, #f6f9fc 0%, #eef4f9 100%);
}

body.unified-site .detail-grid,
body.unified-site .contact-grid {
  background: linear-gradient(180deg, #f6f9fc 0%, #eef4f9 100%);
}

.company-profile {
  background: linear-gradient(180deg, #f2f7fb 0%, #e7f0f7 100%) !important;
  border-top: 1px solid rgba(16, 43, 73, 0.06);
  border-bottom: 1px solid rgba(16, 43, 73, 0.08);
}

.company-profile dl div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(16, 43, 73, 0.09) !important;
  border-top: 3px solid #1468bc !important;
  border-radius: 14px;
  padding: 20px 22px !important;
  box-shadow: 0 4px 16px rgba(7, 19, 31, 0.04);
  transition: transform 0.24s var(--bx-ease), box-shadow 0.24s var(--bx-ease);
}

.company-profile dl div:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(7, 19, 31, 0.08);
}

/* 6. Elevated Product & Feature Cards */
.card,
body.unified-site .product-card {
  background: #ffffff;
  border: 1px solid var(--bx-border-light);
  border-radius: 18px;
  box-shadow: var(--bx-shadow-card);
  transition: transform 0.28s var(--bx-ease), box-shadow 0.28s var(--bx-ease), border-color 0.28s var(--bx-ease);
}

.card:hover,
body.unified-site .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 104, 188, 0.28);
  box-shadow: var(--bx-shadow-card-hover);
}

.card img,
body.unified-site .product-card img {
  transition: transform 0.45s var(--bx-ease);
}

.card:hover img,
body.unified-site .product-card:hover img {
  transform: scale(1.025);
}

/* Dark Portfolio & Scenario Cards */
.portfolio-group {
  background: linear-gradient(155deg, rgba(18, 43, 66, 0.92) 0%, rgba(9, 23, 38, 0.98) 100%) !important;
  border: 1px solid rgba(139, 221, 233, 0.2) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 28px rgba(4, 12, 22, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.28s var(--bx-ease), box-shadow 0.28s var(--bx-ease), border-color 0.28s var(--bx-ease);
}

.portfolio-group:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 217, 232, 0.48) !important;
  box-shadow: var(--bx-shadow-dark-hover);
}

.portfolio-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(77, 217, 232, 0.12);
  border: 1px solid rgba(77, 217, 232, 0.28);
  font-family: var(--bx-font-mono);
}

/* Scenario Interactive Panel */
.scenario-detail {
  background: linear-gradient(155deg, rgba(18, 43, 66, 0.88) 0%, rgba(11, 27, 45, 0.98) 100%);
  border: 1px solid rgba(141, 231, 239, 0.18);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(3, 10, 18, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.scenario-buttons button {
  transition: color 0.22s var(--bx-ease), border-color 0.22s var(--bx-ease), padding-left 0.22s var(--bx-ease);
}

.scenario-buttons button:hover:not(:disabled) {
  color: #aef4fa;
  padding-left: 8px;
}

/* Process Steps & Engineering Art Cards */
.engineering-art > div {
  border: 1px solid rgba(20, 104, 188, 0.18);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(7, 19, 31, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

ol.process {
  list-style: none;
  counter-reset: bx-step;
  padding-left: 0;
}

ol.process > li {
  counter-increment: bx-step;
  background: #ffffff;
  border: 1px solid var(--bx-border-light);
  border-top: 3px solid #1468bc;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: var(--bx-shadow-card);
  transition: transform 0.24s var(--bx-ease), box-shadow 0.24s var(--bx-ease);
}

ol.process > li::before {
  content: "0" counter(bx-step);
  display: inline-block;
  font-family: var(--bx-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1468bc;
  background: rgba(20, 104, 188, 0.09);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}

ol.process > li:hover {
  transform: translateY(-3px);
  box-shadow: var(--bx-shadow-card-hover);
}

ol.process > li h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

ol.process > li p {
  margin-bottom: 0;
  color: #465e71;
}

/* 7. Technical Specification Tables & Accordions */
.reviewed-table table,
.spec-table,
body.unified-site table {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(16, 43, 73, 0.12);
  box-shadow: 0 4px 18px rgba(7, 19, 31, 0.04);
}

body.unified-site table tbody tr:nth-child(even) {
  background: rgba(240, 246, 251, 0.65);
}

body.unified-site table tbody tr:hover {
  background: rgba(20, 104, 188, 0.055);
}

/* Native <details> FAQ & Category Accordions */
body.unified-site details:not(.category-entry) {
  border: 1px solid rgba(16, 43, 73, 0.12);
  border-radius: 14px;
  padding: 4px 18px;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(7, 19, 31, 0.03);
  transition: border-color 0.2s var(--bx-ease), box-shadow 0.2s var(--bx-ease);
}

body.unified-site details:not(.category-entry)[open] {
  border-color: rgba(20, 104, 188, 0.32);
  box-shadow: 0 8px 24px rgba(7, 19, 31, 0.06);
}

body.unified-site details:not(.category-entry) + details:not(.category-entry) {
  margin-top: 12px;
}

body.unified-site details:not(.category-entry) summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
}

/* Pills & Tags */
body.unified-site .page-heading .pills a,
.pills a {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(141, 231, 239, 0.28);
  transition: background 0.2s var(--bx-ease), border-color 0.2s var(--bx-ease), transform 0.2s var(--bx-ease);
}

body.unified-site .page-heading .pills a:hover,
.pills a:hover {
  background: rgba(77, 217, 232, 0.14);
  border-color: rgba(77, 217, 232, 0.65);
  transform: translateY(-1px);
  text-decoration: none;
}

/* Contact / Inquiry Panel Polish */
.email-contact,
.email-brief {
  border-radius: 18px;
}

body.unified-site input,
body.unified-site textarea,
body.unified-site select,
form input,
form textarea,
form select {
  border-radius: 10px;
  transition: border-color 0.2s var(--bx-ease), box-shadow 0.2s var(--bx-ease), background 0.2s var(--bx-ease);
}

body.unified-site input:focus,
body.unified-site textarea:focus,
body.unified-site select:focus,
form input:focus,
form textarea:focus,
form select:focus {
  border-color: #1468bc;
  box-shadow: 0 0 0 4px rgba(20, 104, 188, 0.14);
  outline: none;
}

/* Product Showcase Image Framing */
.product-source-image,
.ai-scene-image {
  border-radius: 16px;
  overflow: hidden;
}

/* 8. Footer Polish */
body footer.site-footer {
  background:
    radial-gradient(ellipse 65% 55% at 0% 0%, rgba(20, 104, 188, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 45% at 100% 100%, rgba(77, 217, 232, 0.08), transparent 55%),
    #060e19;
}

.site-footer .footer-brand-window {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.site-footer .footer-nav > a {
  transition: color 0.18s var(--bx-ease), transform 0.18s var(--bx-ease);
}

.site-footer .footer-nav > a:hover {
  color: #8de7ef;
  transform: translateX(3px);
  text-decoration: none;
}

/* 9. Reduced Motion Compliance */
@media (prefers-reduced-motion: reduce) {
  .button,
  .card,
  body.unified-site .product-card,
  .card img,
  body.unified-site .product-card img,
  .portfolio-group,
  .company-profile dl div,
  ol.process > li,
  .pills a,
  .site-footer .footer-nav > a,
  :root .nav-inner nav a::after,
  :root body.unified-site .site-header nav a::after {
    transition: none !important;
    transform: none !important;
  }
}

/* V023: purchasing information and standalone warehouse solution */
.bx-trust,.bx-wh-section,.bx-faq,.bx-related {padding-block:clamp(1.6rem,4vw,4rem)}
.bx-trust {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:clamp(1rem,3vw,2rem);align-items:center;background:#f0f7fb;border-block:1px solid #d8e6f0;color:#112f4b}
.bx-trust h2,.bx-wh-section h2 {margin:.3em 0;font-size:clamp(1.5rem,3vw,2.4rem)}
.bx-trust ul,.bx-related ul {list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.bx-trust li a,.bx-related li a {display:block;padding:.8rem .9rem;background:#fff;border:1px solid #cedfe9;border-radius:.65rem;color:#123e65;font-weight:650;text-decoration:none}
.bx-trust li a:hover,.bx-related li a:hover {border-color:#1f77b4;text-decoration:underline}
.bx-faq details {max-width:58rem;background:#fff;color:#142e46;border:1px solid #cfdfeb;border-radius:.7rem;padding:.35rem 1rem;margin:.7rem 0}
.bx-faq summary {cursor:pointer;padding:.65rem 0;font-weight:650}
.bx-faq p {margin:.3rem 0 .8rem}
.bx-copy {margin:.45rem .25rem .45rem .7rem;padding:.53rem .75rem;border:1px solid #4981a9;border-radius:.5rem;background:#fff;color:#143b5d;font:inherit;cursor:pointer}
.bx-copy-status {display:block;font-size:.9em;min-height:1.25em;color:inherit}
.bx-copy-fallback {width:100%;min-height:7rem}
.bx-copy[hidden],.bx-copy-fallback[hidden] {display:none!important}
.bx-warehouse-hero {display:grid!important;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:clamp(1.4rem,4vw,4rem);align-items:center}
.bx-warehouse-hero h1 {font-size:clamp(2.35rem,5.2vw,5.1rem);line-height:1.04}
.bx-warehouse-hero figure {min-width:0;margin:0}
.bx-warehouse-hero img {display:block;width:100%;height:auto;border-radius:1rem}
.bx-warehouse-hero figcaption {padding:.5rem 0;font-size:.85rem;color:inherit}
.bx-warehouse-actions {display:flex;flex-wrap:wrap;gap:.75rem}
.bx-wh-grid {list-style:none;counter-reset:wh;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;padding:0}
.bx-wh-grid li {counter-increment:wh;border:1px solid #d6e4ed;border-top:3px solid #218ca8;border-radius:.8rem;padding:1rem;background:#f7fbfd;color:#112c44}
.bx-wh-grid li::before {content:"0" counter(wh);display:block;font:600 1rem ui-monospace,monospace;color:#205f84;margin-bottom:.55rem}
.bx-wh-grid p {margin:.6rem 0 0}
.bx-table-scroll {max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
.bx-table-scroll:focus-visible,.bx-copy:focus-visible {outline:2px solid #216fa4;outline-offset:3px}
.bx-equipment {width:100%;min-width:38rem;table-layout:fixed}
.bx-equipment th,.bx-equipment td {text-align:left;vertical-align:top;overflow-wrap:anywhere}
.bx-equipment tbody th {font-weight:650}
@media(max-width:760px) {
 .bx-trust,.bx-warehouse-hero {grid-template-columns:1fr}
 .bx-wh-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px) {.bx-wh-grid,.bx-trust ul,.bx-related ul{grid-template-columns:1fr}.bx-copy{margin-left:0}}

/* Keep explanatory text legible against the warehouse hero's dark field. */
.bx-warehouse-hero > div > p:not(.eyebrow) {color:#c2d4e4}
.bx-warehouse-hero h1 em {color:#8ee5ee}

/* V023 visual recheck: preserve the existing content grids and dark surfaces. */
.bx-faq.wrap {box-sizing:border-box;padding-inline:0}
body.unified-site main > .bx-related {box-sizing:border-box}
body.unified-site .bx-related li a {
  background:rgba(98,183,226,.09);
  border:1px solid rgba(121,210,234,.32);
  color:#d2f2fc;
}
body.unified-site .bx-related li a:is(:hover,:focus-visible) {
  background:rgba(98,183,226,.19);
  border-color:#78d8ed;
  color:#f4fbff;
}
body.unified-site main .bx-application-notes > p:not(.eyebrow),
body.unified-site main .bx-application-notes > ul,
body.unified-site main .bx-application-notes > ul li,
body.unified-site main:has(.pdf-products-top) .family-grid > article > p {color:#c2d3e3}

/* Home: fit the complete static relay to its content, not its animated stage. */
@media (prefers-reduced-motion:reduce) {
  #brand-relay.brand-relay iframe[data-astro-cid-gf3fqeep] {
    height:clamp(238px,30vw,400px);
  }
}
