/* ═══════════════════════════════════════════════════════
   Shared subpage components
   ═══════════════════════════════════════════════════════ */

/* ── self-drawn app mockups ──────────────────────────── */
.phone-mock {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 390 / 844;
  padding: 7px;
  margin-inline: auto;
  border-radius: 46px;
  background: linear-gradient(145deg, #303743 0%, #080c12 32%, #434d5c 60%, #080c12 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 45px 100px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(36, 143, 239, 0.12);
}

.phone-mock::after {
  position: absolute;
  inset: 7px;
  border-radius: 39px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  content: "";
  pointer-events: none;
}

.phone-mock--tilt {
  transform: perspective(1200px) rotateY(-11deg) rotateX(3deg) rotateZ(1deg);
}

.phone-mock--tilt-right {
  transform: perspective(1200px) rotateY(11deg) rotateX(3deg) rotateZ(-1deg);
}

.phone-mock__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  color: #0b1119;
  background: #f8fafc;
}

.pm-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 27px;
  padding: 0 15px;
  flex: none;
  color: #121923;
  font-family: var(--mono);
  font-size: 6px;
  font-weight: 600;
}

.pm-island {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 64px;
  height: 17px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #05080d;
}

.pm-status__right {
  display: flex;
  align-items: center;
  gap: 3px;
}

.pm-signal {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 5px;
}

.pm-signal i {
  display: block;
  width: 1.5px;
  border-radius: 1px;
  background: #121923;
}

.pm-signal i:nth-child(1) { height: 2px; }
.pm-signal i:nth-child(2) { height: 3px; }
.pm-signal i:nth-child(3) { height: 4px; }
.pm-signal i:nth-child(4) { height: 5px; }

.pm-battery {
  width: 13px;
  height: 6px;
  padding: 1px;
  border: 1px solid #121923;
  border-radius: 2px;
}

.pm-battery::before {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: 1px;
  background: #121923;
  content: "";
}

.pm-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 5px 14px 9px;
  flex: none;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
}

.pm-bar__menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 11px;
}

.pm-bar__menu i {
  display: block;
  height: 1px;
  border-radius: 9px;
  background: #3e4b5c;
}

.pm-bar b {
  color: #111923;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pm-bar__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  color: #5e6b7b;
}

.pm-bar__actions .icon {
  width: 10px;
  height: 10px;
}

.pm-bar__dots {
  display: flex;
  gap: 2px;
  align-items: center;
}

.pm-bar__dots i {
  display: block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
}

.pm-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 9px 12px 0;
  background: #fff;
}

.pm-scroll {
  height: 100%;
  overflow: hidden;
}

.pm-overline {
  color: #8a97a7;
  font-family: var(--mono);
  font-size: 4.4px;
  letter-spacing: 0.08em;
}

.pm-title {
  margin-top: 3px;
  color: #0b1119;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.pm-sub {
  margin-top: 2px;
  color: #7b8898;
  font-size: 5.2px;
}

.pm-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.pm-kpi {
  padding: 6px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  background: #f8fafc;
}

.pm-kpi span {
  display: block;
  color: #8a97a7;
  font-size: 4px;
}

.pm-kpi b {
  display: block;
  margin-top: 2px;
  color: #101822;
  font-size: 7px;
  line-height: 1;
}

.pm-kpi em {
  display: block;
  margin-top: 2px;
  color: #1e9b68;
  font-size: 3.8px;
  font-style: normal;
}

.pm-donut-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 9px;
  align-items: center;
  margin-top: 9px;
}

.pm-donut {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(#33b46a 0 50%, #f0a12c 50% 85%, #2e8cff 85% 100%);
}

.pm-donut::before {
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.pm-donut__center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.pm-donut__center b {
  font-size: 10px;
  line-height: 1;
}

.pm-donut__center span {
  margin-top: 2px;
  color: #8a97a7;
  font-size: 4px;
}

.pm-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pm-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #627083;
  font-size: 4.5px;
  line-height: 1.4;
}

.pm-legend i {
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: #2e8cff;
}

.pm-legend span:nth-child(2) i { background: #33b46a; }
.pm-legend span:nth-child(3) i { background: #f0a12c; }

.pm-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  margin-top: 8px;
  padding: 0 2px;
  border-bottom: 1px solid #edf0f4;
  background-image: linear-gradient(#f1f4f7 1px, transparent 1px);
  background-size: 100% 22px;
}

.pm-chart i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #83d7ff, #2c8ee0);
}

.pm-chart i:nth-child(2n) {
  background: linear-gradient(180deg, #a4c5ff, #5b7dd6);
}

.pm-chart i:nth-child(1) { height: 32%; }
.pm-chart i:nth-child(2) { height: 58%; }
.pm-chart i:nth-child(3) { height: 44%; }
.pm-chart i:nth-child(4) { height: 76%; }
.pm-chart i:nth-child(5) { height: 62%; }
.pm-chart i:nth-child(6) { height: 91%; }

.pm-slider-card {
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  background: #f8fafc;
}

.pm-slider-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #657285;
  font-size: 4.5px;
}

.pm-slider-card__top b {
  color: #1b8fe6;
  font-size: 5px;
}

.pm-slider-line {
  position: relative;
  height: 2px;
  margin: 7px 0 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #49b8ff 64%, #e8edf2 64%);
}

.pm-slider-line::after {
  position: absolute;
  top: 50%;
  left: 64%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border: 1px solid #fff;
  border-radius: 50%;
  background: #168bdd;
  box-shadow: 0 0 5px rgba(45, 151, 236, 0.45);
  content: "";
}

.pm-composer {
  flex: none;
  padding: 5px 10px 9px;
  background: #fff;
  border-top: 1px solid #eef1f5;
}

.pm-pills {
  display: flex;
  gap: 3px;
  margin-bottom: 5px;
}

.pm-pill {
  padding: 3px 5px;
  border-radius: 99px;
  color: #667487;
  background: #f3f6f9;
  font-size: 4.2px;
  white-space: nowrap;
}

.pm-pill--blue {
  color: #1d7fd3;
  background: #e9f4ff;
}

.pm-input-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pm-round {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: none;
  border: 1px solid #e6ebf1;
  border-radius: 50%;
  color: #59677a;
  background: #fff;
}

.pm-round .icon {
  width: 8px;
  height: 8px;
}

.pm-input {
  display: flex;
  align-items: center;
  flex: 1;
  height: 19px;
  padding: 0 8px;
  border-radius: 99px;
  color: #a1acb9;
  background: #f4f7fa;
  font-size: 4.8px;
}

.pm-send {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: #9ba6b3;
}

.pm-send .icon {
  width: 8px;
  height: 8px;
}

/* work-mode phone */
.pm-work {
  padding: 8px 11px 0;
}

.pm-work__tool {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: #7b8898;
  font-size: 4.4px;
}

.pm-work__tool .icon {
  width: 7px;
  height: 7px;
  color: #4d9bd8;
}

.pm-work__tool b {
  color: #4f5e70;
  font-family: var(--mono);
  font-size: 4.2px;
  font-weight: 500;
}

.pm-work__p {
  margin-top: 5px;
  color: #18212d;
  font-size: 5.8px;
  line-height: 1.8;
}

.pm-todo {
  margin-top: 8px;
  padding: 7px;
  border: 1px solid #edf0f4;
  border-radius: 6px;
  background: #f8fafc;
}

.pm-todo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 5px;
  border-bottom: 1px solid #edf0f4;
  color: #58677a;
  font-size: 4.6px;
}

.pm-todo__head span {
  color: #209b68;
  font-family: var(--mono);
  font-size: 3.8px;
}

.pm-todo__row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 0;
  color: #6b798b;
  font-size: 4.3px;
  line-height: 1.4;
}

.pm-todo__row i {
  display: grid;
  place-items: center;
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: #28b47a;
  font-size: 3px;
  font-style: normal;
}

.pm-work__title {
  margin-top: 10px;
  color: #1d6dd2;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.pm-work__title span {
  color: #399cf0;
}

.pm-work__final {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 7px;
  padding: 3px 5px;
  border-radius: 3px;
  color: #157b55;
  background: #e9f8f1;
  font-size: 4.2px;
}

/* dark in-app mockups */
.phone-mock {
  width: min(100%, 320px);
  aspect-ratio: 390 / 780;
}

.phone-mock .phone-mock__screen {
  color: #eef6ff;
  background: #080d15;
}

.phone-mock .pm-status {
  color: #eaf7ff;
  font-size: 7px;
}

.phone-mock .pm-signal i {
  background: #eaf7ff;
}

.phone-mock .pm-battery {
  border-color: #eaf7ff;
  background: transparent;
}

.phone-mock .pm-battery::before {
  background: #eaf7ff;
}

.phone-mock .pm-bar {
  border-bottom-color: #1a2636;
  background: #080d15;
}

.phone-mock .pm-bar__menu i {
  background: #c6d6e8;
}

.phone-mock .pm-bar b {
  color: #f4f9ff;
  font-size: 10px;
  font-weight: 650;
}

.phone-mock .pm-bar__actions {
  color: #9db1c7;
}

.phone-mock .pm-bar__actions .icon {
  width: 11px;
  height: 11px;
}

.phone-mock .pm-body {
  background: #0a1019;
}

.phone-mock .pm-overline {
  color: #71849c;
  font-size: 5px;
}

.phone-mock .pm-title {
  color: #f3f9ff;
  font-size: 13px;
}

.phone-mock .pm-sub {
  color: #8fa2b8;
  font-size: 6.4px;
  line-height: 1.55;
}

.phone-mock .pm-kpis {
  gap: 5px;
  margin-top: 10px;
}

.phone-mock .pm-kpi {
  padding: 7px;
  border-color: #1b2838;
  background: #0f1825;
}

.phone-mock .pm-kpi span {
  color: #7f92a8;
  font-size: 5.4px;
}

.phone-mock .pm-kpi b {
  color: #f3f9ff;
  font-size: 9px;
}

.phone-mock .pm-kpi em {
  color: #6ee0b1;
  font-size: 5px;
}

