.air-ecu-page {
  background: #eef7ff;
}

/* Figma 163:150 - vehicle HVAC ECU redesign */
.air-v2-main {
  overflow: hidden;
  background: #f2f9ff;
  color: #2f3548;
}

.air-v2-hero {
  height: 400px;
  background: url("./assets/air-conditioner-control-ecu/v2-hero-bg.webp") center / cover no-repeat;
}

.air-v2-hero__inner {
  height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.air-v2-hero h1,
.air-v2-intro__copy h2,
.air-v2-heading h2 {
  margin: 0;
  color: #2f3548;
  font-size: 32px;
  line-height: 39px;
  font-weight: 800;
  letter-spacing: 0;
}

.air-v2-hero p,
.air-v2-intro__copy > span,
.air-v2-heading > span {
  margin: 10px 0 0;
  color: #666;
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 19px;
  font-weight: 300;
  letter-spacing: 0;
}

.air-v2-hero > .container > span {
  max-width: 800px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.2em;
}

.air-v2-intro {
  background: #fff;
}

.air-v2-intro__inner {
  position: relative;
  height: 264px;
  display: flex;
  align-items: flex-start;
}

.air-v2-intro__copy {
  width: min(928px, 72%);
  padding-top: 36px;
}

.air-v2-intro__copy > span {
  display: block;
  margin-top: 10px;
}

.air-v2-intro__copy p {
  margin: 12px 0 0;
  color: #2f3548;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 0.06em;
}

.air-v2-intro__product {
  position: absolute;
  right: 0;
  top: 54px;
  width: 303px;
  height: 170px;
  object-fit: contain;
}

.air-v2-interior {
  width: 100%;
  height: 610px;
  background: url("./assets/air-conditioner-control-ecu/v2-interior.webp") center / cover no-repeat;
}

.air-v2-capability-shell {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100vw - 48px));
  height: 264px;
  margin-top: -120px;
}

.air-v2-capability-panel {
  position: absolute;
  inset: 0;
  background: url("./assets/air-conditioner-control-ecu/v2-feature-panel.webp") center / 100% 100% no-repeat;
}

