/* Clear Boot multi-service extension.
   The original PC pages remain structurally intact; this file adds the suite switcher
   and the Software / Web Design service families. */

body.theme-pc {
  --accent: #1b7cff;
  --accent-bright: #39a7ff;
  --accent-deep: #0b46c6;
  --accent-rgb: 27, 124, 255;
  --theme-wave: url("Bluewave_2.png");
  --theme-wave-alt: url("Bluewave_1.png");
  --theme-wave-tint: linear-gradient(rgb(27, 124, 255), rgb(27, 124, 255));
}

body.theme-software {
  --accent: #2ee68a;
  --accent-bright: #72f6b5;
  --accent-deep: #0c9b58;
  --accent-rgb: 46, 230, 138;
  --theme-wave: url("Bluewave_2.png");
  --theme-wave-alt: url("Bluewave_1.png");
  --theme-wave-tint: linear-gradient(rgb(46, 230, 138), rgb(46, 230, 138));
  --blue: var(--accent);
  --blue-bright: var(--accent-bright);
  --blue-deep: var(--accent-deep);
}

body.theme-web {
  --accent: #ff405b;
  --accent-bright: #ff7588;
  --accent-deep: #b91531;
  --accent-rgb: 255, 64, 91;
  --theme-wave: url("Bluewave_2.png");
  --theme-wave-alt: url("Bluewave_1.png");
  --theme-wave-tint: linear-gradient(rgb(255, 64, 91), rgb(255, 64, 91));
  --blue: var(--accent);
  --blue-bright: var(--accent-bright);
  --blue-deep: var(--accent-deep);
}

/* --- Product family switcher --- */
.site-header {
  z-index: 80;
}

.suite-switcher {
  position: relative;
  width: max-content;
  min-width: 0;
}

.suite-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.suite-button .brand-logo {
  border-color: rgba(var(--accent-rgb), 0.75);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.08);
}

.theme-software .suite-button .brand-logo img {
  filter: hue-rotate(78deg) saturate(1.22);
}

.theme-web .suite-button .brand-logo img {
  filter: hue-rotate(140deg) saturate(1.28);
}

.suite-brand-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.suite-brand-copy .suite-service-name {
  color: var(--accent);
}

.suite-chevron {
  width: 20px;
  height: 20px;
  position: absolute;
  left: 31px;
  bottom: -16px;
  display: grid;
  place-items: center;
  color: #c9cdd4;
  transition: transform 180ms ease, color 180ms ease;
}

.suite-chevron svg {
  width: 16px;
  height: 16px;
}

.suite-button[aria-expanded="true"] .suite-chevron {
  transform: rotate(180deg);
  color: var(--accent-bright);
}

.suite-menu {
  position: absolute;
  top: calc(100% + 13px);
  left: 0;
  width: 228px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: #d7d9de;
  color: #0e1117;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.48);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px) scale(0.985);
  transform-origin: top left;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 120;
}

.suite-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.suite-menu a {
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: center;
  gap: 11px;
  min-height: 45px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0.02em;
  transition: background 150ms ease, transform 150ms ease;
}

.suite-menu a:hover,
.suite-menu a[aria-current="true"] {
  background: rgba(0, 0, 0, 0.09);
  transform: translateX(2px);
}

.suite-option-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--option-color);
  box-shadow: 0 0 12px var(--option-color);
}

.suite-menu a[data-suite="pc"] { --option-color: #0f63d8; color: #0f55b8; }
.suite-menu a[data-suite="software"] { --option-color: #087647; color: #05552f; }
.suite-menu a[data-suite="web"] { --option-color: #d4314a; color: #a91f34; }

.suite-button:focus-visible,
.suite-menu a:focus-visible,
.primary-nav a:focus-visible,
.nav-cta:focus-visible,
.button:focus-visible,
.socials a:focus-visible,
.stack-tab:focus-visible,
.project-tab:focus-visible,
.editor-tab:focus-visible,
.playground-actions button:focus-visible,
.demo-clicker button:focus-visible,
.hud-action:focus-visible,
.rig-pivot:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
}

.suite-chevron.is-nudging {
  animation: suite-chevron-nudge 760ms ease-in-out 3;
}

@keyframes suite-chevron-nudge {
  0%, 100% { transform: translateY(0); }
  28% { transform: translateY(5px); }
  55% { transform: translateY(-2px); }
  78% { transform: translateY(3px); }
}

/* --- Shared theme surfaces --- */
.studio-stage,
.studio-page,
.studio-thanks {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(1, 4, 9, 0.92) 0%, rgba(2, 7, 14, 0.77) 48%, rgba(2, 8, 17, 0.6) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68)),
    var(--theme-wave-tint),
    var(--theme-wave) center / cover no-repeat,
    #020509;
  background-blend-mode: normal, normal, color, normal, normal;
}