.phone-mock .pm-donut-row {
  grid-template-columns: 84px 1fr;
  gap: 11px;
  margin-top: 11px;
}

.phone-mock .pm-donut {
  width: 78px;
  height: 78px;
}

.phone-mock .pm-donut::before {
  inset: 14px;
  background: #0a1019;
}

.phone-mock .pm-donut__center b {
  color: #fff;
  font-size: 12px;
}

.phone-mock .pm-donut__center span {
  color: #7f92a8;
  font-size: 5px;
}

.phone-mock .pm-legend {
  gap: 6px;
}

.phone-mock .pm-legend span {
  color: #98acc2;
  font-size: 5.4px;
}

.phone-mock .pm-legend i {
  width: 5px;
  height: 5px;
}

.phone-mock .pm-chart {
  height: 48px;
  margin-top: 10px;
  border-bottom-color: #1c2a3b;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
}

.phone-mock .pm-slider-card {
  margin-top: 10px;
  padding: 8px 9px;
  border-color: #1b2838;
  background: #0f1825;
}

.phone-mock .pm-slider-card__top {
  color: #91a5bb;
  font-size: 5.4px;
}

.phone-mock .pm-slider-card__top b {
  color: #8edcff;
  font-size: 6px;
}

.phone-mock .pm-slider-line {
  background: linear-gradient(90deg, #48b9ff 64%, #223247 64%);
}

.phone-mock .pm-composer {
  padding: 7px 11px 10px;
  border-top-color: #1a2636;
  background: #080d15;
}

.phone-mock .pm-pills {
  gap: 4px;
  margin-bottom: 6px;
}

.phone-mock .pm-pill {
  padding: 5px 8px;
  color: #a9bfd6;
  background: #121d2b;
  font-size: 7.2px;
}

.phone-mock .pm-pill--blue {
  color: #9adfff;
  background: rgba(35, 128, 218, 0.18);
}

.phone-mock .pm-input-row {
  gap: 5px;
}

.phone-mock .pm-round {
  width: 26px;
  height: 26px;
  border-color: #223145;
  color: #9eb2c8;
  background: #0f1825;
}

.phone-mock .pm-round .icon {
  width: 9px;
  height: 9px;
}

.phone-mock .pm-input {
  height: 25px;
  color: #91a7bf;
  background: #111c2a;
  font-size: 8.4px;
}

.phone-mock .pm-send {
  width: 26px;
  height: 26px;
  color: #eaf8ff;
  background: #2e8fdc;
}

.phone-mock .pm-work {
  padding: 10px 12px 0;
}

.phone-mock .pm-work__tool {
  gap: 5px;
  padding: 5px 0;
  color: #7f93aa;
  font-size: 5.2px;
}

.phone-mock .pm-work__tool .icon {
  width: 8px;
  height: 8px;
  color: #60b9ed;
}

.phone-mock .pm-work__tool b {
  color: #a9bed4;
  font-size: 4.8px;
}

.phone-mock .pm-work__p {
  margin-top: 6px;
  color: #d7e7f7;
  font-size: 7px;
  line-height: 1.8;
}

.phone-mock .pm-todo {
  margin-top: 9px;
  padding: 8px;
  border-color: #1c2a3b;
  background: #0f1825;
}

.phone-mock .pm-todo__head {
  padding-bottom: 6px;
  border-bottom-color: #1b2838;
  color: #a9bed4;
  font-size: 5.6px;
}

.phone-mock .pm-todo__head span {
  color: #6fe0b1;
  font-size: 4.4px;
}

.phone-mock .pm-todo__row {
  gap: 5px;
  padding: 4px 0;
  color: #a7bad0;
  font-size: 5.4px;
}

.phone-mock .pm-todo__row i {
  width: 7px;
  height: 7px;
  background: #1f9f72;
}

.phone-mock .pm-work__title {
  margin-top: 12px;
  color: #6cb9ff;
  font-size: 14px;
  line-height: 1.3;
}

.phone-mock .pm-work__title span {
  color: #9adfff;
}

.phone-mock .pm-work__final {
  margin-top: 8px;
  padding: 4px 6px;
  color: #8ff0c7;
  background: rgba(38, 153, 105, 0.12);
  font-size: 5px;
}

/* readable scale for the self-drawn screens */
.phone-mock .pm-status { font-size: 9px; }
.phone-mock .pm-bar b { font-size: 13px; }
.phone-mock .pm-overline { font-size: 6px; }
.phone-mock .pm-title { font-size: 17px; }
.phone-mock .pm-sub { font-size: 8.8px; }
.phone-mock .pm-kpi span { font-size: 6.2px; }
.phone-mock .pm-kpi b { font-size: 13px; }
.phone-mock .pm-kpi em { font-size: 5.8px; }
.phone-mock .pm-donut__center b { font-size: 14px; }
.phone-mock .pm-donut__center span { font-size: 5.8px; }
.phone-mock .pm-legend span { font-size: 7.5px; }
.phone-mock .pm-slider-card__top { font-size: 6.4px; }
.phone-mock .pm-slider-card__top b { font-size: 7px; }
.phone-mock .pm-composer .pm-pill { font-size: 5.8px; }
.phone-mock .pm-input { font-size: 6.6px; }
.phone-mock .pm-work__tool { font-size: 7.5px; }
.phone-mock .pm-work__tool b { font-size: 5.8px; }
.phone-mock .pm-work__p { font-size: 10.4px; line-height: 1.7; }
.phone-mock .pm-todo__head { font-size: 6.4px; }
.phone-mock .pm-todo__row { font-size: 7.8px; }
.phone-mock .pm-todo__head span { font-size: 5px; }
.phone-mock .pm-work__title { font-size: 19px; }
.phone-mock .pm-work__final { font-size: 5.8px; }
.phone-mock .pm-artifact__head { font-size: 6.6px; }
.phone-mock .pm-artifact b { font-size: 6.8px; }
.phone-mock .pm-artifact span { font-size: 4.8px; }
.phone-mock .pm-extra { font-size: 7.2px; }
.pm-artifacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 9px;
}

.pm-artifact {
  padding: 7px;
  border: 1px solid #1c2a3b;
  border-radius: 7px;
  background: #0f1825;
}

.pm-artifact__head {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #7f93aa;
  font-size: 4.8px;
}

.pm-artifact__head .icon {
  width: 8px;
  height: 8px;
  color: #66c8ff;
}

.pm-artifact b {
  display: block;
  margin-top: 5px;
  color: #dbeaf8;
  font-family: var(--mono);
  font-size: 4.6px;
  font-weight: 500;
}

.pm-artifact span {
  display: block;
  margin-top: 2px;
  color: #71849c;
  font-size: 4px;
}

.pm-artifact__lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 5px;
}

.pm-artifact__lines i {
  height: 2px;
  border-radius: 99px;
  background: #223247;
}

.pm-artifact__lines i:nth-child(2) { width: 72%; }

.pm-extra {
  margin-top: 9px;
  padding: 7px 8px;
  border: 1px solid #1a2839;
  border-radius: 7px;
  color: #8fa2b8;
  background: rgba(255, 255, 255, 0.02);
  font-size: 5.2px;
  line-height: 1.7;
}

.pm-extra b {
  color: #a9d9ff;
  font-weight: 500;
}

/* compact desktop */
.desktop-demo--compact {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}

.desktop-demo--compact .demo-bar {
  height: 22px;
  padding: 0 8px;
}

.desktop-demo--compact .demo-bar__dots i {
  width: 4px;
  height: 4px;
}

.desktop-demo--compact .demo-bar__title {
  font-size: 10px;
}

.desktop-demo--compact .demo-bar__pill {
  padding: 2px 5px;
  font-size: 4.8px;
}

.desktop-demo--compact .demo-body {
  grid-template-columns: 112px 1fr;
  min-height: 0;
  height: calc(100% - 22px);
}

.desktop-demo--compact .demo-side {
  padding: 9px 7px;
}

.desktop-demo--compact .demo-side__brand {
  margin-bottom: 10px;
}

.desktop-demo--compact .demo-side__brand img {
  width: 13px;
  height: 13px;
  border-radius: 4px;
}

.desktop-demo--compact .demo-side__brand span {
  font-size: 9px;
}

.desktop-demo--compact .demo-side__label {
  margin: 8px 3px 4px;
  font-size: 7px;
}

.desktop-demo--compact .demo-side__item {
  gap: 4px;
  padding: 6px 4px;
  font-size: 10px;
}

.desktop-demo--compact .demo-side__item .icon {
  width: 8px;
  height: 8px;
}

.desktop-demo--compact .demo-side__item--session {
  padding: 5px 4px;
  font-size: 7.5px;
}

.desktop-demo--compact .demo-top {
  padding: 7px 10px;
}

.desktop-demo--compact .demo-top h4 {
  font-size: 12.5px;
}

.desktop-demo--compact .demo-top span {
  font-size: 9px;
}

.desktop-demo--compact .demo-top__right span {
  padding: 3px 6px;
  font-size: 6.5px;
}

.desktop-demo--compact .demo-chat {
  padding: 9px 10px 4px;
  overflow: hidden;
}

.desktop-demo--compact .demo-user {
  padding: 8px 9px;
  font-size: 11px;
}

.desktop-demo--compact .demo-thinking {
  font-size: 9px;
}

.desktop-demo--compact .demo-thinking .icon {
  width: 8px;
  height: 8px;
}

.desktop-demo--compact .demo-tool {
  gap: 5px;
  margin-top: 5px;
  padding: 6px 8px;
  font-size: 10px;
}

.desktop-demo--compact .demo-tool b {
  font-size: 8.8px;
}

.desktop-demo--compact .demo-tool em {
  font-size: 3.4px;
}

.desktop-demo--compact .demo-agent p {
  margin-top: 8px;
  font-size: 10.5px;
  line-height: 1.6;
}

.desktop-demo--compact .demo-artifacts {
  gap: 4px;
  margin-top: 7px;
  grid-template-columns: 1fr 1fr;
}

