/* Terminal product surfaces and API — editorial remodel. */
body.terminal-product-page .terminal-remodel-eyebrow {
  margin: 0;
  color: #315f8b;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

body.terminal-product-page .terminal-showcase {
  padding: clamp(100px, 10vw, 176px) clamp(18px, 3.2vw, 56px);
  overflow: hidden;
  background: #f8f8f6;
}

body.terminal-product-page .terminal-showcase__head {
  width: min(1460px, 100%);
  margin: 0 auto clamp(48px, 6vw, 92px);
}

body.terminal-product-page .terminal-showcase__head > div {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .72fr);
  gap: clamp(52px, 9vw, 150px);
  align-items: end;
  margin-top: 28px;
}

body.terminal-product-page .terminal-showcase__head h2 {
  max-width: 860px;
  margin: 0;
  color: #0b0c0e;
  font-size: clamp(52px, 6.2vw, 108px);
  font-weight: 400;
  letter-spacing: -.058em;
  line-height: .91;
}

body.terminal-product-page .terminal-showcase__head > div > p {
  max-width: 590px;
  margin: 0 0 6px;
  color: #555b60;
  font-size: clamp(18px, 1.55vw, 26px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.25;
}

body.terminal-product-page .terminal-showcase__stage {
  position: relative;
  width: min(1640px, 100%);
  margin: 0 auto;
  padding: 14px;
  overflow: hidden;
  border-radius: 26px;
  background: #090b0d;
  box-shadow: 0 38px 90px rgba(10, 14, 18, .14);
}

body.terminal-product-page .terminal-showcase__nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-bottom: 12px;
}

body.terminal-product-page .terminal-showcase__nav button {
  position: relative;
  min-height: 70px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, .43);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: color .35s ease, background-color .35s ease;
}

body.terminal-product-page .terminal-showcase__nav button::after {
  position: absolute;
  right: 20px;
  bottom: 13px;
  left: 20px;
  height: 1px;
  background: rgba(255, 255, 255, .14);
  content: "";
}

body.terminal-product-page .terminal-showcase__nav button::before {
  position: absolute;
  z-index: 1;
  bottom: 13px;
  left: 20px;
  width: 0;
  height: 1px;
  background: #fff;
  content: "";
  transition: width 4.8s linear;
}

body.terminal-product-page .terminal-showcase__nav button.is-active {
  background: rgba(255, 255, 255, .055);
  color: #fff;
}

body.terminal-product-page .terminal-showcase__stage.is-running .terminal-showcase__nav button.is-active::before {
  width: calc(100% - 40px);
}

body.terminal-product-page .terminal-showcase__nav button span {
  display: inline-block;
  width: 42px;
  color: rgba(255, 255, 255, .28);
  font-size: 10px;
  letter-spacing: .1em;
}

body.terminal-product-page .terminal-showcase__media {
  position: relative;
  height: clamp(430px, 57vw, 870px);
  margin: 0;
  overflow: hidden;
  border-radius: 17px;
  background: #101315;
}

body.terminal-product-page .terminal-showcase__media::after {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .82));
  content: "";
  pointer-events: none;
}

body.terminal-product-page .terminal-showcase__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.012);
  opacity: 1;
  transition: opacity .42s ease, transform 1.05s cubic-bezier(.2, .72, .2, 1);
}

body.terminal-product-page .terminal-showcase__stage.is-switching .terminal-showcase__media img {
  transform: scale(1.035);
  opacity: .22;
}

body.terminal-product-page .terminal-showcase__live {
  position: absolute;
  z-index: 3;
  top: 22px;
  right: 22px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(5, 8, 10, .72);
  color: rgba(255, 255, 255, .72);
  font-size: 9px;
  letter-spacing: .13em;
  backdrop-filter: blur(12px);
}

body.terminal-product-page .terminal-showcase__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #45d483;
  box-shadow: 0 0 0 4px rgba(69, 212, 131, .13);
}

body.terminal-product-page .terminal-showcase__caption {
  position: absolute;
  z-index: 4;
  right: clamp(34px, 5vw, 86px);
  bottom: clamp(34px, 5vw, 78px);
  left: clamp(34px, 5vw, 86px);
  max-width: 750px;
  color: #fff;
  transition: opacity .3s ease, transform .42s ease;
}

body.terminal-product-page .terminal-showcase__stage.is-switching .terminal-showcase__caption {
  opacity: 0;
  transform: translateY(14px);
}

body.terminal-product-page .terminal-showcase__caption p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .54);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .15em;
}