.studio-stage::before,
.studio-page::before,
.studio-thanks::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 44%, rgba(var(--accent-rgb), 0.13), transparent 35%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 38%, rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.studio-stage {
  min-height: 520px;
  display: flex;
  align-items: center;
}

.studio-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
  align-items: center;
  gap: 74px;
  padding-block: 48px 58px;
}

.studio-hero-copy {
  max-width: 660px;
}

.studio-hero-copy h1,
.studio-page-heading h1 {
  margin: 0;
  color: #fbfbfc;
  font-size: clamp(43px, 4.5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.043em;
  font-weight: 780;
  text-wrap: balance;
}

.studio-hero-copy p,
.studio-page-heading > p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #d1d4da;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
}

.theme-dot,
.theme-text {
  color: var(--accent);
}

.studio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.theme-outline-button {
  background: rgba(5, 10, 18, 0.4);
  border-color: rgba(var(--accent-rgb), 0.9);
  box-shadow: none;
}

.theme-outline-button:hover {
  background: rgba(var(--accent-rgb), 0.12);
}

.theme-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(var(--accent-rgb), 0.46) 9%, var(--accent) 28%, #fff 50%, var(--accent) 72%, rgba(var(--accent-rgb), 0.46) 91%, transparent 100%);
  box-shadow: 0 0 18px var(--accent), 0 -9px 52px rgba(var(--accent-rgb), 0.58), 0 9px 52px rgba(var(--accent-rgb), 0.38);
}

.theme-software .trust-item .icon,
.theme-web .trust-item .icon,
.theme-software .step-icon,
.theme-web .step-icon,
.theme-software .eyebrow,
.theme-web .eyebrow {
  color: var(--accent-bright);
}

.theme-software .primary-nav a:hover,
.theme-software .primary-nav a[aria-current="page"],
.theme-web .primary-nav a:hover,
.theme-web .primary-nav a[aria-current="page"] {
  color: var(--accent-bright);
}

.theme-software .primary-nav a[aria-current="page"]::after,
.theme-web .primary-nav a[aria-current="page"]::after {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.85);
}

.theme-software .nav-cta,
.theme-software .button,
.theme-web .nav-cta,
.theme-web .button {
  border-color: rgba(var(--accent-rgb), 0.85);
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent-deep) 100%);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.24);
}

/* --- Hero art: software --- */
.software-console {
  width: min(100%, 520px);
  min-height: 360px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.52);
  border-radius: 16px;
  background: rgba(1, 7, 6, 0.84);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46), 0 0 52px rgba(var(--accent-rgb), 0.11);
  backdrop-filter: blur(7px);
}