.desktop-demo--compact .demo-artifact {
  padding: 5px;
}

.desktop-demo--compact .demo-artifact__head {
  font-size: 5px;
}

.desktop-demo--compact .demo-artifact__head .icon {
  width: 7px;
  height: 7px;
}

.desktop-demo--compact .demo-artifact b {
  margin-top: 4px;
  font-size: 8.8px;
}

.desktop-demo--compact .demo-artifact span {
  font-size: 7.4px;
}

.desktop-demo--compact .demo-artifact__lines {
  gap: 1px;
  margin-top: 4px;
}

.desktop-demo--compact .demo-input {
  margin: 4px 10px 8px;
  padding: 8px 9px;
  font-size: 8.8px;
}

.desktop-demo--compact .demo-input .icon {
  width: 8px;
  height: 8px;
}

/* ── phone / screenshots ─────────────────────────────── */
.phone-frame {
  position: relative;
  width: min(100%, 310px);
  margin-inline: auto;
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 12% / 6%;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.08),
    0 45px 100px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(36, 143, 239, 0.12);
}

.phone-frame::after {
  position: absolute;
  inset: 0;
  border-radius: 12% / 6%;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.18), transparent 22%, transparent 70%, rgba(119, 208, 255, 0.08));
  content: "";
  pointer-events: none;
}

.phone-frame--tilt {
  transform: perspective(1200px) rotateY(-12deg) rotateX(3deg) rotateZ(1deg);
}

.phone-frame--tilt-right {
  transform: perspective(1200px) rotateY(12deg) rotateX(3deg) rotateZ(-1deg);
}

.phone-glow {
  position: relative;
}

.phone-glow::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 50%;
  width: 130%;
  height: 90%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(52, 160, 255, 0.22), transparent 68%);
  filter: blur(44px);
  content: "";
}

/* ── live Intelligent UI demo ─────────────────────────── */
.ui-demo {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: clamp(22px, 2.6vw, 32px);
  background:
    radial-gradient(ellipse at 90% 0%, rgba(51, 157, 255, 0.09), transparent 50%),
    linear-gradient(150deg, rgba(18, 29, 45, 0.94), rgba(7, 12, 20, 0.97));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 40px 100px rgba(0, 0, 0, 0.38);
}

.ui-demo__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.018);
}

.ui-demo__mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #b1e8ff;
  font-size: 0.67rem;
  font-weight: 650;
}

.ui-demo__mode .icon {
  width: 13px;
  height: 13px;
}

.ui-demo__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.ui-demo__live i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: livePulse 2.4s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.1); }
}

.ui-demo__body {
  padding: clamp(20px, 2.6vw, 32px);
}

.ui-demo__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.ui-demo__head .overline {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.ui-demo__head h3 {
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.ui-demo__head p {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.74rem;
  line-height: 1.6;
}

.ui-seg {
  display: flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
}

.ui-seg button {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 0.62rem;
  font-weight: 600;
  transition:
    color 0.35s,
    background 0.35s;
}

.ui-seg button.is-active {
  color: #06131e;
  background: #c9efff;
}

.ui-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.ui-metric {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.022);
}

.ui-metric span {
  display: block;
  color: var(--ink-3);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
}

.ui-metric b {
  display: block;
  margin-top: 5px;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.ui-metric em {
  display: inline-block;
  margin-top: 5px;
  color: var(--green);
  font-size: 0.55rem;
  font-style: normal;
}

.ui-chart {
  position: relative;
  height: clamp(130px, 16vw, 180px);
  margin-top: 22px;
  padding: 0 2px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 25%, 16.66% 100%;
}

.ui-bars {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: clamp(7px, 2vw, 22px);
  height: 100%;
  padding: 0 clamp(8px, 2vw, 20px);
}

.ui-bar {
  position: relative;
  flex: 1;
  max-width: 58px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ui-bar i {
  display: block;
  width: 100%;
  height: var(--h, 50%);
  border-radius: 6px 6px 2px 2px;
  background:
    linear-gradient(180deg, rgba(168, 234, 255, 0.98), rgba(38, 145, 238, 0.38));
  box-shadow: 0 0 22px rgba(66, 176, 255, 0.12);
  transition: height 0.55s var(--ease);
}

.ui-bar:nth-child(2n) i {
  background: linear-gradient(180deg, rgba(162, 181, 255, 0.96), rgba(85, 83, 203, 0.32));
}

.ui-bar:nth-child(4) i {
  background: linear-gradient(180deg, #e2faff, #7cd5ff 45%, #4ba9f8);
  box-shadow: 0 0 28px rgba(103, 208, 255, 0.24);
}

.ui-bar span {
  position: absolute;
  bottom: -20px;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 7px;
}

.ui-bar::after {
  position: absolute;
  top: 4px;
  left: 50%;
  padding: 2px 5px;
  transform: translateX(-50%) translateY(-4px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--ink-2);
  background: rgba(5, 12, 22, 0.9);
  font-family: var(--mono);
  font-size: 6px;
  white-space: nowrap;
  content: attr(data-value);
  opacity: 0;
  transition:
    opacity 0.3s,
    transform 0.3s;
  pointer-events: none;
}

.ui-bar:hover::after {
  transform: translateX(-50%);
  opacity: 1;
}

.ui-control {
  margin-top: 32px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.022);
}

.ui-control__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 0.7rem;
}

.ui-control__label b {
  color: #c0edff;
  font-size: 0.74rem;
  font-weight: 600;
}

.ui-range {
  position: relative;
  height: 20px;
  margin-top: 9px;
}

.ui-range input {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.ui-range input::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #4fb5ff, #c4f1ff) 0 / var(--fill, 45%) 100% no-repeat, rgba(255, 255, 255, 0.1);
}

.ui-range input::-moz-range-track {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
}

.ui-range input::-moz-range-progress {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #4fb5ff, #c4f1ff);
}

.ui-range input::-webkit-slider-thumb {
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  appearance: none;
  border: 2px solid #071522;
  border-radius: 50%;
  background: #d3f5ff;
  box-shadow: 0 0 14px rgba(109, 210, 255, 0.7);
}

.ui-range input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #071522;
  border-radius: 50%;
  background: #d3f5ff;
  box-shadow: 0 0 14px rgba(109, 210, 255, 0.7);
}

.ui-control__foot {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  color: var(--ink-4);
  font-size: 0.55rem;
}

.ui-demo__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-4);
  font-size: 0.6rem;
}

.ui-demo__footer span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ui-demo__footer span i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

.ui-demo__footer button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b5eaff;
  font-size: 0.62rem;
  font-weight: 600;
}

.ui-demo__footer .icon {
  width: 12px;
  height: 12px;
}

/* ── desktop app demo ─────────────────────────────────── */
.desktop-demo {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #0a111b;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 55px 120px rgba(0, 0, 0, 0.46),
    0 0 120px rgba(38, 143, 239, 0.08);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.demo-bar__dots {
  display: flex;
  gap: 5px;
}

.demo-bar__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.demo-bar__dots i:nth-child(1) { background: #f0726b; }
.demo-bar__dots i:nth-child(2) { background: #f0bc62; }
.demo-bar__dots i:nth-child(3) { background: #68cc8d; }

.demo-bar__title {
  flex: 1;
  text-align: center;
  color: var(--ink-4);
  font-size: 0.58rem;
  letter-spacing: 0.03em;
}

.demo-bar__pill {
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 6px;
}

.demo-body {
  display: grid;
  grid-template-columns: 172px 1fr;
  min-height: 470px;
}

.demo-side {
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.014);
}

.demo-side__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 0 4px;
}

.demo-side__brand img {
  width: 21px;
  height: 21px;
  border-radius: 6px;
}

.demo-side__brand span {
  color: var(--ink-2);
  font-size: 0.62rem;
  font-weight: 600;
}

.demo-side__label {
  margin: 15px 5px 7px;
  color: var(--ink-4);
  font-size: 6px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.demo-side__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  color: var(--ink-3);
  font-size: 0.6rem;
}

.demo-side__item .icon {
  width: 12px;
  height: 12px;
}

.demo-side__item.is-active {
  color: #c7efff;
  background: rgba(59, 166, 255, 0.1);
}

.demo-side__item.is-active .icon {
  color: var(--blue);
}

.demo-side__item--session {
  display: block;
  padding: 9px 8px;
  color: var(--ink-4);
  font-size: 0.56rem;
  line-height: 1.5;
}

.demo-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.demo-top h4 {
  font-size: 0.72rem;
  font-weight: 600;
}

.demo-top span {
  color: var(--ink-4);
  font-size: 0.56rem;
}

.demo-top__right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.demo-top__right span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  font-size: 6px;
}

.demo-chat {
  flex: 1;
  padding: 22px 24px 10px;
}

.demo-user {
  width: fit-content;
  max-width: 75%;
  margin-left: auto;
  padding: 10px 13px;
  border: 1px solid rgba(80, 176, 255, 0.16);
  border-radius: 12px 12px 4px 12px;
  color: #d7f3ff;
  background: rgba(33, 125, 210, 0.13);
  font-size: 0.66rem;
  line-height: 1.6;
}

.demo-agent {
  margin-top: 18px;
}

.demo-thinking {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-4);
  font-size: 0.58rem;
}

.demo-thinking .icon {
  width: 12px;
  height: 12px;
  color: var(--blue);
}

.demo-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ink-3);
  font-size: 0.58rem;
}

.demo-tool .icon {
  width: 11px;
  height: 11px;
}

.demo-tool b {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
}

.demo-tool em {
  margin-left: auto;
  color: var(--green);
  font-size: 0.5rem;
  font-style: normal;
}

.demo-agent p {
  max-width: 88%;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.64rem;
  line-height: 1.8;
}

.demo-artifacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 14px;
}

.demo-artifact {
  position: relative;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  transition:
    border-color 0.4s,
    transform 0.4s var(--ease);
}

.demo-artifact:hover {
  transform: translateY(-3px);
  border-color: rgba(104, 207, 255, 0.24);
}