body.terminal-product-page .terminal-showcase__caption h3 {
  margin: 0;
  font-size: clamp(34px, 4vw, 66px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}

body.terminal-product-page .terminal-showcase__caption > span {
  display: block;
  max-width: 590px;
  margin-top: 20px;
  color: rgba(255, 255, 255, .69);
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.35;
}

body.terminal-product-page .terminal-api-story {
  padding: clamp(110px, 11vw, 190px) clamp(18px, 4vw, 72px);
  background: #fff;
}

body.terminal-product-page .terminal-api-story__head {
  width: min(980px, 100%);
  margin: 0 auto clamp(62px, 7vw, 104px);
  text-align: center;
}

body.terminal-product-page .terminal-api-story__head h2 {
  margin: 24px 0 26px;
  color: #0b0c0e;
  font-size: clamp(52px, 6vw, 96px);
  font-weight: 400;
  letter-spacing: -.058em;
  line-height: .93;
}

body.terminal-product-page .terminal-api-story__head > p:not(.terminal-remodel-eyebrow) {
  max-width: 680px;
  margin: 0 auto;
  color: #555b60;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.35;
}

body.terminal-product-page .terminal-api-story__head .api-actions {
  justify-content: center;
  margin-top: 34px;
}

body.terminal-product-page .terminal-api-story__product {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(270px, .58fr);
  width: min(1320px, 100%);
  margin: 0 auto;
  border: 1px solid #d9dcde;
  border-radius: 22px;
  overflow: hidden;
  background: #f4f4f2;
}

body.terminal-product-page .terminal-api-story .api-console-frame {
  min-width: 0;
  min-height: 610px;
  margin: 0;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: #e8e9e7;
  box-shadow: none;
}

body.terminal-product-page .terminal-api-story .api-console-frame::before,
body.terminal-product-page .terminal-api-story .api-console-frame::after {
  display: none;
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-console {
  width: 100%;
  height: 540px;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(9, 12, 14, .18);
}

body.terminal-product-page .terminal-api-story .api-console-frame .api-code {
  min-height: 0;
  height: 428px;
}

body.terminal-product-page .terminal-api-story .api-console-tabs {
  margin: 14px 0 0;
}

body.terminal-product-page .terminal-api-story .api-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-width: 0;
  padding: 0;
  border-left: 1px solid #d9dcde;
  background: #fff;
}

body.terminal-product-page .terminal-api-story .api-feature {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  gap: 8px 0;
  min-height: 152px;
  padding: 26px 30px;
  border: 0;
  border-bottom: 1px solid #e0e2e3;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

body.terminal-product-page .terminal-api-story .api-feature:last-child { border-bottom: 0; }
body.terminal-product-page .terminal-api-story .api-feature::before,
body.terminal-product-page .terminal-api-story .api-feature::after { display: none; }

body.terminal-product-page .terminal-api-story .api-feature > span {
  grid-row: 1 / span 2;
  align-self: start;
  padding-top: 4px;
  color: #7898b9;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .1em;
}

body.terminal-product-page .terminal-api-story .api-feature strong {
  margin: 0;
  color: #101214;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
}

body.terminal-product-page .terminal-api-story .api-feature small {
  color: #656b70;
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 900px) {
  body.terminal-product-page .terminal-showcase__head > div,
  body.terminal-product-page .terminal-api-story__product { grid-template-columns: 1fr; }
  body.terminal-product-page .terminal-showcase__head > div { gap: 28px; }
  body.terminal-product-page .terminal-showcase__nav button { min-height: 62px; padding-inline: 14px; }
  body.terminal-product-page .terminal-showcase__nav button span { display: none; }
  body.terminal-product-page .terminal-api-story .api-features {
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid #d9dcde;
    border-left: 0;
  }
  body.terminal-product-page .terminal-api-story .api-feature:nth-child(odd) { border-right: 1px solid #e0e2e3; }
  body.terminal-product-page .terminal-api-story .api-feature:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 560px) {
  body.terminal-product-page .terminal-showcase,
  body.terminal-product-page .terminal-api-story { padding-inline: 12px; }
  body.terminal-product-page .terminal-showcase__head { padding-inline: 8px; }
  body.terminal-product-page .terminal-showcase__stage { padding: 7px; border-radius: 17px; }
  body.terminal-product-page .terminal-showcase__nav { margin-bottom: 7px; }
  body.terminal-product-page .terminal-showcase__nav button { min-height: 54px; font-size: 12px; text-align: center; }
  body.terminal-product-page .terminal-showcase__nav button::after,
  body.terminal-product-page .terminal-showcase__nav button::before { right: 10px; bottom: 8px; left: 10px; }
  body.terminal-product-page .terminal-showcase__media { height: 510px; border-radius: 12px; }
  body.terminal-product-page .terminal-showcase__media img { object-position: 42% top; }
  body.terminal-product-page .terminal-showcase__caption { right: 24px; bottom: 28px; left: 24px; }
  body.terminal-product-page .terminal-showcase__live { top: 14px; right: 14px; }
  body.terminal-product-page .terminal-api-story__head { padding-inline: 8px; }
  body.terminal-product-page .terminal-api-story__head .api-actions { display: grid; }
  body.terminal-product-page .terminal-api-story__product { border-radius: 15px; }
  body.terminal-product-page .terminal-api-story .api-console-frame { min-height: 500px; padding: 10px; }
  body.terminal-product-page .terminal-api-story .api-console-frame .api-console { height: 430px; }
  body.terminal-product-page .terminal-api-story .api-console-frame .api-code { height: 320px; }
  body.terminal-product-page .terminal-api-story .api-features { grid-template-columns: 1fr; }
  body.terminal-product-page .terminal-api-story .api-feature,
  body.terminal-product-page .terminal-api-story .api-feature:nth-child(odd),
  body.terminal-product-page .terminal-api-story .api-feature:nth-last-child(-n + 2) { border-right: 0; border-bottom: 1px solid #e0e2e3; }
  body.terminal-product-page .terminal-api-story .api-feature:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.terminal-product-page .terminal-showcase__nav button::before { transition: none; }
  body.terminal-product-page .terminal-showcase__media img,
  body.terminal-product-page .terminal-showcase__caption { transition: none; }
}
