/* ==========================================================================
   EnerBlue v3 add-ons (core)
   Brand lockup · scenario carousel · business grid · topology · placeholders
   ========================================================================== */

/* ---------------- brand lockup ---------------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.brand .mark-tile {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background:
    radial-gradient(circle at 30% 25%, rgba(30, 111, 217, 0.18), transparent 62%),
    rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s, background 0.3s;
}
.brand:hover .mark-tile { border-color: rgba(59, 140, 255, 0.55); }
.brand .mark-tile img { width: 27px; height: auto; }
.brand .word { display: flex; flex-direction: column; line-height: 1; }
.brand .word b {
  position: relative;
  display: inline-block;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #fff;
}
.brand .word b .ai-badge {
  vertical-align: 6px;
  margin-left: 4px;
  padding: 1.5px 4px;
  font-size: 0.52rem;
  letter-spacing: 0.06em;
}
.brand .word small {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.2em;
  color: var(--muted-2);
}
.brand .word small::before {
  content: "";
  width: 13px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
  flex: none;
}

/* ---------------- scenario hero carousel ---------------- */
.hero-carousel {
  position: relative;
  min-height: clamp(620px, 86vh, 820px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.55) contrast(1.1);
  opacity: 0.55;
  transform: scale(1.04);
  transition: transform 8s linear;
}
.slide.is-active .slide-bg { transform: scale(1); }
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 26, 38, 0.96) 0%, rgba(16, 26, 38, 0.82) 42%, rgba(16, 26, 38, 0.35) 100%),
    linear-gradient(0deg, rgba(16, 26, 38, 0.95), transparent 55%);
}
.slide-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(120px, 13vw, 164px);
  padding-bottom: clamp(96px, 10vw, 120px);
}
.slide-inner > * { max-width: 720px; }
.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-soft);
  margin-bottom: 22px;
}
.slide-tag .idx {
  color: var(--muted-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 1px 6px;
  letter-spacing: 0.1em;
}
.slide h1 {
  font-size: clamp(2rem, 3.9vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fff;
}
.slide h1 em { font-style: normal; color: var(--blue-soft); }
.slide p {
  margin-top: 22px;
  max-width: 54ch;
  color: var(--text-2);
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.85;
}
.slide-metrics {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 560px;
}
.slide-metrics div b {
  display: block;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: #fff;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.slide-metrics div span { font-size: 0.72rem; color: var(--muted-2); }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.hero-ui {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-dots { display: flex; gap: 6px; margin-right: 8px; }
.hero-dots button {
  width: 34px;
  height: 3px;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  transition: background 0.25s, width 0.25s;
}
.hero-dots button.is-on { background: var(--blue-bright); width: 52px; }
.hero-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  background: rgba(16, 26, 38, 0.35);
  backdrop-filter: blur(6px);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.hero-arrow:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); background: rgba(16, 26, 38, 0.6); }
.hero-arrow svg { width: 15px; height: 15px; }

.hero-counter {
  position: absolute;
  z-index: 3;
  left: var(--pad);
  bottom: 30px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.hero-counter b { color: var(--text); font-weight: 500; }

/* ---------------- business grid ---------------- */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.biz {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 26px 26px 24px;
  background: var(--bg);
  transition: background 0.3s;
}
.biz:hover { background: var(--panel); }
.biz .no {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}
.biz h3 {
  margin-top: 16px;
  font-size: 1.14rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.biz .en {
  display: block;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.biz p {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}
.biz .tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 16px; }
.biz .tags span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 6px;
}
.biz .go {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--blue-soft);
}
.biz .go svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.biz:hover .go svg { transform: translateX(3px); }
.biz.is-plan { opacity: 0.78; }
.biz.is-plan .en { color: var(--amber); }

/* ---------------- topology ---------------- */
.topo-wrap {
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(30, 111, 217, 0.1), transparent 65%),
    linear-gradient(180deg, rgba(17, 26, 38, 0.85), rgba(8, 12, 18, 0.95));
  padding: clamp(14px, 2vw, 26px);
  overflow-x: auto;
}
.topo-wrap svg { width: 100%; height: auto; min-width: 820px; display: block; }
.topo-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}
.topo-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.topo-legend i { width: 10px; height: 10px; border-radius: 2px; display: block; }