.demo-artifact__head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 5.5px;
  letter-spacing: 0.05em;
}

.demo-artifact__head .icon {
  width: 11px;
  height: 11px;
  color: var(--blue);
}

.demo-artifact b {
  display: block;
  margin-top: 8px;
  overflow: hidden;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.53rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-artifact span {
  display: block;
  margin-top: 4px;
  color: var(--ink-4);
  font-size: 5px;
}

.demo-artifact__lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
}

.demo-artifact__lines i {
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.demo-artifact__lines i:nth-child(2) { width: 80%; }
.demo-artifact__lines i:nth-child(3) { width: 60%; }
.demo-artifact__lines i:nth-child(4) { width: 90%; }

.demo-input {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 20px 18px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  color: var(--ink-4);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.58rem;
}

.demo-input .icon {
  width: 12px;
  height: 12px;
}

.demo-input .icon:last-child {
  margin-left: auto;
  color: #b5eaff;
}

/* ── terminal ─────────────────────────────────────────── */
.terminal-window {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(3, 8, 14, 0.9);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 35px 80px rgba(0, 0, 0, 0.4);
  font-family: var(--mono);
}

.terminal-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-window__bar .dots {
  display: flex;
  gap: 5px;
}

.terminal-window__bar .dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.terminal-window__bar .dots i:nth-child(1) { background: #ee746d; }
.terminal-window__bar .dots i:nth-child(2) { background: #eebc64; }
.terminal-window__bar .dots i:nth-child(3) { background: #62c88a; }

.terminal-window__bar > span {
  flex: 1;
  color: var(--ink-4);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.terminal-window__bar b {
  padding: 3px 7px;
  border: 1px solid rgba(105, 224, 173, 0.18);
  border-radius: 99px;
  color: #98ebc7;
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.terminal-body {
  min-height: 300px;
  padding: 19px 20px 22px;
  color: rgba(206, 234, 255, 0.7);
  font-size: clamp(9px, 0.82vw, 11px);
  line-height: 2;
}

.t-line {
  display: flex;
  gap: 8px;
  white-space: pre-wrap;
  opacity: 0;
  transform: translateY(5px);
}

.terminal-window.is-typed .t-line {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.35s,
    transform 0.45s var(--ease);
  transition-delay: calc(var(--i) * 0.21s);
}

.t-prompt {
  color: #66c8ff;
}

.t-green { color: #8fe8be; }
.t-dim { color: rgba(255, 255, 255, 0.26); }
.t-blue { color: #78ccff; }
.t-violet { color: #beb1ff; }
.t-amber { color: #ffd28f; }

.t-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  vertical-align: -2px;
  background: var(--blue);
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* ── generic feature bento on subpages ────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 4;
  min-height: 250px;
  padding: clamp(24px, 2.8vw, 36px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.006) 55%),
    rgba(10, 16, 26, 0.44);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07) inset;
  transition:
    transform 0.6s var(--ease),
    border-color 0.4s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 203, 255, 0.22);
}

.feature-card--half {
  grid-column: span 6;
}

.feature-card--full {
  grid-column: span 12;
}

.feature-card--two-thirds {
  grid-column: span 8;
}

.feature-card--third {
  grid-column: span 4;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 26px;
  border: 1px solid rgba(101, 194, 255, 0.14);
  border-radius: 12px;
  color: #a9e7ff;
  background: rgba(49, 153, 243, 0.08);
}

.feature-card__icon .icon {
  width: 20px;
  height: 20px;
}

.feature-card h3 {
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
}

.feature-card p {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.84rem;
  line-height: 1.85;
}

.feature-card__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
}

.feature-card--light {
  border-color: rgba(7, 20, 37, 0.08);
  color: var(--dark-ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.7));
  box-shadow:
    0 1px 0 #fff inset,
    0 24px 60px rgba(51, 92, 133, 0.08);
}

.feature-card--light p {
  color: var(--dark-ink-2);
}

.feature-card--light .feature-card__icon {
  color: #0871cc;
  border-color: rgba(8, 113, 204, 0.12);
  background: rgba(37, 139, 229, 0.08);
}

/* ── component wall ───────────────────────────────────── */
.component-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 11px;
}

.component-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  grid-column: span 2;
  min-height: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.024);
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s,
    background 0.4s;
}

.component-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(126, 207, 255, 0.22);
  background: rgba(255, 255, 255, 0.038);
}

.component-tile--wide {
  grid-column: span 3;
}

.component-tile--full {
  grid-column: span 6;
}

.component-tile__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink-3);
  font-size: 0.65rem;
}

.component-tile__label b {
  color: var(--ink-2);
  font-weight: 600;
}

.component-tile__label span {
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.06em;
}

.component-tile__visual {
  margin-top: 0;
}

.wall-bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 82px;
}

.wall-bars i {
  flex: 1;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(180deg, #8cdcff, rgba(43, 145, 228, 0.22));
}

.wall-bars i:nth-child(1) { height: 35%; }
.wall-bars i:nth-child(2) { height: 56%; }
.wall-bars i:nth-child(3) { height: 45%; }
.wall-bars i:nth-child(4) { height: 78%; }
.wall-bars i:nth-child(5) { height: 62%; }
.wall-bars i:nth-child(6) { height: 92%; }
.wall-bars i:nth-child(7) { height: 72%; }

.wall-line {
  height: 82px;
}

.wall-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wall-donut {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wall-donut__ring {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: conic-gradient(#7dd8ff 0 38%, #8b8cff 38% 64%, #4f9fe8 64% 84%, rgba(255, 255, 255, 0.08) 84%);
  -webkit-mask: radial-gradient(circle, transparent 47%, #000 48%);
  mask: radial-gradient(circle, transparent 47%, #000 48%);
}

.wall-donut__legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--ink-3);
  font-size: 0.55rem;
}

.wall-donut__legend i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #7dd8ff;
}

.wall-donut__legend span:nth-child(2) i { background: #8b8cff; }
.wall-donut__legend span:nth-child(3) i { background: #4f9fe8; }

.wall-table {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.wall-table span {
  padding: 7px 8px;
  color: var(--ink-3);
  background: rgba(8, 15, 25, 0.9);
  font-size: 0.52rem;
}

.wall-table span:nth-child(-n+3) {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
}

.wall-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wall-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-3);
  font-size: 0.56rem;
}

.wall-form__row b {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 500;
}

.wall-toggle {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 99px;
  background: rgba(77, 179, 255, 0.62);
}

.wall-toggle::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e8faff;
  content: "";
}

.wall-slider {
  height: 3px;
  margin: 8px 0 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #69cbff 62%, rgba(255, 255, 255, 0.1) 62%);
}

.wall-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.wall-chips span {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  color: var(--ink-3);
  font-size: 0.5rem;
}

.wall-chips span.is-active {
  color: #bcecff;
  border-color: rgba(84, 187, 255, 0.26);
  background: rgba(84, 187, 255, 0.09);
}

/* ── split feature layout ─────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
}

.split--reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.split--reverse .split__copy {
  order: 2;
}

.split--reverse .split__visual {
  order: 1;
}

.split__copy h2 {
  margin-top: 20px;
}

.split__copy .lead {
  margin-top: 24px;
}

.split__copy .btn-row,
.split__copy .stat-row {
  margin-top: 34px;
}

.split__visual {
  position: relative;
}

.split-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.split-list__item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.split-list__item > span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.split-list__item b {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.split-list__item p {
  margin-top: 3px;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.7;
}

.section--light .split-list,
.section--paper .split-list {
  border-color: rgba(9, 22, 39, 0.1);
}

.section--light .split-list__item,
.section--paper .split-list__item {
  border-color: rgba(9, 22, 39, 0.1);
}

.section--light .split-list__item p,
.section--paper .split-list__item p {
  color: var(--dark-ink-2);
}

.section--light .split-list__item > span,
.section--paper .split-list__item > span {
  color: #0870cf;
}

/* ── chat page ────────────────────────────────────────── */
.chat-window {
  position: relative;
  width: 100%;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(51, 155, 255, 0.12), transparent 50%),
    linear-gradient(150deg, rgba(17, 28, 43, 0.94), rgba(7, 12, 20, 0.97));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 40px 100px rgba(0, 0, 0, 0.36);
}

.chat-window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-window__bar span {
  color: var(--ink-3);
  font-size: 0.6rem;
}

.chat-window__bar b {
  color: var(--ink-2);
  font-size: 0.64rem;
  font-weight: 600;
}

.chat-window__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 22px 3px;
  min-height: 360px;
}

.msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 88%;
}

.msg--user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.msg__avatar {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.msg__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
}

.msg__avatar .icon {
  width: 12px;
  height: 12px;
  color: var(--ink-3);
}

.msg__bubble {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 4px 14px 14px 14px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  line-height: 1.8;
}

.msg--user .msg__bubble {
  border-color: rgba(80, 176, 255, 0.16);
  border-radius: 14px 4px 14px 14px;
  color: #dcf6ff;
  background: rgba(34, 126, 211, 0.16);
}

.msg__bubble strong {
  color: #eafaff;
  font-weight: 650;
}

.msg__bubble code {
  padding: 1px 4px;
  border-radius: 4px;
  color: #a8e5ff;
  background: rgba(84, 187, 255, 0.09);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.msg__formula {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  color: #ccefff;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.msg__mermaid {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.msg__mermaid svg {
  width: 100%;
  height: auto;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink-4);
  font-size: 0.66rem;
}

.chat-input .icon {
  width: 14px;
  height: 14px;
}

.chat-input .chat-input__send {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-left: auto;
  border-radius: 50%;
  color: #06131e;
  background: #bdeeff;
}

.chat-input .chat-input__send .icon {
  width: 12px;
  height: 12px;
}

.chat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.chat-pills span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  color: var(--ink-4);
  font-size: 0.54rem;
}

.chat-pills .dot {
  width: 4px;
  height: 4px;
}

/* ── architecture diagram ────────────────────────────── */
.architecture {
  position: relative;
  padding: clamp(26px, 4vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(39, 143, 242, 0.12), transparent 55%),
    rgba(255, 255, 255, 0.015);
}