.air-v2-capability-grid {
  position: relative;
  z-index: 1;
  width: 998px;
  margin: 0 auto;
  padding-top: 41px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.air-v2-capability-grid article {
  display: grid;
  justify-items: center;
  grid-template-rows: 88px 40px;
  gap: 8px;
}

.air-v2-capability-grid img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.air-v2-capability-grid h3 {
  margin: 0;
  color: #313131;
  font-size: 28px;
  line-height: 40px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
}

.air-v2-overview {
  padding: 56px 0 0;
  background: #f2f9ff;
}

.air-v2-heading {
  text-align: center;
}

.air-v2-heading > span {
  display: block;
  margin-top: 15px;
}

.air-v2-flow {
  position: relative;
  width: 100%;
  aspect-ratio: 1336 / 256;
  margin-top: 0;
}

.air-v2-flow-scroll {
  width: 100%;
}

.air-v2-flow__node,
.air-v2-flow__display {
  position: absolute;
  top: 9px;
  width: 16.47%;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.air-v2-flow__node--motor { left: 0; }
.air-v2-flow__node--air { left: 25.52%; }
.air-v2-flow__node--main { left: 51.05%; }

.air-v2-flow__node img {
  object-fit: contain;
}

.air-v2-flow__node--motor img {
  width: 60px;
  height: 60px;
  margin-bottom: 26px;
}

.air-v2-flow__node--air img,
.air-v2-flow__node--main img {
  width: 156px;
  height: 87px;
  margin-bottom: 12px;
}

.air-v2-flow__node h3,
.air-v2-flow__display h3 {
  margin: 0;
  color: #000;
  font-size: 16px;
  line-height: 19px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.air-v2-flow__display {
  left: 76.57%;
  top: 0;
  width: 23.43%;
  height: 217px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.air-v2-flow__display img {
  width: 100%;
  height: 217px;
  box-sizing: border-box;
  object-fit: contain;
  border: 6px solid #fff;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.air-v2-flow__display h3 {
  position: absolute;
  top: 237px;
  left: 0;
  width: 100%;
}

.air-v2-flow__connection {
  position: absolute;
  top: 0;
  width: 9.06%;
  height: 217px;
}

.air-v2-flow__connection--1 { left: 16.47%; }
.air-v2-flow__connection--2 { left: 41.99%; }
.air-v2-flow__connection--3 { left: 67.51%; }

.air-v2-flow__connection::before,
.air-v2-flow__connection::after {
  position: absolute;
  left: 14px;
  width: calc(100% - 28px);
  height: 2px;
  content: "";
  background: #f59e0b;
}

.air-v2-flow__connection::before {
  top: 64px;
}

.air-v2-flow__connection::after {
  top: 156px;
}

.air-v2-flow__label {
  position: absolute;
  left: 0;
  width: 100%;
  color: #8f8f8f;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  white-space: nowrap;
}

.air-v2-flow__label--top { top: 32px; }
.air-v2-flow__label--bottom { top: 126px; }

.air-v2-flow__label--top::before,
.air-v2-flow__label--bottom::after {
  position: absolute;
  width: 11px;
  height: 12px;
  content: "";
  background: #f59e0b;
}

.air-v2-flow__label--top::before {
  left: 8px;
  top: 26px;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.air-v2-flow__label--bottom::after {
  right: 8px;
  top: 26px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.air-v2-process {
  min-height: 280px;
  margin-top: 46px;
  padding: 64px 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 72px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.air-v2-process article {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateY(20px);
  text-align: center;
}

.air-v2-process h3 {
  margin: 0;
  color: #000;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
}

.air-v2-process p {
  width: 100%;
  max-width: 340px;
  margin: 20px auto 0;
  color: #545454;
  font-size: 16px;
  line-height: 24px;
}

.air-v2-functions {
  padding: 75px 0 0;
  background: #f2f9ff;
}

.air-v2-function-list {
  display: grid;
  gap: 40px;
  margin-top: 60px;
}

.air-v2-function-card {
  height: 260px;
  padding: 56px 58px;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.air-v2-function-card img {
  width: 160px;
  height: 148px;
  object-fit: contain;
}

.air-v2-function-card h3 {
  margin: 0;
  color: #2f3548;
  font-size: 28px;
  line-height: 42px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.air-v2-function-card p {
  position: relative;
  margin: 10px 0 0;
  padding-left: 18px;
  color: #545454;
  font-size: 20px;
  line-height: 42px;
  letter-spacing: 0.08em;
}

.air-v2-function-card p::before {
  position: absolute;
  left: 0;
  content: "·";
  color: #2085f9;
}

.air-v2-specs {
  padding: 80px 0 140px;
  background: #f2f9ff;
}

.air-v2-spec-table {
  position: relative;
  height: 325px;
  margin-top: 40px;
  overflow: hidden;
  border-radius: 12px;
  background: #f7fbff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

.air-v2-spec-table__logo {
  position: absolute;
  right: 96px;
  bottom: 18px;
  width: 158px;
  height: 158px;
  opacity: 0.05;
}

.air-v2-spec-row {
  position: relative;
  z-index: 1;
  min-height: 48px;
  display: grid;
  grid-template-columns: 130px 196px minmax(0, 1fr);
  border-bottom: 1px solid rgba(67, 164, 255, 0.25);
}

.air-v2-spec-row > div {
  min-width: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  color: #6c707d;
  font-size: 14px;
  line-height: 48px;
  letter-spacing: 0.1em;
}

.air-v2-spec-row > div:first-child {
  justify-content: center;
  padding: 0;
  border-right: 1px solid rgba(67, 164, 255, 0.25);
  background: #43a4ff;
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}

.air-v2-spec-row > div:nth-child(2) {
  border-right: 1px solid rgba(67, 164, 255, 0.25);
}

.air-v2-spec-head {
  min-height: 85px;
  border-bottom-color: rgba(255, 255, 255, 0.72);
  background: #43a4ff;
}

.air-v2-spec-head > div {
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.air-v2-spec-head > div:nth-child(2),
.air-v2-spec-head > div:nth-child(3) {
  justify-content: flex-start;
}

.air-v2-spec-head > div:first-child,
.air-v2-spec-head > div:nth-child(2) {
  border-right-color: rgba(255, 255, 255, 0.72);
}

.air-v2-spec-row:last-child {
  border-bottom: 0;
}

@media (max-width: 1180px) {
  .air-v2-flow-scroll {
    margin-top: 0;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scrollbar-color: rgba(66, 164, 255, 0.55) transparent;
    scrollbar-width: thin;
  }

  .air-v2-flow {
    width: max(100%, 960px);
    height: 256px;
    aspect-ratio: auto;
    margin-top: 0;
  }

  .air-v2-process {
    min-height: 0;
    margin-top: 12px;
    padding: 48px 36px;
    gap: 32px;
  }

  .air-v2-process h3 {
    font-size: 18px;
  }

  .air-v2-process p {
    margin-top: 20px;
    font-size: 15px;
  }
}

@media (max-width: 1080px) {
  .air-v2-intro__copy {
    width: calc(100% - 270px);
  }

  .air-v2-intro__product {
    width: 250px;
  }

  .air-v2-capability-grid {
    width: calc(100% - 180px);
  }

  .air-v2-capability-grid h3 {
    font-size: 22px;
  }

  .air-v2-function-card {
    height: auto;
    min-height: 260px;
  }
}

@media (max-width: 780px) {
  .air-v2-hero {
    height: 320px;
  }

  .air-v2-hero h1,
  .air-v2-intro__copy h2,
  .air-v2-heading h2 {
    font-size: 26px;
    line-height: 1.3;
  }

  .air-v2-hero > .container > span {
    max-width: 340px;
    letter-spacing: 0.08em;
  }

  .air-v2-intro__inner {
    height: auto;
    min-height: 470px;
    padding: 44px 0;
    display: grid;
    gap: 28px;
  }

  .air-v2-intro__copy {
    width: 100%;
    padding: 0;
  }

  .air-v2-intro__copy p {
    font-size: 14px;
    line-height: 1.8;
  }

  .air-v2-intro__product {
    position: static;
    justify-self: center;
    width: min(260px, 76vw);
    height: auto;
  }

  .air-v2-interior {
    height: 360px;
  }

  .air-v2-capability-shell {
    width: calc(100vw - 28px);
    height: auto;
    min-height: 196px;
    margin-top: -70px;
  }

  .air-v2-capability-grid {
    width: calc(100% - 48px);
    padding-top: 30px;
    gap: 8px;
  }

  .air-v2-capability-grid article {
    grid-template-rows: 64px auto;
  }

  .air-v2-capability-grid img {
    width: 64px;
    height: 64px;
  }

  .air-v2-capability-grid h3 {
    font-size: 13px;
    line-height: 1.4;
  }

  .air-v2-overview {
    padding-top: 54px;
  }

  .air-v2-process {
    margin-top: 22px;
    padding: 30px 22px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .air-v2-process p {
    margin-top: 20px;
  }

  .air-v2-functions {
    padding-top: 44px;
  }

  .air-v2-function-list {
    margin-top: 38px;
    gap: 22px;
  }

  .air-v2-function-card {
    min-height: 0;
    padding: 30px 22px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .air-v2-function-card img {
    width: 120px;
    height: 112px;
  }

  .air-v2-function-card h3 {
    font-size: 22px;
    line-height: 1.4;
  }

  .air-v2-function-card p {
    padding-left: 0;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.04em;
  }

  .air-v2-function-card p::before {
    position: static;
    margin-right: 5px;
  }

  .air-v2-specs {
    padding: 64px 0 88px;
  }

  .air-v2-spec-table {
    height: auto;
  }

  .air-v2-spec-row {
    grid-template-columns: 54px 92px minmax(0, 1fr);
  }

  .air-v2-spec-row > div {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  .air-v2-spec-row > div:first-child,
  .air-v2-spec-head > div {
    font-size: 13px;
  }
}

/* Responsive stabilization for the active Figma v2 layout. */
@media (max-width: 1280px) {
  .air-v2-main {
    overflow-x: clip;
  }

  .air-v2-intro__inner {
    height: auto;
    min-height: 320px;
    padding-block: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 31%);
    align-items: center;
    gap: 32px;
  }

  .air-v2-intro__copy {
    width: auto;
    padding-top: 0;
  }

  .air-v2-intro__product {
    position: static;
    width: min(303px, 100%);
    height: auto;
    justify-self: end;
  }
}

@media (max-width: 1100px) {
  .air-v2-hero {
    height: 340px;
  }

  .air-v2-hero__inner {
    padding-inline: 24px;
  }

  .air-v2-intro__inner {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 34%);
    gap: 24px;
  }

  .air-v2-intro__copy p {
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.035em;
  }

  .air-v2-capability-grid {
    width: calc(100% - 96px);
    gap: 24px;
  }

  .air-v2-function-card {
    padding: 42px 40px;
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 28px;
  }

  .air-v2-function-card img {
    width: 136px;
    height: 126px;
  }

  .air-v2-function-card h3 {
    font-size: 24px;
    line-height: 1.4;
  }

  .air-v2-function-card p {
    font-size: 17px;
    line-height: 1.9;
    letter-spacing: 0.04em;
  }
}

@media (max-width: 900px) {
  .air-v2-intro__inner {
    min-height: 0;
    padding-block: 48px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .air-v2-intro__product {
    width: min(300px, 72vw);
    justify-self: center;
  }

  .air-v2-interior {
    height: clamp(340px, 54vw, 480px);
  }

  .air-v2-capability-shell {
    height: 220px;
    margin-top: -92px;
  }

  .air-v2-capability-grid {
    width: calc(100% - 64px);
    padding-top: 34px;
    gap: 16px;
  }

  .air-v2-capability-grid article {
    grid-template-rows: 74px auto;
  }

  .air-v2-capability-grid img {
    width: 74px;
    height: 74px;
  }

  .air-v2-capability-grid h3 {
    font-size: 17px;
    line-height: 1.4;
  }

  .air-v2-process {
    padding: 38px 28px;
    gap: 24px;
  }

  .air-v2-process h3 {
    min-height: 50px;
    display: grid;
    place-items: center;
  }
}

@media (max-width: 780px) {
  .air-v2-hero {
    height: auto;
    min-height: 300px;
  }

  .air-v2-hero__inner {
    min-height: 300px;
    padding-block: 54px;
  }

  .air-v2-hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .air-v2-hero > .container > span {
    line-height: 1.65;
  }

  .air-v2-intro__inner {
    padding-block: 40px;
  }

  .air-v2-intro__copy p {
    margin-top: 18px;
    line-height: 1.9;
  }

  .air-v2-interior {
    height: 330px;
    background-position: center;
  }

  .air-v2-capability-shell {
    min-height: 204px;
    margin-top: -64px;
  }

  .air-v2-capability-panel {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 24px rgba(37, 92, 151, 0.1);
    backdrop-filter: blur(10px);
  }

  .air-v2-capability-grid {
    width: calc(100% - 28px);
    padding: 28px 6px 22px;
  }

  .air-v2-overview {
    padding-top: 56px;
  }

  .air-v2-flow-scroll {
    margin-top: 0;
    padding: 0;
    overflow: visible;
  }

  .air-v2-flow {
    width: 100%;
    height: auto;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .air-v2-flow__node,
  .air-v2-flow__display {
    position: relative;
    inset: auto;
    width: min(100%, 360px);
    height: 210px;
    flex: 0 0 auto;
  }

  .air-v2-flow__node--motor { order: 1; }
  .air-v2-flow__connection--1 { order: 2; }
  .air-v2-flow__node--air { order: 3; }
  .air-v2-flow__connection--2 { order: 4; }
  .air-v2-flow__node--main { order: 5; }
  .air-v2-flow__connection--3 { order: 6; }
  .air-v2-flow__display { order: 7; }

  .air-v2-flow__display {
    height: auto;
  }

  .air-v2-flow__display img {
    width: 100%;
    height: auto;
    aspect-ratio: 312 / 217;
  }

  .air-v2-flow__display h3 {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .air-v2-flow__connection {
    position: relative;
    inset: auto;
    width: min(280px, 100%);
    height: 112px;
    flex: 0 0 112px;
  }

  .air-v2-flow__connection::before,
  .air-v2-flow__connection::after {
    top: 10px;
    width: 2px;
    height: 92px;
  }

  .air-v2-flow__connection::before {
    left: calc(50% - 14px);
  }

  .air-v2-flow__connection::after {
    left: calc(50% + 14px);
  }

  .air-v2-flow__label {
    left: calc(50% + 34px);
    width: calc(50% - 34px);
    text-align: left;
    white-space: normal;
  }

  .air-v2-flow__label--top { top: 19px; }
  .air-v2-flow__label--bottom { top: 68px; }

  .air-v2-flow__label--top::before,
  .air-v2-flow__label--bottom::after {
    width: 12px;
    height: 10px;
  }

  .air-v2-flow__label--top::before {
    left: -52px;
    top: 70px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }

  .air-v2-flow__label--bottom::after {
    left: -24px;
    top: -66px;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }

  .air-v2-process {
    margin-top: 20px;
  }

  .air-v2-process article {
    transform: none;
  }

  .air-v2-process h3 {
    min-height: 0;
  }

  .air-v2-function-card {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .air-v2-function-card p {
    padding-left: 0;
  }

  .air-v2-function-card p::before {
    position: static;
    margin-right: 5px;
  }

  .air-v2-spec-table {
    overflow: hidden;
  }
}

@media (max-width: 560px) {
  .air-ecu-page .floating-tools {
    display: none;
  }

  .air-v2-hero h1,
  .air-v2-intro__copy h2,
  .air-v2-heading h2 {
    font-size: 24px;
  }

  .air-v2-hero p,
  .air-v2-intro__copy > span,
  .air-v2-heading > span {
    font-size: 14px;
  }

  .air-v2-interior {
    height: 270px;
  }

  .air-v2-capability-shell {
    width: calc(100vw - 20px);
    min-height: 184px;
    margin-top: -46px;
  }

  .air-v2-capability-grid {
    width: calc(100% - 16px);
    padding-top: 24px;
    gap: 4px;
  }

  .air-v2-capability-grid article {
    grid-template-rows: 58px auto;
    gap: 8px;
  }

  .air-v2-capability-grid img {
    width: 58px;
    height: 58px;
  }

  .air-v2-capability-grid h3 {
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .air-v2-process {
    padding: 28px 18px;
  }

  .air-v2-process h3 {
    font-size: 17px;
    line-height: 1.45;
  }

  .air-v2-process p {
    font-size: 14px;
    line-height: 1.75;
  }

  .air-v2-function-card {
    padding: 26px 18px;
  }

  .air-v2-function-card img {
    width: 104px;
    height: 96px;
  }

  .air-v2-function-card h3 {
    font-size: 20px;
  }

  .air-v2-function-card p {
    font-size: 14px;
  }

  .air-v2-spec-row {
    grid-template-columns: 42px 82px minmax(0, 1fr);
  }

  .air-v2-spec-row > div {
    padding: 8px 7px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .air-v2-spec-row > div:first-child,
  .air-v2-spec-head > div {
    font-size: 12px;
  }

  .air-v2-spec-table__logo {
    right: 14px;
    width: 110px;
    height: 110px;
  }
}

.air-ecu-page .topbar {
  --topbar-glass-bg: rgba(255, 255, 255, 0.84);
}