/* svg primitives */
.tp-band { fill: rgba(255, 255, 255, 0.025); stroke: rgba(255, 255, 255, 0.12); }
.tp-band-label { fill: #8d9eb4; font: 600 11px var(--mono); letter-spacing: 2px; }
.tp-head { fill: #e9eff8; font: 600 15px var(--sans); }
.tp-sub { fill: #8d9eb4; font: 400 10.5px var(--sans); }
.tp-mono { fill: #63768d; font: 400 9.5px var(--mono); letter-spacing: 1px; }
.tp-box { fill: rgba(30, 111, 217, 0.1); stroke: rgba(59, 140, 255, 0.45); }
.tp-box-2 { fill: rgba(255, 255, 255, 0.035); stroke: rgba(255, 255, 255, 0.16); }
.tp-box-3 { fill: rgba(63, 216, 200, 0.07); stroke: rgba(63, 216, 200, 0.38); }
.tp-node { fill: #c3cfdf; font: 500 11px var(--sans); }
.tp-node-small { fill: #8d9eb4; font: 400 9.5px var(--sans); }
.tp-link { stroke: rgba(59, 140, 255, 0.5); stroke-width: 1.2; fill: none; stroke-dasharray: 5 5; animation: tpflow 8s linear infinite; }
.tp-link-2 { stroke: rgba(63, 216, 200, 0.45); stroke-width: 1.2; fill: none; stroke-dasharray: 3 6; animation: tpflow 10s linear infinite reverse; }
@keyframes tpflow { to { stroke-dashoffset: -120; } }
.tp-chip { fill: rgba(16, 26, 38, 0.9); stroke: rgba(255, 255, 255, 0.18); }
.tp-chip-text { fill: #93a3b8; font: 400 9px var(--mono); letter-spacing: 0.5px; }
.tp-divider { stroke: rgba(255, 255, 255, 0.1); stroke-width: 1; }

/* ---------------- image placeholder ---------------- */
.ph {
  position: relative;
  display: grid;
  place-content: center;
  gap: 6px;
  text-align: center;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 3px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 8px, transparent 8px 16px),
    rgba(255, 255, 255, 0.012);
}
.ph .ph-k {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-soft);
}
.ph .ph-t { font-size: 0.86rem; color: var(--text-2); line-height: 1.5; }
.ph .ph-m {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  line-height: 1.6;
}
.ph--sm { min-height: 120px; }
.ph--wide { min-height: 240px; }

/* ---------------- notice ---------------- */
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(240, 179, 87, 0.28);
  background: rgba(240, 179, 87, 0.06);
  border-radius: 3px;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.7;
}
.notice svg { width: 16px; height: 16px; flex: none; color: var(--amber); margin-top: 2px; }

@media (prefers-reduced-motion: reduce) {
  .tp-link, .tp-link-2 { animation: none; }
  .slide, .slide-bg { transition: none; }
}

@media (max-width: 1080px) {
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .biz-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .hero-carousel { min-height: 700px; }
  .hero-ui, .hero-counter { bottom: 18px; }
  .hero-dots button { width: 24px; }
  .hero-dots button.is-on { width: 36px; }
  .brand .word small { display: none; }
}


/* ---------------- header over hero ---------------- */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 26, 38, 0.82), rgba(16, 26, 38, 0.42) 46%, transparent);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.site-header.over-hero { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.over-hero::before { opacity: 1; }
html:not([data-theme="light"]) .site-header.over-hero .nav-links a { color: rgba(255, 255, 255, 0.94); }
html:not([data-theme="light"]) .site-header.over-hero .nav-links a:hover,
html:not([data-theme="light"]) .site-header.over-hero .nav-links a[aria-current="page"] { color: #fff; }
html:not([data-theme="light"]) .site-header.over-hero .brand .word b { color: #fff; }
html:not([data-theme="light"]) .site-header.over-hero .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.08);
}
html:not([data-theme="light"]) .site-header.over-hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
html:not([data-theme="light"]) .site-header.over-hero .theme-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}
html[data-theme="light"] .site-header.over-hero::before {
  background: linear-gradient(180deg, rgba(241, 245, 250, 0.96), rgba(241, 245, 250, 0.62) 46%, transparent);
}
@media (max-width: 860px) {
  .site-header::before { height: 120px; }
  html:not([data-theme="light"]) .site-header.over-hero .burger span { background: #fff; }
  html:not([data-theme="light"]) .site-header.over-hero .burger { border-color: rgba(255, 255, 255, 0.42); }
}


/* ---------------- floating actions ---------------- */
.float-actions {
  position: fixed;
  right: 22px;
  bottom: 84px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.float-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(16, 26, 38, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-2);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.9);
  transition: color 0.2s, border-color 0.2s, background 0.2s, opacity 0.25s, transform 0.25s;
}
.float-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.float-btn svg { width: 16px; height: 16px; }
.float-actions .theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(16, 26, 38, 0.72);
}
.back-top { opacity: 0; pointer-events: none; transform: translateY(8px); }
.back-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
html[data-theme="light"] .float-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(10, 37, 64, 0.18);
  color: #33475f;
}
html[data-theme="light"] .float-btn:hover { color: #0a2540; border-color: rgba(10, 37, 64, 0.4); }
@media (max-width: 860px) {
  .float-actions { right: 14px; bottom: 74px; }
}


/* ---------------- auth / portal ---------------- */
.auth-body { background: #0b1420; }
.auth {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  overflow: hidden;
}
.auth-bg {
  position: absolute;
  inset: 0;
  background: url("../img/login-bg.jpg") center / cover no-repeat;
  transform: scale(1.02);
}
.auth::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 19, 30, 0.92) 0%, rgba(10, 19, 30, 0.72) 46%, rgba(9, 16, 26, 0.86) 100%),
    radial-gradient(ellipse 60% 60% at 20% 10%, rgba(30, 111, 217, 0.25), transparent 65%);
  pointer-events: none;
}
.auth-left {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(26px, 4vw, 56px);
}
.auth-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-topbar .links { display: flex; align-items: center; gap: 18px; font-size: 0.82rem; color: #a9bacd; }
.auth-topbar .links a:hover { color: #fff; }
.auth-copy h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 16ch;
}
.auth-copy p { margin-top: 16px; max-width: 46ch; color: #b7c6d8; font-size: 0.95rem; line-height: 1.8; }
.ws-list { display: grid; gap: 12px; margin-top: 28px; max-width: 560px; }
.ws {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: #dfe8f3;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}
.ws:hover { background: rgba(255, 255, 255, 0.07); transform: translateX(2px); }
.ws.is-on { border-color: rgba(59, 140, 255, 0.75); background: rgba(30, 111, 217, 0.16); }
.ws .ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #7fb2ff;
}
.ws .ico svg { width: 17px; height: 17px; }
.ws b { display: block; font-size: 0.95rem; font-weight: 600; }
.ws span { display: block; margin-top: 3px; font-size: 0.78rem; color: #9fb0c4; line-height: 1.5; }
.ws .chk { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.3); }
.ws.is-on .chk { border-color: #3b8cff; background: radial-gradient(circle at center, #3b8cff 0 42%, transparent 46%); }

.auth-foot { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; color: #7e90a4; line-height: 1.8; }
.auth-foot a { color: #7fb2ff; }

.auth-right {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px);
  background: rgba(10, 17, 27, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-card { width: 100%; max-width: 384px; }
.auth-card .kicker {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7fb2ff;
}
.auth-card h2 { margin-top: 12px; font-size: 1.42rem; color: #fff; letter-spacing: -0.02em; }
.auth-card .hint { margin-top: 8px; font-size: 0.82rem; color: #9fb0c4; line-height: 1.65; }
.auth-form { margin-top: 24px; display: grid; gap: 14px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d9eb4;
}
.auth-field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.9rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}
.auth-field input::placeholder { color: #7e90a4; }
.auth-field input:focus { outline: none; border-color: #3b8cff; background: rgba(59, 140, 255, 0.08); }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.78rem; color: #9fb0c4; }
.auth-row label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.auth-row input[type="checkbox"] { accent-color: #1e6fd9; }
.auth-row a { color: #7fb2ff; }
.auth-submit {
  width: 100%;
  margin-top: 4px;
  padding: 13px 16px;
  border-radius: 3px;
  background: #1e6fd9;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.auth-submit:hover { background: #2a7ce6; }
.auth-submit svg { width: 15px; height: 15px; }
.auth-note {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(240, 179, 87, 0.32);
  background: rgba(240, 179, 87, 0.08);
  border-radius: 3px;
  font-size: 0.8rem;
  color: #e6d3b3;
  line-height: 1.6;
}
.auth-note.is-on { display: block; }
.auth-note a { color: #7fb2ff; }
.auth-alt { margin-top: 18px; font-size: 0.78rem; color: #7e90a4; line-height: 1.7; }
.auth-alt a { color: #7fb2ff; }
.auth-switch { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.auth-switch a {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #9fb0c4;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  padding: 4px 8px;
}
.auth-switch a:hover { color: #fff; border-color: rgba(255, 255, 255, 0.36); }

@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-left { padding-bottom: 8px; }
  .auth-right { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .auth-copy h1 { font-size: 1.8rem; }
  .ws-list { margin-top: 18px; }
}

/* auth · narrow screens: keep the card and top bar inside the viewport */
@media (max-width: 520px) {
  .auth-left, .auth-right { padding-left: 18px; padding-right: 18px; }
  .auth-card { max-width: none; }
  .auth-topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .auth-topbar .links { font-size: 0.78rem; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .auth-copy p { font-size: 0.9rem; }
}

/* ---------------- level table (L0 → L2) ---------------- */
.level-table { min-width: 780px; font-size: 0.8rem; }
.level-table th, .level-table td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.level-table thead th {
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 500;
  white-space: nowrap;
}
.level-table tbody th {
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  white-space: nowrap;
  width: 92px;
}
.level-table td { color: var(--muted); }
.level-table td b, .level-table td strong { color: #fff; font-weight: 500; }
.level-table .col-l2, .level-table td.col-l2 { background: rgba(30, 111, 217, 0.12); border-color: rgba(59, 140, 255, 0.35); color: var(--text-2); }
.level-table thead th.col-l2 { background: rgba(30, 111, 217, 0.24); color: #fff; }
html[data-theme="light"] .level-table thead th { background: #f1f5fb; }
html[data-theme="light"] .level-table tbody th { background: #f7fafd; color: #0a2540; }
html[data-theme="light"] .level-table td { color: #46596f; }
html[data-theme="light"] .level-table td b,
html[data-theme="light"] .level-table td strong { color: #0a2540; }
html[data-theme="light"] .level-table .col-l2,
html[data-theme="light"] .level-table td.col-l2 { background: rgba(30, 111, 217, 0.07); border-color: rgba(30, 111, 217, 0.3); color: #33475f; }
html[data-theme="light"] .level-table thead th.col-l2 { background: rgba(30, 111, 217, 0.14); color: #0a2540; }

.ws b .ai-badge {
  display: inline-block;
  width: auto;
  margin: 0 0 0 4px;
  padding: 1px 4px;
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  color: #fff;
  vertical-align: 2px;
}
.auth-body .ai-fab { display: none; }


/* ---------------- new vector logo (theme-aware) ---------------- */
.brand { gap: 0; }
.brand .logo { display: block; width: auto; height: 44px; }
.brand .logo-light { display: none; }
html[data-theme="light"] .brand .logo-dark { display: none; }
html[data-theme="light"] .brand .logo-light { display: block; }
.footer-brand .brand .logo { height: 40px; }
.auth-topbar .brand .logo { height: 40px; }
@media (max-width: 860px) {
  .brand .logo { height: 36px; }
  .footer-brand .brand .logo { height: 34px; }
}


/* ---------------- second-level navigation ---------------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.caret { width: 11px; height: 11px; opacity: 0.55; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-item:hover .caret,
.nav-item:focus-within .caret { transform: rotate(180deg); opacity: 1; }
.submenu {
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: 12px;
  min-width: 258px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(16, 26, 38, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 34px 64px -34px rgba(0, 0, 0, 0.85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 95;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-links .nav-item.has-sub:hover > .submenu,
.nav-links .nav-item.has-sub:focus-within > .submenu,
.nav-links .nav-item.has-sub.is-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.submenu a {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 4px;
  font-size: inherit;
  color: inherit;
  transition: background 0.2s;
}
.submenu a::after { display: none; }
.submenu a:hover { background: rgba(255, 255, 255, 0.07); color: inherit; }
.submenu b { font-size: 0.85rem; font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.submenu span { font-size: 0.7rem; color: var(--muted-2); letter-spacing: 0.02em; }
html[data-theme="light"] .submenu {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(10, 37, 64, 0.16);
  box-shadow: 0 30px 60px -34px rgba(10, 37, 64, 0.45);
}
html[data-theme="light"] .submenu a:hover { background: #f2f7fd; }
html[data-theme="light"] .submenu b { color: #0a2540; }
html[data-theme="light"] .submenu span { color: #67788d; }

@media (max-width: 860px) {
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-item > a { width: 100%; justify-content: space-between; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin: 0;
    padding: 0 0 6px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    display: grid;
    gap: 0;
  }
  .submenu::before { display: none; }
  .submenu a { padding: 10px 0; border-bottom: 1px dashed var(--line); border-radius: 0; }
  .submenu a:hover { background: transparent; }
  .submenu b { font-size: 0.88rem; }
  .submenu span { display: none; }
}


/* ---------------- scenario hero: two-column + image slot ---------------- */
.slide-inner h2.slide-title {
  font-size: clamp(2rem, 3.9vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0;
}
.slide-inner h2.slide-title em { font-style: normal; color: var(--blue-soft); }
.slide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  align-content: center;
  min-height: 100%;
}
.slide-grid > * { max-width: none; }
.slide-copy { min-width: 0; }
.slide-copy p { max-width: 52ch; }
.slide-visual { min-width: 0; }
.shot-slot {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  background: rgba(16, 26, 38, 0.5);
  overflow: hidden;
}
.shot-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 82% 82% at 50% 50%, #000, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 82% 82% at 50% 50%, #000, transparent 82%);
}
.shot-id {
  position: relative;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--blue-soft);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 3px 8px;
  background: rgba(16, 26, 38, 0.55);
}
.shot-note {
  position: relative;
  font-size: 0.74rem;
  color: var(--muted-2);
  text-align: center;
  max-width: 26ch;
  line-height: 1.6;
}
html[data-theme="light"] .shot-slot { background: rgba(255, 255, 255, 0.66); border-color: rgba(10, 37, 64, 0.18); }
html[data-theme="light"] .shot-slot::before {
  background-image:
    linear-gradient(to right, rgba(10, 37, 64, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 37, 64, 0.07) 1px, transparent 1px);
}
html[data-theme="light"] .shot-id { background: #fff; color: #1e6fd9; }

@media (max-width: 1080px) {
  .slide-grid { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .slide-visual { display: none; }
}
@media (max-width: 860px) {
  .hero-dots { gap: 4px; }
  .hero-dots button { width: 16px; }
  .hero-dots button.is-on { width: 30px; }
}

@media (max-width: 1080px) {
  .slide-grid { align-content: start; }
}
@media (max-width: 860px) {
  .slide-inner.slide-grid { padding-top: 104px; padding-bottom: 104px; }
}

@media (max-width: 860px) {
  .hero-carousel { min-height: 700px; }
}

html[lang="en"] .slide-inner h1,
html[lang="en"] .slide-inner h2.slide-title {
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  letter-spacing: -0.03em;
}
html[lang="en"] .slide-copy p { font-size: 0.98rem; line-height: 1.75; }

/* keep hero titles to two lines: balance the wrap, cap the size */
.slide-inner h1.slide-title,
.slide-inner h2.slide-title {
  font-size: clamp(1.75rem, 3.55vw, 3.45rem);
  text-wrap: balance;
  text-wrap: pretty;
}

.shot-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-visual figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
html[data-theme="light"] .slide-visual figcaption { color: #67788d; }


/* ---------------- full-bleed scenario imagery ---------------- */
.slide-bg {
  filter: none;
  opacity: 1;
  background-position: center right;
}
.slide::after {
  background:
    linear-gradient(90deg, rgba(9, 17, 26, 0.95) 0%, rgba(9, 17, 26, 0.9) 30%, rgba(9, 17, 26, 0.55) 52%, rgba(9, 17, 26, 0.22) 74%, rgba(9, 17, 26, 0.5) 100%),
    linear-gradient(0deg, rgba(9, 17, 26, 0.92), rgba(9, 17, 26, 0) 58%);
}
.slide-inner.slide-grid { grid-template-columns: minmax(0, 640px); }

/* ---------------- inline figures ---------------- */
.figure { margin: 34px 0 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--panel); }
.figure img { display: block; width: 100%; height: auto; }
.figure figcaption { padding: 11px 15px; font-size: 0.78rem; line-height: 1.6; color: var(--muted); border-top: 1px solid var(--line); }
html[data-theme="light"] .figure { background: #fff; border-color: rgba(10, 37, 64, 0.14); }

/* ---------------- homepage polish v2 ---------------- */
.stats { border-block: 0; background: none; }
.stats-grid { border-top: 1px solid var(--line); border-bottom: 0; }
.biz-grid { gap: 16px; background: none; border: 0; }
.biz { border: 1px solid var(--line); border-radius: 4px; }
.stat { padding: 34px 28px 32px; }
.stat:first-child { padding-left: 0; }
.stat b { font-size: clamp(1.75rem, 2.5vw, 2.35rem); }
.stat > span { margin-top: 10px; }

.biz {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 58%),
    var(--panel);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.biz:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--panel-2); }
.biz .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.biz .ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--blue-soft);
  background: rgba(59, 140, 255, 0.07);
}
.biz .ico svg { width: 19px; height: 19px; }
.biz .no { margin: 0; }
.biz h3 { margin-bottom: 4px; font-size: 1.12rem; }
.biz p { margin-top: 12px; }
.biz .tags { margin-top: 16px; }
.biz .go {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-soft);
}

.pcard { display: flex; flex-direction: column; padding: 22px 20px 18px; }
.pcard .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.pcard .ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  color: var(--blue-soft);
  background: rgba(59, 140, 255, 0.07);
}
.pcard .ico svg { width: 17px; height: 17px; }
.pcard .no { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; color: var(--muted-2); }
.pcard .spec { margin-top: 14px; }
.pcard .go {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--blue-soft);
}
.pcard .go svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }
.pcard:hover .go svg { transform: translateX(3px); }

html[data-theme="light"] .biz .ico,
html[data-theme="light"] .pcard .ico { background: rgba(30, 111, 217, 0.06); }
html[data-theme="light"] .biz { background: #fff; }
html[data-theme="light"] .biz:hover { background: #f7fafd; }

/* ---------------- method cards v2 ---------------- */
.steps { gap: 16px; background: none; border: 0; }
.step {
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.035), transparent 60%),
    var(--panel);
  padding: 22px 20px 20px;
  min-height: 186px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.step:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--panel-2); }
.step::after { display: none; }
.step .big {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--mono);
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.07);
  letter-spacing: -0.04em;
}
.step .n { font-size: 0.6rem; }
.step h4 { margin-top: 26px; font-size: 1.06rem; }
.step p { margin-top: 10px; font-size: 0.82rem; }
html[data-theme="light"] .step { background: #fff; }
html[data-theme="light"] .step:hover { background: #f7fafd; }
html[data-theme="light"] .step .big { color: rgba(10, 37, 64, 0.08); }

/* platform figure wide */
.frame--wide { margin: 38px 0 0; }
.frame--wide img { width: 100%; height: auto; display: block; }
.two-col--single { grid-template-columns: minmax(0, 1fr); }
html[data-theme="light"] .steps { background: none; }
html[data-theme="light"] .steps .step { background: #fff; }
html[data-theme="light"] .steps .step:hover { background: #f7fafd; }

/* ---------------- stats as cards ---------------- */
.stats { border-block: 0; background: none; padding-block: clamp(26px, 3vw, 40px); }
.stats-grid { border: 0; gap: 16px; }
.stat {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 24px 22px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 62%),
    var(--panel);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}
.stat:first-child { padding-left: 24px; }
.stat:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--panel-2); }
.stat::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 34px;
  height: 2px;
  background: var(--blue-bright);
  opacity: 0.9;
}
.stat b { font-size: clamp(1.65rem, 2.35vw, 2.15rem); }
html[data-theme="light"] .stat { background: #fff; }
html[data-theme="light"] .stat:hover { background: #f7fafd; }

.platform-copy { max-width: 920px; }

.platform-copy { max-width: none; }
.platform-copy .lead { max-width: 78ch; }
.platform-copy .ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px; margin-top: 22px; }
@media (max-width: 860px) { .platform-copy .ticks { grid-template-columns: minmax(0, 1fr); } }

/* ---------------- topology: per-layer colour ---------------- */
.tp-band { stroke-opacity: 0.5; }
.tp-band--cloud { fill: url(#tpGradCloud); stroke: rgba(59, 140, 255, 0.34); }
.tp-band--edge { fill: url(#tpGradEdge); stroke: rgba(53, 199, 155, 0.32); }
.tp-band--device { fill: url(#tpGradDevice); stroke: rgba(240, 179, 87, 0.3); }
.tp-band--cloud + .tp-mono, .tp-band--edge + .tp-mono, .tp-band--device + .tp-mono { fill: #8fa5bd; }

.tp-box.tp-l-cloud, .tp-box-2.tp-l-cloud {
  fill: rgba(59, 140, 255, 0.12);
  stroke: rgba(59, 140, 255, 0.5);
}
.tp-box.tp-l-edge, .tp-box-2.tp-l-edge, .tp-box-3.tp-l-edge {
  fill: rgba(53, 199, 155, 0.1);
  stroke: rgba(53, 199, 155, 0.45);
}
.tp-box.tp-l-device, .tp-box-2.tp-l-device, .tp-box-3.tp-l-device {
  fill: rgba(240, 179, 87, 0.09);
  stroke: rgba(240, 179, 87, 0.4);
}
.tp-box, .tp-box-2, .tp-box-3 { transition: fill 0.3s, stroke 0.3s; }
.tp-link { stroke: url(#tpGradLink); stroke-width: 1.3; }
.tp-link-2 { stroke: rgba(53, 199, 155, 0.55); }
html[data-theme="light"] .tp-band--cloud { stroke: rgba(30, 111, 217, 0.28); }
html[data-theme="light"] .tp-band--edge { stroke: rgba(20, 143, 111, 0.26); }
html[data-theme="light"] .tp-band--device { stroke: rgba(190, 128, 40, 0.26); }

/* tp-light-layers */
html[data-theme="light"] .tp-band--cloud { fill: rgba(30, 111, 217, 0.055); stroke: rgba(30, 111, 217, 0.26); }
html[data-theme="light"] .tp-band--edge { fill: rgba(20, 143, 111, 0.055); stroke: rgba(20, 143, 111, 0.24); }
html[data-theme="light"] .tp-band--device { fill: rgba(190, 128, 40, 0.06); stroke: rgba(190, 128, 40, 0.24); }
html[data-theme="light"] .tp-band--cloud + .tp-mono,
html[data-theme="light"] .tp-band--edge + .tp-mono,
html[data-theme="light"] .tp-band--device + .tp-mono { fill: #5c6f86; }

html[data-theme="light"] .tp-box.tp-l-cloud,
html[data-theme="light"] .tp-box-2.tp-l-cloud { fill: rgba(30, 111, 217, 0.07); stroke: rgba(30, 111, 217, 0.34); }
html[data-theme="light"] .tp-box.tp-l-edge,
html[data-theme="light"] .tp-box-2.tp-l-edge,
html[data-theme="light"] .tp-box-3.tp-l-edge { fill: rgba(20, 143, 111, 0.07); stroke: rgba(20, 143, 111, 0.32); }
html[data-theme="light"] .tp-box.tp-l-device,
html[data-theme="light"] .tp-box-2.tp-l-device,
html[data-theme="light"] .tp-box-3.tp-l-device { fill: rgba(190, 128, 40, 0.08); stroke: rgba(190, 128, 40, 0.32); }
html[data-theme="light"] .tp-link { stroke: url(#tpGradLink); }
html[data-theme="light"] .tp-link-2 { stroke: rgba(20, 143, 111, 0.5); }

/* ---------------- home colour pass ---------------- */
:root {
  --accent-blue: #3B8CFF;
  --accent-teal: #35C79B;
  --accent-amber: #F0B357;
}
html[data-theme="light"] {
  --accent-blue: #1E6FD9;
  --accent-teal: #128E6E;
  --accent-amber: #B8791F;
}

/* domain cards: one hue per domain */
.biz:nth-child(1) .ico { color: var(--accent-blue); background: rgba(59, 140, 255, 0.08); border-color: rgba(59, 140, 255, 0.3); }
.biz:nth-child(2) .ico { color: var(--accent-teal); background: rgba(53, 199, 155, 0.08); border-color: rgba(53, 199, 155, 0.28); }
.biz:nth-child(3) .ico { color: var(--accent-amber); background: rgba(240, 179, 87, 0.08); border-color: rgba(240, 179, 87, 0.28); }
.biz:nth-child(4) .ico { color: var(--accent-amber); background: rgba(240, 179, 87, 0.07); border-color: rgba(240, 179, 87, 0.24); }
.biz:nth-child(5) .ico { color: var(--accent-blue); background: rgba(59, 140, 255, 0.07); border-color: rgba(59, 140, 255, 0.24); }
.biz:nth-child(6) .ico { color: var(--muted-2); background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); }

/* tier accents: bar + heading highlight + hover border */
.tier-meta h3 em { color: var(--tier, var(--accent-blue)); font-style: normal; }
.tier::before { height: 3px; width: 46px; border-radius: 2px; }

/* case metrics: accent number + hairline */
.case .metrics b { color: var(--accent-blue); }
.case .metrics div:last-child b { color: var(--accent-teal); }

/* CTA: blue → teal light */
.cta {
  background:
    radial-gradient(ellipse 55% 120% at 42% 100%, rgba(59, 140, 255, 0.24), transparent 66%),
    radial-gradient(ellipse 45% 110% at 72% 100%, rgba(53, 199, 155, 0.16), transparent 68%),
    var(--bg-soft);
}

/* light-theme tuning */
html[data-theme="light"] .biz:nth-child(1) .ico { background: rgba(30, 111, 217, 0.07); border-color: rgba(30, 111, 217, 0.28); }
html[data-theme="light"] .biz:nth-child(2) .ico { background: rgba(18, 142, 110, 0.07); border-color: rgba(18, 142, 110, 0.26); }
html[data-theme="light"] .biz:nth-child(3) .ico,
html[data-theme="light"] .biz:nth-child(4) .ico { background: rgba(184, 121, 31, 0.08); border-color: rgba(184, 121, 31, 0.26); }
html[data-theme="light"] .case .metrics b { color: #1E6FD9; }
html[data-theme="light"] .case .metrics div:last-child b { color: #128E6E; }
html[data-theme="light"] .cta {
  background:
    radial-gradient(ellipse 55% 120% at 42% 100%, rgba(30, 111, 217, 0.12), transparent 66%),
    radial-gradient(ellipse 45% 110% at 72% 100%, rgba(18, 142, 110, 0.1), transparent 68%),
    #f4f8fd;
}

/* method steps: three-phase colour progression */
.step { --step-accent: var(--accent-blue); }
.step:nth-child(1), .step:nth-child(2) { --step-accent: var(--accent-blue); }
.step:nth-child(3), .step:nth-child(4) { --step-accent: var(--accent-teal); }
.step:nth-child(5), .step:nth-child(6) { --step-accent: var(--accent-amber); }
.step::before {
  content: ";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--step-accent), transparent 78%);
  opacity: 0.85;
}
.step .big { color: var(--step-accent); opacity: 0.12; }
.step .n { color: var(--step-accent); opacity: 0.85; }
.step h4 { color: var(--text); }
html[data-theme="light"] .step .big { opacity: 0.16; }

/* product cards follow their tier colour */
.tier { --tier-soft: var(--tier, var(--accent-blue)); }
.tier .pcard .ico {
  color: var(--tier-soft);
  border-color: color-mix(in srgb, var(--tier-soft) 34%, transparent);
  background: color-mix(in srgb, var(--tier-soft) 10%, transparent);
}
.tier .pcard .go { color: var(--tier-soft); }
.tier .pcard:hover { border-color: color-mix(in srgb, var(--tier-soft) 45%, transparent); }
.tier .pcard .no { color: color-mix(in srgb, var(--tier-soft) 62%, var(--muted-2)); }
.tier .pcard .spec span { border-color: color-mix(in srgb, var(--tier-soft) 26%, var(--line)); }
.tier-meta .k { color: color-mix(in srgb, var(--tier-soft) 55%, var(--muted-2)); }
html[data-theme="light"] .tier .pcard .ico { background: color-mix(in srgb, var(--tier-soft) 8%, #fff); }

/* card accent labels */
.biz:nth-child(1) { --card-accent: var(--accent-blue); }
.biz:nth-child(2) { --card-accent: var(--accent-teal); }
.biz:nth-child(3) { --card-accent: var(--accent-amber); }
.biz:nth-child(4) { --card-accent: var(--accent-amber); }
.biz:nth-child(5) { --card-accent: var(--accent-blue); }
.biz:nth-child(6) { --card-accent: var(--muted-2); }

.biz .en { color: var(--card-accent, var(--blue-soft)); }
.biz .go { color: var(--card-accent, var(--blue-soft)); }
.biz .no { color: color-mix(in srgb, var(--card-accent, var(--blue-soft)) 55%, var(--muted-2)); }
.biz .tags span { border-color: color-mix(in srgb, var(--card-accent, var(--blue-soft)) 26%, var(--line)); }
.biz:hover { border-color: color-mix(in srgb, var(--card-accent, var(--blue-soft)) 42%, var(--line)); }
.biz:hover .go svg { transform: translateX(3px); }

/* products: mono name follows the tier colour */
.pcard .name { color: var(--tier-soft, var(--blue-soft)); }
.pcard .spec span { color: color-mix(in srgb, var(--tier-soft, var(--blue-soft)) 62%, var(--muted)); }

html[data-theme="light"] .biz .en,
html[data-theme="light"] .biz .go { color: var(--card-accent, #1e6fd9); }
html[data-theme="light"] .pcard .name { color: var(--tier-soft, #1e6fd9); }
html[data-theme="light"] .biz:nth-child(6) .en,
html[data-theme="light"] .biz:nth-child(6) .go { color: #67788d; }

/* tier cards auto-fit */
.tier-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
@media (max-width: 1080px) {
  .tier-cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* table header contrast */
table.data thead th { color: var(--muted); background: rgba(255, 255, 255, 0.035); }
html[data-theme="light"] table.data thead th { color: #4a5b70; background: #eef3f9; }
table.data tbody td b { color: var(--text); }

/* product photo tiles */
.pcard .shot {
  display: block;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #eef3f9;
  overflow: hidden;
}
.pcard .shot img {
  display: block;
  width: 100%;
  height: 158px;
  object-fit: cover;
  object-position: center;
  padding: 10px 12px;
  mix-blend-mode: multiply;
}
html[data-theme="dark"] .pcard .shot img { mix-blend-mode: normal; }

/* hero: product strip */
.prod-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}
.prod-strip figure {
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #eef3f9;
}
.prod-strip img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: contain;
  padding: 12px 14px;
}
.prod-strip figcaption {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  font: 0.6rem var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
@media (max-width: 860px) {
  .prod-strip { grid-template-columns: minmax(0, 1fr); }
  .prod-strip img { height: 150px; }
}

/* page-hero em highlight */
.page-hero h1 em {
  font-style: normal;
  color: var(--blue-soft);
  background: none;
  padding: 0;
}
html[data-theme="light"] .page-hero h1 em {
  color: #1a63c4;
  background: none;
}

/* strip caption fix */
.prod-strip figcaption {
  background: var(--panel);
  border-top: 1px solid var(--line);
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.5;
}
html[data-theme="light"] .prod-strip figcaption {
  background: #ffffff;
  border-top-color: rgba(10, 37, 64, 0.12);
  color: #45576c;
}
html[data-theme="light"] .prod-strip figure { background: #f2f6fb; border-color: rgba(10, 37, 64, 0.12); }

/* home tier photos */
.tier-shot {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #eef3f9;
  overflow: hidden;
}
.tier-shot img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 32%;
}
html[data-theme="light"] .tier-shot { border-color: rgba(10, 37, 64, 0.12); background: #f2f6fb; }

/* light tile polish */
html[data-theme="light"] .prod-strip figure {
  background: #ffffff;
  border-color: rgba(10, 37, 64, 0.14);
}
html[data-theme="light"] .prod-strip figcaption {
  background: #f5f8fc;
  border-top-color: rgba(10, 37, 64, 0.1);
  color: #3d5065;
}
html[data-theme="light"] .pcard .shot,
html[data-theme="light"] .tier-shot {
  background: #ffffff;
  border-color: rgba(10, 37, 64, 0.14);
}
html[data-theme="light"] .pcard .shot img { mix-blend-mode: multiply; }

/* strip frame fix */
.prod-strip figure {
  border: 1px solid transparent;
  background: transparent;
  border-radius: 3px;
  overflow: hidden;
}
.prod-strip img {
  display: block;
  width: 100%;
  height: 172px;
  object-fit: contain;
  padding: 0;
  background: #ffffff;
}
.prod-strip figcaption {
  background: var(--panel);
  border-top: 0;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  color: #d7e0ec;
  line-height: 1.5;
}
.prod-strip figcaption span { color: var(--muted-2); font-size: 0.72rem; }
html[data-theme="light"] .prod-strip figure { border-color: rgba(10, 37, 64, 0.1); background: transparent; }
html[data-theme="light"] .prod-strip figcaption { background: #f5f8fc; color: #22374d; }

/* home tier photos: no cropping */
.tier-shot {
  margin-top: auto;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  overflow: hidden;
}
.tier-shot img {
  display: block;
  width: 100%;
  height: 132px;
  object-fit: contain;
  padding: 0;
  background: #ffffff;
}
html[data-theme="light"] .tier-shot { border-color: rgba(10, 37, 64, 0.1); }

/* transparent product tiles */
.pcard .shot,
.prod-strip figure,
.prod-strip img,
.tier-shot,
.tier-shot img {
  background: transparent;
  border-color: transparent;
}
.pcard .shot { border: 0; }
.pcard .shot img { mix-blend-mode: normal; height: 168px; }
.prod-strip figure { border: 0; }
.prod-strip img { height: 186px; }
.tier-shot { border: 0; }
.tier-shot img { height: 140px; }
html[data-theme="light"] .pcard .shot,
html[data-theme="light"] .prod-strip figure,
html[data-theme="light"] .tier-shot {
  background: #f7fafd;
  border: 1px solid rgba(10, 37, 64, 0.08);
}

.prod-strip figure { display: flex; flex-direction: column; }
.prod-strip img { height: 186px; object-fit: contain; }
.prod-strip figcaption { margin-top: auto; }
.tier-shot { display: flex; flex-direction: column; }
.tier-shot img { height: 140px; object-fit: contain; }

/* strip matches cards */
.prod-strip figure {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 4px;
  overflow: hidden;
}
.prod-strip img {
  height: 168px;
  padding: 16px 18px;
  background: transparent;
}
.prod-strip figcaption {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: transparent;
  color: #cfdaea;
  padding: 12px 18px;
}
html[data-theme="light"] .prod-strip figure {
  background: #ffffff;
  border-color: rgba(10, 37, 64, 0.12);
}
html[data-theme="light"] .prod-strip figcaption {
  background: transparent;
  border-top-color: rgba(10, 37, 64, 0.1);
  color: #2b3f55;
}

/* solutions polish */
.page-hero-meta--grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px 28px;
  align-items: start;
}
.page-hero-meta--grid > div { min-width: 0; }
.page-hero-meta--grid b { display: block; }
.page-hero-meta--grid span { display: block; margin-top: 6px; line-height: 1.5; }
@media (max-width: 900px) {
  .page-hero-meta--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* uniform spec tables */
.spec-table--fixed { table-layout: fixed; width: 100%; }
.spec-table--fixed th {
  width: 92px;
  padding-right: 12px;
  vertical-align: top;
  white-space: nowrap;
}
.spec-table--fixed td { vertical-align: top; line-height: 1.6; }
.spec-table--fixed tr { height: 54px; }
.spec-table--fixed tr th { padding-top: 15px; padding-bottom: 15px; }
.spec-table--fixed tr td { padding-top: 15px; padding-bottom: 15px; }

/* image slots (empty placeholders) */
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.slots--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.slot {
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 8px, transparent 8px 16px);
}
html[data-theme="light"] .slot {
  border-color: rgba(10, 37, 64, 0.18);
  background: repeating-linear-gradient(45deg, rgba(10, 37, 64, 0.02) 0 8px, transparent 8px 16px);
}

/* solutions media v2 */
.strip { display: grid; gap: 12px; }
.strip--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.strip figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  aspect-ratio: auto; /* 高度跟随内容，图下不再露出底色条 */
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--panel);
}
.strip figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.strip figure figcaption {
  position: static; left: auto; bottom: auto;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
  border-top: 1px solid var(--line);
}
html[data-theme="light"] .strip figure { background: #fff; border-color: rgba(10, 37, 64, 0.12); }
html[data-theme="light"] .strip figure figcaption { color: #4a5b70; border-top-color: rgba(10, 37, 64, 0.1); }

/* wide schematic: transparent render, neutral frame in both themes */
.section > .wrap > figure.figure {
  max-width: none;
  margin: 34px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.section > .wrap > figure.figure img {
  display: block;
  width: 100%;
  height: auto;
}
/* 深浅两版示意图，跟随主题切换 */
.section > .wrap > figure.figure .fig-img--light { display: none; }
html[data-theme="light"] .section > .wrap > figure.figure .fig-img--dark { display: none; }
html[data-theme="light"] .section > .wrap > figure.figure .fig-img--light { display: block; }
.section > .wrap > figure.figure figcaption {
  padding: 12px 16px 14px;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--panel);
}
html[data-theme="light"] .section > .wrap > figure.figure {
  background: #fff;
  border-color: rgba(10, 37, 64, 0.14);
  box-shadow: 0 24px 50px -44px rgba(10, 37, 64, 0.5);
}
html[data-theme="light"] .section > .wrap > figure.figure figcaption {
  color: #4a5b70;
  border-top-color: rgba(10, 37, 64, 0.1);
}
.slots--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* placeholder image area inside product-style cards */
.pcard .shot--empty {
  height: 132px;
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.022) 0 8px, transparent 8px 16px);
}
html[data-theme="light"] .pcard .shot--empty {
  border-color: rgba(10, 37, 64, 0.16);
  background: repeating-linear-gradient(45deg, rgba(10, 37, 64, 0.02) 0 8px, transparent 8px 16px);
}

/* cases index table */
.index-table { table-layout: fixed; width: 100%; }
.index-table th, .index-table td {
  padding: 13px 16px;
  vertical-align: middle;
  line-height: 1.5;
}
.index-table th:nth-child(1), .index-table td:nth-child(1) { width: 31%; }
.index-table th:nth-child(2), .index-table td:nth-child(2) { width: 12%; }
.index-table th:nth-child(3), .index-table td:nth-child(3) { width: 22%; }
.index-table th:nth-child(4), .index-table td:nth-child(4) { width: 23%; }
.index-table th:nth-child(5), .index-table td:nth-child(5) { width: 12%; }
.index-table tbody tr { height: 56px; }
.index-table td strong { font-weight: 600; color: var(--text); }

.st {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border: 1px solid transparent;
}
.st--done { color: #7fe3c2; background: rgba(53, 199, 155, 0.12); border-color: rgba(53, 199, 155, 0.32); }
.st--run { color: #9fc4ff; background: rgba(59, 140, 255, 0.12); border-color: rgba(59, 140, 255, 0.32); }
.st--pilot { color: #f3cd93; background: rgba(240, 179, 87, 0.12); border-color: rgba(240, 179, 87, 0.32); }
html[data-theme="light"] .st--done { color: #0f6b53; background: rgba(18, 142, 110, 0.1); border-color: rgba(18, 142, 110, 0.3); }
html[data-theme="light"] .st--run { color: #1c4f9c; background: rgba(30, 111, 217, 0.08); border-color: rgba(30, 111, 217, 0.28); }
html[data-theme="light"] .st--pilot { color: #8a5a12; background: rgba(184, 121, 31, 0.1); border-color: rgba(184, 121, 31, 0.28); }

/* index-table single line */
.index-table td:nth-child(1) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.index-table tbody tr { height: 54px; }

/* qual strip */
.qual-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}
.qual {
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px 18px;
  background: var(--panel);
}
.qual b { display: block; font-size: 0.95rem; color: var(--text); }
.qual span {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted-2);
}
html[data-theme="light"] .qual { background: #fff; border-color: rgba(10, 37, 64, 0.12); }
html[data-theme="light"] .qual span { color: #5b6d82; }
@media (max-width: 900px) {
  .qual-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* qr slot */
.footer-qr { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.qr-slot {
  width: 78px;
  height: 78px;
  flex: none;
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 6px, transparent 6px 12px);
}
.qr-meta b { display: block; font-size: 0.8rem; color: var(--text); }
.qr-meta span { display: block; margin-top: 4px; font-size: 0.7rem; color: var(--muted-2); line-height: 1.45; }

.follow {
  display: flex;
  align-items: center;
  gap: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 34px;
  background: var(--panel);
}
.qr-slot--lg { width: 168px; height: 168px; }
.follow-copy p { margin-top: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.75; max-width: 52ch; }
.follow-copy .note { color: var(--muted-2); font-size: 0.8rem; }
html[data-theme="light"] .follow { background: #fff; border-color: rgba(10, 37, 64, 0.12); }
html[data-theme="light"] .qr-slot {
  border-color: rgba(10, 37, 64, 0.2);
  background: repeating-linear-gradient(45deg, rgba(10, 37, 64, 0.02) 0 6px, transparent 6px 12px);
}
@media (max-width: 760px) {
  .follow { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px; }
  .qr-slot--lg { width: 140px; height: 140px; }
}

/* person photo */
.person-head { display: flex; align-items: center; gap: 14px; }
.person-photo {
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 50%;
  border: 1px dashed var(--line-2);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0 6px, transparent 6px 12px);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.person-id { display: block; min-width: 0; }
.person-id b { display: block; font-size: 1.02rem; }
.person-id .role { display: block; margin-top: 4px; }
html[data-theme="light"] .person-photo {
  border-color: rgba(10, 37, 64, 0.18);
  background: repeating-linear-gradient(45deg, rgba(10, 37, 64, 0.02) 0 6px, transparent 6px 12px);
}

/* team groups */
.people-group { margin-bottom: 26px; }
.people-group:last-child { margin-bottom: 0; }
.group-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
@media (max-width: 900px) { .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .people-grid { grid-template-columns: minmax(0, 1fr); } }

/* certificate grid */
.cert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cert {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}
.cert img { display: block; width: 100%; height: 178px; object-fit: contain; background: #fff; padding: 6px; }
.cert figcaption {
  padding: 8px 10px;
  font-size: 0.68rem;
  line-height: 1.45;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--panel);
}
html[data-theme="light"] .cert { border-color: rgba(10, 37, 64, 0.12); }
html[data-theme="light"] .cert figcaption { background: #f5f8fc; color: #46586e; border-top-color: rgba(10, 37, 64, 0.1); }

/* grouped people layout */
.people--grouped { display: block; }
.people--grouped .person { width: auto; }

/* team tree */
.team-feature {
  display: flex;
  align-items: flex-start;
  gap: 26px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px 30px;
  background:
    linear-gradient(160deg, rgba(59, 140, 255, 0.06), transparent 60%),
    var(--panel);
}
.team-feature .person-photo { width: 96px; height: 96px; }
.team-k {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--blue-soft);
  text-transform: uppercase;
}
.team-feature h3 { margin-top: 8px; font-size: 1.45rem; }
.team-role { margin-top: 4px; font-size: 0.82rem; color: var(--muted-2); }
.team-feature p { margin-top: 12px; font-size: 0.88rem; line-height: 1.8; color: var(--muted); max-width: 70ch; }

.tier-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 16px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.tier-label span { color: var(--text); font-family: var(--sans); font-size: 0.92rem; letter-spacing: 0.02em; }
.tier-label i { font-style: normal; opacity: 0.6; }
.tier-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.team-row { display: grid; gap: 16px; }
.team-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.person--sm { padding: 18px; }
.person--sm p { font-size: 0.82rem; line-height: 1.7; }
@media (max-width: 1000px) {
  .team-row--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .team-feature { flex-direction: column; gap: 16px; padding: 22px; }
  .team-row--2, .team-row--3 { grid-template-columns: minmax(0, 1fr); }
}

/* certificate row */
.cert-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.cert-row .cert img { height: 128px; }
.cert-row .cert figcaption { font-size: 0.62rem; padding: 7px 8px; }
@media (max-width: 1100px) { .cert-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cert-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-theme="light"] .team-feature { background: #fff; border-color: rgba(10, 37, 64, 0.12); }

/* founder card v2 */
.team-feature { gap: 34px; padding: 30px 34px; align-items: center; }
.team-feature .person-photo--lg {
  width: 148px;
  height: 148px;
  border-style: solid;
  border-color: var(--line-2);
  background:
    linear-gradient(140deg, rgba(59, 140, 255, 0.16), rgba(53, 199, 155, 0.1)),
    var(--panel-2, #0d1620);
}
.team-feature-body { flex: 1; min-width: 0; }
.team-feature p { max-width: none; }
.team-feature h3 { font-size: 1.6rem; }
html[data-theme="light"] .team-feature .person-photo--lg {
  background: linear-gradient(140deg, rgba(30, 111, 217, 0.1), rgba(18, 142, 110, 0.08)), #eef3f9;
  border-color: rgba(10, 37, 64, 0.16);
}
@media (max-width: 700px) {
  .team-feature .person-photo--lg { width: 110px; height: 110px; }
}

/* qr image slot */
img.qr-slot {
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: #ffffff;
  padding: 4px;
  object-fit: contain;
  display: block;
}
img.qr-slot--lg { padding: 6px; border-radius: 6px; }
html[data-theme="light"] img.qr-slot { border-color: rgba(10, 37, 64, 0.18); }

/* evidence table (home 05) */
.evidence-wrap { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
table.evidence { width: 100%; border-collapse: collapse; }
table.evidence th {
  text-align: left;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.evidence td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  vertical-align: middle;
}
table.evidence tbody tr { cursor: pointer; transition: background 0.2s; }
table.evidence tbody tr:hover { background: rgba(59, 140, 255, 0.06); }
table.evidence tbody tr:last-child td { border-bottom: 0; }
table.evidence strong { display: block; font-weight: 600; color: var(--text); }
.ev-tag { display: block; margin-top: 3px; font-size: 0.7rem; color: var(--muted-2); }
.ev-num { font-family: var(--mono); font-size: 0.95rem; color: var(--text); white-space: nowrap; }
.ev-num--key { color: var(--blue-soft); font-weight: 600; }
.ev-note { color: var(--muted-2); font-size: 0.78rem; }
.evidence-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted-2);
}
.evidence-foot .link-arrow { font-size: 0.8rem; white-space: nowrap; }
html[data-theme="light"] .evidence-foot { background: #f5f8fc; }
html[data-theme="light"] table.evidence th { background: #eef3f9; }
@media (max-width: 860px) {
  .evidence-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  table.evidence .ev-note { display: none; }
  table.evidence th:nth-child(4) { display: none; }
}

/* anchor offset for sticky header */
#enquiry, #index { scroll-margin-top: 110px; }


/* wide feature cards (home 05) */
.case-feature-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.feat {
  display: grid;
  grid-template-columns: 41% 1fr;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--panel);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.feat:hover { border-color: rgba(59, 140, 255, 0.42); transform: translateY(-3px); }
.feat-media { position: relative; display: block; background: #0a121c; overflow: hidden; }
.feat-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 236px;
  object-fit: cover;
  filter: grayscale(0.5) contrast(1.04) brightness(0.8);
  transition: transform 0.7s var(--ease), filter 0.5s;
}
.feat:hover .feat-media img { transform: scale(1.04); filter: grayscale(0.2) contrast(1.04) brightness(0.9); }
.feat-media .tag { position: absolute; top: 14px; left: 14px; z-index: 1; }
.feat-body { display: flex; flex-direction: column; padding: 20px 22px; }
.feat-title { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.feat-desc { margin-top: 8px; font-size: 0.82rem; line-height: 1.7; color: var(--muted); }
.feat-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.feat-metrics b { display: block; font-family: var(--mono); font-size: 1rem; color: var(--blue-soft); }
.feat-metrics i { display: block; margin-top: 4px; font-style: normal; font-size: 0.72rem; color: var(--muted-2); }
@media (max-width: 980px) { .case-feature-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .feat { grid-template-columns: minmax(0, 1fr); }
  .feat-media img { min-height: 180px; }
}
html[data-theme="light"] .feat { background: #fff; border-color: rgba(10, 37, 64, 0.12); }

/* index summary + expand */
.index-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: var(--muted-2);
}
.index-summary b { color: var(--text); font-family: var(--mono); font-size: 0.9rem; }
.index-summary .sep { padding-left: 18px; border-left: 1px solid var(--line); }
.index-more {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--line-2);
  border-radius: 3px;
  background: transparent;
  color: var(--blue-soft);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.index-more:hover { border-color: var(--blue-soft); background: rgba(59, 140, 255, 0.06); }

/* page hero figure */
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 54px;
  align-items: center;
}
.page-hero-copy { min-width: 0; }
.page-hero-fig {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}
.page-hero-fig img { display: block; width: 100%; height: auto; }
html[data-theme="light"] .page-hero-fig {
  border-color: rgba(10, 37, 64, 0.12);
  box-shadow: 0 22px 50px rgba(16, 42, 76, 0.16);
}
@media (max-width: 1180px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; }
}
@media (max-width: 980px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .page-hero-fig { display: none; }
}


/* page hero: full-bleed background image */
.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: static; }
.page-hero-grid { display: block; }
.page-hero-copy { position: relative; z-index: 2; max-width: 54%; }

.page-hero-fig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.page-hero-fig img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.94) contrast(1.02) brightness(0.9);
}
.page-hero-fig::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 17, 0.55) 0%, rgba(7, 11, 17, 0.42) 22%, rgba(7, 11, 17, 0.22) 48%, rgba(7, 11, 17, 0.08) 72%, rgba(7, 11, 17, 0.3) 100%),
    linear-gradient(180deg, rgba(7, 11, 17, 0.42) 0%, rgba(7, 11, 17, 0.05) 40%, rgba(7, 11, 17, 0.5) 100%);
}
html[data-theme="light"] .page-hero-fig img { filter: saturate(0.94) contrast(1.01) brightness(1.06); }
html[data-theme="light"] .page-hero-fig::after {
  background:
    linear-gradient(90deg, rgba(244, 248, 253, 0.72) 0%, rgba(244, 248, 253, 0.6) 22%, rgba(244, 248, 253, 0.34) 48%, rgba(244, 248, 253, 0.1) 72%, rgba(244, 248, 253, 0.34) 100%),
    linear-gradient(180deg, rgba(244, 248, 253, 0.5) 0%, rgba(244, 248, 253, 0.04) 40%, rgba(244, 248, 253, 0.62) 100%);
}
@media (max-width: 980px) {
  .page-hero-copy { max-width: none; }
  .page-hero-fig { display: none; }
}


/* hero meta legibility */
.page-hero .page-hero-meta span { color: #b9c6d6; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.page-hero .page-hero-meta b { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
html[data-theme="light"] .page-hero .page-hero-meta span { color: #5b6d82; text-shadow: 0 1px 10px rgba(255, 255, 255, 0.75); }
html[data-theme="light"] .page-hero .page-hero-meta b { text-shadow: 0 2px 14px rgba(255, 255, 255, 0.7); }

/* uniform hero height */
.page-hero {
  min-height: 620px;
  display: flex;
  align-items: center;
  padding-block: 96px 64px;
}
.page-hero > .wrap { width: 100%; }
@media (min-width: 1024px) {
  .page-hero { height: 620px; min-height: 620px; padding-block: 0; }
}
@media (max-width: 1023px) {
  .page-hero { height: auto; min-height: 0; align-items: flex-start; padding-block: 104px 64px; }
}

/* product render fit */
.pcard .shot img { object-fit: contain; height: 200px; padding: 6px 8px; }
.tier-shot img { object-fit: contain; height: 164px; padding: 6px; }

/* light theme tile for dark product renders */
html[data-theme="light"] .pcard .shot,
html[data-theme="light"] .tier-shot { background: #f3f6fa; border: 1px solid rgba(10, 37, 64, 0.08); }

/* tier-shot tall (single product image in the meta column) */
.tier-shot--tall { margin-top: 22px; }
.tier-shot--tall img { height: 210px; object-fit: contain; }

/* box render scale: equalise the visual weight of the three edge devices */
.shot--governor img { transform: scale(0.95); }
.shot--optima img { transform: scale(0.74); }
.shot--detect img { transform: scale(0.82); }

/* tier tap layout: wider image column, larger single product shot */
.tier--tap { grid-template-columns: 268px minmax(0, 1fr); }
.tier--tap .tier-shot--tall img { height: 250px; }
@media (max-width: 900px) {
  .tier--tap { grid-template-columns: minmax(0, 1fr); }
  .tier--tap .tier-shot--tall img { height: 200px; }
}

/* ---------------- auth page · light theme ---------------- */
html[data-theme="light"] .auth-body { background: #f4f8fd; }
html[data-theme="light"] .auth-bg {
  filter: brightness(1.22) saturate(0.82) contrast(0.96);
  opacity: 0.78;
}
html[data-theme="light"] .auth::after {
  background:
    linear-gradient(90deg, rgba(244, 248, 253, 0.9) 0%, rgba(244, 248, 253, 0.82) 46%, rgba(240, 245, 251, 0.92) 100%),
    radial-gradient(ellipse 60% 60% at 18% 8%, rgba(30, 111, 217, 0.12), transparent 66%);
}
html[data-theme="light"] .auth-topbar .links { color: #55677c; }
html[data-theme="light"] .auth-topbar .links a:hover { color: #0a2540; }
html[data-theme="light"] .auth-copy h1 { color: #0a2540; }
html[data-theme="light"] .auth-copy p { color: #46596f; }

html[data-theme="light"] .ws {
  border-color: rgba(10, 37, 64, 0.14);
  background: #ffffff;
  color: #0a2540;
  box-shadow: 0 1px 2px rgba(10, 37, 64, 0.04);
}
html[data-theme="light"] .ws:hover {
  background: #ffffff;
  border-color: rgba(30, 111, 217, 0.4);
  box-shadow: 0 10px 26px -18px rgba(10, 37, 64, 0.45);
}
html[data-theme="light"] .ws.is-on {
  border-color: rgba(30, 111, 217, 0.65);
  background: rgba(30, 111, 217, 0.06);
  box-shadow: 0 10px 26px -20px rgba(30, 111, 217, 0.5);
}
html[data-theme="light"] .ws .ico {
  border-color: rgba(10, 37, 64, 0.16);
  color: #1e6fd9;
  background: #f2f7fd;
}
html[data-theme="light"] .ws span { color: #5b7088; }
html[data-theme="light"] .ws .chk { border-color: rgba(10, 37, 64, 0.28); }
html[data-theme="light"] .ws.is-on .chk {
  border-color: #1e6fd9;
  background: radial-gradient(circle at center, #1e6fd9 0 42%, transparent 46%);
}
html[data-theme="light"] .ws b .ai-badge {
  background: #1e6fd9;
  color: #fff;
  padding: 1.5px 5px;
  border-radius: 2px;
}
html[data-theme="light"] .auth-note.is-on { box-shadow: 0 8px 24px -18px rgba(184, 121, 31, 0.6); }
html[data-theme="light"] .auth-foot { color: #6b7f95; }
html[data-theme="light"] .auth-foot a { color: #1e6fd9; }

html[data-theme="light"] .auth-right {
  background: rgba(255, 255, 255, 0.88);
  border-left: 1px solid rgba(10, 37, 64, 0.1);
  box-shadow: -24px 0 60px -50px rgba(10, 37, 64, 0.45);
}
html[data-theme="light"] .auth-card .kicker { color: #1e6fd9; }
html[data-theme="light"] .auth-card h2 { color: #0a2540; }
html[data-theme="light"] .auth-card .hint { color: #5b7088; }
html[data-theme="light"] .auth-field label { color: #5b7088; }
html[data-theme="light"] .auth-field input {
  color: #0a2540;
  background: #ffffff;
  border-color: rgba(10, 37, 64, 0.18);
}
html[data-theme="light"] .auth-field input::placeholder { color: #8fa3b8; }
html[data-theme="light"] .auth-field input:focus {
  border-color: #1e6fd9;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.12);
}
html[data-theme="light"] .auth-row { color: #5b7088; }
html[data-theme="light"] .auth-row a { color: #1e6fd9; }
html[data-theme="light"] .auth-submit { background: #1e6fd9; color: #fff; }
html[data-theme="light"] .auth-submit:hover { background: #1659b8; }
html[data-theme="light"] .auth-note {
  border-color: rgba(184, 121, 31, 0.35);
  background: #fff7e8;
  color: #6b4a17;
}
html[data-theme="light"] .auth-note a { color: #1e6fd9; }
html[data-theme="light"] .auth-alt { color: #6b7f95; }
html[data-theme="light"] .auth-alt a { color: #1e6fd9; }
html[data-theme="light"] .auth-switch a {
  color: #55677c;
  border-color: rgba(10, 37, 64, 0.16);
  background: #ffffff;
}
html[data-theme="light"] .auth-switch a:hover { color: #0a2540; border-color: rgba(30, 111, 217, 0.5); }
html[data-theme="light"] .auth-body .float-btn {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(10, 37, 64, 0.14);
  color: #33475f;
}
@media (max-width: 900px) {
  html[data-theme="light"] .auth-right { border-top: 1px solid rgba(10, 37, 64, 0.1); }
}

/* solution photo slot + photo card */
.slot--photo { border: 1px solid var(--line); background: none; overflow: hidden; padding: 0; }
.slot--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
html[data-theme="light"] .slot--photo { border-color: rgba(10, 37, 64, 0.12); }
.pcard .shot--photo { padding: 0; overflow: hidden; border-radius: 3px; background: none; }
.pcard .shot--photo img {
  width: 100%;
  height: 158px;
  object-fit: cover;
  padding: 0;
  transform: none;
}
html[data-theme="light"] .pcard .shot--photo { background: #eef3f9; }