.architecture__grid {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000, transparent 75%);
}

.arch-layer {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.arch-node {
  position: relative;
  z-index: 2;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(12, 21, 34, 0.75);
  backdrop-filter: blur(10px);
}

.arch-node--accent {
  border-color: rgba(84, 187, 255, 0.22);
  background: rgba(31, 103, 173, 0.16);
}

.arch-node__label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 6.5px;
  letter-spacing: 0.08em;
}

.arch-node__label .icon {
  width: 12px;
  height: 12px;
  color: var(--blue);
}

.arch-node b {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
}

.arch-node span {
  display: block;
  margin-top: 3px;
  color: var(--ink-4);
  font-size: 0.58rem;
  line-height: 1.6;
}

.arch-connector {
  position: relative;
  height: 58px;
}

.arch-connector::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, rgba(84, 187, 255, 0.05), rgba(84, 187, 255, 0.38), rgba(84, 187, 255, 0.05));
  content: "";
}

.arch-connector::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
  content: "";
  animation: connectorPulse 2.6s ease-in-out infinite;
}

@keyframes connectorPulse {
  0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.8); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
}

/* ── runtime grid ─────────────────────────────────────── */
.runtime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.runtime-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 80% 100%, rgba(42, 148, 245, 0.11), transparent 55%),
    rgba(255, 255, 255, 0.022);
}

.runtime-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.runtime-card__head .icon {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.runtime-card h3 {
  margin-top: 18px;
  font-size: 1.35rem;
}

.runtime-card p {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.8;
}

.runtime-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.runtime-card__meta span {
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 6.5px;
}

.lib-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lib-cloud span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.65rem;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}

.lib-cloud span:hover {
  color: #b9edff;
  border-color: rgba(84, 187, 255, 0.28);
  background: rgba(84, 187, 255, 0.06);
}

/* ── platform page ────────────────────────────────────── */
.platform-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 34px;
}

.platform-icon-row > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, 0.03);
}

.platform-icon-row > span.is-accent {
  width: 58px;
  height: 58px;
  color: #b9edff;
  border-color: rgba(122, 210, 255, 0.22);
  background: rgba(54, 157, 247, 0.1);
  box-shadow: 0 0 45px rgba(47, 151, 250, 0.16);
}

.platform-icon-row .icon {
  width: 22px;
  height: 22px;
}

.platform-icon-row > span.is-accent .icon {
  width: 27px;
  height: 27px;
}

.platform-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 46px;
}

.platform-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 600;
  transition:
    color 0.35s,
    background 0.35s,
    border-color 0.35s;
}

.platform-tabs button .icon {
  width: 16px;
  height: 16px;
}

.platform-tabs button:hover {
  color: var(--ink);
}

.platform-tabs button.is-active {
  color: #05121d;
  border-color: rgba(255, 255, 255, 0.5);
  background: #d8f3ff;
}

.platform-panel {
  display: none;
}

.platform-panel.is-active {
  display: block;
}

.platform-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(40px, 6vw, 86px);
  padding: clamp(30px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 84% 20%, rgba(49, 151, 252, 0.16), transparent 52%),
    rgba(255, 255, 255, 0.016);
}

.platform-showcase__copy h2 {
  margin-top: 16px;
  font-size: clamp(2rem, 3.9vw, 3.6rem);
}

.platform-showcase__copy .lead {
  margin-top: 18px;
  font-size: 0.94rem;
}

.platform-showcase__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.platform-showcase__list div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-3);
  font-size: 0.8rem;
  line-height: 1.7;
}

.platform-showcase__list .icon {
  width: 14px;
  height: 14px;
  margin-top: 4px;
  color: var(--green);
}

.platform-showcase__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
}

.platform-showcase__visual .phone-frame,
.platform-showcase__visual .phone-mock {
  width: min(74%, 285px);
}

.table-scroll {
  overflow-x: auto;
  border-radius: 18px;
  scrollbar-width: thin;
}

.table-scroll .compare-table,
.table-scroll .update-matrix {
  min-width: 660px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.015);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.82rem;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th {
  color: var(--ink-4);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-table thead th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center !important;
}

.compare-table td:first-child {
  color: var(--ink-2);
}

.compare-table .icon {
  width: 16px;
  height: 16px;
  margin-inline: auto;
  color: var(--green);
}

.compare-table .dash {
  color: var(--ink-4);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.024);
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s;
}

.download-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 203, 255, 0.25);
}

.download-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 0.72rem;
}

.download-card__top .icon {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.download-card h3 {
  margin-top: 26px;
  font-size: 1.35rem;
}

.download-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.download-card .btn {
  width: 100%;
  margin-top: 24px;
}

.download-card > .arrow-link {
  margin-top: 14px;
}

.download-card__note {
  margin-top: 11px;
  color: var(--ink-4);
  font-size: 0.62rem;
  line-height: 1.6;
}

.section--light .download-card {
  border-color: rgba(7, 20, 37, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.section--light .download-card__meta,
.section--light .download-card__note {
  color: var(--dark-ink-3);
}

.section--light .download-card .btn--ghost {
  color: var(--dark-ink);
}

.install-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.install-note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.install-note b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 600;
}

.install-note b span {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #a9e7ff;
  background: rgba(84, 187, 255, 0.1);
  font-family: var(--mono);
  font-size: 7px;
}

.install-note p {
  margin-top: 7px;
  color: var(--ink-4);
  font-size: 0.7rem;
  line-height: 1.7;
}

/* ── updates page ─────────────────────────────────────── */
.update-hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header) + 100px);
  padding-bottom: 70px;
  overflow: hidden;
}

.update-hero__inner {
  position: relative;
  z-index: 2;
}

.update-hero__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 24px;
}

.update-hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 5.8rem);
  line-height: 1.08;
}

