/* =====================================================================
   GT Dynamics — pages/home.css (index.html)
   Layout + page-only blocks: hero gauge stage, system diagram, designer
   mock, release feed, compatibility strip. Shared components (incl. the
   device bezel and CTA band) come from components.css. Tokens only.
   Owner: web-pages (A)
   ===================================================================== */

/* Device bezel (.device, .device--sm, .device__screen) — shared component, components.css §28 */

/* Fallback SVG gauge (built by home.js when GTD.Gauge is missing) */
.fg-text { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.fg-mono { font-family: var(--font-mono); letter-spacing: 0.12em; }
/* .fg-needle is rotated with the SVG transform attribute (own center) — no CSS transform-origin here */

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 961px) {
  .hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
}
.hero__glow { top: 50%; right: -8%; transform: translateY(-50%); }
.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-12);
  padding-block: var(--sp-16) var(--sp-20);
}
.hero__title { max-width: 12ch; }
html[lang="ja"] .hero__title { max-width: 14em; }
.hero__lead { margin-top: var(--sp-6); }
.hero__actions { margin-top: var(--sp-8); }
.hero__specs {
  width: fit-content;
  max-width: 100%;
  margin-top: var(--sp-10);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line-2);
}
.hero__visual { display: grid; place-items: center; min-width: 0; }
.hero__hazard { position: relative; z-index: 1; }

.hero-gauge {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1;
  margin: 0;
}
.hero-gauge__device { position: absolute; inset: 19%; }
.hero-gauge__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.hero-gauge__lines polyline {
  fill: none;
  stroke: var(--line-3);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.hero-gauge__dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--text-3);
  background: var(--bg-0);
  transform: translate(-50%, -50%);
}
.hero-gauge__callout {
  position: absolute;
  top: var(--y);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--text-3);
  white-space: nowrap;
  transform: translateY(calc(-100% - 6px));
}
.hero-gauge__callout b { margin-right: 4px; font-weight: 600; color: var(--text-1); }
.hero-gauge__callout--l { left: 3%; }
.hero-gauge__callout--r { right: 3%; text-align: right; }
.hero-gauge__live {
  position: absolute;
  left: 50%;
  bottom: 7%;
  z-index: 2;
  transform: translateX(-50%);
}
.hero-gauge .coord { z-index: 3; }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: var(--sp-10); padding-block: var(--sp-12) var(--sp-16); }
  .hero__title { max-width: 14ch; }
  .hero-gauge { width: min(100%, 500px); }
}
@media (max-width: 560px) {
  .hero-gauge__lines, .hero-gauge__dot, .hero-gauge__callout { display: none; }
  .hero-gauge__device { inset: 11%; }
  .hero-gauge__live { bottom: 2%; }
  .hero__specs { margin-top: var(--sp-8); }
}