.console-top {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.console-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.console-dot:nth-child(1) { background: #ff6574; }
.console-dot:nth-child(2) { background: #f6c956; }
.console-dot:nth-child(3) { background: var(--accent); }

.console-body {
  padding: 28px;
  color: #d9f9e8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.8;
}

.console-body .prompt { color: var(--accent-bright); }
.console-body .comment { color: #789587; }
.console-body .keyword { color: #fff; }
.console-body .value { color: #aef8cf; }
.console-body .dim { color: #82948b; }

.console-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 28px 26px;
}

.console-status span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 9px;
  background: rgba(var(--accent-rgb), 0.055);
  color: #d8eee2;
  font-size: 12px;
  text-align: center;
}

/* --- Hero art: web design --- */
.web-browser-stack {
  width: min(100%, 520px);
  min-height: 380px;
  position: relative;
  justify-self: end;
}

.browser-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 14px;
  background: #0a0d12;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 42px rgba(var(--accent-rgb), 0.1);
}

.browser-card.primary {
  inset: 20px 0 20px 55px;
  z-index: 3;
}

.browser-card.back-one {
  width: 78%;
  height: 73%;
  top: 0;
  left: 0;
  opacity: 0.62;
  transform: rotate(-3deg);
  z-index: 1;
}

.browser-card.back-two {
  width: 72%;
  height: 68%;
  right: 2px;
  bottom: 0;
  opacity: 0.48;
  transform: rotate(3deg);
  z-index: 2;
}

.browser-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #11151c;
}

.browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.browser-canvas {
  height: calc(100% - 34px);
  padding: 24px;
  background:
    radial-gradient(circle at 78% 22%, rgba(var(--accent-rgb), 0.22), transparent 28%),
    linear-gradient(145deg, #090b11, #111723);
}

.browser-hero-line {
  width: 62%;
  height: 16px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #fff, rgba(var(--accent-rgb), 0.92));
}

.browser-copy-line {
  width: 46%;
  height: 7px;
  margin-bottom: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.browser-cta-line {
  width: 108px;
  height: 32px;
  margin-top: 18px;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.35);
}

.browser-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.browser-panels span {
  aspect-ratio: 1.25;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(155deg, rgba(var(--accent-rgb), 0.18), rgba(255, 255, 255, 0.025));
}

/* --- Generic studio pages --- */
.studio-page {
  min-height: calc(100vh - var(--header-h) - 96px);
}

.studio-page-inner {
  padding-block: 50px 42px;
}

.studio-page-heading {
  max-width: 920px;
  margin-bottom: 30px;
}

.studio-page-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.studio-page-heading.centered > p {
  margin-inline: auto;
}

.studio-kicker {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.studio-list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.studio-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.35fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.studio-row-name {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 720;
}

.studio-row-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--accent-rgb), 0.72);
  border-radius: 50%;
  color: var(--accent-bright);
}

.studio-row-icon .icon {
  width: 21px;
  height: 21px;
}

.studio-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.studio-row-tag {
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
}

.studio-cta-bar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 13px 16px 13px 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.72);
  border-radius: 10px;
  background: rgba(3, 7, 12, 0.74);
}

.studio-cta-copy {
  display: flex;
  align-items: center;
  gap: 15px;
}

.studio-cta-copy .icon {
  width: 34px;
  height: 34px;
  color: var(--accent-bright);
}

.studio-cta-copy strong {
  display: block;
  font-size: 17px;
}

.studio-cta-copy span {
  color: var(--muted);
  font-size: 14px;
}

/* --- Stack typewriter lab --- */
.stack-lab {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 14px;
  background: rgba(2, 7, 7, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.stack-tabs {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.022);
}

.stack-tab {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #d8dce2;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.stack-tab::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.stack-tab:hover,
.stack-tab[aria-selected="true"] {
  border-color: rgba(var(--accent-rgb), 0.42);
  background: rgba(var(--accent-rgb), 0.085);
  color: #fff;
}

.stack-tab[aria-selected="true"]::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
}

.stack-terminal {
  min-width: 0;
  padding: 30px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.stack-terminal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #93a49a;
  font-size: 12px;
}

.stack-command {
  margin: 28px 0 0;
  color: var(--accent-bright);
  font-size: 15px;
}

.stack-output {
  min-height: 230px;
  margin: 18px 0 0;
  color: #d8eee2;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.72;
}

.stack-cursor {
  display: inline-block;
  width: 8px;
  height: 1.08em;
  margin-left: 3px;
  background: var(--accent);
  vertical-align: -0.15em;
  animation: cursor-blink 850ms steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

/* --- Project showcase (both families) --- */
.project-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 455px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 14px;
  background: rgba(3, 6, 11, 0.8);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.project-tabs {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.018);
}

.project-tab {
  min-height: 52px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #d9dde4;
  cursor: pointer;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease;
}

.project-tab small {
  display: block;
  margin-top: 2px;
  color: var(--muted-2);
}

.project-tab:hover,
.project-tab[aria-selected="true"] {
  border-color: rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.075);
}

.project-panel-wrap {
  min-width: 0;
  padding: 24px;
}

.project-panel {
  display: none;
  height: 100%;
}

.project-panel.is-active {
  display: grid;
}

.project-panel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: center;
  height: 100%;
}