.update-hero__version {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex: none;
  margin-bottom: 14px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.update-hero__version b {
  color: #c9efff;
  font-size: clamp(2.3rem, 4.8vw, 4.8rem);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.update-hero__sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.update-hero__sub .lead {
  max-width: 560px;
}

.update-hero__stats {
  display: flex;
  justify-content: flex-end;
  gap: clamp(22px, 4vw, 52px);
}

.update-hero__visual {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(52, 159, 255, 0.13), transparent 50%),
    rgba(9, 16, 27, 0.8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 40px 100px rgba(0, 0, 0, 0.34);
}

.update-hero__visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.update-hero__visual-top b {
  color: var(--ink-2);
  font-size: 0.72rem;
  font-weight: 600;
}

.update-hero__visual-top span {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 7px;
}

.update-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px 0;
}

.update-metric {
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
}

.update-metric span {
  display: block;
  color: var(--ink-4);
  font-size: 0.6rem;
}

.update-metric b {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(1.1rem, 1.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.update-metric em {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 0.54rem;
  font-style: normal;
}

.update-hero__body {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 22px;
  padding-top: 4px;
}

.heatmap-panel {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
}

.heatmap-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.heatmap-panel__head span {
  color: var(--ink-3);
  font-size: 0.65rem;
}

.heatmap-panel__toggle {
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.heatmap-panel__toggle button {
  padding: 4px 8px;
  border-radius: 99px;
  color: var(--ink-4);
  font-size: 0.52rem;
}

.heatmap-panel__toggle button.is-active {
  color: #06131e;
  background: #c6efff;
}

.heatmap {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-columns: 1fr;
  gap: 3px;
}

.heatmap i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(81, 170, 247, 0.075);
  transition:
    background 0.4s,
    transform 0.3s;
}

.heatmap i[data-l="1"] { background: rgba(69, 154, 230, 0.22); }
.heatmap i[data-l="2"] { background: rgba(66, 158, 241, 0.42); }
.heatmap i[data-l="3"] { background: rgba(78, 177, 255, 0.68); }
.heatmap i[data-l="4"] { background: #8fdcff; box-shadow: 0 0 10px rgba(116, 209, 255, 0.24); }

.heatmap i:hover {
  transform: scale(1.35);
  outline: 1px solid rgba(255, 255, 255, 0.6);
}

.heatmap i.is-today {
  outline: 1px solid var(--amber);
  outline-offset: 1px;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 10px;
  color: var(--ink-4);
  font-size: 0.52rem;
}

.heatmap-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: rgba(81, 170, 247, 0.12);
}

.heatmap-legend i[data-l="1"] { background: rgba(69, 154, 230, 0.28); }
.heatmap-legend i[data-l="2"] { background: rgba(66, 158, 241, 0.5); }
.heatmap-legend i[data-l="3"] { background: rgba(78, 177, 255, 0.75); }
.heatmap-legend i[data-l="4"] { background: #8fdcff; }

.update-hero__side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-side-card {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.update-side-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-4);
  font-size: 0.56rem;
}

.update-side-card__head .icon {
  width: 13px;
  height: 13px;
  color: var(--blue);
}

.update-side-card b {
  display: block;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.7rem;
  font-weight: 600;
}

.update-side-card p {
  margin-top: 3px;
  color: var(--ink-4);
  font-size: 0.56rem;
  line-height: 1.6;
}

.update-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.update-highlight {
  position: relative;
  min-height: 330px;
  padding: clamp(26px, 3.4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 80% 100%, rgba(39, 143, 242, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.update-highlight--wide {
  grid-column: span 2;
  min-height: 300px;
}

.update-highlight__num {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.update-highlight h3 {
  margin-top: 16px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.update-highlight p {
  max-width: 480px;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.84rem;
  line-height: 1.85;
}

.update-highlight__art {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  opacity: 0.9;
  pointer-events: none;
}

.mini-heat {
  display: grid;
  grid-template-columns: repeat(26, 1fr);
  gap: 3px;
  padding: 0 30px 26px;
}

.release-gallery [data-gallery] {
  scrollbar-width: none;
}

.release-gallery [data-gallery]::-webkit-scrollbar {
  display: none;
}

.mini-heat i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: rgba(81, 170, 247, 0.1);
}

.mini-heat i[data-l="1"] { background: rgba(69, 154, 230, 0.28); }
.mini-heat i[data-l="2"] { background: rgba(66, 158, 241, 0.5); }
.mini-heat i[data-l="3"] { background: #8fdcff; }

.settings-mini {
  position: absolute;
  right: 26px;
  bottom: -20px;
  width: 62%;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(8, 15, 25, 0.78);
  transform: rotate(-3deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.settings-mini__row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  color: var(--ink-3);
  font-size: 0.56rem;
}

.settings-mini__row:last-child {
  border-bottom: 0;
}

.settings-mini__row .icon {
  width: 12px;
  height: 12px;
  color: var(--blue);
}

.settings-mini__row b {
  margin-left: auto;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 5.5px;
  font-weight: 400;
}

.performance-mini {
  position: absolute;
  right: 26px;
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 96px;
  width: 46%;
}

.performance-mini i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #79d5ff, rgba(33, 127, 204, 0.1));
}

.performance-mini i:nth-child(1) { height: 40%; }
.performance-mini i:nth-child(2) { height: 58%; }
.performance-mini i:nth-child(3) { height: 46%; }
.performance-mini i:nth-child(4) { height: 72%; }
.performance-mini i:nth-child(5) { height: 88%; }
.performance-mini i:nth-child(6) { height: 64%; }
.performance-mini i:nth-child(7) { height: 32%; }

/* release gallery */
.release-gallery {
  position: relative;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2));
  will-change: transform;
}

.gallery-card {
  position: relative;
  width: clamp(240px, 24vw, 320px);
  flex: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s;
}

.gallery-card:hover {
  transform: translateY(-5px);
  border-color: rgba(122, 203, 255, 0.24);
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 1000 / 1330;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.gallery-card:hover img {
  transform: scale(1.035);
}

.gallery-card__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 15px;
  border-top: 1px solid var(--line);
}

.gallery-card__caption b {
  color: var(--ink-2);
  font-size: 0.68rem;
  font-weight: 600;
}

.gallery-card__caption span {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 6px;
}

/* release timeline */
.release-timeline {
  position: relative;
  padding-left: 28px;
}

.release-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(84, 187, 255, 0.6), rgba(255, 255, 255, 0.08) 90%, transparent);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: start;
  gap: 26px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item::before {
  position: absolute;
  top: 37px;
  left: -28px;
  width: 9px;
  height: 9px;
  border: 2px solid #07111c;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(84, 187, 255, 0.8);
  content: "";
}

.timeline-item--past::before {
  background: #32445a;
  box-shadow: none;
}

.timeline-item__version {
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.timeline-item__version span {
  display: block;
  margin-top: 5px;
  color: var(--ink-4);
  font-family: var(--font);
  font-size: 0.62rem;
  letter-spacing: 0.02em;
}

.timeline-item__body h3 {
  font-size: 1.02rem;
}

.timeline-item__body p {
  max-width: 620px;
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 0.78rem;
  line-height: 1.8;
}

.timeline-item__link {
  align-self: center;
  color: var(--ink-4);
  font-size: 0.7rem;
  white-space: nowrap;
}

.timeline-item__link .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.4s;
}

.timeline-item__link:hover {
  color: var(--blue);
}

.timeline-item__link:hover .icon {
  transform: translate(3px, -3px);
}

/* ── chat agents ─────────────────────────────────────── */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

.agent-card {
  position: relative;
  min-height: 180px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(9, 22, 39, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  transition:
    transform 0.45s var(--ease),
    border-color 0.35s,
    background 0.35s;
}

.agent-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 117, 207, 0.22);
  background: rgba(255, 255, 255, 0.9);
}

.agent-card > span {
  color: #718096;
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.agent-card b {
  display: block;
  margin-top: 22px;
  color: var(--dark-ink);
  font-size: 0.98rem;
  font-weight: 650;
}

.agent-card p {
  margin-top: 7px;
  color: var(--dark-ink-2);
  font-size: 0.68rem;
  line-height: 1.75;
}

.agent-card::after {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(17, 117, 207, 0.09);
  border-radius: 50%;
  content: "";
}

.agent-card--expert {
  background: rgba(229, 239, 249, 0.72);
}

.agent-card--expert::after {
  border-color: rgba(107, 93, 220, 0.12);
  box-shadow: 0 0 0 14px rgba(107, 93, 220, 0.025);
}

/* ── work page ────────────────────────────────────────── */
.hero-phone-stack {
  position: relative;
  width: min(100%, 480px);
  margin-inline: auto;
  padding: 30px 20px;
}

.hero-phone-stack .phone-frame,
.hero-phone-stack .phone-mock {
  width: min(78%, 340px);
  margin-inline: auto;
}

.hero-phone-stack::before {
  position: absolute;
  top: 16%;
  left: 50%;
  width: 82%;
  height: 72%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(38, 148, 248, 0.2), transparent 68%);
  filter: blur(42px);
  content: "";
}

.artifact-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(8, 16, 28, 0.8);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  animation: chipFloat 7s ease-in-out infinite;
}

.artifact-float--1 {
  top: 18%;
  left: 0;
}

.artifact-float--2 {
  right: 0;
  bottom: 18%;
  animation-delay: 1.2s;
}

.artifact-float__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #a9e7ff;
  background: rgba(59, 166, 255, 0.11);
}

.artifact-float__icon .icon {
  width: 15px;
  height: 15px;
}

.artifact-float b {
  display: block;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
}

.artifact-float span {
  display: block;
  margin-top: 2px;
  color: var(--ink-4);
  font-size: 0.5rem;
}

.artifact-float .dot {
  margin-left: 8px;
  color: var(--green);
}

/* process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.process-card {
  position: relative;
  padding: clamp(22px, 2.5vw, 30px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 80% 100%, rgba(42, 147, 244, 0.08), transparent 55%),
    rgba(255, 255, 255, 0.018);
}

.process-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.process-card__head .icon {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.process-card__visual {
  position: relative;
  height: 220px;
  margin: 22px 0;
}

.process-card h3 {
  font-size: 1.2rem;
}

.process-card p {
  margin-top: 9px;
  color: var(--ink-3);
  font-size: 0.76rem;
  line-height: 1.8;
}

.todo-card {
  position: absolute;
  inset: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(5, 11, 19, 0.65);
}

.todo-card__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-2);
  font-size: 0.6rem;
}

.todo-card__title span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 6px;
}

.todo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--ink-3);
  font-size: 0.54rem;
}

.todo-item i {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  font-style: normal;
}

.todo-item.done i {
  color: #06131e;
  border-color: var(--green);
  background: var(--green);
}

.todo-item.done i .icon {
  width: 8px;
  height: 8px;
}

.todo-item.done {
  color: var(--ink-2);
}

.todo-item.running i {
  border-color: var(--blue);
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.exec-card {
  position: absolute;
  inset: 0;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(3, 8, 14, 0.72);
  font-family: var(--mono);
  font-size: 0.52rem;
  line-height: 2.35;
}

.exec-line {
  color: rgba(205, 233, 255, 0.67);
}

.exec-prompt { color: #6acbff; }
.exec-dim { color: rgba(255, 255, 255, 0.27); }
.exec-green { color: #8fe8be; }

.deliver-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deliver-doc {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.4s var(--ease);
}

.deliver-doc:hover { transform: translateX(4px); }

.deliver-doc .icon {
  width: 17px;
  height: 17px;
  color: var(--blue);
}

.deliver-doc b {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 500;
}

.deliver-doc span {
  margin-left: auto;
  color: var(--ink-4);
  font-size: 0.5rem;
}

.deliver-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid rgba(105, 224, 173, 0.14);
  border-radius: 7px;
  color: #97eac5;
  background: rgba(105, 224, 173, 0.05);
  font-size: 0.52rem;
}

/* tool grid */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tool-group {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  transition:
    border-color 0.4s,
    transform 0.5s var(--ease);
}

.tool-group:hover {
  transform: translateY(-3px);
  border-color: rgba(122, 203, 255, 0.2);
}

.tool-group__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-group__head > span {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 6px;
}

.tool-group__head .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.tool-group__head b {
  color: var(--ink-2);
  font-size: 0.76rem;
  font-weight: 600;
}

.tool-group__head em {
  margin-left: auto;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 6px;
  font-style: normal;
}

.tool-group p {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 0.68rem;
  line-height: 1.7;
}

.tool-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 14px;
}

.tool-group__chips span {
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 5.5px;
}

.tool-group--note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-style: dashed;
}

.tool-group--note p {
  margin-top: 14px;
}

.tool-group--note .arrow-link {
  margin-top: 18px;
}

/* document lab */
.document-lab {
  padding: 14px;
  border: 1px solid rgba(9, 22, 39, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 70px rgba(47, 83, 120, 0.12);
}

.document-lab__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 12px;
  color: var(--dark-ink-3);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.document-lab__bar b {
  color: #0870cf;
  font-weight: 500;
}

.document-lab__tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(9, 22, 39, 0.07);
  border-radius: 10px;
  background: rgba(9, 22, 39, 0.04);
}

.document-lab__tabs button {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
  padding: 7px;
  border-radius: 7px;
  color: var(--dark-ink-3);
  font-size: 0.6rem;
}

.document-lab__tabs button .icon {
  width: 12px;
  height: 12px;
}

.document-lab__tabs button.is-active {
  color: var(--dark-ink);
  background: #fff;
  box-shadow: 0 4px 12px rgba(48, 79, 111, 0.1);
}

.document-lab__preview {
  margin-top: 10px;
}

.deck-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: clamp(18px, 3vw, 32px);
  overflow: hidden;
  border-radius: 10px;
  color: #eef9ff;
  background:
    radial-gradient(ellipse at 86% 90%, rgba(74, 175, 255, 0.35), transparent 52%),
    linear-gradient(140deg, #0a1a2b, #06101a 60%, #0b2b45);
}