/* ---------- 2. Featured product cards: 3-up telemetry row ---------- */
.fp-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-3);
  margin: auto 0 0;
  padding: var(--sp-4) 0 0;
  list-style: none;
  border-top: 1px dashed var(--line-2);
}
.fp-stats li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fp-stats__v {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fp-stats__l { font-size: var(--fs-2xs); line-height: 1.3; color: var(--text-3); }
.card--product .card__body { gap: var(--sp-2); }
.card--product .card__text { margin-bottom: var(--sp-3); }

/* ---------- 3. System diagram ---------- */
.sys {
  margin: 0;
  padding: var(--sp-12) var(--sp-6) var(--sp-8);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--bg-0) 55%, transparent);
}
.sys__canvas { width: 100%; }
.sys__svg { display: block; width: 100%; height: auto; overflow: visible; }
.sys__svg--v { display: none; max-width: 420px; margin-inline: auto; }
@media (max-width: 900px) {
  .sys { padding: var(--sp-10) var(--sp-4) var(--sp-6); }
  .sys__svg--h { display: none; }
  .sys__svg--v { display: block; }
}
.sys-node rect { fill: var(--bg-3); stroke: var(--line-2); stroke-width: 1; }
.sys-node--core rect { fill: color-mix(in srgb, var(--brand) 7%, var(--bg-3)); stroke: var(--brand-line); }
.sys-node__ico { color: var(--text-2); }
.sys-node--core .sys-node__ico { color: var(--brand); }
.sys-node__tile { fill: var(--bg-5); stroke: none; }
.sys-node--core .sys-node__tile { fill: var(--brand-soft-2); }
.sys-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--text-3);
}
html[lang="ja"] .sys-kicker { font-family: var(--font-body); letter-spacing: 0.04em; }
.sys-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; fill: var(--text-1); }
.sys-sub { font-family: var(--font-body); font-size: 13px; fill: var(--text-2); }
.sys-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: var(--text-1);
}
.sys-label--muted { font-weight: 500; fill: var(--text-3); letter-spacing: 0.08em; }
html[lang="ja"] .sys-label--muted { font-family: var(--font-body); letter-spacing: 0.02em; }
.sys-link { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.sys-link--wire { stroke: var(--text-3); }
.sys-link--air { stroke: var(--cyan); stroke-dasharray: 2 7; animation: sys-flow 1.4s linear infinite; }
.sys-arrow--wire { fill: var(--text-3); }
.sys-arrow--air { fill: var(--cyan); }
.sys-port { fill: var(--bg-0); stroke: var(--text-3); stroke-width: 1.5; }
.sys-port--air { stroke: var(--cyan); }
.sys-led { fill: var(--brand); }
@keyframes sys-flow { to { stroke-dashoffset: -18; } }

.home-steps { margin-top: var(--sp-12); }

/* ---------- 4. Gauge Designer block ---------- */
.dz { align-items: center; }
.dz .eyebrow .badge { align-self: center; }
.dz__lead { margin-top: var(--sp-4); }
.dz__list { margin-top: var(--sp-8); gap: var(--sp-3); }
.dz__list li { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.5; }
.dz__actions { margin-top: var(--sp-8); }
.dz__note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.dz__note .icon { color: var(--text-4); }
.dz__visual { min-width: 0; }

.dmock {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background: var(--bg-2);
  box-shadow: var(--shadow-3);
  user-select: none;
}
.dmock__top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 0;
  height: 44px;
  padding: 0 var(--sp-2) 0 var(--sp-4);
  border-bottom: 1px solid var(--line-1);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--bg-1);
}
.dmock__dots { display: inline-flex; gap: 6px; }
.dmock__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-5); }
.dmock__file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-2); }
.dmock__saved { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.dmock__saved .icon { color: var(--ok); }
.dmock__export { pointer-events: none; }

.dmock__main {
  display: grid;
  grid-template-columns: 48px 168px minmax(0, 1fr) 140px;
  min-height: 340px;
  overflow: hidden;
}
.dmock__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) 0;
  border-right: 1px solid var(--line-1);
  background: var(--bg-1);
}
.dmock__rail-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  color: var(--text-4);
}
.dmock__rail-btn.is-active { background: var(--bg-5); color: var(--text-1); }
.dmock__rail-btn.is-active::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}
.dmock__panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  min-width: 0;
  padding: var(--sp-4) var(--sp-3);
  border-right: 1px solid var(--line-1);
}
.dmock__channel { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--text-1); }
.dmock__channel::before { content: "#"; content: "#" / ""; font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 500; color: var(--text-4); }
.dmock__ctl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--sp-2) var(--sp-2); }
.dmock__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--text-3); }
.dmock__val { font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--text-1); }
.dmock__bar {
  position: relative;
  grid-column: 1 / -1;
  height: 4px;
  border-radius: var(--r-pill);
  background: linear-gradient(to right, var(--dev-ice-blue) 0 var(--v), var(--bg-5) var(--v) 100%);
}
.dmock__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: var(--v);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--dev-ice-blue);
  background: var(--text-1);
  transform: translate(-50%, -50%);
}
.dmock__swatches { grid-column: 1 / -1; gap: var(--sp-2); }
.dmock__swatches .swatch { cursor: default; }
.dmock__swatches .swatch:hover { transform: none; }

.dmock__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: var(--sp-6);
  background-color: var(--bg-0);
  background-image: var(--dot-grid);
  background-size: var(--grid-size) var(--grid-size);
}
.dmock__cross {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--line-1), var(--line-1)) center / 1px 100% no-repeat,
    linear-gradient(var(--line-1), var(--line-1)) center / 100% 1px no-repeat;
}
.dmock__device { position: relative; width: min(100%, 240px); }