.project-demo-frame {
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background:
    radial-gradient(circle at 65% 30%, rgba(var(--accent-rgb), 0.15), transparent 35%),
    #080b10;
}

.project-copy h2 {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 35px);
}

.project-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.project-meta span {
  padding: 5px 9px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 999px;
  color: #dce2e8;
  font-size: 11px;
}

/* Software demo widgets */
.demo-clicker {
  width: min(90%, 420px);
  text-align: center;
}

.demo-score {
  margin-bottom: 22px;
  color: var(--accent-bright);
  font: 700 44px/1 "SFMono-Regular", Consolas, monospace;
}

.demo-clicker button,
.demo-margin button,
.rig-export {
  border: 1px solid rgba(var(--accent-rgb), 0.72);
  border-radius: 7px;
  padding: 11px 18px;
  background: rgba(var(--accent-rgb), 0.11);
  color: #fff;
  cursor: pointer;
}

.rig-stage {
  width: min(90%, 430px);
  height: 280px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
  contain: layout paint;
  user-select: none;
  border: 1px dashed rgba(var(--accent-rgb), 0.55);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.07), rgba(255, 255, 255, 0.01));
}

.rig-line {
  width: 100px;
  height: 3px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.58), var(--accent-bright));
  transform: translate3d(215px, 72px, 0) rotate(90deg);
  transform-origin: 0 50%;
  pointer-events: none;
  will-change: transform;
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.28);
}

.rig-bob {
  width: 28px;
  height: 28px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 8%, transparent 9%),
    radial-gradient(circle, var(--accent-bright), var(--accent-deep));
  transform: translate3d(201px, 174px, 0) translate(-50%, -50%);
  pointer-events: none;
  will-change: transform;
  box-shadow: 0 0 22px rgba(var(--accent-rgb), 0.52);
}

.rig-pivot {
  width: 44px;
  height: 44px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translate3d(215px, 72px, 0) translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  will-change: transform;
}

.rig-pivot::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.62);
}

.rig-pivot.is-dragging {
  cursor: grabbing;
}

.rig-pivot.is-dragging::before {
  box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.84);
}

.rig-readout {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 4;
  max-width: calc(100% - 24px);
  overflow: hidden;
  color: #bec9c2;
  font: 12px/1.5 "SFMono-Regular", Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.demo-margin {
  width: min(90%, 440px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.demo-margin label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.demo-margin input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.margin-result {
  grid-column: 1 / -1;
  padding: 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 9px;
  color: var(--accent-bright);
  text-align: center;
  font-size: 30px;
  font-weight: 760;
}

.demo-hud {
  width: min(90%, 440px);
  padding: 22px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 12px;
  background: rgba(1, 6, 8, 0.72);
}

.hud-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 12px;
}

.hud-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.hud-bar i {
  display: block;
  height: 100%;
  width: var(--value, 70%);
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
}

.hud-action {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid rgba(var(--accent-rgb), 0.58);
  border-radius: 7px;
  background: rgba(var(--accent-rgb), 0.11);
  color: #fff;
  cursor: pointer;
}

/* Web project browser preview */
.site-preview {
  width: min(93%, 620px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #080a0e;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.site-preview-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #14171c;
}

.site-preview-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.site-preview img {
  width: 100%;
  max-height: 310px;
  object-fit: cover;
  object-position: top;
}

.hvac-preview,
.prototype-preview {
  min-height: 310px;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.09), transparent 46%),
    #0d1118;
}

.hvac-window {
  width: 92%;
  height: 245px;
  overflow: hidden;
  border-radius: 9px;
  background: #f3f5f7;
  color: #17212b;
}

.hvac-head {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #17365d;
  color: #fff;
  font-weight: 760;
}

.hvac-hero {
  height: 118px;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #edf4f9, #c7d9e8);
  text-align: center;
}

.hvac-hero strong {
  font-size: 24px;
}

.hvac-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
}

.hvac-cards span {
  min-height: 46px;
  border-radius: 5px;
  background: linear-gradient(145deg, #fff, #e8edf1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.prototype-window {
  width: 92%;
  min-height: 245px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: #0a0c11;
}

.prototype-code {
  padding: 22px;
  color: #d8dbe1;
  font: 12px/1.7 "SFMono-Regular", Consolas, monospace;
}

.prototype-code b { color: var(--accent-bright); }

.prototype-render {
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.18), #12151d);
}