.deck-preview::after {
  position: absolute;
  right: -10%;
  bottom: -40%;
  width: 55%;
  aspect-ratio: 1;
  border: 1px solid rgba(132, 218, 255, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 40px rgba(132, 218, 255, 0.03);
  content: "";
}

.deck-preview__meta {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.deck-preview h3 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.05;
}

.deck-preview p {
  max-width: 60%;
  margin-top: 8px;
  color: rgba(218, 238, 255, 0.6);
  font-size: 0.55rem;
  line-height: 1.7;
}

.deck-preview__chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  width: 44%;
  height: 50px;
  margin-top: 16px;
}

.deck-preview__chart i {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #92dfff, rgba(52, 143, 222, 0.15));
}

.deck-preview__chart i:nth-child(1) { height: 35%; }
.deck-preview__chart i:nth-child(2) { height: 58%; }
.deck-preview__chart i:nth-child(3) { height: 44%; }
.deck-preview__chart i:nth-child(4) { height: 72%; }
.deck-preview__chart i:nth-child(5) { height: 61%; }
.deck-preview__chart i:nth-child(6) { height: 88%; }

.deck-preview__foot {
  position: absolute;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(15px, 2.4vw, 24px);
  left: clamp(18px, 3vw, 32px);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.28);
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: 0.08em;
}

.document-lab__qa {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.document-lab__qa span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 7px;
  border: 1px solid rgba(20, 119, 78, 0.12);
  border-radius: 5px;
  color: #14774e;
  background: rgba(40, 166, 112, 0.06);
  font-size: 0.52rem;
}

.document-lab__qa .icon {
  width: 9px;
  height: 9px;
}

/* skill map */
.skill-map {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.4fr;
  gap: 30px;
  padding: clamp(26px, 4vw, 50px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(ellipse at 90% 20%, rgba(47, 151, 250, 0.13), transparent 50%),
    rgba(255, 255, 255, 0.016);
}

.skill-map__label {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.skill-map__rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.skill-map__rows > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.skill-map__rows span {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.skill-map__rows em {
  color: var(--ink-4);
  font-size: 0.54rem;
  font-style: normal;
}

.skill-map__format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.skill-map__format-grid span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.58rem;
  background: rgba(255, 255, 255, 0.018);
  transition:
    color 0.3s,
    border-color 0.3s;
}

.skill-map__format-grid span:hover {
  color: #b9edff;
  border-color: rgba(84, 187, 255, 0.25);
}

.skill-map__formats p {
  margin-top: 16px;
  color: var(--ink-4);
  font-size: 0.66rem;
  line-height: 1.8;
}

.skill-map__signal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.skill-map__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(116, 207, 255, 0.22);
  border-radius: 50%;
  color: #a9e7ff;
  background: radial-gradient(circle, rgba(54, 156, 247, 0.19), rgba(18, 67, 116, 0.03) 68%);
  box-shadow:
    0 0 0 16px rgba(84, 187, 255, 0.025),
    0 0 0 32px rgba(84, 187, 255, 0.012);
}

.skill-map__orb::before {
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(116, 207, 255, 0.16);
  border-radius: 50%;
  content: "";
  animation: ringSpin 28s linear infinite;
}

.skill-map__orb .icon {
  width: 30px;
  height: 30px;
}

.skill-map__signal > span {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 6px;
  letter-spacing: 0.12em;
}

/* command guard */
.guard-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(45, 150, 249, 0.1), transparent 55%),
    rgba(4, 10, 17, 0.72);
}

.guard-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.guard-panel__bar b {
  color: #ffcf8b;
  font-weight: 500;
}

.guard-command {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding: 13px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.56rem;
  line-height: 1.6;
}

.guard-command__prompt { color: #66c8ff; }

.guard-command em {
  color: var(--ink-4);
  font-style: normal;
}

.guard-command__ok,
.guard-command__ask,
.guard-command__deny {
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 0.46rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guard-command__ok { color: #99eac7; background: rgba(105, 224, 173, 0.09); }
.guard-command--warn { border-color: rgba(255, 198, 117, 0.18); }
.guard-command__ask { color: #ffd28f; background: rgba(255, 198, 117, 0.09); }
.guard-command--block { border-color: rgba(255, 120, 120, 0.18); }
.guard-command__deny { color: #ffaaaa; background: rgba(255, 107, 107, 0.09); }

.guard-levels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 16px;
}

.guard-levels span {
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 5px;
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 0.46rem;
  text-align: center;
}

.guard-levels i {
  display: block;
  margin-bottom: 3px;
  color: var(--blue);
  font-style: normal;
  font-size: 0.42rem;
}

.guard-panel__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--ink-4);
  font-size: 0.52rem;
}

.guard-panel__foot .icon {
  width: 11px;
  height: 11px;
  color: var(--green);
}

/* workspace */
.workspace-visual {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
  border: 1px solid rgba(9, 22, 39, 0.09);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 30px 70px rgba(47, 83, 120, 0.12);
}

.workspace-visual__side {
  padding: 18px 14px;
  border-right: 1px solid rgba(9, 22, 39, 0.07);
  background: rgba(9, 22, 39, 0.025);
}

.workspace-visual__title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--dark-ink);
  font-size: 0.64rem;
  font-weight: 600;
}

.workspace-visual__title .icon {
  width: 13px;
  height: 13px;
  color: #0870cf;
}

.workspace-file {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 7px;
  border-radius: 6px;
  color: var(--dark-ink-3);
  font-size: 0.54rem;
}

.workspace-file .icon {
  width: 12px;
  height: 12px;
}

.workspace-file span {
  margin-left: auto;
  color: var(--dark-ink-3);
  font-family: var(--mono);
  font-size: 5px;
  opacity: 0.7;
}

.workspace-file.is-active {
  color: #0864b8;
  background: rgba(40, 143, 232, 0.09);
}

.workspace-file.is-active .icon {
  color: #0870cf;
}

.workspace-stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(9, 22, 39, 0.08);
  color: var(--dark-ink-3);
  font-size: 0.5rem;
}

.workspace-stat b {
  color: var(--dark-ink);
  font-family: var(--mono);
  font-size: 0.55rem;
  font-weight: 500;
}

.workspace-visual__main {
  padding: 18px;
}

.workspace-diff {
  overflow: hidden;
  border: 1px solid rgba(9, 22, 39, 0.07);
  border-radius: 8px;
  background: #0a111b;
}

.workspace-diff__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--mono);
  font-size: 0.5rem;
}

.workspace-diff__head b {
  color: var(--green);
  font-weight: 400;
}

.diff-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  padding: 3px 10px;
  color: rgba(211, 235, 255, 0.58);
  font-family: var(--mono);
  font-size: 0.48rem;
  line-height: 1.6;
}

.diff-line > span {
  color: rgba(255, 255, 255, 0.18);
  text-align: right;
}

.diff-add {
  color: #9fe8c6;
  background: rgba(47, 153, 103, 0.12);
}

.diff-del {
  color: #f0a3a3;
  background: rgba(190, 75, 75, 0.1);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 120, 120, 0.3);
}

.workspace-artifact {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(20, 119, 78, 0.12);
  border-radius: 6px;
  color: #14774e;
  background: rgba(40, 166, 112, 0.06);
  font-size: 0.54rem;
}

.workspace-artifact .icon {
  width: 11px;
  height: 11px;
}

/* ── interaction loop ────────────────────────────────── */
.loop-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
}

.loop-node {
  flex: 1;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
}

.loop-node--accent {
  border-color: rgba(84, 187, 255, 0.25);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(47, 151, 250, 0.14), transparent 66%),
    rgba(255, 255, 255, 0.024);
}