.dmock__inspector { min-width: 0; padding: var(--sp-3) var(--sp-2); border-left: 1px solid var(--line-1); }
.dmock__head {
  padding: 0 var(--sp-2) var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-3);
}
html[lang="ja"] .dmock__head { font-family: var(--font-body); letter-spacing: 0.04em; }
.dmock__layers { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.dmock__layers li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px var(--sp-2);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.dmock__layers li .icon { color: var(--text-4); }
.dmock__layers li.is-active { background: var(--bg-5); color: var(--text-1); }

.dmock__sim {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  height: 44px;
  padding: 0 var(--sp-4);
  border-top: 1px solid var(--line-1);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  background: var(--bg-1);
}
.dmock__play { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--text-1); }
.dmock__track { position: relative; flex: 1 1 auto; height: 4px; border-radius: var(--r-pill); background: var(--bg-5); overflow: hidden; }
.dmock__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  border-radius: inherit;
  background: var(--dev-ice-blue);
  animation: dmock-sweep 3.6s var(--ease) infinite alternate;
}
.dmock__param { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.08em; color: var(--text-3); white-space: nowrap; }
@keyframes dmock-sweep { from { width: 18%; } to { width: 84%; } }

@media (min-width: 961px) and (max-width: 1199px), (max-width: 640px) {
  .dmock__main { grid-template-columns: 48px 156px minmax(0, 1fr); }
  .dmock__inspector { display: none; }
}
@media (max-width: 480px) {
  .dmock__main { grid-template-columns: 44px minmax(0, 1fr); min-height: 280px; }
  .dmock__panel { display: none; }
  .dmock__file { display: none; }
}

/* ---------- 5. Software: release feed + perks ---------- */
.sw {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: var(--sp-6);
  align-items: start;
}
@media (max-width: 960px) { .sw { grid-template-columns: minmax(0, 1fr); } }
.sw__feed .message { padding: var(--sp-5); }
.sw__feed .message__content ul { list-style: disc; }
.sw__more { margin-top: var(--sp-1); font-size: var(--fs-xs); color: var(--text-3); }
.sw__foot { font-size: var(--fs-xs); color: var(--text-3); }
.sw__foot .icon { color: var(--text-4); }
.sw__ver { font-family: var(--font-mono); text-transform: none; }
.sw__dev { color: var(--text-1); text-decoration: none; }
.sw__dev:hover { text-decoration: underline; text-decoration-color: var(--brand); }
.sw__link { margin-left: auto; }
.sw__feed .message__foot { gap: var(--sp-2) var(--sp-5); }
.sw__side { gap: 0; }
.sw__perks { display: grid; gap: var(--sp-5); margin: var(--sp-5) 0 0; padding: 0; list-style: none; }
.sw__perks > li { display: flex; align-items: flex-start; gap: var(--sp-3); }
.sw__perks .icon-tile { color: var(--text-2); }
.sw__perk-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-1);
}
.sw__perk-text { margin-top: 2px; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-3); }

/* ---------- 6. Compatibility strip ---------- */
.compat {
  display: grid;
  justify-items: center;
  gap: var(--sp-6);
  max-width: 880px;
  margin-inline: auto;
}
.compat__ruler { width: 100%; }
.compat__tags { justify-content: center; }
.compat__tag.is-now {
  border-color: color-mix(in srgb, var(--ok) 45%, transparent);
  background: var(--ok-soft);
  color: var(--text-1);
}
.compat__tag.is-now .icon { color: var(--ok); }
.compat__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-6); font-size: var(--fs-xs); color: var(--text-3); }
.compat__key { display: inline-flex; align-items: center; gap: var(--sp-2); }
.compat__key::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.compat__key--now::before { background: var(--ok-soft); border: 1px solid var(--ok); }
.compat__key--soon::before { border: 1px dashed var(--text-3); }

/* ---------- 7. CTA band — shared component (.cta-band*), components.css §27 ---------- */

/* ---------- Lite performance tier (GTD.perf, DESIGN.md §13) — added by web-design-system, phase 5A ---------- */
/* no infinite decorative animation: static dashes, static simulator bar (hero gauge keeps animating) */
html[data-perf="lite"] .sys-link--air,
html[data-perf="lite"] .dmock__fill { animation: none; }