.prototype-render span {
  width: 115px;
  height: 115px;
  border: 2px solid var(--accent);
  border-radius: 24px;
  box-shadow: 0 0 36px rgba(var(--accent-rgb), 0.24);
}

/* --- Web playground --- */
.playground-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(390px, 1.05fr);
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: 14px;
  background: #080a0e;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
}

.editor-pane,
.preview-pane {
  min-width: 0;
}

.editor-pane {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.editor-tabs {
  display: flex;
  gap: 3px;
  padding: 10px 10px 0;
  background: #11141a;
}

.editor-tab {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: transparent;
  color: #b5bbc5;
  cursor: pointer;
}

.editor-tab[aria-selected="true"] {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: #080a0e;
  color: #fff;
}

.code-editor {
  display: none;
  width: 100%;
  min-height: var(--editor-min-height);
  resize: none;
  border: 0;
  padding: 22px;
  background: #080a0e;
  color: #e7e9ed;
  outline: none;
  font: 13px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-variant-ligatures: none;
  tab-size: 2;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

.editor-panel {
  --editor-min-height: 410px;
  display: none;
  position: relative;
  min-width: 0;
  min-height: var(--editor-min-height);
}

.editor-panel.is-active {
  display: grid;
}

.code-highlight,
.editor-panel .code-editor {
  grid-area: 1 / 1;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: var(--editor-min-height);
  margin: 0;
  padding: 22px;
  border: 0;
  font: 13px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-variant-ligatures: none;
  tab-size: 2;
  white-space: pre;
  overflow-wrap: normal;
  word-break: normal;
}

.editor-panel .code-editor {
  display: block;
  position: relative;
  z-index: 0;
  overflow: auto;
}

.code-highlight {
  z-index: 0;
  overflow: hidden;
  background: #080a0e;
  color: #d4d4d4;
  pointer-events: none;
  user-select: none;
}

.code-highlight code {
  font: inherit;
  color: inherit;
}

.editor-panel.has-highlighting .code-editor {
  z-index: 1;
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
  caret-color: #ffffff;
}

.editor-panel.has-highlighting .code-editor::selection {
  background: rgba(var(--accent-rgb), 0.38);
}

.token-comment {
  color: #8b96a3;
}

.token-tag,
.token-keyword {
  color: #ff7a96;
}

.token-attribute,
.token-property,
.token-function,
.token-variable {
  color: #8ec7ff;
}

.token-string {
  color: #ffd580;
}

.token-number,
.token-constant,
.token-entity {
  color: #b7f399;
}

.token-selector,
.token-atrule,
.token-builtin {
  color: #c6a0ff;
}

.token-operator,
.token-punctuation {
  color: #c9cdd4;
}

.code-editor.is-active {
  display: block;
}

.code-editor:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: -4px;
}

.playground-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: #11141a;
}

.editor-help {
  margin: 0;
  color: #929aa7;
  font-size: 11px;
  line-height: 1.4;
}

.playground-action-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.playground-actions button {
  min-height: 39px;
  border: 1px solid rgba(var(--accent-rgb), 0.64);
  border-radius: 6px;
  padding: 0 18px;
  background: rgba(var(--accent-rgb), 0.12);
  color: #fff;
  cursor: pointer;
}

.preview-pane {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #fff;
}

.preview-label {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #dfe2e6;
  background: #f5f6f8;
  color: #1b2028;
  font-size: 12px;
  font-weight: 720;
}

.preview-label small {
  color: #68717d;
  font-weight: 520;
}

.preview-frame {
  width: 100%;
  height: 100%;
  min-height: 454px;
  border: 0;
  background: #fff;
}

.security-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* --- Contact variants --- */
.studio-contact .contact-page,
.theme-software .contact-page,
.theme-web .contact-page {
  background:
    linear-gradient(90deg, rgba(2, 6, 12, 0.92) 0%, rgba(3, 10, 19, 0.76) 52%, rgba(3, 12, 23, 0.62) 100%),
    linear-gradient(180deg, rgba(1, 4, 10, 0.3), rgba(1, 4, 10, 0.76)),
    var(--theme-wave-tint),
    var(--theme-wave) center / cover no-repeat,
    #03070d;
  background-blend-mode: normal, normal, color, normal, normal;
}