.loop-node > span {
  color: var(--ink-4);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.loop-node > .icon {
  width: 25px;
  height: 25px;
  margin-top: 24px;
  color: var(--blue);
}

.loop-node b {
  display: block;
  margin-top: 15px;
  font-size: 0.92rem;
  font-weight: 600;
}

.loop-node p {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.7rem;
  line-height: 1.75;
}

.loop-arrow {
  display: grid;
  place-items: center;
  width: 22px;
  flex: none;
  color: var(--ink-4);
}

.loop-arrow .icon {
  width: 14px;
  height: 14px;
}

.whitelist-groups {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.whitelist-groups > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.whitelist-groups > div > span {
  color: var(--blue);
  font-size: 0.7rem;
  font-weight: 600;
}

.whitelist-groups p {
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.62rem;
  line-height: 1.7;
  word-break: break-word;
}

.whitelist-off {
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  color: var(--ink-4);
  background: rgba(255, 255, 255, 0.015);
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 1.7;
}

/* ── responsive pages ─────────────────────────────────── */
@media (max-width: 1100px) {
  .component-wall {
    grid-template-columns: repeat(4, 1fr);
  }
  .component-tile--wide {
    grid-column: span 2;
  }
  .component-tile--full {
    grid-column: span 4;
  }
  .runtime-grid {
    grid-template-columns: 1fr 1fr;
  }
  .runtime-card:last-child {
    grid-column: span 2;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .install-notes {
    grid-template-columns: 1fr;
  }
  .update-hero__body {
    grid-template-columns: 1fr;
  }
  .update-hero__side {
    flex-direction: row;
  }
  .update-side-card {
    flex: 1;
  }
  .update-hero__stats {
    justify-content: flex-start;
  }
  .update-hero__sub {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .timeline-item {
    grid-template-columns: 125px 1fr;
  }
  .timeline-item__link {
    display: none;
  }
  .feature-card {
    grid-column: span 6;
  }
  .feature-card--third {
    grid-column: span 6;
  }
  .feature-card--two-thirds {
    grid-column: span 12;
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 880px) {
  .loop-flow {
    flex-wrap: wrap;
  }
  .loop-node {
    flex: 1 1 calc(50% - 20px);
  }
  .loop-arrow {
    display: none;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-card {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 24px;
    align-items: center;
  }
  .process-card__head {
    grid-column: span 2;
  }
  .process-card__visual {
    grid-row: span 2;
    order: 3;
    height: 210px;
    margin: 0;
  }
  .tool-grid {
    grid-template-columns: 1fr 1fr;
  }
  .agent-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .skill-map {
    grid-template-columns: 1fr 1fr;
  }
  .skill-map__signal {
    display: none;
  }
  .workspace-visual {
    grid-template-columns: 160px 1fr;
  }
  .demo-body {
    grid-template-columns: 136px 1fr;
  }
  .demo-side__item {
    font-size: 0.54rem;
  }
  .demo-side__item--session:nth-of-type(n+4) {
    display: none;
  }
  .platform-showcase {
    grid-template-columns: 1fr;
  }
  .platform-showcase__visual {
    min-height: 340px;
  }
  .platform-showcase__visual .phone-frame,
  .platform-showcase__visual .phone-mock {
    width: min(56%, 270px);
  }
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__copy,
  .split--reverse .split__visual {
    order: initial;
  }
  .update-highlights {
    grid-template-columns: 1fr;
  }
  .update-highlight--wide {
    grid-column: span 1;
  }
  .update-hero__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .update-hero__version {
    margin-bottom: 0;
  }
  .update-hero__side {
    flex-direction: column;
  }
  .compare-table {
    display: table;
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .phone-frame {
    width: min(88%, 310px);
  }
  .loop-node {
    flex-basis: 100%;
    padding: 20px;
  }
  .whitelist-groups > div {
    grid-template-columns: 76px 1fr;
  }
  .hero-phone-stack {
    padding: 26px 0;
  }
  .hero-phone-stack .phone-frame {
    width: 70%;
  }
  .artifact-float {
    padding: 8px 10px;
  }
  .artifact-float b {
    font-size: 0.5rem;
  }
  .artifact-float span {
    font-size: 0.44rem;
  }
  .process-card {
    display: block;
  }
  .process-card__visual {
    height: 210px;
    margin: 20px 0;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .agent-grid {
    grid-template-columns: 1fr 1fr;
  }
  .agent-card {
    min-height: 160px;
  }
  .skill-map {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .workspace-visual {
    grid-template-columns: 1fr;
  }
  .workspace-visual__side {
    display: none;
  }
  .workspace-visual__main {
    padding: 12px;
  }
  .guard-command {
    grid-template-columns: 12px 1fr;
  }
  .guard-command__ok,
  .guard-command__ask,
  .guard-command__deny {
    grid-column: 2;
    justify-self: start;
  }
  .ui-demo__bar {
    padding: 10px 13px;
  }
  .ui-demo__body {
    padding: 17px;
  }
  .ui-demo__head {
    flex-direction: column;
    gap: 12px;
  }
  .ui-metrics {
    gap: 5px;
  }
  .ui-metric {
    padding: 9px;
  }
  .ui-metric span {
    font-size: 0.5rem;
  }
  .ui-metric b {
    font-size: 1rem;
  }
  .ui-metric em {
    font-size: 0.46rem;
  }
  .ui-bars {
    gap: 5px;
    padding: 0 3px;
  }
  .ui-bar span {
    font-size: 6px;
  }
  .ui-control {
    margin-top: 28px;
  }
  .ui-demo__footer span:first-child {
    display: none;
  }
  .demo-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .demo-side {
    display: none;
  }
  .demo-chat {
    padding: 18px 16px 8px;
  }
  .demo-top {
    padding: 11px 15px;
  }
  .demo-input {
    margin: 8px 15px 15px;
  }
  .demo-artifacts {
    grid-template-columns: 1fr 1fr;
  }
  .demo-artifact:last-child {
    display: none;
  }
  .terminal-body {
    min-height: 260px;
    padding: 15px;
    font-size: 8px;
  }
  .feature-grid {
    gap: 10px;
  }
  .feature-card,
  .feature-card--half,
  .feature-card--third,
  .feature-card--two-thirds {
    grid-column: span 12;
    min-height: 210px;
  }
  .component-wall {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .component-tile,
  .component-tile--wide,
  .component-tile--full {
    grid-column: span 1;
    min-height: 150px;
    padding: 15px;
    border-radius: 16px;
  }
  .component-tile--full {
    grid-column: span 2;
  }
  .component-tile__label {
    font-size: 0.58rem;
  }
  .runtime-grid {
    grid-template-columns: 1fr;
  }
  .runtime-card:last-child {
    grid-column: span 1;
  }
  .arch-layer {
    grid-template-columns: 1fr;
  }
  .arch-connector {
    height: 34px;
  }
  .platform-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .platform-tabs button {
    flex: none;
    padding: 9px 14px;
    font-size: 0.72rem;
  }
  .platform-showcase {
    padding: 24px 20px;
  }
  .platform-showcase__visual {
    min-height: 320px;
  }
  .platform-showcase__visual .phone-frame,
  .platform-showcase__visual .phone-mock {
    width: min(64%, 240px);
  }
  .update-hero {
    min-height: auto;
    padding-top: calc(var(--header) + 70px);
  }
  .update-hero h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }
  .update-metrics {
    grid-template-columns: 1fr 1fr;
  }
  .update-hero__visual {
    padding: 12px;
    border-radius: 20px;
  }
  .heatmap {
    gap: 2px;
  }
  .update-highlight {
    min-height: 300px;
    padding: 24px;
  }
  .settings-mini {
    right: 16px;
    width: 72%;
  }
  .performance-mini {
    right: 16px;
    width: 58%;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
  .timeline-item__version {
    font-size: 1.1rem;
  }
  .timeline-item::before {
    top: 30px;
  }
  .release-timeline {
    padding-left: 22px;
  }
  .release-timeline::before {
    left: 3px;
  }
  .timeline-item::before {
    left: -22px;
  }
  .gallery-track {
    padding-inline: var(--gutter);
  }
}


/* readability pass: in-page demos */
.ui-demo__head p { font-size: 0.82rem; }
.ui-demo__head .overline { font-size: 8.5px; }
.ui-metric span { font-size: 0.7rem; }
.ui-metric b { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.ui-metric em { font-size: 0.65rem; }
.ui-seg button { font-size: 0.7rem; }
.ui-bar span { font-size: 8px; }
.ui-control__label { font-size: 0.8rem; }
.ui-control__foot { font-size: 0.65rem; }
.ui-demo__footer { font-size: 0.7rem; }
.ui-demo__footer button { font-size: 0.72rem; }
.chat-window__bar span { font-size: 0.7rem; }
.chat-window__bar b { font-size: 0.76rem; }
.msg__bubble { font-size: 0.82rem; }
.msg__bubble code { font-size: 0.72rem; }
.msg__formula { font-size: 0.78rem; }
.chat-input { font-size: 0.74rem; }
.chat-pills span { font-size: 0.64rem; }
.demo-side__item { font-size: 0.7rem; }
.demo-side__item--session { font-size: 0.64rem; }
.demo-side__label { font-size: 7px; }
.demo-top h4 { font-size: 0.82rem; }
.demo-top span { font-size: 0.64rem; }
.demo-user { font-size: 0.76rem; }
.demo-thinking { font-size: 0.68rem; }
.demo-tool { font-size: 0.68rem; }
.demo-tool b { font-size: 0.64rem; }
.demo-agent p { font-size: 0.74rem; }
.demo-artifact__head { font-size: 6.5px; }
.demo-artifact b { font-size: 0.62rem; }
.demo-artifact span { font-size: 6px; }
.demo-input { font-size: 0.68rem; }
.document-lab__bar { font-size: 8.5px; }
.document-lab__tabs button { font-size: 0.7rem; }
.deck-preview__meta { font-size: 7px; }
.deck-preview p { font-size: 0.64rem; }
.deck-preview__foot { font-size: 6px; }
.document-lab__qa span { font-size: 0.62rem; }
.workspace-file { font-size: 0.64rem; }
.workspace-file span { font-size: 6px; }
.workspace-stat { font-size: 0.6rem; }
.workspace-stat b { font-size: 0.65rem; }
.diff-line { font-size: 0.56rem; }
.workspace-artifact { font-size: 0.62rem; }
.guard-command { font-size: 0.66rem; }
.guard-levels span { font-size: 0.54rem; }
.guard-panel__foot { font-size: 0.6rem; }
.gallery-card__caption b { font-size: 0.78rem; }
.gallery-card__caption span { font-size: 7px; }


/* larger UI type in device mockups */
.phone-mock .pm-status { font-size: 11px; }
.phone-mock .pm-bar b { font-size: 16px; }
.phone-mock .pm-overline { font-size: 8px; }
.phone-mock .pm-title { font-size: 20px; }
.phone-mock .pm-sub { font-size: 10.5px; }
.phone-mock .pm-kpi span { font-size: 8.5px; }
.phone-mock .pm-kpi b { font-size: 15px; }
.phone-mock .pm-kpi em { font-size: 8px; }
.phone-mock .pm-donut__center b { font-size: 16px; }
.phone-mock .pm-donut__center span { font-size: 7px; }
.phone-mock .pm-legend span { font-size: 9.5px; }
.phone-mock .pm-slider-card__top { font-size: 7.5px; }
.phone-mock .pm-slider-card__top b { font-size: 8.5px; }
.phone-mock .pm-work__tool { font-size: 8.5px; }
.phone-mock .pm-work__tool b { font-size: 7.5px; }
.phone-mock .pm-work__p { font-size: 13px; line-height: 1.65; }
.phone-mock .pm-todo__head { font-size: 7.5px; }
.phone-mock .pm-todo__row { font-size: 9.8px; }
.phone-mock .pm-work__title { font-size: 23px; }
.phone-mock .pm-work__final { font-size: 7.5px; }
.phone-mock .pm-artifact__head { font-size: 7.5px; }
.phone-mock .pm-artifact b { font-size: 8px; }
.phone-mock .pm-artifact span { font-size: 6.8px; }
.phone-mock .pm-extra { font-size: 7.5px; }
.phone-mock .pm-pill { font-size: 9.5px; }
.phone-mock .pm-input { font-size: 11px; height: 30px; }
.phone-mock .pm-round { width: 30px; height: 30px; }
.phone-mock .pm-send { width: 30px; height: 30px; }
.phone-mock .pm-round .icon,
.phone-mock .pm-send .icon { width: 11px; height: 11px; }
