/* BPH SYSTEMS — corporate & technical home page (after the hero).
   Calm, structured and information-dense. Works in both themes. */

:root {
  --card: rgba(255, 255, 255, 0.03);
  --card-2: rgba(255, 255, 255, 0.025);
  --line: rgba(255, 255, 255, 0.09);
}
[data-theme="light"] {
  --card: #ffffff;
  --card-2: #f6f5f2;
  --line: rgba(17, 18, 20, 0.1);
}

/* ---------- hero call to action ---------- */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 2.2em;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--bg);
  background: var(--fg);
  pointer-events: auto;
  opacity: 0;
  animation: fade 1.4s 5s var(--ease) forwards;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18); }
.hero__cta svg { transition: transform 0.3s var(--ease); }
.hero__cta:hover svg { transform: translateX(3px); }
.hero__cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* header "Explore" button */
.btn--explore { color: #120c05; background: var(--accent); border: 1px solid var(--accent); }
[data-theme="light"] .btn--explore { color: #fff; }
.btn--explore:hover { filter: brightness(1.06); }
.btn--dark { display: inline-flex; margin-block-start: 28px; color: #fff; background: #111214; border: 1px solid #111214; padding: 12px 22px; }
.btn--dark:hover { background: #2a2c30; }
:root:not([data-theme="light"]) .btn--dark { color: #111214; background: #e9edf3; border-color: #e9edf3; }
.mobile-menu__list a.mobile-menu__explore { color: var(--accent); }
@media (max-width: 1180px) { .site-header__explore { display: none; } }

/* ---------- page transition into Explore ---------- */
.is-diving #hero-canvas { transform: scale(2.6); opacity: 0; transition: transform 0.85s cubic-bezier(0.6, 0, 0.35, 1), opacity 0.85s ease; }
.is-diving body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  opacity: 0;
  animation: fade 0.7s 0.15s ease forwards;
}

/* ---------- sections ---------- */
.hsec {
  position: relative;
  padding: clamp(90px, 13vh, 160px) var(--pad-x);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.hsec--alt { background: var(--bg-alt, #0a0d12); }
.hsec__head { max-width: 900px; margin-block-end: clamp(40px, 6vh, 64px); }
.note { margin-block-start: 28px; font-size: 13px; color: var(--faint); }
.note a { color: var(--fg); }
.mono { font-family: var(--mono); font-size: 13px; }

/* start here */
.access { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.acard, .scard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}
.acard:nth-child(2), .scard:nth-child(2) { transition-delay: 0.08s; }
.acard:nth-child(3), .scard:nth-child(3) { transition-delay: 0.16s; }
.scard:nth-child(4) { transition-delay: 0.24s; }
.acard__tag, .pcard__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.acard h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.015em; }
.acard p, .scard p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.links { list-style: none; margin-block-start: auto; padding-block-start: 10px; }
.links a {
  display: flex;
  justify-content: space-between;
  padding-block: 12px;
  border-block-start: 1px solid var(--line);
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  transition: color 0.3s, padding 0.3s;
}
.links a::after { content: "→"; color: var(--faint); transition: transform 0.3s var(--ease), color 0.3s; }
.links a:hover { color: var(--accent); }
.links a:hover::after { transform: translateX(4px); color: var(--accent); }

/* products */
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
  padding: 24px;
  border-radius: 18px;
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
}
.pcard h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.pcard p { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.pcard__links { display: flex; gap: 18px; margin-block-start: auto; padding-block-start: 8px; }
.pcard__links a { font-size: 13.5px; color: var(--fg); text-decoration: none; border-block-end: 1px solid var(--line); padding-block-end: 2px; transition: border-color 0.3s, color 0.3s; }
.pcard__links a:hover { color: var(--accent); border-color: var(--accent); }
.pcard--explore {
  --fg: #e9edf3;
  --muted: rgba(233, 237, 243, 0.6);
  background: radial-gradient(ellipse 90% 80% at 80% 0%, rgba(242, 184, 112, 0.22), transparent 60%), #121417;
  border-color: transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.pcard--explore .pcard__tag { color: #f2b870; }
.pcard--explore:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); }
.pcard__go { display: inline-flex; align-items: center; gap: 8px; margin-block-start: auto; font-size: 14px; color: #f2b870; }
.products .pcard:nth-child(4n+2) { transition-delay: 0.06s; }
.products .pcard:nth-child(4n+3) { transition-delay: 0.12s; }
.products .pcard:nth-child(4n+4) { transition-delay: 0.18s; }

/* releases */
.releases { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.releases .hsec__head { margin: 0; }
.rtable { border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.rtable__row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.9fr 2fr;
  gap: 14px;
  padding: 15px 22px;
  border-block-end: 1px solid var(--line);
  font-size: 14.5px;
  align-items: baseline;
}
.rtable__row--head { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.rtable__row b { font-weight: 600; }
.rtable__row span:last-child { color: var(--muted); }
.rtable__row--sec b { color: #c4561f; }
:root:not([data-theme="light"]) .rtable__row--sec b { color: #ffb27a; }
.rtable__note { padding: 12px 22px; font-size: 12px; color: var(--faint); }

/* downloads */
.dl-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 22px; }
.dl-chip {
  font: inherit;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.dl-chip:hover { color: var(--fg); }
.dl-chip[aria-selected="true"] { color: var(--fg); border-color: var(--accent); background: rgba(242, 184, 112, 0.1); }
.dl-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dl-list { list-style: none; display: grid; gap: 8px; }
.dl-list li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 150px auto;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--card-2);
  border: 1px solid var(--line);
  animation: dlIn 0.4s var(--ease);
}
@keyframes dlIn { from { opacity: 0; transform: translateY(4px); } }
.dl-ic {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-alt, rgba(255, 255, 255, 0.05));
}
.dl-name { display: flex; flex-direction: column; min-width: 0; }
.dl-name b { font-size: 15.5px; font-weight: 600; }
.dl-name small { font-size: 13px; color: var(--muted); }
.dl-meta { font-size: 13px; color: var(--faint); }
.is-locked .dl-meta::before { content: "🔒 "; }
.dl-act {
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.3s, background 0.3s;
}
.dl-act:hover { border-color: var(--fg); }

/* support */
.support { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.scard h3 { font-size: 20px; font-weight: 600; }
.scard__go { margin-block-start: auto; padding-block-start: 12px; font-size: 14.5px; color: var(--fg); text-decoration: none; }
.scard__go::after { content: " →"; color: var(--accent); }
.status { list-style: none; display: grid; gap: 10px; margin-block-start: 4px; }
.status li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.status i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status i.ok { background: #2f9e64; box-shadow: 0 0 0 3px rgba(47, 158, 100, 0.15); }
.status i.soon { background: var(--accent); box-shadow: 0 0 0 3px rgba(242, 184, 112, 0.18); }
.status span { margin-inline-start: auto; font-size: 12.5px; color: var(--faint); }

/* company */
.company { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(40px, 7vw, 120px); }
.principles { list-style: none; margin-block-start: 40px; }
.principles li { padding-block: 16px; border-block-start: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--muted); }
.principles b { display: block; font-size: 17px; font-weight: 600; color: var(--fg); margin-block-end: 2px; }
.news__title { font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); margin-block-end: 18px; }
.news { list-style: none; }
.news li { display: flex; flex-direction: column; gap: 6px; padding-block: 16px; border-block-start: 1px solid var(--line); }
.news time { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.news b { font-size: 17px; font-weight: 500; line-height: 1.4; }

/* ---------- small screens ---------- */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .releases, .company { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .access, .products, .support { grid-template-columns: minmax(0, 1fr); }
  .rtable__row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .rtable__row > span:nth-child(3) { display: none; }
  .rtable__row > span:last-child { grid-column: 1 / -1; }
  .rtable__row--head { display: none; }
  .dl-list li { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .dl-meta { display: none; }
  .dl-ic { width: 44px; height: 44px; }
}

/* ---------- hardware (home section + shared drawing styles) ---------- */
.hw-link { font-size: 14.5px; color: var(--fg); text-decoration: none; border-block-end: 1px solid var(--line); padding-block-end: 2px; transition: color 0.3s, border-color 0.3s; }
.hw-link:hover { color: var(--accent); border-color: var(--accent); }
.hwhome { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.hwhome .hsec__head { margin: 0; }
.hwhome__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-block-start: 28px; }
.hwhome__act .btn--dark { margin: 0; }
.hwhome__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hwfam {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px 20px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.hwfam:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(17, 18, 20, 0.1); }
.hwfam:nth-child(2) { transition-delay: 0.06s; }
.hwfam:nth-child(3) { transition-delay: 0.12s; }
.hwfam:nth-child(4) { transition-delay: 0.18s; }
.hwfam .hw-art { height: 120px; margin-block-end: 6px; }
.hwfam b { font-size: 18px; font-weight: 600; }
.hwfam small { font-size: 13.5px; color: var(--muted); }

/* product drawings: dark devices that read on both themes */
.hw-art { display: block; width: 100%; height: auto; overflow: visible; }
.hw-art .b { fill: #1c1f24; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.hw-art .s { fill: #2d3138; }
.hw-art .p, .hw-art .p rect { fill: #3b4048; }
.hw-art .scr { fill: #0c0e11; stroke: rgba(242, 184, 112, 0.5); stroke-width: 1; }
.hw-art .led { fill: #f2b870; }
.hw-art .led2 { fill: #5fd39a; }
.hw-art .rail { fill: #bdb9b1; }
.hw-art .link { fill: none; stroke: #f2b870; stroke-width: 1.5; stroke-dasharray: 3 4; }
.hw-art .frame { fill: none; stroke: #8a857d; stroke-width: 6; }
@media (max-width: 1100px) { .hwhome { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .hwhome__grid { grid-template-columns: minmax(0, 1fr); } }

/* home: news links (data-driven list in the Company section) */
.news a { color: var(--fg); text-decoration: none; }
.news a:hover b { color: var(--accent); }
.company__news .hw-link { display: inline-block; margin-block: 18px 6px; }

/* ---------- hospitality showcase (dark in both themes) ---------- */
.hosp {
  --fg: #e9edf3;
  --muted: rgba(233, 237, 243, 0.62);
  --faint: rgba(233, 237, 243, 0.35);
  --accent: #f2b870;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 90px);
  align-items: center;
  padding: clamp(90px, 13vh, 160px) var(--pad-x);
  color: var(--fg);
  background: radial-gradient(ellipse 70% 60% at 85% 10%, rgba(242, 184, 112, 0.12), transparent 60%), #0f1114;
}
.hosp__media { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4); }
.hosp__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease); }
.hosp__media:hover img { transform: scale(1.03); }
.hosp__badge {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #fff;
  background: rgba(12, 14, 17, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hosp__dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd39a; box-shadow: 0 0 0 4px rgba(95, 211, 154, 0.2); }
.hosp .sec-title { color: rgba(233, 237, 243, 0.75); }
.hosp__caps { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; margin-block-start: 36px; }
.hosp__caps li { display: flex; flex-direction: column; gap: 4px; padding-block: 14px; border-block-start: 1px solid rgba(255, 255, 255, 0.1); }
.hosp__caps li:nth-child(2n) { transition-delay: 0.06s; }
.hosp__caps b { font-size: 16px; font-weight: 600; }
.hosp__caps span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.hosp__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-block-start: 34px; }
.hosp__act .btn--accent { color: #120c05; }
.hosp__link { font-size: 15px; color: var(--fg); text-decoration: none; border-block-end: 1px solid rgba(255, 255, 255, 0.3); padding-block-end: 2px; transition: border-color 0.3s; }
.hosp__link:hover { border-color: var(--accent); }
@media (max-width: 1000px) {
  .hosp { grid-template-columns: minmax(0, 1fr); }
  .hosp__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) { .hosp__caps { grid-template-columns: minmax(0, 1fr); } }
[data-theme="light"] .hosp .btn--accent { color: #120c05; }
[data-theme="light"] .hosp .btn--accent:hover { background: #f6c78a; border-color: #f6c78a; }

/* downloads with no file yet, and release-note links */
.dl-act--soon { color: var(--faint); border-style: dashed; cursor: default; }
.rtable__more { margin-inline-start: 6px; font-size: 13px; color: var(--accent); }
