
:root {
  --bg: #04070b;
  --bg-soft: #08111b;
  --panel: rgba(8, 17, 27, 0.88);
  --panel-strong: rgba(10, 22, 35, 0.96);
  --text: #f4f8fc;
  --muted: #aebccc;
  --line: rgba(74, 169, 255, 0.28);
  --blue: #38a9ff;
  --blue-bright: #72c9ff;
  --page-pad: clamp(10px, 1.4vw, 28px);
  --grid-gap: clamp(12px, 1.6vw, 30px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% -10%, rgba(38, 128, 209, 0.16), transparent 36rem),
    linear-gradient(180deg, #06101a 0%, var(--bg) 36%, #020406 100%);
  color: var(--text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: var(--blue-bright);
}

a:hover {
  color: white;
}

.site-shell {
  width: 100%;
  margin: 0;
  padding-inline: var(--page-pad);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding-top: clamp(8px, 1vw, 16px);
  background: rgba(4, 7, 11, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(56, 169, 255, 0.45),
    transparent
  );
  pointer-events: none;
}

.brand-panel {
  position: relative;
  overflow: hidden;
  height: 200px;
  min-height: 200px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: #02080e;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.34);
}

.brand-panel img {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: auto;
  height: 200px;
  max-width: none;
  min-width: 0;
  margin: 0;
  transform: translateX(-50%);
}

.site-nav {
  position: relative;
  top: auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  background: rgba(3, 8, 13, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 9px;
  color: #dbeeff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .095em;
  font-size: .78rem;
  font-weight: 650;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(38, 151, 240, .28), rgba(19, 76, 124, .18));
  box-shadow: inset 0 0 0 1px rgba(91, 190, 255, .25);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  background: rgba(17, 54, 82, .35);
  color: white;
  font: inherit;
  cursor: pointer;
}

.page-grid {
  display: grid;
  grid-template-columns: 17% minmax(0, 1fr) 20%;
  gap: var(--grid-gap);
  align-items: start;
  width: 100%;
  padding: clamp(18px, 2vw, 34px) 0 clamp(24px, 2.5vw, 42px);
}

.sidebar {
  position: sticky;
  top: 82px;
}

.sidebar-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #06101a;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, .33),
    0 0 40px rgba(26, 133, 220, .06);
}

.sidebar-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.content {
  min-width: 0;
}

.content-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3.1vw, 54px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(14, 29, 45, .94), rgba(4, 10, 17, .94)),
    var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}

.content-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  font-weight: 700;
}

h1, h2, h3 {
  margin-top: 0;
  color: #fff;
  line-height: 1.16;
}

h1 {
  max-width: 16ch;
  margin-bottom: 22px;
  font-size: clamp(2rem, 3.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 600;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
}

.lead {
  max-width: 70ch;
  margin: 0;
  color: #d6e1eb;
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
}

.lead + .lead {
  margin-top: 18px;
}

.accent-rule {
  width: min(150px, 30vw);
  height: 2px;
  margin: 30px 0;
  background: linear-gradient(90deg, var(--blue), transparent);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.quick-card {
  min-height: 145px;
  padding: 21px;
  border: 1px solid rgba(72, 166, 239, .22);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(23, 52, 77, .35), rgba(3, 9, 15, .48));
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 192, 255, .58);
  background:
    linear-gradient(145deg, rgba(29, 74, 110, .46), rgba(3, 9, 15, .60));
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.quick-card span {
  color: var(--muted);
}

.placeholder {
  padding: 20px;
  border: 1px dashed rgba(100, 190, 255, .35);
  border-radius: 12px;
  background: rgba(13, 28, 43, .42);
  color: var(--muted);
}

.datasheet-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.datasheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(85, 175, 240, .20);
  border-radius: 10px;
  background: rgba(10, 25, 38, .66);
}

.datasheet-button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(90, 190, 255, .35);
  border-radius: 8px;
  color: #cdeeff;
  text-decoration: none;
  opacity: .68;
  pointer-events: none;
}

.site-footer {
  margin-bottom: 26px;
  padding: 23px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(4, 9, 14, .82);
  color: var(--muted);
  font-size: .86rem;
}

.site-footer p {
  margin: 0;
}

.mobile-visuals {
  display: none;
}

/* Tablet */
@media (max-width: 1100px) {
  .page-grid {
    grid-template-columns: 16% minmax(0, 1fr) 19%;
    gap: clamp(10px, 1.3vw, 18px);
  }

  .content-panel {
    padding: clamp(20px, 2.5vw, 34px);
  }

  h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
  }

  .site-nav a {
    padding-inline: 11px;
    letter-spacing: .075em;
  }
}

@media (max-width: 900px) {  .page-grid {
    grid-template-columns: minmax(150px, 25%) minmax(0, 1fr);
  }

  .sidebar.right {
    display: none;
  }

  .mobile-visuals {
    display: block;
    margin-top: 18px;
  }

  .mobile-visuals img {
    display: block;
    width: min(100%, 420px);
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: 14px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .site-shell {
    width: 100%;
    padding-inline: 9px;
  }

  .site-header {
    padding-top: 9px;
  }

  .site-nav {
    justify-content: space-between;
    flex-wrap: wrap;
    border-radius: 0 0 11px 11px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding-top: 8px;
  }

  .nav-links.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .site-nav a {
    width: 100%;
  }

  .page-grid {
    display: block;
    padding-top: 18px;
  }

  .sidebar {
    display: none;
  }

  .content-panel {
    padding: 26px 20px;
    border-radius: 13px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

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

  .mobile-visuals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .mobile-visuals img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
    border-radius: 11px;
  }

  .datasheet-row {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* WSR fixed-height panoramic banner */
.brand-panel {
  position: relative;
  overflow: hidden;
  height: 200px !important;
  min-height: 200px !important;
  padding: 0 !important;
}

.brand-panel img {
  position: absolute;
  top: 0;
  left: 50%;
  width: auto !important;
  height: 200px !important;
  max-width: none !important;
  min-width: 0 !important;
  object-fit: initial !important;
  transform: translateX(-50%);
}