.theme-software .request-form,
.theme-web .request-form {
  border-color: rgba(var(--accent-rgb), 0.38);
}

.theme-software .field input:focus,
.theme-software .field select:focus,
.theme-software .field textarea:focus,
.theme-web .field input:focus,
.theme-web .field select:focus,
.theme-web .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.theme-software .info-point .icon-wrap,
.theme-web .info-point .icon-wrap {
  border-color: rgba(var(--accent-rgb), 0.72);
  color: var(--accent-bright);
}

.form-consent {
  margin: 13px 0 0;
  color: var(--muted-2);
  font-size: 11px;
}

.studio-thanks {
  min-height: calc(100vh - var(--header-h) - 96px);
  display: grid;
  place-items: center;
  text-align: center;
}

/* --- Soft lazy-load/reveal treatment --- */
html.studio-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

html.studio-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.studio-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .suite-chevron.is-nudging,
  .stack-cursor {
    animation: none;
  }
}

@media (max-width: 1100px) {
  .studio-hero-grid {
    gap: 40px;
  }

  .project-panel-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  }
}

@media (max-width: 940px) {
  .suite-brand-copy {
    font-size: 15px;
    letter-spacing: 0.035em;
  }

  .suite-switcher {
    max-width: calc(100vw - 84px);
  }

  .suite-menu {
    top: calc(100% + 11px);
  }

  .studio-stage {
    min-height: auto;
  }

  .studio-hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 46px 52px;
  }

  .software-console,
  .web-browser-stack {
    justify-self: center;
    width: min(100%, 560px);
  }

  .stack-lab,
  .project-shell {
    grid-template-columns: 1fr;
  }

  .stack-tabs,
  .project-tabs {
    display: flex;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .stack-tab,
  .project-tab {
    flex: 0 0 auto;
    min-width: 155px;
  }

  .project-panel-layout {
    grid-template-columns: 1fr;
  }

  .project-copy {
    order: -1;
  }

  .playground-shell {
    grid-template-columns: 1fr;
  }

  .editor-pane {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .editor-panel {
    --editor-min-height: 330px;
  }

  .preview-frame {
    min-height: 390px;
  }
}

@media (max-width: 680px) {
  .suite-button {
    gap: 9px;
  }

  .suite-brand-copy {
    max-width: 185px;
    font-size: 13px;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .suite-chevron {
    width: 16px;
    left: 27px;
    bottom: -15px;
  }

  .suite-menu {
    width: min(228px, calc(100vw - 28px));
  }

  .studio-hero-copy h1,
  .studio-page-heading h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .studio-hero-copy p,
  .studio-page-heading > p {
    font-size: 16px;
  }

  .software-console {
    min-height: 330px;
  }

  .console-body {
    padding: 22px;
    font-size: 12px;
  }

  .console-status {
    grid-template-columns: 1fr;
    padding-inline: 22px;
  }

  .web-browser-stack {
    min-height: 310px;
  }

  .browser-card.primary {
    inset: 18px 4px 18px 32px;
  }

  .studio-page-inner {
    padding-block: 38px 34px;
  }

  .studio-row {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
  }

  .studio-row p {
    grid-column: 1 / -1;
    padding-left: 57px;
  }

  .studio-cta-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .studio-cta-copy {
    align-items: flex-start;
  }

  .stack-terminal {
    padding: 22px;
  }

  .project-panel-wrap {
    padding: 16px;
  }

  .project-demo-frame {
    min-height: 300px;
  }

  .demo-margin {
    grid-template-columns: 1fr;
  }

  .margin-result {
    grid-column: 1;
  }

  .playground-shell {
    border-radius: 10px;
  }

  .editor-tabs {
    overflow-x: auto;
  }

  .editor-panel {
    --editor-min-height: 290px;
  }

  .code-highlight,
  .editor-panel .code-editor {
    font-size: 12px;
  }

  .preview-frame {
    min-height: 350px;
  }
}

@media (forced-colors: active) {
  .editor-panel.has-highlighting .code-highlight {
    display: none;
  }

  .editor-panel.has-highlighting .code-editor {
    background: Canvas;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}
